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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
call edi
cmp eax, 0xffffffff
jne 0x403ea9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, edi
call ebx
cmp eax, 2
je 0x403ec0
cmp eax, 3
je 0x403ec0
cmp eax, 5
jne 0x403eb9
cmp esi, 0x14
jge 0x403eb2
push 0x32
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x403e80
test al, 0x10
je 0x403ec4
or esi, 0xffffffff
jmp 0x403ec9
mov esi, 0xffffff9e
jmp 0x403ec9
mov esi, 0xffffff9d
jmp 0x403ec9
xor esi, esi
jmp 0x403ec9
mov esi, 1
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403ee6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x403ef0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ad6a8]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi], eax
test eax, eax
je 0x403f5f
cmp eax, 1
je 0x403f5f
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
neg eax
sbb eax, eax
and eax, 2
add eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052ba1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
pop esi
call fcn.0052ba1e
mov esp, ebp
pop ebp
ret

Function at 0x404010
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x404037
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404020
sub ecx, edx
sar ecx, 1
jne 0x404037
mov eax, dword [ebp + 0x10]
pop esi
pop ebp
ret
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x404056
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404044
sub ecx, edi
sar ecx, 1
pop edi
je 0x404031
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop esi
pop ebp
ret
Function at 0x404070
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4040eb
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404081
sub ecx, edx
sar ecx, 1
jne 0x4040eb
mov ecx, dword [ebp + 0x10]
xor edx, edx
test ecx, ecx
je 0x4040af
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4040a0
sub edx, esi
sar edx, 1
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
je 0x404169
mov edi, dword [ebp + 0x18]
cmp edi, edx
jbe 0x4040da
sub esi, ecx
movzx eax, word [ecx]
mov word [esi + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4040c5
pop edi
mov eax, edx
pop esi
pop ebp
ret
test edi, edi
je 0x404169
xor ecx, ecx
pop edi
mov word [esi], cx
pop esi
pop ebp
ret
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x404155
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4040f7
sub ecx, edi
sar ecx, 1
jne 0x404155
mov ecx, dword [ebp + 0x10]
xor edx, edx
test ecx, ecx
je 0x404125
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404116
sub edx, esi
sar edx, 1
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
je 0x404169
mov edi, dword [ebp + 0x18]
cmp edi, edx
jbe 0x4040da
sub esi, ecx
jmp 0x404140
movzx eax, word [ecx]
mov word [esi + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x404140
pop edi
mov eax, edx
pop esi
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
pop esi
pop ebp
ret
Function at 0x404660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545596
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5ad6a8]
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x236]
push eax
call fcn.0052db10
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4046ea
or eax, 0xffffffff
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.0052ba1e
mov esp, ebp
pop ebp
ret
xor ebx, ebx
lea esp, [esp]
push ebx
lea eax, [ebp - 0x30]
push str.temp_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x244], esp
push eax
call fcn.00401ed0
push ecx
lea eax, [ebp - 0x238]
mov ecx, esp
push eax
mov dword [ebp - 4], 0
call fcn.00401ed0
lea eax, [ebp - 0x23c]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.004036a0
mov esi, dword [ebp - 0x23c]
add esp, 8
mov ecx, dword [esi - 0x10]
mov dword [ebp - 4], 1
mov eax, dword [ecx]
mov dword [ebp - 0x244], esp
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x404779
cmp ecx, dword [esi - 0x10]
jne 0x404779
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4047b2
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x404878
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0052b8a5
add esp, 0x10
mov ecx, dword [ebp - 0x244]
lea eax, [edi + 0x10]
mov dword [ecx], eax
call fcn.00403dd0
add esp, 4
test eax, eax
je 0x404807
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4047f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, 0x10000
jl 0x4046f0
mov eax, 0xfffffffe
jmp 0x4046ce
mov eax, dword [ebp - 0x23c]
push 0
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00401220
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00404370
add esp, 8
test eax, eax
jns 0x404836
mov edi, 0xfffffff5
jmp 0x40484a
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x23c]
push eax
call fcn.00401130
xor edi, edi
mov esi, dword [ebp - 0x23c]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404871
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x4046ce
call fcn.00401640
int3
Function at 0x404c00
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404c36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
pop ebp
ret

Function at 0x4053f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00418a0d
Function at 0x406850
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, 2
jl 0x406868
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret 8
push dword [edi*4 + 0x5a82bc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
jne 0x40688b
pop edi
mov eax, 0xfffffffe
pop esi
pop ebp
ret 8
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
jne 0x4068a9
lea eax, [ebx + 1]
pop ebx
mov dword [esi + 8], edi
pop edi
pop esi
pop ebp
ret 8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
cmp ebx, 0x102
pop ebx
mov eax, 0xfffffff7
pop edi
mov dword [esi + 4], 0
cmove eax, ecx
pop esi
pop ebp
ret 8
Function at 0x408830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545d58
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5ad6a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Tuusinbo.exe
mov dword [ebp - 4], 0
call fcn.00401ed0
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 1
call fcn.00401220
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0
call fcn.004036a0
push 0x3c
lea eax, [ebp - 0x54]
push 0
push eax
mov byte [ebp - 4], 2
call fcn.0052db10
mov eax, dword [ebp - 0x10]
add esp, 0x18
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4088ed
push eax
push 0x10
push 0x557b7c
call fcn.00416d89
or esi, 0xffffffff
jmp 0x408903
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408926
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x408947
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
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 0x409520
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.00419127
push dword [edi + 0x110]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [edi + 0x20]
call esi
push dword [edi + 0x110]
push 0
push 0x80
push dword [edi + 0x20]
call esi
push 0x640000
push 0
push 0x401
push dword [edi + 0xb4]
call esi
push 1
push edi
call fcn.00404c40
add esp, 8
push 0
push 4
push 0
push 0
push edi
push 0x409a20
call fcn.004162ee
mov dword [edi + 0x11c], eax
test eax, eax
jne 0x4095a7
push 0x10
push 0x556f8c
push 0x557fe8
mov ecx, edi
call fcn.00412573
pop edi
xor eax, eax
pop esi
ret
mov dword [eax + 0x28], 0
mov eax, dword [edi + 0x11c]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret

Function at 0x40f9f1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5470d4
call fcn.0052e42d
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x40fa17
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40fa6b
call fcn.0040b6c7
push eax
lea ecx, [ebp - 0x10]
call fcn.00401030
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0052e2e2
push eax
call fcn.00402580
add esp, 0x14
test edi, edi
je 0x40fa5e
push edi
call fcn.0052e561
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401530
mov eax, esi
call fcn.0052e3fb
ret 8

Function at 0x411411
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5ad6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5b0aec]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x41145d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41147a
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5b0aec], eax
jmp 0x411466
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41147a
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4114e7
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x411495
xor eax, eax
jmp 0x4114e7
lea eax, [ebp - 0x210]
push eax
call fcn.0052e561
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4114c6
push 0x556cfc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052ea13
add esp, 0xc
test eax, eax
jne 0x411491
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052ea13
add esp, 0xc
test eax, eax
jne 0x411491
lea eax, [ebp - 0x210]
push eax
call fcn.004160dd
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052ba1e
leave
ret
Function at 0x411c9b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x411ce0
call fcn.0040d71d
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411ce0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x411cfc
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00418034
mov ebx, eax
test edi, edi
je 0x411cfa
test esi, esi
je 0x411cfa
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x417c38
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.0040f667
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x417c74
call fcn.00417e53
mov dword [esi + 0xc], 1
jmp 0x417c79
call fcn.00417e53
cmp dword [esi], 0
je 0x417cc2
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x417c9c
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040b8d5
jmp 0x417cad
push 0xff
mov ecx, esi
call fcn.004014b0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004032d0
jmp 0x417ce6
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x417ce6
push dword [esi]
push dword [ebp - 4]
call fcn.00421d80
pop esi
leave
ret 0xc

Function at 0x417daa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00417e53
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x417df2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040b8d5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004032d0
jmp 0x417dfd
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00421d80
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x418a69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0040d71d
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418aa0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00418abf
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 0x41c427
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x41c471
call fcn.0040d71d
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41c46e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41c4aa
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x41c493
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x41c493
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x41c4a8
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42383e
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ad6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5b0df4]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x423897
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4238b4
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5b0df4], eax
jmp 0x4238a0
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4238b4
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4239f1
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00545009
lea eax, [ebp - 0x14]
push eax
call fcn.0052e561
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0052e505
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.00545009
lea eax, [ebp - 0x14]
push eax
call fcn.0052e561
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0052e505
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00545009
lea eax, [ebp - 0x14]
push eax
call fcn.0052e561
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0052e505
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.00545009
lea eax, [ebp - 0x14]
push eax
call fcn.0052e561
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0052e505
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.00545009
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0052e561
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0052e505
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ba1e
leave
ret
Function at 0x43e4e5
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00476b72
call fcn.0040d771
cmp dword [eax + 0x14], 0
jne 0x43e500
mov ecx, esi
pop esi
jmp fcn.0043d904
pop esi
ret

Function at 0x43f1f2
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0049ef9e
call fcn.0040d771
cmp dword [eax + 0x14], 0
jne 0x43f20d
mov ecx, esi
pop esi
jmp fcn.0043eae5
pop esi
ret

Function at 0x44d0dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x44d0f5
call fcn.0040d71d
mov esi, dword [eax + 0xc]
push 0x561868
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44d14b
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44d14a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x44d12b
xor esi, esi
jmp 0x44d141
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0044d151
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x511045
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x51105f
mov edi, dword [esi + 0xc]
jmp 0x51109f
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x511078
call fcn.0040e156
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x51108d
call fcn.0040e156
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x51109f
call fcn.0040e156
call fcn.0040d71d
cmp dword [eax + 0x3c], 0
je 0x5110b4
push edi
mov ecx, ebx
call fcn.005108e1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00511277
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x5110d7
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x5110e0
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8