joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x406a00
Capabilities:
Terminate process

Disassembly:
call fcn.00407105
jmp 0x406a0a
push 0x58
push 0x407268
call fcn.004071b8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4088ac
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406a5c
cmp eax, esi
jne 0x406a4f
xor esi, esi
inc esi
mov edi, esi
jmp 0x406a5f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406a33
xor esi, esi
inc esi
cmp dword [0x4088b0], esi
jne 0x406a71
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406aab
cmp dword [0x4088b0], ebx
jne 0x406aa5
mov dword [0x4088b0], esi
push 0x4010c4
push 0x4010b8
call fcn.00406be9
pop ecx
pop ecx
test eax, eax
je 0x406aab
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406bd9
mov dword [0x4081e4], esi
cmp dword [0x4088b0], esi
jne 0x406ace
push 0x4010b4
push 0x4010ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4088b0], 2
test edi, edi
jne 0x406adb
xor eax, eax
mov ecx, 0x4088ac
xchg dword [ecx], eax
cmp dword [0x4088b4], 0
je 0x406b07
push 0x4088b4
call fcn.00407010
pop ecx
test eax, eax
je 0x406b07
push ebx
push 2
push ebx
mov esi, dword [0x4088b4]
mov ecx, esi
call dword [0x40a288]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406b65
test cl, cl
je 0x406b34
test edi, edi
jne 0x406b65
test cl, cl
je 0x406b34
cmp cl, 0x20
ja 0x406b34
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x406b23
test byte [ebp - 0x3c], 1
je 0x406b40
movzx eax, word [ebp - 0x38]
jmp 0x406b43
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4081e0], eax
cmp dword [0x4081f8], 0
jne 0x406bbe
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x406b76
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x406b89
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x406b14
cmp dword [0x4081e4], 0
jne 0x406bd2
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4081e0]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406ef4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x407288
call fcn.004071b8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406f54
cmp eax, 0xffffffff
je 0x406f54
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x406f4d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x406f4d
cmp edx, 0x10000000
jae 0x406f4d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x406f4a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4030d0
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 0x40310c
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 0x40312c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004055fc
add esp, 0x210
pop esi
pop ebx

Function at 0x4033c4
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.0040538c
test esi, esi
jne 0x4033fa
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.0040547c
jmp 0x403418
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403268
mov edi, eax
test esi, esi
je 0x403418
cmp dword [ebx], 0
je 0x403418
dec esi
jmp 0x403401
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404294
Capabilities:
Query or enumerate registry value

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

Function at 0x405154
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a004c], 0
je 0x4051b5
cmp word [0x5a0220], 0xd7b2
jne 0x40517d
cmp dword [0x5a0228], 0
jbe 0x40517d
mov eax, 0x5a021c
call dword [0x5a0238]
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 0x4051dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x488030], 0
jne 0x4051d1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40532c
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 [0x488038], 0
je 0x405352
mov edx, esi
mov eax, ebx
call dword [0x488038]
jmp 0x405361
mov eax, 8
call fcn.00402ec8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5a004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4052f4
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 0x406a5c
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 0x406c8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406adf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406adf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406ca8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406b68
xor eax, eax
push ebp
push 0x406b61
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406898
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 0x406b46
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406cc8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406b46
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 0x406b68
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 0x406c82
cmp byte [ebp - 0xd], 0
jne 0x406baf
cmp byte [ebp - 0x12], 0
je 0x406c82
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406bc8
dec ebx
cmp byte [ebx], 0x2e
je 0x406bd7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406bc7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406c82
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406c14
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 0x406c82
cmp byte [ebp - 0xd], 0
je 0x406c82
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 0x406c82
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 0x409460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4094b2
test eax, edx
je 0x4094b5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409475
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 0x40949b
add ecx, 4
js 0x40948b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409498
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 0x4094c1
test edx, edx
jne 0x409468
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040581c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409d39
test al, 0x10
je 0x409d3d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c780
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 0x40c7b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040547c
jmp 0x40c7c2
mov eax, ebx
mov edx, esi
call fcn.004053e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ce80
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ccf8
mov eax, dword [0x59ee54]
cmp byte [eax], 0
je 0x40cefc
mov eax, dword [0x59eab8]
call fcn.00403850
call fcn.00403024
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.00409eb4
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 0x40cf44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x59ea24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5a27f8]
call fcn.00406840
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 0x40d7f0
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 0x40d8c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405424
lea eax, [ebp - 4]
call fcn.00405874
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040581c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d8b0
mov eax, ebx
call fcn.00402ec8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d8a9
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.0040581c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d893
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d8d8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d893
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 0x40d8b0
mov eax, dword [ebp - 0x10]
call fcn.00402ee4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8cd
lea eax, [ebp - 4]
call fcn.0040538c
ret

Function at 0x4182ec
Capabilities:
Encode data using xor

Disassembly:
mov dword [0x59f5c3], ebx
sub ebx, 4
jne 0x41806f
inc edx
dec eax
popfd
retf

Function at 0x41f720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5a49ec
cmp dword [edi], 0
jne 0x41f79c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5a49e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x488b0c
mov ecx, 2
call fcn.00403168
mov edx, 0x41f6f8
lea eax, [esi + 5]
call fcn.0041f718
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f718
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 0x41f771
mov dword [0x5a49e8], 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 0x41f968
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41fb99
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
cmp byte [ebp + eax - 0x109], 0x5c
je 0x41f9c2
mov byte [ebp + eax - 0x108], 0x5c
mov byte [ebp + eax - 0x107], 0
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004055fc
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 4]
mov ecx, 0x41fbb0
call fcn.004056a4
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040581c
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov ebx, eax
test ebx, ebx
je 0x41fa13
push 0x41fbc0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a49f0], eax
push 0
push 0
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004055fc
lea eax, [ebp - 0x110]
mov edx, 0x41fbe4
call fcn.00405658
mov eax, dword [ebp - 0x110]
call fcn.0040581c
push eax
call sub.kernel32.dll_LoadLibraryExA_1
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004055fc
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
mov ecx, 0x41fbf8
call fcn.004056a4
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040581c
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov ebx, eax
test ebx, ebx
je 0x41fb73
push 0x41fc04
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a49f4], eax
push 0x41fc18
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a49f8], eax
push 0x41fc28
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a24], eax
push 0x41fc38
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a28], eax
push 0x41fc4c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a49fc], eax
push 0x41fc60
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a00], eax
push 0x41fc74
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a04], eax
push 0x41fc84
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a08], eax
push 0x41fc98
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a0c], eax
push 0x41fcac
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a10], eax
push 0x41fcc0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a14], eax
push 0x41fcd4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a18], eax
push 0x41fcec
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a1c], eax
push 0x41fd08
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a4a20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fba0
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.004053b0
lea eax, [ebp - 4]
call fcn.0040538c
ret
Function at 0x41ff0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x41ff1f
cmp dword [esi + 0x2b], 0
je 0x41ff2d
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x41ffb3
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x41ff50
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x41ffb3
push eax
push eax
push dword [ebp + 0xc]
call sub.kernel32.dll_LoadResource
pop ecx
or eax, eax
jne 0x41ff6a
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x41ffb3
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x41ff88
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x41ffb3
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.004217fc
or eax, eax
jne 0x41ffa7
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x41ffb3
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc

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

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x422b93
test al, 0x10
jne 0x422b96
xor eax, eax
ret
mov al, 1
ret

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

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x422bc7
test al, 0x10
je 0x422bca
xor eax, eax
ret
mov al, 1
ret

Function at 0x422cd8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push 0x40
push 0x12
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], 0x5024048b
mov byte [ebx + 4], 0xb8
lea eax, [ebx + 9]
mov dword [eax], 0x4244489
mov byte [ebx + 0xd], 0xe9
lea eax, [ebx + 5]
mov dword [eax], esi
sub edi, ebx
sub edi, 0x12
lea eax, [ebx + 0xe]
mov dword [eax], edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4230f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42315a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00405584
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004230dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423161
lea eax, [ebp - 0x10c]
call fcn.0040538c
ret
Function at 0x423168
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4231d2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00405584
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004230dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4231d9
lea eax, [ebp - 0x10c]
call fcn.0040538c
ret

Function at 0x4231e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
add esp, 0xffffffe4
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 1
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x423210
push esp
call sub.user32.dll_TranslateMessage
push esp
call sub.user32.dll_DispatchMessageA
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, esi
jb 0x4231ee
add esp, 0x1c
pop esi
pop ebx
ret

Function at 0x42333c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push ebp
push 0x4233c5
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0x4233d4
push 0
push edx
push eax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4233af
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00405584
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x423395
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4233cc
lea eax, [ebp - 0xc]
call fcn.0040538c
ret

Function at 0x4235bc
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 0x4235f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040547c
jmp 0x4235fe
mov eax, ebx
mov edx, esi
call fcn.004053e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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