joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10097c4b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100b52f0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b52f0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov ebp, dword [0x1009d20c]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov esi, edx
cmp dword [esi + 4], 0
mov edx, dword [ecx]
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jne 0x46863a
lea ebx, [esi + 8]
push ebx
call ebp
cmp dword [esi + 4], 0
jne 0x468633
push 0x40
call fcn.0047859f
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
xor eax, eax
mov dword [esp + 0x64], eax
cmp edi, eax
je 0x468628
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push eax
push edi
call fcn.00468c50
mov dword [esp + 0x64], 0xffffffff
mov dword [esi + 4], eax
push ebx
call dword [0x1009d204]
mov esi, dword [esi + 4]
test esi, esi
je 0x468688
cmp byte [esi], 0
jne 0x468661
lea edi, [esi + 0x20]
push edi
call ebp
cmp byte [esi], 0
jne 0x46865a
push esi
call fcn.00468f20
mov byte [esi], 1
push edi
call dword [0x1009d204]
mov eax, dword [esi + 0x3c]
mov esi, dword [esi + 0x38]
test esi, esi
je 0x468688
push esi
lea ecx, [esp + 0x20]
call fcn.00469220
cmp eax, 0xffffffff
je 0x468688
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
mov al, 1
jmp 0x46868a
xor al, al
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00478577
add esp, 0x54
ret 4
Function at 0x47a6d5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x47a712
cmp dword [ebp + 0x14], edi
je 0x47a712
cmp ecx, edi
jne 0x47a719
call fcn.0047b67c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x47a72d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x47a74e
cmp ebx, 0xffffffff
je 0x47a73d
push ebx
push edi
push ecx
call fcn.0047b2b0
add esp, 0xc
cmp esi, edi
je 0x47a6fa
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x47a6fa
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x47a76a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x47a771
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x47a862
Function at 0x47a780
Capabilities:
Read file on windows

Disassembly:
call fcn.00477fbe
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
test word [esi + 0xc], 0x10c
je 0x47a7c5
inc esp
inc esp
mov eax, dword [esi + 4]
test eax, eax
je 0x47a7c5
jl 0x47a8c3
cmp ebx, eax
mov edi, ebx
jb 0x47a796
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x47a86a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00478609
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x47a85a
cmp ebx, dword [ebp - 0xc]
jb 0x47a832
cmp dword [ebp - 0xc], 0
je 0x47a7ef
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x47a7e4
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x47a7eb
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x47a7fa
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x47a7fa
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x47a896
push eax
push dword [ebp - 8]
push esi
call fcn.00484e3d
pop ecx
push eax
call fcn.00484d40
add esp, 0xc
test eax, eax
je 0x47a8d5
cmp eax, 0xffffffff
je 0x47a8c3
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x47a85a
push esi
call fcn.0048465f
cmp eax, 0xffffffff
pop ecx
je 0x47a8c7
cmp dword [ebp - 4], 0
je 0x47a896
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x47a779
mov eax, dword [ebp + 0x14]
jmp 0x47a714
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x47a881
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0047b2b0
add esp, 0xc
call fcn.0047b67c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x47a70a
cmp dword [ebp + 0xc], 0xffffffff
je 0x47a8ac
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0047b2b0
add esp, 0xc
call fcn.0047b67c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x47a70a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x47a714
or dword [esi + 0xc], 0x10
jmp 0x47a8c7
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..pdata
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1c3c7dbd
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..pdata_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x744b05de
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x2c23700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02c2378f
jae 0x2c2370e
xor ecx, ecx
call fcn.02c2378f
jae 0x2c2373d
xor eax, eax
call fcn.02c2378f
jae 0x2c2374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02c2378f
adc al, al
jae 0x2c2372f
jne 0x2c23779
stosb byte es:[edi], al
jmp 0x2c23711
call fcn.02c2379b
sub ecx, ebx
jne 0x2c23756
call fcn.02c23799
jmp 0x2c23775
lodsb al, byte [esi]
shr eax, 1
je 0x2c23783
adc ecx, ecx
jmp 0x2c23772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02c23799
cmp eax, 0x7d00
jae 0x2c23772
cmp ah, 5
jae 0x2c23773
cmp eax, 0x7f
ja 0x2c23774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2c23711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x2c43700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02c4378f
jae 0x2c4370e
xor ecx, ecx
call fcn.02c4378f
jae 0x2c4373d
xor eax, eax
call fcn.02c4378f
jae 0x2c4374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02c4378f
adc al, al
jae 0x2c4372f
jne 0x2c43779
stosb byte es:[edi], al
jmp 0x2c43711
call fcn.02c4379b
sub ecx, ebx
jne 0x2c43756
call fcn.02c43799
jmp 0x2c43775
lodsb al, byte [esi]
shr eax, 1
je 0x2c43783
adc ecx, ecx
jmp 0x2c43772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02c43799
cmp eax, 0x7d00
jae 0x2c43772
cmp ah, 5
jae 0x2c43773
cmp eax, 0x7f
ja 0x2c43774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2c43711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x403190
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404558
test esi, esi
jne 0x4031c6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404648
jmp 0x4031e4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403094
mov edi, eax
test esi, esi
je 0x4031e4
cmp dword [ebx], 0
je 0x4031e4
dec esi
jmp 0x4031cd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403218
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4037cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403864
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403844
xor eax, eax
push ebp
push 0x40383d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403880
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403844
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x41c024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41c024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41d044], 0
je 0x404439
cmp word [0x41d218], 0xd7b2
jne 0x404401
cmp dword [0x41d220], 0
jbe 0x404401
mov eax, 0x41d214
call dword [0x41d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404460
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41c030], 0
jne 0x404455
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4058cc
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 0xf0019
push 0
push 0x405afc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40594f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405afc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40594f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4059d8
xor eax, eax
push ebp
push 0x4059d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405708
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4059b6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405b38
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4059b6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059d8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x405af2
cmp byte [ebp - 0xd], 0
jne 0x405a1f
cmp byte [ebp - 0x12], 0
je 0x405af2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405a38
dec ebx
cmp byte [ebx], 0x2e
je 0x405a47
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405a37
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405af2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405a84
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405af2
cmp byte [ebp - 0xd], 0
je 0x405af2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405af2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x407764
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4077b6
test eax, edx
je 0x4077b9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x407779
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40779f
add ecx, 4
js 0x40778f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40779c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4077c5
test edx, edx
jne 0x40776c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049c4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407e9d
test al, 0x10
je 0x407ea1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049c4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407ec1
test al, 0x10
jne 0x407ec5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40aa80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aab9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404648
jmp 0x40aac2
mov eax, ebx
mov edx, esi
call fcn.004045ac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aacc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aaee
movzx eax, byte [esp]
jmp 0x40aaf0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40b180
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40aff8
mov eax, dword [0x41cd2c]
cmp byte [eax], 0
je 0x40b1fc
mov eax, dword [0x41cc44]
call fcn.00403298
call fcn.00402f00
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408250
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b244
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b232
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41cc20]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41f7f0]
call fcn.004056b0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x41472c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403338
ret

Function at 0x414a64
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jmp 0x414afe
mov eax, dword [edi + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp + 8]
mov esi, ebx
cmp dword [edi + 4], 0xffffffff
jne 0x414af6
mov ebx, dword [edi]
add ebx, dword [ebp + 8]
jmp 0x414af6
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x414af0
test byte [ebx + 3], 0x80
je 0x414acc
mov eax, dword [ebx]
and eax, 0xffff
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
jmp 0x414ae0
mov eax, dword [ebp + 8]
add eax, dword [ebx]
add eax, 2
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
add ebx, 4
add esi, 4
cmp dword [ebx], 0
jne 0x414a9f
add edi, 0x14
cmp dword [edi + 0x10], 0
je 0x414b0e
cmp dword [edi + 0xc], 0
jne 0x414a75
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x414b18
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edi, dword [ebp - 4]
push 0x40
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x414c74
cmp word [edi], 0x5a4d
jne 0x414c74
mov esi, dword [edi + 0x3c]
add esi, dword [ebp - 4]
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x414c74
cmp dword [esi], 0x4550
jne 0x414c74
xor eax, eax
mov dword [ebp - 0x10], eax
mov ebx, esi
add ebx, 0xf8
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x414c74
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x414c74
movzx eax, word [esi + 6]
mov dword [ebp - 0xc], eax
mov ecx, ebx
sub ecx, edi
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
add ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x18]
call fcn.004069e4
mov ecx, dword [ebp - 0x10]
dec ecx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
xor edx, edx
call fcn.004069e4
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x414c02
inc edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
add edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x18]
call fcn.004069e4
add ebx, 0x28
dec edi
jne 0x414be8
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x414c23
mov edx, dword [esi + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x18]
call fcn.004149f0
mov eax, dword [esi + 0x80]
mov ebx, dword [ebp - 0x18]
add eax, ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00414a64
mov eax, dword [esi + 0x28]
mov edi, eax
add edi, ebx
mov edx, edi
test eax, eax
je 0x414c6e
xor eax, eax
push ebp
push 0x414c64
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push ebx
call edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414c6e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret