joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569beb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5c911c]
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 ebx, ecx
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 8]
xor edi, edi
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00402530
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebx + 8], edi
je 0x403016
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403016
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea esp, [esp]
test byte [ebp - 0x260], 0x10
jne 0x402ffc
push ecx
mov eax, esp
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.004025e0
mov eax, dword [ebx + 8]
add esp, 0xc
call eax
add esp, 4
test eax, eax
je 0x40300a
lea eax, [ebp - 0x260]
push eax
push esi
call edi
test eax, eax
jne 0x402fd0
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x264]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40303a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403058
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x403077
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00547e39
mov esp, ebp
pop ebp
ret 8
Function at 0x403450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
xor cl, cl
test eax, eax
je 0x40355a
test eax, 0xffff0000
jne 0x40355a
push esi
push edi
movzx edi, ax
push edi
call fcn.0041c23c
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x403556
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403556
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403556
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403556
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4034e9
cmp esi, ecx
jae 0x403556
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4034d7
cmp esi, ecx
jae 0x403556
movzx eax, word [esi]
test ax, ax
je 0x403556
mov edx, dword [ebx]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40351c
push edi
mov ecx, ebx
call fcn.00402910
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40351f
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00550318
add esp, 0x10
cmp eax, 0x50
ja case.0x40353d.1
movzx eax, byte [eax + 0x403588]
jmp dword [eax*4 + 0x403578]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x40356d
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop edi
mov cl, 1
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0041b373
call fcn.0041b38d
push 0x80070057
call fcn.004026b0
nop
inc esp
xor eax, 896008256
inc eax
add byte [ebx + 0x35], ah
inc eax
add byte [ebx + 0x35], ah
inc eax
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x4038a0
Capabilities:
Create process on windows
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5c911c]
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 esi, ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, esi
call fcn.0041d3e7
push 0
call fcn.0041257c
add esp, 4
lea ecx, [ebp - 0x258]
call fcn.00401c90
cmp dword [0x5ce450], 0
mov dword [ebp - 4], 0
jne 0x4039ff
push 0x104
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._ntoskrnl.exe
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x264], 0
push eax
mov dword [ebp - 0x260], 0
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor esi, esi
mov dword [ebp - 0x268], eax
test eax, eax
je 0x4039de
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404f8a
mov edi, eax
add esp, 4
test edi, edi
je 0x4039de
push edi
push dword [ebp - 0x268]
lea eax, [ebp - 0x254]
push dword [ebp - 0x25c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4039d5
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x264]
push eax
push 0x578650
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4039d5
cmp dword [ebp - 0x260], ebx
jbe 0x4039d3
mov eax, dword [ebp - 0x264]
mov ebx, dword [eax + 8]
mov esi, ebx
push edi
call fcn.00404f85
add esp, 4
xor eax, eax
shr esi, 0x10
mov ecx, 6
mov dword [0x5ce450], 1
cmp cx, si
sete al
mov dword [0x5ce454], eax
jmp 0x403a04
mov eax, dword [0x5ce454]
test eax, eax
je 0x403a0d
call fcn.00403610
lea ecx, [ebp - 0x258]
call fcn.00401cc0
lea ecx, [ebp - 0x258]
call fcn.004024a0
mov edi, eax
test edi, edi
je 0x403a6d
mov ecx, edi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a30
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x403a6d
lea eax, [ebx + ebx]
call fcn.00547e70
mov esi, esp
test esi, esi
je 0x403a6d
push ebx
push esi
push 0xffffffffffffffff
xor eax, eax
push edi
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x403a6f
xor eax, eax
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x258]
call fcn.00401ca0
xor eax, eax
lea esp, [ebp - 0x278]
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.00547e39
mov esp, ebp
pop ebp
ret

Function at 0x403bb0
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.004213cc
Function at 0x403bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0041c23c
mov ebx, eax
test ebx, ebx
jne 0x403be0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403cb3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403cb3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403cb3
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403c44
cmp esi, ecx
jae 0x403cb3
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403c32
cmp esi, ecx
jae 0x403cb3
movzx eax, word [esi]
test ax, ax
je 0x403cb3
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x403c7a
push edi
mov ecx, ebx
call fcn.00402910
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x403c7d
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00550318
push eax
call fcn.00403b20
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x403cbe
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004026b0
int3
Function at 0x404630
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5c911c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0
push eax
call fcn.005497d0
push dword [ebp + 0x10]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x50], 0
push esi
push eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.00404580
add esp, 0x18
lea ecx, [ebp - 0x53]
xor edx, edx
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0xc], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0xb], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0xa], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 9], al
add edx, 4
cmp edx, 8
jl 0x404694
mov edx, dword [ebp - 0x54]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub eax, edx
sub ecx, edx
cmp edx, 0x38
cmovae eax, ecx
push eax
lea eax, [ebp - 0x64]
push 0x5c8018
push eax
call fcn.00404580
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00404580
add esp, 0x18
lea edx, [edi + 2]
lea eax, [ebp - 0x63]
mov esi, 4
jmp 0x404710
movzx ecx, byte [eax - 1]
lea eax, [eax + 4]
mov byte [edx - 2], cl
lea edx, [edx + 4]
movzx ecx, byte [eax - 4]
mov byte [edx - 5], cl
movzx ecx, byte [eax - 3]
mov byte [edx - 4], cl
movzx ecx, byte [eax - 2]
mov byte [edx - 3], cl
sub esi, 1
jne 0x404710
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00547e39
mov esp, ebp
pop ebp
ret
Function at 0x405643
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x569d44
call fcn.005483a8
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x40574d
cmp ebx, dword [esi + 0xc]
jge 0x40574d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x40569a
cmp ebx, dword [edi + 8]
jl 0x40573b
cmp dword [ebp + 0xc], 0
je 0x40573b
xor ebx, ebx
jmp 0x4056d4
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.00405102
mov edi, eax
test edi, edi
je 0x4056b4
mov dword [edi], vtable.CThreadData.0
jmp 0x4056b6
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.0040556f
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x4056ef
push 4
push dword [esi + 0xc]
call fcn.00404fca
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x405707
push 2
push 4
push dword [esi + 0xc]
call fcn.00404fca
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x405774
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.005497d0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x40574d
cmp ebx, dword [edi + 8]
jge 0x40574d
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00548306
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041b38d
int3

Function at 0x408274
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x4082b3
call fcn.00413780
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4082b3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4082bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0042371d
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x408dca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x408e56
cmp dword [esi + 0x20], 0
je 0x408e56
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408e56
cmp dword [ebp + 8], 0
je 0x408e56
xor edi, edi
mov ebx, edi
call fcn.00413780
push 0x57b8f8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x408e3a
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408e56
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0042421d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x408e52
mov ecx, esi
call fcn.00408b6c
mov eax, edi
jmp 0x408e58
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40f6da
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56a264
call fcn.0054833d
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x40f700
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40f760
call fcn.0041c065
push eax
lea ecx, [ebp - 0x10]
call fcn.0040602c
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x578288]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00551adb
push eax
call fcn.00403b20
add esp, 0x14
test esi, esi
je 0x40f753
push esi
call fcn.0054fea9
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040ab2b
mov eax, ebx
call fcn.00548306
ret 8

Function at 0x412bdb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, ecx
push edi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x412c20
call fcn.00413780
push 0xf0
push dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x412c1d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x412c65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 8]
push ebx
xor ebx, ebx
inc ebx
test esi, esi
je 0x412c44
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push edi
call dword [0x578288]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov edi, dword [edi + 0x70]
test edi, edi
je 0x412c62
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x578288]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x41e00b
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41e05e
push esi
push dword [ebp + 8]
call fcn.0041e1fa
mov edi, eax
test edi, edi
je 0x41e059
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41e059
mov eax, dword [ebp - 8]
jmp 0x41e070
mov eax, dword [ebp + 0x10]
jmp 0x41e070
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x41e076
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a9e1
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.00547ea0
mov eax, dword [0x5c911c]
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
cmp dword [ecx + 0x58], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
je 0x41e1ad
push 0
push edx
call fcn.0041e1fa
mov ebx, eax
test ebx, ebx
jne 0x41e0de
push esi
jmp 0x41e1d5
call fcn.0041c065
push eax
lea ecx, [ebp - 0x2014]
call fcn.0040602c
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x41e16c
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.0040a7e5
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.0040abc5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x41e19a
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.004026d0
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0040ab2b
jmp 0x41e1dc
push esi
mov ecx, edi
call fcn.0040d78f
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x41e193
test esi, esi
jne 0x41e1b6
mov esi, 0x5791d8
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.0040d78f
mov eax, edi
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.00547e39
leave
ret 0x10
Function at 0x421424
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.00413780
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x421457
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0042146a
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x426b78
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
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x426bce
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x426ba7
call fcn.0041fa44
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x426bbc
call fcn.0041fa44
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x426bce
call fcn.0041fa44
call fcn.00413780
cmp dword [eax + 0x3c], 0
je 0x426be3
push edi
mov ecx, ebx
call fcn.004262a8
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00426db5
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x426c0c
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x426c18
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42bec9
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00555a22
pop ecx
test eax, eax
jne 0x42bf0b
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x57eb4c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041e595
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42bed1
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x43386b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0040f2d4
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 0x4338a7
call fcn.00433a86
mov dword [esi + 0xc], 1
jmp 0x4338ac
call fcn.00433a86
cmp dword [esi], 0
je 0x4338f5
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4338cf
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004083ce
jmp 0x4338e0
push 0xff
mov ecx, esi
call fcn.0040a7e5
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040abc5
jmp 0x433919
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 0x433919
push dword [esi]
push dword [ebp - 4]
call fcn.00422654
pop esi
leave
ret 0xc

Function at 0x4339dd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00433a86
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x433a25
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004083ce
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040abc5
jmp 0x433a30
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00422654
pop edi
pop esi
pop ebp
ret 0xc