joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e6b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43cdc0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e6fc
cmp word [esi], dx
jne 0x41e6fc
or byte [edi + eax + 0x28], 4
jmp 0x41e701
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41e854
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41e834
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41e743
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e779
cmp eax, edx
jae 0x41e785
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41e71b
jmp 0x41e854
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e830
cmp dword [ebp - 0x14], 0
je 0x41e830
mov eax, dword [ebx*4 + 0x43cdc0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41e808
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41e7d1
mov word [esi], cx
jmp 0x41e804
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43cdc0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43cdc0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43cdc0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41e854
pop ebx
cmp word [ebp - 4], bx
jne 0x41e819
cmp esi, dword [ebp + 0xc]
jne 0x41e819
mov word [esi], bx
jmp 0x41e851
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041f0ed
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41e854
push 0xd
jmp 0x41e84d
mov ecx, dword [ebx*4 + 0x43cdc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e84b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e854
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421ccc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x421d69
push ebx
push esi
call fcn.00421c95
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b51b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421d16
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421d68
push edi
push eax
call fcn.0041a2d7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421d36
call fcn.0041a26c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421d67
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b51b
add esp, 0x20
test eax, eax
jne 0x421d55
push edi
call fcn.0041a26c
jmp 0x421d5d
push ebx
call fcn.0041a26c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x428c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428c6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428c6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
mov ecx, 0x39f58a3
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x8ce6e80
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402520
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]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x402549
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40255f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402556
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402592
nop
cmp esi, ecx
jae 0x402556
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402580
cmp esi, ecx
jae 0x402556
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4029b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d8b8
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x5d0014]
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
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 8
push eax
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00412650
push 0
call fcn.004165ca
push 0xc
call fcn.00404a3f
add esp, 8
mov dword [ebp - 0xf4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x402a39
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00415103
mov esi, eax
jmp 0x402a3b
xor esi, esi
push 0x57e58c
mov dword [ebp - 4], 0xffffffff
call fcn.0040e599
push 0x5b2488
mov ecx, edi
call fcn.004136d3
push 0xd8
lea eax, [ebp - 0xf0]
push 0
push eax
call fcn.0054e7b0
add esp, 0xc
lea ecx, [ebp - 0xf0]
push 0
push 0x66
call fcn.0041bb44
mov dword [ebp - 4], 1
mov dword [ebp - 0xf0], 0x5b2814
call fcn.0042492f
call fcn.0042492f
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00414954
test esi, esi
je 0x402ace
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
call fcn.0041a552
lea ecx, [ebp - 0x30]
call fcn.004159fd
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], vtable.CBrush.0
call fcn.004026e0
lea ecx, [ebp - 0xf0]
call fcn.004143fd
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.00404a2c
mov esp, ebp
pop ebp
ret
Function at 0x402b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.00416136
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x402c61
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402c61
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402c61
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402c61
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402be8
cmp esi, ecx
jae 0x402c61
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402bd2
cmp esi, ecx
jae 0x402c61
movzx eax, word [esi]
test ax, ax
je 0x402c61
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 0x402c1b
push edi
mov ecx, ebx
call fcn.00402f60
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x402c1e
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00554bd6
add esp, 0x10
cmp eax, 0x50
ja case.0x402c3c.1
movzx eax, byte [eax + 0x402c90]
jmp dword [eax*4 + 0x402c80]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x402c71
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004173d2
push 0x80070057
call fcn.004024d0
call fcn.004173b8
inc ebx
sub al, 64
add byte [esp + ebp + 0x40], ch
add byte [ebx + 0x2c], bh
inc eax
add byte [ebx + 0x2c], bh
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 0x403630
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.004145e1
Function at 0x403880
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5d0014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], ecx
push 0x5cbfe4
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x2e
call fcn.0054e534
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x1c], edx
movzx eax, word [ecx + 0x14]
lea esi, [ecx + 0x18]
add esi, eax
xor edi, edi
mov eax, dword [ebx]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], esi
movzx eax, word [eax + 6]
cmp edi, eax
jge 0x40397e
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x403996
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x403972
mov eax, dword [esi + 0xc]
push 4
push 0x1000
push ebx
add eax, edx
push eax
call dword [0x5dbc30]
push ebx
push 0
push eax
mov dword [esi + 8], eax
call fcn.0054e7b0
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ebx, dword [ebp + 8]
inc edi
add esi, 0x28
jmp 0x4038e6
mov ebx, dword [ebp + 8]
inc edi
add esi, 0x28
jmp 0x4038e6
mov eax, 0x403984
ret
push 4
push 0x1000
push eax
mov eax, dword [esi + 0xc]
add eax, edx
push eax
call dword [0x5dbc30]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push 0x5cbfe4
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x2c], 0x63
call fcn.0054e534
int3
Function at 0x41334d
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 0x4133a0
push esi
push dword [ebp + 8]
call fcn.00413536
mov edi, eax
test edi, edi
je 0x41339b
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 0x41339b
mov eax, dword [ebp - 8]
jmp 0x4133b2
mov eax, dword [ebp + 0x10]
jmp 0x4133b2
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 0x414639
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.0042492f
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 0x41466c
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.0041467f
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x416c21
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x416c66
call fcn.0042492f
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x416c63
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x416cad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x416c89
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x57d9a8]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x416caa
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x57d9a8]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x41e143
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 0x41e182
call fcn.0042492f
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41e182
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41e18a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0049653d
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x41eb81
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 0x41ec0d
cmp dword [esi + 0x20], 0
je 0x41ec0d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41ec0d
cmp dword [ebp + 8], 0
je 0x41ec0d
xor edi, edi
mov ebx, edi
call fcn.0042492f
push 0x580938
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 0x41ebf1
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 0x41ec0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004bfbea
mov edi, eax
add esp, 0xc
test edi, edi
je 0x41ec09
mov ecx, esi
call fcn.0041e91f
mov eax, edi
jmp 0x41ec0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x423550
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56e724
call fcn.0056ccea
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x423576
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4235d0
lea ecx, [ebp - 0x10]
call fcn.00402d30
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 [0x57d9a8]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005573fc
push eax
call fcn.00402410
add esp, 0x14
test esi, esi
je 0x4235c3
push esi
call fcn.005565e4
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025b0
mov eax, ebx
call fcn.0056ccb8
ret 8

Function at 0x42ab39
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
push edi
test esi, esi
jne 0x42ab52
call fcn.0042492f
mov esi, dword [eax + 0xc]
push 0x582c60
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42ab94
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42ab94
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x42ab94
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0042ab9d
jmp 0x42ab96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c1640
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 0x4c1696
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c166f
call fcn.00418840
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4c1684
call fcn.00418840
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4c1696
call fcn.00418840
call fcn.0042492f
cmp dword [eax + 0x3c], 0
je 0x4c16ab
push edi
mov ecx, ebx
call fcn.004c0d63
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004c1891
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c16d4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c16e0
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 0x514ae7
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005491f0
call fcn.00424983
cmp dword [eax + 0x14], 0
jne 0x514b02
mov ecx, esi
pop esi
jmp fcn.00513e0b
pop esi
ret

Function at 0x514bfd
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.0042312d
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 0x514c39
call fcn.00514e1a
mov dword [esi + 0xc], 1
jmp 0x514c3e
call fcn.00514e1a
cmp dword [esi], 0
je 0x514c89
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x514c64
push edi
call fcn.004161a8
lea ecx, [edi + 1]
push ecx
jmp 0x514c73
push 0xff
call fcn.00402ef0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00413672
pop edi
jmp 0x514cad
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 0x514cad
push dword [esi]
push dword [ebp - 4]
call fcn.00491baa
pop esi
leave
ret 0xc
Function at 0x514d71
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.00514e1a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x514db9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004161a8
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00413672
jmp 0x514dc4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00491baa
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5175dc
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.0055efdb
pop ecx
test eax, eax
jne 0x51761e
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00413931
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5175e4
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 0x546cae
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402b50
call fcn.00424983
cmp dword [eax + 0x14], 0
jne 0x546cc9
mov ecx, esi
pop esi
jmp fcn.0054651f
pop esi
ret

Function at 0x5630b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00562f2d

Function at 0x564464
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005640e1