joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4474c5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4475dd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4475dd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045c3ef
mov esi, eax
test esi, esi
je 0x4475dd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4475dd
mov ecx, esi
call fcn.00447430
cmp edi, eax
jge 0x4475dd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x447563
mov dword [esp + 0x34], 1
jmp 0x4475be
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4475dd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004469f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45cd93
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45cdcb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045ae47
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045ae1f
jmp 0x45cdd7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45e485
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45e4c7
call fcn.00463f35
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e4c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e4be
xor eax, eax
jmp 0x45e4cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e4d5
pop edi
pop esi
pop ebx
ret 4
Function at 0x464465
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x464493
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4644b1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004643cb
jmp 0x4644b1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4644b1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004643cb
test edi, edi
mov eax, edi
jne 0x46449b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405c8c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405cc3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c9d
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c98
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cf4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cd6
pop edi
not eax
pop esi
ret 0xc

Function at 0x409130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.qmpJQplM
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x409152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409148
mov eax, 1
add ebx, ebx
jne 0x40916b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409160
jne 0x40917c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409160
xor ecx, ecx
sub eax, 3
jb 0x409190
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409202
mov ebp, eax
add ebx, ebx
jne 0x40919b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4091a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4091cc
inc ecx
add ebx, ebx
jne 0x4091b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4091ad
jne 0x4091c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4091ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4091ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4091dd
jmp 0x40914e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4091ec
add edi, ecx
jmp 0x40914e
pop esi
mov edi, esi
mov ecx, 5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40920a
cmp byte [edi], 0
jne 0x40920a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40920f
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40927e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa10c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa164]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40923c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa16c]
or eax, eax
je 0x409278
mov dword [ebx], eax
add ebx, 4
jmp 0x409259
call dword [esi + 0xa168]
mov ebp, dword [esi + 0xa170]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4092b2
sub esp, 0xffffff80
jmp 0x40124f
Function at 0x1039477
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
mov byte [ebp - 1], 1
cmp ebx, 0xffffffff
jne 0x1039499
mov dword [ebp - 8], 0x57
jmp 0x10394fd
push esi
push 4
push 0x28
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jl 0x10394df
test byte [ebp - 0x18], 1
je 0x10394df
push edi
push 0xa
pop ecx
xor eax, eax
push 4
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x18], 0x80
call esi
pop edi
push 0xd
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
pop esi
test eax, eax
jge 0x10394fd
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 8], eax
pop ebx
sete al
leave
ret 4

Function at 0x4060f4
Capabilities:
Encode data using xor

Disassembly:
sbb eax, 0x4bf4933
jo 0x406129
invalid
push edx
or al, ch
mov dl, 0x58
xor eax, 0xd6b318ec
push esp
inc esp
inc esp
add byte [eax - 0x61], cl
xor al, 0x41
lahf
jnp 0x4060d4
invalid
test dword [eax], 0xd4668993
mov eax, dword [0x2efdb59f]
xor al, 0x14
lodsb al, byte [esi]
or byte [edi - 0x39], dl
mov fs, esi
pop esp
jle 0x406134
push ebp
mov dword [esi + 0x2129c5a5], 0xd9d84b69
dec edi
lodsd eax, dword [esi]
sal dword [edx + 0x7a], 1
invalid
Function at 0x40d8d3
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004049e8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040692c
mov edi, eax
cmp edi, 0x104
jbe 0x40d8f6
mov eax, edi
add eax, eax
call fcn.00402e0c
mov esi, eax
jmp 0x40d8f8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040692c
push edi
push esi
call fcn.004069c4
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40d931
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40d91b
mov eax, esp
cmp esi, eax
je 0x40d93e
mov eax, esi
call fcn.00402e28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40d978
cmp bl, 0
je 0x40d974
cmp bl, 0x41
jl 0x40d96f
cmp bl, 0x5a
jg 0x40d96f
or bl, 0x20
xor al, bl
inc esi
jmp 0x40d953
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40d8b8

Function at 0x40f854
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd64
mov eax, esi
mov edx, 8
test al, 1
je 0x40f870
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f872
shr eax, 1
dec edx
jne 0x40f863
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f85c
pop esi
ret

Function at 0x40f89f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd60], 0
jne 0x40f8ab
call fcn.0040f854
push 1
push 0x41cd60
call fcn.004067d8
mov eax, edi
test esi, esi
je 0x40f8d6
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd64]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40f8b1
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
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
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x402a04
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.004040cc
test esi, esi
jne 0x402a3a
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.004041bc
jmp 0x402a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402a58
cmp dword [ebx], 0
je 0x402a58
dec esi
jmp 0x402a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403204
Capabilities:
Query or enumerate registry value

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

Function at 0x403f50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48204c], 0
je 0x403fb1
cmp word [0x482220], 0xd7b2
jne 0x403f79
cmp dword [0x482228], 0
jbe 0x403f79
mov eax, 0x48221c
call dword [0x482238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47d070
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 0x403fd8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47d034], 0
jne 0x403fcd
push 0
push 0x47d068
push 0x47d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4057a8
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 0x4059d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40582b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40582b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4058b4
xor eax, eax
push ebp
push 0x4058ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004055f0
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 0x405892
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405a14
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405892
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 0x4058b4
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 0x4059ce
cmp byte [ebp - 0xd], 0
jne 0x4058fb
cmp byte [ebp - 0x12], 0
je 0x4059ce
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405914
dec ebx
cmp byte [ebx], 0x2e
je 0x405923
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405913
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4059ce
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405960
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 0x4059ce
cmp byte [ebp - 0xd], 0
je 0x4059ce
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 0x4059ce
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 0x4060a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406106
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040433c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d70
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4060f0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40610d
lea eax, [ebp - 0x10]
call fcn.004040cc
ret

Function at 0x40b300
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 0x40b339
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041bc
jmp 0x40b342
mov eax, ebx
mov edx, esi
call fcn.00404120
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b34c
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 0x40b36d
mov al, byte [esp]
jmp 0x40b36f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b9f4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b86c
mov eax, dword [0x481440]
cmp byte [eax], 0
je 0x40ba70
mov eax, dword [0x481240]
call fcn.00402b84
call fcn.00402844
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.00408b10
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 0x40bab8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40baa6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4811e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x482668]
call fcn.004055b4
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 0x40c378
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c44e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404164
lea eax, [ebp - 8]
call fcn.004045dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040458c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c438
mov eax, ebx
call fcn.004026dc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c431
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 - 8]
call fcn.0040458c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c41b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c460
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c41b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c438
mov eax, dword [ebp - 0x10]
call fcn.004026fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c455
lea eax, [ebp - 8]
call fcn.004040cc
ret

Function at 0x40c944
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c9a8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040433c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408550
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9af
lea eax, [ebp - 0xc]
call fcn.004040cc
ret

Function at 0x41e7cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x482888
cmp dword [edi], 0
jne 0x41e848
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x482884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47d400
mov ecx, 2
call fcn.004028d8
mov edx, 0x41e7a4
lea eax, [esi + 5]
call fcn.0041e7c4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e7c4
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 0x41e81d
mov dword [0x482884], 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 0x41fa84
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 0x41fa8a
ret
Function at 0x4220d8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x422129
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422110
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422100
jmp 0x422129
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x422111
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4364f8
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x482b18], 0
jne 0x43651b
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43646c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x482b18], eax
ret

Function at 0x442614
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x442560
call sub.user32.dll_EnumWindows
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4427b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00442194
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x442759
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00441d94
cmp dword [ebp - 4], 0
je 0x44279b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040458c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4427b8
lea eax, [ebp - 4]
call fcn.004040cc
ret