joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fd54
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, 0x105052b
call fcn.0104b61c
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [0x106b1dc]
dec ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ebp - 0x10], esi
je 0x100fd6f
dec ecx
lea ecx, [eax + 0x6c]
jmp 0x100fd72
lea ecx, [eax + 0x64]
mov eax, dword [edi + 4]
push ebx
xor edx, edx
mov dx, word [eax + 0x1c]
movzx eax, word [eax + 0x1e]
xor ebx, ebx
push ebx
push edx
push eax
push ebx
push dword [ecx]
mov ecx, esi
call fcn.0100fcdd
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], ebx
mov dword [esi], 0x1001e5c
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov ecx, dword [eax + 0x54]
movzx eax, word [esi + 0xc]
shr ecx, 3
mov byte [esi + 0x10], cl
movzx ecx, cl
imul eax, ecx
add eax, 7
and eax, 0xfffffff8
mov dword [esi + 8], eax
mov ecx, dword [edi + 4]
mov dword [ecx + 0x18], eax
movzx eax, word [esi + 0xe]
imul eax, dword [esi + 8]
push 0x40
push 0x1000
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, ebx
mov dword [esi + 0x14], eax
pop ebx
jne 0x100fe04
push 0x10509b0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], 0x1001e30
mov dword [ebp - 0x18], 0x1001c94
call fcn.0104b640
mov ecx, dword [edi + 4]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x103b6da
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x1001fb0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x103b734
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x103b734
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x103b734
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x103b832
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x10544bc]
push ebx
push edi
push 0x25
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
xor bl, bl
push eax
mov byte [ebp - 0x99], bl
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x103b880
inc bl
mov byte [ebp - 0x99], 1
cmp dword [ebp - 0x88], 1
jne 0x103b8b1
cmp dword [ebp - 0x94], 4
ja 0x103b8be
jne 0x103b8a8
cmp dword [ebp - 0x90], 0xa
jb 0x103b8a8
cmp word [ebp - 0x8c], 0x55d
jae 0x103b8be
mov byte [ebp - 0x99], 1
jmp 0x103b8be
cmp dword [ebp - 0x88], 2
jne 0x103b8d7
test bl, bl
je 0x103b8f5
mov eax, dword [ebp + 8]
sub eax, 6
je 0x103b8e2
dec eax
je 0x103b8db
sub eax, 3
jne 0x103b8d7
cmp byte [ebp - 0x99], 0
je 0x103b906
xor eax, eax
jmp 0x103b90e
call fcn.0103b73d
jmp 0x103b90e
cmp byte [ebp - 0x99], 0
jne 0x103b8d7
call fcn.0103b77c
and eax, 4
jmp 0x103b90e
cmp dword [ebp + 8], 0xa
je 0x103b906
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x103b90e
call fcn.0103b77c
and eax, 8
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.010059a3
leave
ret
Function at 0x1048319
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10544bc]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 4
pop eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf8], eax
xor eax, eax
lea edi, [ebp - 0xdc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edi, [ebp - 0xec]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0xf4]
push eax
xor edi, edi
push edi
push 0x10024f0
push ecx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], 0x10
call ebx
cmp dword [esi + 0x1730], edi
mov dword [ebp - 0xfc], edi
jbe 0x104855d
lea eax, [esi + 0x570]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x104853b
mov eax, dword [esi + eax*4 + 0x232c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0xfc]
inc eax
push eax
lea eax, [ebp - 0xcc]
push 0x10024dc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
lea eax, [ebp - 0xf0]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x104853b
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x10024c4
push dword [ebp - 0xf0]
call ebx
mov esi, dword [ebp - 0x104]
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 0x2a58]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x10024ac
push dword [ebp - 0xf0]
call ebx
push 4
lea edi, [esi + 0x41c]
pop ecx
lea esi, [ebp - 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x1048493
push 4
pop ecx
lea edi, [ebp - 0xec]
lea esi, [ebp - 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x1048527
mov esi, dword [ebp - 0x104]
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 0x2a5c]
push eax
lea eax, [ebp - 0xf4]
push eax
xor edi, edi
push edi
push 0x1002488
push dword [ebp - 0xf0]
call ebx
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 0x2a4c]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x100247c
push dword [ebp - 0xf0]
call ebx
lea eax, [ebp - 0xf8]
push eax
lea eax, [esi + 0x2a50]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x100246c
push dword [ebp - 0xf0]
call ebx
lea eax, [ebp - 0xf8]
push eax
add esi, 0x2a54
push esi
lea eax, [ebp - 0xf4]
push eax
push edi
push 0x100245c
push dword [ebp - 0xf0]
call ebx
push dword [ebp - 0xf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x110]
xor edi, edi
inc dword [ebp - 0xfc]
mov eax, dword [ebp - 0xfc]
add dword [ebp - 0x100], 0x234
cmp eax, dword [esi + 0x1730]
jb 0x10483b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010059a3
leave
ret 4
Function at 0x1048571
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x10544bc]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 4
mov ebx, ecx
lea ecx, [ebx + 8]
push ecx
push 4
xor edi, edi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x10024f0
push eax
mov dword [ebp - 0xdc], eax
call esi
cmp dword [ebx + 0x1730], edi
mov dword [ebp - 0xd4], edi
jbe 0x10486f6
lea eax, [ebx + 0x570]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10486d4
mov edi, dword [ebx + eax*4 + 0x232c]
mov eax, dword [ebp - 0xd4]
inc eax
push eax
lea eax, [ebp - 0xcc]
push 0x10024dc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0xd0]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10486d4
push 4
lea eax, [edi + 0x2a58]
push eax
push 4
push 0
push 0x10024ac
push dword [ebp - 0xd0]
call esi
push 4
lea eax, [edi + 0x2a5c]
push eax
push 4
push 0
push 0x1002488
push dword [ebp - 0xd0]
call esi
push 4
lea eax, [edi + 0x2a4c]
push eax
push 4
push 0
push 0x100247c
push dword [ebp - 0xd0]
call esi
push 4
lea eax, [edi + 0x2a50]
push eax
push 4
push 0
push 0x100246c
push dword [ebp - 0xd0]
call esi
push 4
lea eax, [edi + 0x2a54]
push eax
push 4
push 0
push 0x100245c
push dword [ebp - 0xd0]
call esi
push 0x10
add edi, 0x41c
push edi
push 3
push 0
push 0x10024c4
push dword [ebp - 0xd0]
call esi
push dword [ebp - 0xd0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd4]
add dword [ebp - 0xd8], 0x234
cmp eax, dword [ebx + 0x1730]
jb 0x10485c9
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010059a3
leave
ret 4
Function at 0x104a337
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0xfffffffffffffff1
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call fcn.01047269
mov ecx, esi
mov dword [esi + 4], eax
call fcn.010470ef
mov eax, dword [esi + 4]
xor edi, edi
inc edi
xor ebx, ebx
cmp eax, edi
je 0x104a387
cmp eax, 3
je 0x104a387
cmp eax, 2
jne 0x104a398
mov ecx, esi
call fcn.01048bce
cmp eax, ebx
jge 0x104a398
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
cmp dword [esi + 4], edi
jne 0x104a3e7
push ebx
push ebx
push 0x400
push dword [esi + 0xc]
mov dword [esi + 0x18], edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x104a3d9
push ebx
push ebx
push dword [esi + 0xc]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x104a3e0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esi + 0x18], ebx
jne 0x104a3b2
jmp 0x104a3e7
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0xdc
call sub.d3d8.dll_Direct3DCreate8
cmp eax, ebx
mov dword [esi + 0x2354], eax
jne 0x104a407
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0x82000001
jmp 0x104a466
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, ebx
jl 0x104a41d
mov ecx, esi
call fcn.0104955f
cmp eax, ebx
jge 0x104a425
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
jmp 0x104a466
xor edx, edx
cmp dword [esi + 0x2350], ebx
jbe 0x104a453
lea ecx, [esi + 0x232c]
mov eax, dword [ecx]
cmp dword [eax + 0x2a40], ebx
jne 0x104a45f
cmp dword [eax + 0x2a48], ebx
jne 0x104a45f
inc edx
add ecx, 4
cmp edx, dword [esi + 0x2350]
jb 0x104a435
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0x82000003
jmp 0x104a466
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x104ac12
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x10544bc]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x118]
push eax
mov esi, ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x108], 1
sete al
xor edi, edi
cmp dword [esi + 4], 2
mov dword [esi + 0x20], eax
jne 0x104acde
cmp eax, edi
je 0x104acde
lea eax, [ebp - 0x120]
push eax
push 0x1002590
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x104acde
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push 0x1002564
push dword [ebp - 0x120]
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104acde
cmp dword [ebp - 0x11c], edi
je 0x104acde
push 0x1002548
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [esi + 0x24], eax
je 0x104acd2
push 0x1002534
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x28], eax
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
call fcn.0104ae90
fstp st(0)
cmp dword [esi + 0x34], edi
jne 0x104ad0c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp eax, edi
mov ecx, esi
jge 0x104ad03
push 1
push eax
call fcn.010482bf
jmp 0x104ad82
call fcn.0104a8ca
cmp eax, edi
jl 0x104ad82
cmp dword [esi + 4], 2
jne 0x104ad24
push edi
lea eax, [ebp - 0x11c]
push eax
push 1
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [ebp - 0x13c], edi
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x104ad5c
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x104ad77
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x34], edi
mov ecx, esi
je 0x104ad72
call fcn.01047b7e
jmp 0x104ad77
call fcn.01047a49
cmp dword [ebp - 0x13c], 0x12
jne 0x104ad2a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010059a3
leave
ret
Function at 0x104f389
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x106ca68]
mov eax, dword [0x10544bc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x104f56f
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x106ca80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x104f56f
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x104f3fa
xor eax, eax
jmp 0x104f583
test al, 0x20
je 0x104f40d
push 2
push 0
push 0
push ecx
call fcn.0104fbe7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x104f4cd
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x104f549
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x104f47c
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x104f46a
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x104f446
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x104f4fb
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x104f507
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x104f432
jmp 0x104f507
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x104f4fb
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x104f507
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x104f567
cmp dword [ebp - 0x40c], eax
je 0x104f543
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x104f535
mov dword [0x106af94], 9
mov dword [0x106af98], eax
jmp 0x104f580
push dword [ebp - 0x40c]
call fcn.0104fab1
pop ecx
jmp 0x104f580
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x104f55b
cmp byte [edi], 0x1a
je 0x104f3f3
mov dword [0x106af94], 0x1c
jmp 0x104f579
sub eax, dword [ebp - 0x420]
jmp 0x104f583
mov dword [0x106af94], 9
and dword [0x106af98], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010059a3
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf44
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 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
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 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
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 0x41cf6c
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 0x41f0a0
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 0x5fd58e
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 0x41f0ef
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 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
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 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
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 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
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 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
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 0x5fd595
ret
Function at 0x4202d8
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 0x5fe8f3
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 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x61b54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x61b54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x61a378]
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 0x4204c5
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.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
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.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
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.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
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 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
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.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
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 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fe8fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret