joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417371
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41737f
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x417460
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x447410]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x447410]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x447410]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x447410]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x447410]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x447410]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x447410]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x447410]
xor eax, esi
inc edx
dec edi
jne 0x41739c
pop ebx
cmp dword [ebp + 0x10], 0
je 0x417481
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x447410]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x417466
pop edi
pop esi
not eax
pop ebp
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x447410]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x447410]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x417644
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [0x444188]
test eax, eax
jne 0x417667
mov eax, 0x200
jmp 0x4177dc
mov ecx, dword [ebp - 0x4c]
push ebx
push esi
push 1
mov edx, ecx
pop eax
xor ebx, ebx
and edx, eax
mov dword [ebp - 8], ebx
je 0x41767d
mov dword [ebp - 8], eax
test cl, 2
je 0x417686
or dword [ebp - 8], 2
test cl, 4
je 0x41768f
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x41769a
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x4176a3
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x4176ad
or byte [ebp - 5], 0x40
jmp 0x4176b1
or byte [ebp - 5], 0x80
or byte [ebp - 5], 1
cmp edx, ebx
jne 0x4176bd
or byte [ebp - 6], 0x80
push ebx
push edi
call dword [0x4440cc]
cmp eax, 0x28
mov dword [ebp - 0x10], eax
jbe 0x417758
mov esi, dword [0x444184]
push ebx
push ebx
push ebx
push edi
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 2]
push 2
push eax
push edi
mov edi, dword [0x444150]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push dword [ebp + 8]
call edi
cmp word [ebp - 2], 0x54ad
jne 0x417758
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x417758
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x417754
cmp eax, 0x454e
je 0x417754
cmp eax, 0x454c
je 0x417754
cmp eax, 0x4550
jne 0x417758
or byte [ebp - 6], 0x40
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x417764
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x417770
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x4177ac
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.004175c3
push dword [ebp - 0x34]
mov dword [esi], eax
mov dword [esi + 4], edx
push dword [ebp - 0x38]
call fcn.004175c3
push dword [ebp - 0x44]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
push dword [ebp - 0x48]
call fcn.004175c3
mov dword [esi + 0x10], eax
add esp, 0x18
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x4177d8
lea eax, [ebp + 0xe]
push eax
lea eax, [ebp + 0xa]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.004175e5
movzx eax, word [ebp + 0xa]
movzx ecx, word [ebp + 0xe]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret
Function at 0x41acf8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [0x4440d4]
call esi
push dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], ebx
call esi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
jne 0x41ad25
mov eax, dword [ebp + 0x10]
and byte [eax], 0
jmp 0x41ad73
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [0x44414c]
cmp esi, ebx
mov dword [ebp + 0xc], esi
jg 0x41ad3d
mov dword [ebp + 0xc], ebx
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x41ad70
mov eax, esi
push 0x19
cdq
idiv dword [ebp - 4]
mov eax, esi
pop ebx
lea ecx, [edx + edi]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
movzx edx, byte [ecx]
xor eax, edx
cdq
idiv ebx
add dl, 0x41
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], dl
jl 0x41ad44
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43e4c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, esi
sahf
add byte [ebp + 0x5700014e], al
cld
push ebx
push eax
push 0x54680208
call 0xffb4ac6a
add byte [edx], al
pop ss
push 0xd5660096
add byte [esi - 0x2b], ah
invalid
add dword [esp + esi*4], ebx
mov esi, dword [0x1015ffff]
adc al, 0xff
jne 0x43e4f6
push esi
xor dword [esi], ebp
jne 0x43e49f
push 0x31
xor al, 0x3d
ret
mov esp, eax
call 0xfd341b18
xor esi, esi
pop ebp
dec ebp
shr byte [0xee841c2], 1
add dword ss:[eax], eax
add dword [ebp - 0x39], ebx
jo 0x43e4b4
movsd dword es:[edi], dword [esi]
sub byte [ebp + 0x50], 3
jne 0x43e4ca
je 0x43e524
mov ebp, 0xe0a8e8f0
xor eax, 0x39968653
xchg byte [ecx], al
add byte [edi - 0x73], dl
dec dword [ebx + 0x3ab0e8e0]
push ebx
xchg byte [esi - 0x1cfe79c7], dl
add byte [edi - 0x73], dl
mov esi, eax
cmp esi, 0xffffffff
sbb dword [esi], esi
add dword [eax], eax
push 0x14f10
mov eax, dword [eax]
push 0x3bf0e81a
invalid
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Get graphical window text
Get keyboard layout
Hide graphical window
Log keystrokes via input method manager
Log keystrokes via polling
Read clipboard data
Terminate process
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [0x40301f], eax
mov dword [esp], 0
mov dword [esp + 4], 0x7f02
call dword [sym.imp.user32.dll_LoadIconA]
sub esp, 8
mov dword [0x403023], eax
mov dword [esp], 0
mov dword [esp + 4], 0x7f00
call dword [sym.imp.user32.dll_LoadCursorA]
sub esp, 8
mov dword [0x403027], eax
mov eax, 0x40300f
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterClassA]
sub esp, 4
test eax, eax
je 0x401137
mov dword [esp], 0
mov dword [esp + 4], 0x403000
mov dword [esp + 8], 0x40300a
mov dword [esp + 0xc], 0x80000
mov dword [esp + 0x10], pe_nt_image_headers32
nop
nop
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], 0xc0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [0x40301f]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.user32.dll_CreateWindowExA]
sub esp, 0x30
test eax, eax
je 0x401137
push 0
push eax
call dword [sym.imp.user32.dll_ShowWindow]
mov dword [esp], 0x403037
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.user32.dll_GetMessageA]
sub esp, 0x10
cmp eax, 1
jb 0x401137
jne 0x4010e6
mov dword [esp], 0x403037
call dword [sym.imp.user32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], 0x403037
call dword [sym.imp.user32.dll_DispatchMessageA]
sub esp, 4
jmp 0x4010e6
leave
mov eax, dword [0x40303f]
mov dword [esp], eax
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x4013ad
Capabilities:
Encode data using xor
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x403053
mov ecx, dword [0x4013a8]
dec ecx
mov bl, byte [0x4013ac]
rdtsc
nop
push eax
mov bh, byte [esi]
nop
mov byte [edi], bh
inc esi
inc esi
inc edi
mov bh, byte [esi]
xor bh, bl
mov byte [edi], bh
loop 0x4013cb
rdtsc
nop
pop edx
sub eax, edx
pop edx
sub edx, 0x105
ret

Function at 0x4013e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push dword [0x4013a8]
pop ebx
mov eax, eax
push 4
push 0x1000
push ebx
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
test eax, eax
jne 0x40141f
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 4], eax
lea esi, [ebp - 8]
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
nop
jne 0x40143b
call dword [sym.imp.kernel32.dll_GetLastError]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4031b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4031ec
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40320c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405880
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4034a4
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.00405610
test esi, esi
jne 0x4034da
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.00405700
jmp 0x4034f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403348
mov edi, eax
test esi, esi
je 0x4034f8
cmp dword [ebx], 0
je 0x4034f8
dec esi
jmp 0x4034e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4044a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x631024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40453c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40451c
xor eax, eax
push ebp
push 0x404515
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 0x404558
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 0x40451c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x631024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x631024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4053bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63b04c], 0
je 0x40541d
cmp word [0x63b220], 0xd7b2
jne 0x4053e5
cmp dword [0x63b228], 0
jbe 0x4053e5
mov eax, 0x63b21c
call dword [0x63b238]
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 0x405444
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x631030], 0
jne 0x405439
push 0
push 0x631768
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405594
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x631038], 0
je 0x4055ba
mov edx, esi
mov eax, ebx
call dword [0x631038]
jmp 0x4055c9
mov eax, 8
call fcn.00402fa8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x63b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40555c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407100
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 0x407330
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407183
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407330
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407183
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40734c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40720c
xor eax, eax
push ebp
push 0x407205
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406f3c
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 0x4071ea
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40736c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4071ea
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 0x40720c
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 0x407326
cmp byte [ebp - 0xd], 0
jne 0x407253
cmp byte [ebp - 0x12], 0
je 0x407326
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40726c
dec ebx
cmp byte [ebx], 0x2e
je 0x40727b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40726b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x407326
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4072b8
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 0x407326
cmp byte [ebp - 0xd], 0
je 0x407326
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 0x407326
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 0x409f64
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409fb6
test eax, edx
je 0x409fb9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409f79
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 0x409f9f
add ecx, 4
js 0x409f8f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409f9c
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 0x409fc5
test edx, edx
jne 0x409f6c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405aa0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40acfe
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40ad1f
cmp ebx, 3
je 0x40ad1f
cmp ebx, 0x7b
je 0x40ad1f
mov eax, esi
call fcn.0040aca0
test al, al
jne 0x40ad23
xor eax, eax
jmp 0x40ad25
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405aa0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ad41
test al, 0x10
jne 0x40ad45
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40e888
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 0x40e8c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405700
jmp 0x40e8ca
mov eax, ebx
mov edx, esi
call fcn.00405664
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e8d4
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 0x40e8f6
movzx eax, byte [esp]
jmp 0x40e8f8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ef88
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ee00
mov eax, dword [0x639db0]
cmp byte [eax], 0
je 0x40f004
mov eax, dword [0x639904]
call fcn.004039a8
call fcn.00403104
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.0040b674
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 0x40f04c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f03a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x639840]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x63d7f8]
call fcn.00406ee4
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 0x40f93c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40fa12
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004056a8
lea eax, [ebp - 4]
call fcn.00405af8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405aa0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f9fc
mov eax, ebx
call fcn.00402fa8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f9f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405aa0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f9df
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40fa24
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f9df
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f9fc
mov eax, dword [ebp - 0x10]
call fcn.00402fc4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fa19
lea eax, [ebp - 4]
call fcn.00405610
ret

Function at 0x426918
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00426654
dec esi
jne 0x42693a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x427aac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x63f9f0
cmp dword [edi], 0
jne 0x427b28
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x63f9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x631c28
mov ecx, 2
call fcn.00403248
mov edx, 0x427a84
lea eax, [esi + 5]
call fcn.00427aa4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00427aa4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x427afd
mov dword [0x63f9ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42c5e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405aa0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42c640
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x63a064]
mov dl, 1
mov eax, dword [0x42be90]
call fcn.0040f178
call fcn.00404f60
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042c004
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42db60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42db66
ret