joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538568
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58bcc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx - 0xc], 0
jne 0x40479b
mov dword [ebp - 4], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404789
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 esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x104
or eax, edx
jge 0x4047bf
push 0x104
lea ecx, [ebp + 8]
call fcn.004024d0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0051342a
add esp, 8
test eax, eax
js 0x404863
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x404863
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404812
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x404770
mov ecx, dword [ebp + 8]
push 0x5c
push ecx
call fcn.00514006
add esp, 8
test eax, eax
jne 0x404829
or eax, 0xffffffff
jmp 0x40482e
sub eax, dword [ebp + 8]
sar eax, 1
push ecx
mov edx, esp
mov dword [ebp - 0x10], esp
push eax
push edx
lea ecx, [ebp + 8]
call fcn.00405710
mov ecx, esi
call fcn.00404730
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x404770
push 0x80070057
call fcn.004026c0
int3
Function at 0x407d10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538f33
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58bcc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00416101
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [esi], vtable.CMemDCk.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], vtable.CBitmap.0
mov byte [ebp - 4], 1
lea edi, [esi + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x407de6
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004166d3
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
lea ebx, [esi + 0x10]
push eax
mov ecx, ebx
call fcn.004169a7
test ebx, ebx
je 0x407dc5
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 4]
push ebx
push ecx
call fcn.00416a38
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00416283
jmp 0x407df8
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x58bcc0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x7c]
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
dec eax
mov dword [esp + 8], ecx
fild dword [esp + 8]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
fidiv dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [ebx]
push esi
push edi
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0xc]
xor edi, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], edi
fstp dword [esp + 0x10]
test eax, eax
jle 0x408955
fld dword [esp + 0x10]
fild dword [esp + 0xc]
fmul st(1)
call fcn.00518b80
lea edx, [edi + 1]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
mov esi, eax
add esi, dword [ebx]
fmul st(1)
mov dword [esp + 0x24], esi
call fcn.00518b80
mov ecx, dword [esp + 0x14]
add eax, dword [ebx]
dec ecx
mov dword [esp + 0x2c], eax
cmp edi, ecx
jne 0x4088b1
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp eax, ecx
jl 0x408941
mov edx, dword [esp + 0x28]
fstp st(0)
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
cmp esi, ecx
jge 0x4088e1
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jle 0x4088f0
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xc]
test edx, edx
js 0x408969
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x7c]
cmp edx, eax
jge 0x408969
test edi, edi
js 0x408969
cmp edi, eax
jge 0x408969
mov eax, dword [ecx + 0x78]
mov esi, dword [eax + edi*4 + 4]
mov eax, dword [eax + edi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x16c]
push esi
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
call edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 8]
je 0x408955
fld dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x14]
jl 0x408876
fstp st(0)
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00513242
mov esp, ebp
pop ebp
ret 0xc
call fcn.00414196
int3
Function at 0x40bbb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40bbb7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40bc8d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568d48]
add ecx, 8
sub edx, 8
dec esi
jne 0x40bbd0
pop edi
test edx, edx
je 0x40bcaa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x568d48]
inc ecx
dec edx
jne 0x40bc91
not eax
pop esi
ret

Function at 0x40c430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x40c466
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c45c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x40c477
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.005185e0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x40c4a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40c4d3
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c4ce
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40c4fe
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40c4e5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.005185e0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40c513
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40c50d
cmp byte [esi + 8], 0
je 0x40c50d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40c5b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x40c5f7
cmp byte [esi + 1], 0
je 0x40c5ff
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x40c611
cmp byte [esi + 1], 0
je 0x40c605
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x40c619
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x40c5d1
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x40c619
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x40c62b
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0051405b
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40c645
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x40c759
jmp 0x40c669
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x40c678
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x40c68f
mov ebx, 0x404
cmp byte [esi], 0
je 0x40c6b4
cmp byte [esi + 1], 0
je 0x40c759
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40c6b7
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x40c6e0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c6db
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x40c709
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x40c6f1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.005185e0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x40c759
lea eax, [ebx - 3]
test eax, eax
jle 0x40c74d
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40c73f
cmp byte [eax + ecx + 1], 0x4b
jne 0x40c73f
cmp byte [eax + ecx + 2], 5
jne 0x40c73f
cmp byte [eax + ecx + 3], 6
je 0x40c745
test eax, eax
jg 0x40c720
jmp 0x40c74d
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x40c759
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x40c660
mov eax, dword [ebp - 0x10]
push eax
call fcn.0051368b
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40db7c
movzx eax, word [edi]
test ax, ax
je 0x40db7c
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x40dad0
cmp ax, 0x5c
jne 0x40dad2
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x40dac4
cmp esi, edi
je 0x40db0e
sub esi, edi
sar esi, 1
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.005140ef
lea edx, [ebp - 0x20c]
push edx
xor ecx, ecx
push ebx
mov word [ebp + esi*2 - 0x20c], cx
call fcn.0040da90
add esp, 0x14
lea edx, [ebp - 0x414]
mov eax, ebx
sub edx, ebx
jmp 0x40db20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40db20
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db33
lea edi, [ebp - 0x414]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40db50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00513242
mov esp, ebp
pop ebp
ret
Function at 0x40de80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x340
call fcn.00413391
add esp, 4
or ecx, 0xffffffff
test eax, eax
je 0x40dead
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 0x134], ecx
mov esi, eax
jmp 0x40deaf
xor esi, esi
cmp dword [esi], 0
jne 0x40df05
cmp dword [esi + 4], ecx
jne 0x40df05
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ded0
mov eax, dword [0x566d38]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 4]
call fcn.0040c390
test eax, eax
jne 0x40def7
mov eax, dword [ebp - 4]
jmp 0x40df0a
call fcn.0040c770
mov dword [esi], eax
mov eax, dword [0x593b04]
jmp 0x40df0a
mov eax, 0x1000000
mov dword [0x593b08], eax
test eax, eax
je 0x40df24
push esi
call fcn.004133c0
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 8
call fcn.00413391
add esp, 4
pop edi
mov dword [eax + 4], esi
mov dword [eax], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f2d0
Capabilities:
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x58bcc0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x838], 0
push edi
jne 0x40f312
call fcn.00424b44
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00513242
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x834]
mov ecx, dword [eax + 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.files.lst
lea edi, [esi + 0x83c]
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00403900
mov ebx, dword [eax]
push 0x250
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00516740
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40f365
xor bl, bl
jmp 0x40f36e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f38e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40f3ce
push str.files.lst
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.00403900
mov edx, dword [eax]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f3ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x20]
push 0
push 0x20002
push 0x111
push ecx
mov byte [esi + 0x838], 0
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00513242
mov esp, ebp
pop ebp
ret
Function at 0x41db58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41db9f
call fcn.0041f6c1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41db9f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41dbbb
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d658
mov esi, eax
test edi, edi
je 0x41dbb9
test ebx, ebx
je 0x41dbb9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e372
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53421a
call fcn.00514a9c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41e397
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41e3e9
call fcn.00413432
push eax
lea ecx, [ebp - 0x10]
call fcn.004026e0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00514c09
push eax
call fcn.00401fb0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402710
mov eax, esi
call fcn.00514b74
ret 8

Function at 0x42217b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4221c0
push 0x53fcc0
push 4
push eax
call fcn.00514ba6
push eax
call fcn.00401fb0
add esp, 0x10
jmp 0x4221d6
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422256
push edi
call fcn.00514da3
mov edi, dword [eax]
call fcn.00514da3
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00514d40
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00514da3
cmp dword [eax], 0
je 0x42222a
call fcn.00514da3
push dword [eax]
call fcn.00413b1f
pop ecx
jmp 0x422231
call fcn.00514da3
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x422256
cmp dword [ebp - 0x234], esi
jae 0x422256
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x422258
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00513242
leave
ret
Function at 0x4226f7
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x58bcc0]
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 str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004190a4
pop ecx
cmp eax, esi
je 0x4227e1
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4227e1
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.00516740
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 0x4227e1
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4227e1
cmp esi, 0x14
jge 0x4227e1
push 0x10
push 0
push edi
call fcn.005180cf
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4227d0
call fcn.00514da3
cmp dword [eax], 0x22
je 0x4227d0
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0051455d
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4227a6
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 [0x58f200], 0
jne 0x42286c
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x422895
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0042217b
pop ecx
pop ecx
test eax, eax
jne 0x422897
inc edi
cmp edi, esi
jl 0x422872
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00513242
leave
ret 8
Function at 0x4234c2
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 0x42350a
call fcn.0041f6c1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42350a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42354d
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 0x423536
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 0x423536
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x42354a
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 0x4253b6
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.0041f6c1
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4253ef
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.00424ff3
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 0x42544d
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 0x425471
cmp dword [edi + 0x74], 0
jne 0x425471
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041f6c1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0042540e
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

Function at 0x426861
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041c0eb
call fcn.00413360
cmp eax, esi
pop esi
jne 0x42687d
mov ecx, 0x58f588
jmp fcn.0042d7b1
ret