joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49aec8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x49b084
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x49af29
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x49b0a0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x49af9b
xor eax, eax
push ebp
push 0x49af94
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0049ad20
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x49af7d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x49b0c0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49af9b
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x49b07c
cmp byte [ebp - 0xd], 0
jne 0x49afdd
cmp byte [ebp - 0x12], 0
je 0x49b07c
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x49aff6
dec ebx
cmp byte [ebx], 0x2e
je 0x49b005
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x49aff5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x49b07c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x49b032
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x49b07c
cmp byte [ebp - 0xd], 0
je 0x49b07c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x49b07c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b470
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x49b558
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x4d9dfc], 1
jae 0x49b54a
xor eax, eax
mov dword [0x4d9a08], eax
xor eax, eax
mov dword [0x4d9a10], eax
xor eax, eax
mov dword [0x4d9a14], eax
mov byte [0x4d9a1a], 2
mov byte [0x4d9a1b], 2
mov byte [0x4d9a1c], 3
mov word [0x4d9dc4], 0
mov word [0x4d9dd4], 1
mov word [0x4d9de4], 0xa
mov dword [0x4d9dec], 0x80020004
mov dword [0x4d9db8], 0x49a650
mov dword [0x4d9dbc], 0x49a648
mov dword [0x4d9dc0], 0x49a650
call fcn.00498b20
test al, al
je 0x49b509
call fcn.00498b50
call fcn.00498c14
mov eax, 0x4d9a20
mov edx, 0x49b564
call fcn.00496136
mov eax, 0x4d9bec
mov edx, 0x49b564
call fcn.00496136
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4d9a00], eax
call fcn.004970dc
mov dword [0x4d99fc], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4d99f4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b55f
ret

Function at 0x49d49c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x49d4b8
call fcn.0049ea80
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x49d4d4
test bl, 1
je 0x49d4d4
call fcn.004a2c18
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x49d6b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0049e61c
test byte [ebp + 0xd], 0xc0
jne 0x49d6dc
mov eax, dword [0x4b2418]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x49d6e9
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x49d716
je 0x49d728
sub ecx, 0x100
je 0x49d736
sub ecx, 0x100
je 0x49d73d
sub ecx, 0x100
je 0x49d72f
jmp 0x49d744
sub ecx, 0x600
je 0x49d73d
sub ecx, 0x100
je 0x49d728
jmp 0x49d744
mov edi, 1
jmp 0x49d749
mov edi, 2
jmp 0x49d749
mov edi, 4
jmp 0x49d749
mov edi, 5
jmp 0x49d749
mov edi, 3
test byte [ebp + 0xd], 1
je 0x49d770
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4b1e90]
test al, 0x80
je 0x49d769
mov ebx, 0x80
jmp 0x49d782
mov ebx, 1
jmp 0x49d782
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x49d782
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x49d794
je 0x49d79d
dec eax
je 0x49d7a6
jmp 0x49d7af
mov dword [ebp - 4], 0x80000000
jmp 0x49d7be
mov dword [ebp - 4], 0x40000000
jmp 0x49d7be
mov dword [ebp - 4], 0xc0000000
jmp 0x49d7be
push 1
call fcn.0049ea14
pop ecx
mov ebx, eax
jmp 0x49d8ae
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x49d7da
sub eax, 0x10
je 0x49d7e1
sub eax, 0x10
je 0x49d7ea
sub eax, 0x10
je 0x49d7f3
jmp 0x49d7f3
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x49d7fa
mov dword [ebp - 8], 1
jmp 0x49d7fa
mov dword [ebp - 8], 2
jmp 0x49d7fa
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x49d867
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x49d85c
test byte [ebp + 0xd], 1
je 0x49d857
mov ebx, 0x50
jmp 0x49d85c
mov ebx, 2
push ebx
call fcn.0049ea14
pop ecx
mov ebx, eax
jmp 0x49d8ae
mov edi, esi
push edi
call fcn.0049d61c
pop ecx
test eax, eax
je 0x49d87b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x49d887
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0049e73c
add esp, 8
mov ebx, eax
inc eax
jne 0x49d8ae
push 4
call fcn.0049ea14
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0049e650
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49e500
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0049bdac
pop ecx
mov ebx, eax
test eax, eax
jne 0x49e524
xor eax, eax
jmp 0x49e5cd
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x49e545
cmp esi, 0x104
jb 0x49e550
push ebx
call fcn.0049bdbc
pop ecx
xor eax, eax
jmp 0x49e5cd
cmp byte [ebx + 1], 0x3a
jne 0x49e580
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x49e580
push ebx
call fcn.0049bdbc
pop ecx
xor eax, eax
jmp 0x49e5cd
inc esi
test edi, edi
je 0x49e5c3
cmp esi, dword [ebp + 0x10]
jbe 0x49e595
push ebx
call fcn.0049bdbc
pop ecx
xor eax, eax
jmp 0x49e5cd
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0049bdbc
pop ecx
mov eax, edi
jmp 0x49e5cd
push esi
push ebx
call fcn.0049bdcc
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x49efb8
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x26
push 0
push ebx
call fcn.0049c28c
add esp, 0xc
mov word [ebx + 6], 1
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x49f0c5
push 0x4b2a34
push edi
call fcn.004a29d4
add esp, 8
test eax, eax
je 0x49f067
push 0
push edi
push 0
call fcn.0049e500
add esp, 0xc
mov esi, eax
test eax, eax
je 0x49f067
push esi
call fcn.0049c36c
pop ecx
cmp eax, 3
jne 0x49f067
push esi
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x49f03e
call fcn.0049ea80
jmp 0x49f1bd
mov word [ebx + 4], 0x4000
movsx edx, byte [esi]
push edx
call fcn.004a2a98
add ax, 0xffc0
pop ecx
mov word [ebx + 0x10], ax
mov word [ebx], ax
push esi
call fcn.0049bdbc
pop ecx
xor eax, eax
jmp 0x49f1bd
test esi, esi
je 0x49f072
push esi
call fcn.0049bdbc
pop ecx
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x49f099
call fcn.0049ea80
jmp 0x49f1bd
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_GetFileType
cmp eax, 3
jne 0x49f0ad
mov cx, 0x1000
jmp 0x49f0b1
mov cx, 0x2000
mov word [ebx + 4], cx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x49f1bd
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_FindClose
mov ecx, dword [ebp - 0x124]
lea edx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x138]
mov eax, dword [ebp - 0x128]
push eax
push edx
push ecx
lea eax, [ebp - 0x140]
push eax
mov edx, dword [ebp - 0x144]
push edx
push ebx
call fcn.004a46b8
add esp, 0x1c
test byte [ebx + 5], 0x40
jne 0x49f165
push 0x2e
push edi
call fcn.004a2a40
add esp, 8
mov esi, eax
test eax, eax
je 0x49f165
push str..bat
push esi
call fcn.004a2824
add esp, 8
test eax, eax
je 0x49f160
push str..cmd
push esi
call fcn.004a2824
add esp, 8
test eax, eax
je 0x49f160
push str..com
push esi
call fcn.004a2824
add esp, 8
test eax, eax
je 0x49f160
push str..exe
push esi
call fcn.004a2824
add esp, 8
test eax, eax
jne 0x49f165
or word [ebx + 4], 0x40
cmp byte [edi + 1], 0x3a
jne 0x49f16f
mov al, byte [edi]
jmp 0x49f18e
lea edx, [ebp - 0x248]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x49f188
mov al, 0x41
jmp 0x49f18e
mov al, byte [ebp - 0x248]
cmp al, 0x61
jl 0x49f1a2
cmp al, 0x7a
jg 0x49f1a2
movsx edx, al
add dx, 0xff9f
mov word [ebx], dx
jmp 0x49f1b4
cmp al, 0x41
jl 0x49f1b4
cmp al, 0x5a
jg 0x49f1b4
movsx ecx, al
add cx, 0xffbf
mov word [ebx], cx
mov ax, word [ebx]
mov word [ebx + 0x10], ax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a2bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4a2c12
call fcn.004a2b60
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0049c36c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0049c36c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a2c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4b33d0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4a2d6a
cmp dword [0x4b33cc], 0
jne 0x4a2d6a
cmp dword [0x4b35b0], 0
je 0x4a2d24
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004a2a40
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a2d0a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004a2a40
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a2d0a
lea ebx, [ebp - 0x84]
jmp 0x4a2d0b
inc ebx
call fcn.004a2c4c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4a2da5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4b33d4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0049c36c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4b33d7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4a2da5
cmp dword [0x4b33cc], 0
je 0x4a2d84
cmp dword [0x4b33cc], 0xffffffff
je 0x4a2da5
push esi
call dword [0x4b33cc]
pop ecx
mov eax, dword [0x4b33d0]
test eax, eax
je 0x4a2da5
cmp dword [0x4b33d0], 0xffffffff
je 0x4a2da5
cmp byte [eax], 0
je 0x4a2da5
push esi
push eax
call fcn.004a2bb0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a35a0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4da704], 0
jne 0x4a3621
cmp dword [0x4da724], 0
jne 0x4a35d0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4da724], eax
test eax, eax
jne 0x4a35d0
push str.GetEnvironmentStrings_failed
call fcn.004a2dbc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4da724]
jmp 0x4a35e4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0049c36c
pop ecx
mov edi, eax
test eax, eax
jne 0x4a35dc
lea edi, [ebp + 1]
push edi
call fcn.0049bdac
pop ecx
mov ebx, eax
mov dword [0x4da708], ebx
test ebx, ebx
jne 0x4a360e
xor eax, eax
jmp 0x4a36e4
push edi
mov edx, dword [0x4da724]
push edx
push ebx
call fcn.0049c21c
add esp, 0xc
jmp 0x4a3641
xor esi, esi
mov ebx, dword [0x4da704]
jmp 0x4a363b
push eax
call fcn.0049c36c
pop ecx
test eax, eax
jne 0x4a3637
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4a362b
lea ebx, [esi + 4]
push 4
mov dword [0x4da70c], ebx
inc ebx
push ebx
call fcn.0049b568
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4a3664
xor eax, eax
jmp 0x4a36e4
cmp dword [0x4da704], 0
jne 0x4a3695
xor esi, esi
mov ebx, dword [0x4da708]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4a3686
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0049c36c
pop ecx
mov edi, eax
test eax, eax
jne 0x4a367c
jmp 0x4a36c6
xor esi, esi
mov ebx, dword [0x4da704]
mov eax, dword [esp]
mov edi, eax
jmp 0x4a36c0
push eax
call fcn.0049c36c
pop ecx
test eax, eax
je 0x4a36b5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4a36b9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4a36a4
mov eax, dword [0x4da704]
test eax, eax
je 0x4a36d6
push eax
call fcn.0049bdbc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4da704], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xa90008], 0x8088405
inc edx
mov dword [ebx + 0xa90008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0xa7389e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa738a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0xa74c17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0xa925f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0xa925f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0xa913fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa74c1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret