joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451588
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45159f
add esp, 0xfffffff0
call fcn.00403650
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cd9c
mov eax, dword [0x4749a0]
cmp word [eax + 2], 0
jne 0x4515c7
mov eax, dword [0x4749a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452c60
mov eax, dword [0x474a58]
cmp word [eax + 2], 0
jne 0x4515e1
mov eax, dword [0x474a58]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452e58
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415094]
call fcn.004032fc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415094]
call fcn.004032fc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f380]
call fcn.00427034
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451768
mov eax, dword [0x4748bc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427404
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453408
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4748bc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c6a8
test eax, eax
je 0x4516d6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408908
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c6d0
test eax, eax
je 0x4516ea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042ec
mov eax, dword [0x474780]
cmp byte [eax], 0
jne 0x45171e
mov eax, ebx
call fcn.00451890
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004535e4
mov eax, ebx
call fcn.00453fa8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45175e
call fcn.004036a8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451b10
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x475bb4]
cmp dword [eax + 0x30], 0
je 0x451bba
cmp dword [ebx + 0x94], 0
jne 0x451bb4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451aa0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451bb4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451b7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451bb4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004173fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451b89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45271c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x452751
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040416c
jmp 0x45275e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040d0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4537c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453801
mov eax, esi
call fcn.00439cb8
test al, al
je 0x453801
mov eax, dword [ebx + 0x84]
call fcn.004399e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453801
push 0
mov eax, dword [ebx + 0x84]
call fcn.004399e0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x456ec8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x456ef6
mov eax, ebx
call fcn.0045797c
cmp dword [ebx + 0x40], 0
je 0x456eef
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x456f67
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x456f59
cmp dword [ebx + 8], 0
je 0x456f18
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x456f2a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x456f59
cmp dword [ebx + 8], 0
je 0x456f0b
cmp eax, 3
je 0x456f3d
dec eax
jne 0x456f0b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x456f0b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x456f0b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x456f85
cmp dword [ebx + 0x14], 0xcc
je 0x456f85
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00456f90
pop ebx
ret
Function at 0x46a650
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414690]
call fcn.004049e8
xor eax, eax
push ebp
push 0x46a794
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x474664], 0
jne 0x46a6a3
mov ecx, dword [0x474790]
mov dl, 1
mov eax, dword [0x407224]
call fcn.0040b910
call fcn.00403ab8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d40
mov eax, ebx
call fcn.004048b8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46a7a4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040596c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004048c8
test eax, eax
jle 0x46a73b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46a734
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404304
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004042ec
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408084
test eax, eax
jne 0x46a734
mov ebx, 0x15
jmp 0x46a740
mov ebx, 0x10
jmp 0x46a740
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x474664]
call fcn.0046a5a8
mov eax, dword [ebp - 8]
call fcn.0046a5a8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a79b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004040a0
lea eax, [ebp - 0x10]
mov edx, dword [0x414690]
call fcn.00404ab8
ret
Function at 0x403cf4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push edi
push esi
push ebx
push ecx
push edx
mov edi, dword [ebp + 8]
add edi, dword [edi + 0x3c]
xor eax, eax
mov ax, word [edi + 6]
mov dword [ebp - 4], eax
mov ecx, 0x28
imul eax, ecx
add eax, 0x28
mov ecx, edi
sub ecx, dword [ebp + 8]
add ecx, eax
add ecx, 0xf8
cmp ecx, dword [edi + 0x54]
jbe 0x403d32
xor eax, eax
jmp 0x403db2
mov esi, edi
add esi, 0xf8
mov edx, dword [ebp - 4]
sub edx, 1
mov eax, dword [esi + 0x24]
or eax, 0x80000000
mov dword [esi + 0x24], eax
add esi, 0x28
dec edx
or edx, edx
jne 0x403d40
mov edx, esi
add edx, 0x28
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push 0x1000
push eax
call fcn.00403f87
mov dword [edx + 0xc], eax
mov dword [edx + 8], 0x2000
mov eax, 0x60
add eax, 0xdae
mov dword [edx + 0x10], eax
lea eax, [edx]
push dword [0x4037c0]
pop dword [eax]
mov dword [eax + 4], 0
mov dword [edx + 0x24], 0xe00000e0
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x10]
push 0x200
push eax
call fcn.00403f87
mov dword [edx + 0x14], eax
mov eax, edx
inc word [edi + 6]
pop edx
pop ecx
pop ebx
pop esi
pop edi
leave
ret 4

Function at 0x404e91
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
cld
lodsb al, byte [esi]
or al, al
je 0x404ecc
cmp al, 0x20
je 0x404ea7
dec esi
inc dword [ebp - 4]
lodsb al, byte [esi]
or al, al
je 0x404ecc
cmp al, 0x20
je 0x404ea7
cmp al, 0x22
jne 0x404eb4
lodsb al, byte [esi]
or al, al
je 0x404ecc
cmp al, 0x22
jne 0x404ec1
jmp 0x404eb4
popal
mov eax, dword [ebp - 4]
leave
ret

Function at 0x404ed2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
inc dword [ebp + 8]
mov dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
cld
lodsb al, byte [esi]
or al, al
je 0x404f4b
cmp al, 0x20
je 0x404eee
dec esi
inc dword [ebp - 4]
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jne 0x404f11
mov dword [ebp - 8], 1
lodsb al, byte [esi]
or al, al
je 0x404f4b
cmp al, 0x20
je 0x404eee
cmp al, 0x22
je 0x404f30
cmp dword [ebp + 0x10], 1
jle 0x404f2e
cmp dword [ebp - 8], 1
jne 0x404f2e
stosb byte es:[edi], al
dec dword [ebp + 0x10]
jmp 0x404f11
lodsb al, byte [esi]
or al, al
je 0x404f4b
cmp al, 0x22
je 0x404f11
cmp dword [ebp + 0x10], 1
jle 0x404f49
cmp dword [ebp - 8], 1
jne 0x404f49
stosb byte es:[edi], al
dec dword [ebp + 0x10]
jmp 0x404f30
xor al, al
stosb byte es:[edi], al
popal
leave
ret 0xc
Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x67becc
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec edx
bound ebx, qword ds:[0xd6498464]
cmp eax, 0x55fd1c84
fld qword [edx - 0x3c]
jecxz 0x400fee
xchg ecx, eax
mov ebx, dword [esi - 0x7c4ea088]
pop ebp
inc esi
inc edi
pop es
xor al, 0x2b
loope 0x401067
and byte [ecx + 0x4aa1d934], dl
push cs
fbld tbyte [edi - 0x5073856c]
fldenv [ecx - 0x5820f1b6]
xchg esp, eax
jp 0x400fe3
scasd eax, dword es:[edi]
sub ebp, esp
hlt
inc edx
push edx
cmp ebx, ebp
adc dl, byte [eax - 0x71]
jp 0x4010a3
inc esi
dec ebx
sbb eax, 0x1da69c3e
xlatb
test byte [eax - 0x3ffd1d9d], ah
in al, dx
and eax, 0xb6510432
push ecx
xor al, byte [ecx + edx*2]
mov dh, 0x51
and dword [ecx], ecx
jnp 0x40108f
sub byte [ebx - 0x59b7efec], ch
adc al, 0x28
in al, 0x4c
pushal
push edx
stc
sti
cmp al, 0x48
mov ebp, 0x731d4a4b
push esi
in al, dx
retf
jg 0x4010d8
add ecx, dword [edi - 0x2b]
add bh, ah
xor eax, 0x4add25d8
in eax, 0x80
and eax, 0x80e54add
mov bh, 0xf
inc esp
loope 0x40104e
shl byte [ebx - 0x50], 1
cld
shr ecx, 1
ja 0x4010ac
fisub dword [ebx + ecx*8]
dec ecx
push ss
inc edi
xlatb
pop dword [esi]
cmp eax, 0x8c1372a5
jp 0x401103
xchg edi, eax
sub ebp, dword [eax]
ja 0x4010be
cmp eax, 0xa711d5df
test al, 0x12
outsd dx, dword [esi]
invalid
sbb dl, byte [edi - 0x57e7d9f9]
and ah, al
and eax, 0xdb949188
in eax, 0x6e
sbb eax, 0x3c8ab78e
push 0xa502ad87
invalid
Function at 0x4045ac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406c60
test esi, esi
jne 0x4045e4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406d9c
jmp 0x404602
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044f0
mov edi, eax
test esi, esi
je 0x404602
cmp dword [ebx], 0
je 0x404602
dec esi
jmp 0x4045eb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405e64
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x511050], 0
je 0x405ec5
cmp word [0x51132c], 0xd7b2
jne 0x405e8d
cmp dword [0x511334], 0
jbe 0x405e8d
mov eax, 0x511328
call dword [0x511344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
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 0x405ef0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x50e030], 0
jne 0x405ee1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406070
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 [0x50e034], 0
je 0x406096
mov edx, esi
mov eax, ebx
call dword [0x50e034]
jmp 0x4060a5
mov eax, 8
call fcn.00404200
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x511051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406038
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x40779c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4077de
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test bl, bl
je 0x4077fe
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406e58
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408d9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408f03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406c60
cmp si, word [0x50e7dc]
jb 0x408e36
cmp si, word [0x50e9dc]
ja 0x408e36
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408e36
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x50e7dc]
jae 0x408e10
mov edi, ebx
dec edi
jmp 0x408e31
cmp si, word [ebx*8 + 0x50e7dc]
jbe 0x408e20
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408e31
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x50e7e0]
call fcn.00408cac
jmp 0x408e36
cmp edi, dword [ebp - 0xc]
jae 0x408dfa
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408ee5
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x408ee5
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406e58
push dword [ebp - 0x164]
push 0x408f20
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406e58
push dword [ebp - 0x168]
push 0x408f30
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406e58
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407210
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f0a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406c58
ret
Function at 0x4090bc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4091c1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x513b58
call sub.KERNEL32.DLL_EnterCriticalSection_1
cmp bx, word [0x513b70]
jne 0x409108
mov eax, esi
mov edx, 0x513b74
mov ecx, 0x55
call fcn.00406e58
push 0x513b58
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x4091ab
push 0x513b58
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, esi
xor edx, edx
call fcn.00406c60
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409179
cmp byte [0x513b54], 0
je 0x40913e
mov edx, esi
mov eax, ebx
call fcn.00408f9c
jmp 0x409179
mov edx, esi
mov eax, ebx
call fcn.00408d9c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409179
cmp dword [esi], 0
je 0x409162
mov eax, esi
mov edx, 0x4091dc
call fcn.0040706c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408d9c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040706c
push 0x513b58
call sub.KERNEL32.DLL_EnterCriticalSection_1
mov word [0x513b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406cec
push eax
push 0x513b74
call sub.KERNEL32.DLL_lstrcpynW
push 0x513b58
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091c8
lea eax, [ebp - 4]
call fcn.00406c50
ret
Function at 0x409400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406c48
xor eax, eax
push ebp
push 0x4095e5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409440
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x40945a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406cec
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4095cf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4094e9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4094e9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409628
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4094e9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40965c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4095cf
xor eax, eax
push ebp
push 0x4095c8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409204
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x409558
mov eax, dword [ebp - 0x10]
call fcn.00404200
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e1c
jmp 0x4095a3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40969c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4095a3
mov eax, dword [ebp - 0x10]
call fcn.00404200
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40969c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095cf
cmp dword [ebp - 8], 0
je 0x4095be
mov eax, dword [ebp - 8]
call fcn.0040421c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095ec
lea eax, [ebp - 4]
call fcn.00406c50
ret
Function at 0x4098b0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406c48
mov eax, dword [ebp - 0x21c]
call fcn.00406c48
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409a4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406c60
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406cec
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW_1
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409950
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409962
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40994d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409a1b
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40998b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409400
cmp dword [ebp - 0x220], 0
je 0x4099c3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004097a4
pop ecx
mov ebx, eax
jmp 0x409a1b
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004090bc
mov eax, dword [ebp - 0x224]
call fcn.004097a4
pop ecx
mov ebx, eax
test bl, bl
jne 0x409a0e
cmp byte [0x513b54], 0
jne 0x409a0e
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004090bc
mov eax, dword [ebp - 0x228]
call fcn.004097a4
pop ecx
mov ebx, eax
test bl, bl
jne 0x409a1b
push ebp
call fcn.00409854
pop ecx
mov ebx, eax
test bl, bl
je 0x409a31
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a56
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406c58
ret

Function at 0x40da88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x513c58
push 0xa
push 0x40db1c
mov eax, dword [0x513c3c]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40daac
call fcn.0041ab38
push ebx
mov eax, dword [0x513c3c]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40dac3
call fcn.0041ab38
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40dad5
call fcn.0041ab38
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x513c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x513c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x513c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x513c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x513c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x513c70], edx
pop esi
pop ebx
ret