joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1972740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbc5000]
push edi
or ebp, 0xffffffff
jmp 0x1972762
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1972769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1972758
mov eax, 1
add ebx, ebx
jne 0x197277b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x197278c
jne 0x19727ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x19727ab
dec eax
add ebx, ebx
jne 0x1972798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1972770
add ebx, ebx
jne 0x19727a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x19727fd
xor ecx, ecx
sub eax, 3
jb 0x19727c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1972832
sar eax, 1
mov ebp, eax
jmp 0x19727ce
add ebx, ebx
jne 0x19727ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x197279c
inc ecx
add ebx, ebx
jne 0x19727dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x197279c
add ebx, ebx
jne 0x19727e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x19727de
jne 0x19727fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x19727de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x197281c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x197280e
jmp 0x197275e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x197281c
add edi, ecx
jmp 0x197275e
pop esi
mov edi, esi
mov ecx, 0x34393
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x197283a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x197283f
lea edi, [esi + 0x156b000]
mov eax, dword [edi]
or eax, eax
je 0x19728a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1587a74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1587bb8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1972865
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1587bc0]
or eax, eax
je 0x19728a1
mov dword [ebx], eax
add ebx, 4
jmp 0x1972882
call dword [esi + 0x1587bbc]
mov ebp, dword [esi + 0x1587bc4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x19728db
sub esp, 0xffffff80
jmp 0xd2f954
Function at 0x401310
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x573c28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push 0x124
lea ecx, [ebp - 0x128]
push edi
push ecx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x12c], edi
call fcn.00504620
add esp, 0xc
push edi
push 2
call dword [0x575104]
mov esi, eax
mov dword [ebp - 0x130], esi
cmp esi, 0xffffffff
jne 0x401373
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00504604
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x12c]
push edx
push esi
mov dword [ebp - 0x12c], 0x128
call dword [0x575100]
test eax, eax
je 0x4013fb
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPriorityClass]
lea esp, [esp]
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00401170
add esp, 8
test eax, eax
je 0x4013e5
mov edx, dword [ebp - 0x124]
push edx
push 0
push 0x1fffff
call edi
mov esi, eax
push esi
call ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
push eax
push esi
call dword [0x5750fc]
test eax, eax
jne 0x4013a0
lea edi, [eax + 1]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00504604
mov esp, ebp
pop ebp
ret

Function at 0x401420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.005046a0
mov eax, dword [0x573c28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1114]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x110c], eax
call dword [0x5750ec]
test eax, eax
jne 0x40146b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00504604
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x1114]
push edi
shr ebx, 2
xor edi, edi
test ebx, ebx
je 0x401541
push esi
jmp 0x401490
mov eax, dword [str.unknown]
mov ecx, dword [0x52be68]
push 0xfc
lea edx, [ebp - 0x100]
push 0
push edx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], ecx
call fcn.00504620
mov eax, dword [ebp + edi*4 - 0x1108]
add esp, 0xc
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401530
lea ecx, [ebp - 0x1118]
push ecx
push 4
lea edx, [ebp - 0x1110]
push edx
push esi
call dword [0x5750e8]
test eax, eax
je 0x401530
mov ecx, dword [ebp - 0x1110]
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
push esi
call dword [0x5750e0]
mov edx, dword [ebp - 0x110c]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00401170
add esp, 8
test eax, eax
je 0x401530
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x401490
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00504604
mov esp, ebp
pop ebp
ret
Function at 0x4015d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4015eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401622
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40161e
jmp 0x401610
cmp esi, eax
jae 0x401622
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401610
cmp esi, eax
jb 0x401629
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401720
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
push str.SoftwareDownloadCenter
push SysReAllocStringLen
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 4]
push ecx
test eax, eax
je 0x401795
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov al, byte [esi + 0xbc]
cmp al, 0x13
je 0x401764
cmp al, 0x12
jne 0x4017a6
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x52bef0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
shrd edx, eax, 0x1e
shr eax, 0x1e
xor eax, eax
cmp edx, 0xa
setg al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ca03
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x573c28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040809e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40334d
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x314], edi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea ecx, [ebp - 0x310]
push 0x52c0a4
push ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x318], 0xff
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [ebp - 0x31c]
push edx
push 0xf023f
push ebx
lea eax, [ebp - 0x310]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x4033d8
lea ecx, [ebp - 0x31c]
push ecx
push 0xf013f
push ebx
lea edx, [ebp - 0x310]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x4033d8
cmp dword [ebp - 0x318], 1
jne 0x4034a7
mov edx, dword [ebp - 0x31c]
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x110]
push ecx
push ebx
push ebx
push 0x52c098
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40341d
push ebx
push 0x52c094
lea ecx, [ebp - 0x314]
call fcn.00401fb0
mov eax, dword [ebp - 0x314]
add eax, 0xfffffff0
jmp 0x4034aa
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x314]
push 0x52c0a4
push edx
call fcn.004025a0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x314]
add esp, 0xc
or edi, 0xffffffff
cmp eax, ebx
je 0x4034a2
cmp dword [esi - 0xc], ebx
jl 0x4034a2
push eax
push esi
call fcn.0050490b
add esp, 8
cmp eax, ebx
je 0x4034a2
sub eax, esi
cmp eax, edi
je 0x4034a2
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40347f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40349e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x4034e9
lea eax, [esi - 0x10]
jmp 0x4034ad
lea eax, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4034e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504604
mov esp, ebp
pop ebp
ret 4
Function at 0x404080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cbc6
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x573c28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x130]
call fcn.0040ac9e
mov dword [ebp - 4], 0
call fcn.0040809e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4040d9
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x114], eax
push 0xff
lea ecx, [ebp - 0x110]
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404110
sub eax, edx
push eax
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x114]
call fcn.00401fb0
push 0xd
push str.SysWow64.
lea ecx, [ebp - 0x114]
call fcn.004022e0
mov esi, dword [ebp - 0x114]
push 0
push esi
lea ecx, [ebp - 0x130]
call fcn.0040ad42
test eax, eax
lea eax, [esi - 0x10]
setne bl
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.0040accd
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504604
mov esp, ebp
pop ebp
ret
Function at 0x404d10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cc70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x573c28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp + 8]
call fcn.004036b0
push 0xb
push str.GSetup.ini
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.004022e0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp + 8]
push 0x3011
mov bl, 1
push edx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040bb41
mov edx, dword [ebp + 0xc]
mov eax, edx
mov byte [ebp - 4], 2
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404d90
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.0040b185
lea ecx, [ebp - 0x28]
call fcn.0040b3e9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040b57e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404e00
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cc9b
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x573c28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040809e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404e49
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x314], eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004030c0
push eax
lea ecx, [ebp - 0x314]
call fcn.004023f0
mov ecx, dword [ebp - 0x314]
push ecx
lea edx, [ebp - 0x310]
push str._sRun.exe
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xa
push str.GSetup.exe
lea ecx, [ebp - 0x314]
call fcn.004022e0
push 0xff
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
jmp 0x404ec0
mov cl, byte [ebp + eax - 0x210]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x404ec0
lea eax, [ebp - 0x110]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404ee0
mov ecx, dword [0x52c290]
mov edx, dword [0x52c294]
mov esi, dword [ebp - 0x314]
mov dword [eax], ecx
mov ecx, dword [0x52c298]
mov dword [eax + 4], edx
push 0
lea edx, [ebp - 0x110]
push edx
push esi
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, edi
call fcn.00404d10
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404f50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504604
mov esp, ebp
pop ebp
ret
Function at 0x406a55
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x573c28]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x406a9d
push 0x52c810
push 4
push eax
call fcn.00506127
push eax
call fcn.00401050
add esp, 0x10
jmp 0x406ab3
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x406b36
push edi
call fcn.005060de
mov edi, dword [eax]
call fcn.005060de
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005064f7
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.005060de
cmp dword [eax], 0
je 0x406b0a
call fcn.005060de
push dword [eax]
call fcn.00405b11
pop ecx
jmp 0x406b11
call fcn.005060de
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x406b36
cmp dword [ebp - 0x11c], esi
jae 0x406b36
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x406b38
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00504604
leave
ret
Function at 0x406b45
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x573c28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push 0x52bdb8
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0040692d
pop ecx
cmp eax, esi
je 0x406c2f
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x406c2f
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00504620
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x406c2f
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x406c2f
cmp esi, 0x14
jge 0x406c2f
push 0x10
push 0
push edi
call fcn.005066da
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x406c1e
call fcn.005060de
cmp dword [eax], 0x22
je 0x406c1e
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00505bd8
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x406bf4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5751f4], 0
jne 0x406cba
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x406ce3
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00406a55
pop ecx
pop ecx
test eax, eax
jne 0x406ce5
inc edi
cmp edi, esi
jl 0x406cc0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504604
leave
ret 8
Function at 0x40bfb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40c000
call fcn.00407ea6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40c043
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40c02c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40c02c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40c040
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40d344
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00407ea6
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40d37d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040cf86
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40d3db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40d3ff
cmp dword [edi + 0x74], 0
jne 0x40d3ff
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00407ea6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040d39c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8