joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020f0
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.00417ca3

Function at 0x402120
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 0x402149
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40215f
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 0x402156
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402192
nop
cmp esi, ecx
jae 0x402156
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402180
cmp esi, ecx
jae 0x402156
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021f0
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.0041d190
mov ebx, eax
test ebx, ebx
jne 0x402210
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 0x4022f7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4022f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4022f7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402278
cmp esi, ecx
jae 0x4022f7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402262
cmp esi, ecx
jae 0x4022f7
movzx eax, word [esi]
test ax, ax
je 0x4022f7
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x402302
mov ebx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x4022c1
push edi
mov ecx, ebx
call fcn.004028b0
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x402302
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 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.00402980
int3
Function at 0x402310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x40241f
test eax, 0xffff0000
jne 0x40241f
push ebx
push edi
movzx edi, ax
push edi
call fcn.0041d190
mov ebx, eax
test ebx, ebx
je 0x40241b
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40241b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40241b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40241a
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4023a9
cmp esi, ecx
jae 0x40241a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402393
cmp esi, ecx
jae 0x40241a
movzx eax, word [esi]
test ax, ax
je 0x40241a
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x402427
mov ebx, dword [ebp - 4]
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4023f2
push edi
mov ecx, ebx
call fcn.004028b0
mov edx, dword [ebx]
movzx eax, word [esi]
push 0
push 0
push edi
push edx
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x402427
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402980
int3
Function at 0x4113d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2810
call fcn.00562050
mov eax, dword [0x5ebe74]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [0x5f5e84]
test ecx, ecx
je 0x41159e
mov eax, dword [0x5f60fc]
mov edx, 0xa
cmp byte [ebp + 8], 0
push ebx
cmove eax, edx
mov dword [0x5f60fc], eax
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
test eax, eax
jle 0x41158d
mov ecx, dword [0x5f5e84]
lea ebx, [ebp - 0x2810]
mov edx, 0x2800
cmp eax, edx
mov esi, dword [ecx]
cmovl edx, eax
push edx
mov eax, ebx
push eax
call dword [esi + 0x10]
mov esi, eax
test esi, esi
jle 0x41158d
mov eax, ebx
add eax, esi
cmp byte [eax - 1], 0xd
jne 0x411460
mov ecx, dword [0x5f5e84]
push 1
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
add esi, eax
cmp esi, 0x280a
jae 0x4115af
mov byte [ebp + esi - 0x2810], 0
cmp byte [ebp - 0x2810], 0xa
jne 0x411484
lea ebx, [ebp - 0x280f]
dec esi
cmp byte [ebp + 8], 0
je 0x41158d
mov eax, dword [0x5f60fc]
test eax, eax
jg 0x411596
mov eax, dword [edi + 0x128]
test eax, eax
je 0x4114ce
push eax
push 1
push esi
push ebx
call fcn.0056a857
add esp, 0x10
test eax, eax
jg 0x4114ce
push dword [edi + 0x128]
call fcn.0056a2f9
add esp, 4
mov dword [edi + 0x128], 0
lea ecx, [edi + 0x130]
call fcn.0041c9c8
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [0x5cbda0]
jbe 0x411557
push 0
push 0
push 0xba
push dword [edi + 0x150]
call esi
cdq
push 0
sub eax, edx
sar eax, 1
push eax
push 0xbb
push dword [edi + 0x150]
call esi
push eax
push 0
push 0xb1
push dword [edi + 0x150]
call esi
push 0
push 0
push 0xb7
push dword [edi + 0x150]
call esi
push 0x5c7d20
push 0
push 0xc2
push dword [edi + 0x150]
call esi
lea ecx, [edi + 0x130]
call fcn.0041c9c8
push eax
push eax
push 0xb1
push dword [edi + 0x150]
call esi
push 0
push 0
push 0xb7
push dword [edi + 0x150]
call esi
lea eax, [ebp - 0x2810]
push eax
push 0
push 0xc2
push dword [edi + 0x150]
call esi
mov eax, dword [0x5f60fc]
test eax, eax
jle 0x41159c
dec eax
mov dword [0x5f60fc], eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00561419
mov esp, ebp
pop ebp
ret 4
call fcn.005617c0
int3

Function at 0x412200
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x5ebe74]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push edi
sub esp, 8
movaps xmm0, xmm2
mov edi, ecx
movsd qword [esp], xmm0
push 0x5c8a88
push 0x40
push eax
call fcn.00406d00
add esp, 0x14
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0xdc]
push 0x81
push 0
push eax
call fcn.00563b80
add esp, 0xc
lea eax, [edi + 8]
push eax
push 0x80
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xdc]
mov byte [ebp - 0x5c], 0
push eax
call fcn.0056dd4b
mov ecx, dword [ebp - 8]
add esp, 4
fstp qword [ebp - 0xe4]
movsd xmm0, qword [ebp - 0xe4]
xor ecx, ebp
pop edi
pop esi
call fcn.00561419
mov esp, ebp
pop ebp
ret 4
Function at 0x4122b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push ebx
mov ebx, ecx
je 0x412313
push esi
mov esi, dword [ebp + 0x10]
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4122c4
sub esi, ecx
lea eax, [esi + 3]
push eax
call fcn.00417a1d
mov edi, eax
push esi
push dword [ebp + 0x10]
lea ecx, [edi + 1]
mov byte [edi], 0x22
push ecx
call fcn.0056a490
add esp, 0x10
mov word [edi + esi + 1], 0x22
lea eax, [ebx + 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
call fcn.00417a18
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
lea eax, [ebx + 8]
push eax
push 0x104
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop ebx
pop ebp
ret 0x14
Function at 0x416950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583f00
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5ebe74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0xa4]
push eax
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x64
xor edi, edi
mov dword [ebp - 0xa8], 0x64
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.00563b80
add esp, 0xc
lea eax, [ebp - 0xa8]
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x88]
push eax
push edi
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x416b36
nop dword [eax + eax]
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb0], 1
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0xac], 0x14
push eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x88]
xorps xmm0, xmm0
push eax
push dword [ebp - 0xa4]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0xa0], 0
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416a50
sub eax, edx
lea ecx, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00409b40
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x416aa1
movups xmm0, xmmword [ebp - 0xa0]
mov edx, 0xf
mov byte [ebp - 0xa0], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x90]
movq qword [eax + 0x10], xmm0
add dword [esi + 4], 0x18
jmp 0x416ab6
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov ecx, esi
call fcn.00416b70
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x416aed
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416ae3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416b5d
push edx
push ecx
call fcn.0056189b
add esp, 8
push 0x64
lea eax, [ebp - 0x88]
mov dword [ebp - 0xa8], 0x64
push 0
push eax
inc edi
call fcn.00563b80
add esp, 0xc
lea eax, [ebp - 0xa8]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x88]
push eax
push edi
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4169e0
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00561419
mov esp, ebp
pop ebp
ret
call fcn.005694c6
int3
Function at 0x417cfb
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.0042b221
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417d2e
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.00417d41
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c940
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5840fb
call fcn.00561e99
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x41c966
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41c9c0
lea ecx, [ebp - 0x10]
call fcn.004026f0
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 [0x594bf0]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0056e47b
push eax
call fcn.0040fa00
add esp, 0x14
test esi, esi
je 0x41c9b3
push esi
call fcn.0056e3f0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004027c0
mov eax, ebx
call fcn.00561e62
ret 8

Function at 0x41f32a
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 0x41f369
call fcn.0042b221
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41f369
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41f371
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0041bf68
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41fd71
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 0x41fdfd
cmp dword [esi + 0x20], 0
je 0x41fdfd
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41fdfd
cmp dword [ebp + 8], 0
je 0x41fdfd
xor edi, edi
mov ebx, edi
call fcn.0042b221
push 0x596420
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x41fde1
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 0x41fdfd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0043670c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x41fdf9
mov ecx, esi
call fcn.0041fb0f
mov eax, edi
jmp 0x41fdff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x427f4f
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 0x427f94
call fcn.0042b221
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x427f91
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x427fdb
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 0x427fb7
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x594bf0]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x427fd8
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x594bf0]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x428953
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 0x4289a6
push esi
push dword [ebp + 8]
call fcn.00428b39
mov edi, eax
test edi, edi
je 0x4289a1
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_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4289a1
mov eax, dword [ebp - 8]
jmp 0x4289b8
mov eax, dword [ebp + 0x10]
jmp 0x4289b8
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x433d5b
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.0041c473
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x433d97
call fcn.00433f78
mov dword [esi + 0xc], 1
jmp 0x433d9c
call fcn.00433f78
cmp dword [esi], 0
je 0x433de7
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x433dc2
push edi
call fcn.0041d1f5
lea ecx, [edi + 1]
push ecx
jmp 0x433dd1
push 0xff
call fcn.00402910
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041d218
pop edi
jmp 0x433e0b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x433e0b
push dword [esi]
push dword [ebp - 4]
call fcn.004315fe
pop esi
leave
ret 0xc
Function at 0x433ecf
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.00433f78
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x433f17
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041d1f5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041d218
jmp 0x433f22
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004315fe
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x438d32
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 0x438d88
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x438d61
call fcn.004195c1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x438d76
call fcn.004195c1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x438d88
call fcn.004195c1
call fcn.0042b221
cmp dword [eax + 0x3c], 0
je 0x438d9d
push edi
mov ecx, ebx
call fcn.00438455
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00438f83
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x438dc6
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x438dd2
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 0x447848
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 0x447861
call fcn.0042b221
mov esi, dword [eax + 0xc]
push 0x59c8a0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4478a3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4478a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4478a3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004478ac
jmp 0x4478a5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x476afb
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005088bf
call fcn.0042b275
cmp dword [eax + 0x14], 0
jne 0x476b16
mov ecx, esi
pop esi
jmp fcn.00475df7
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.004020e0
call fcn.0042b275
cmp dword [eax + 0x14], 0
jne 0x485354
mov ecx, esi
pop esi
jmp fcn.00484baa
pop esi
ret

Function at 0x52dd4c
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.00572d5e
pop ecx
test eax, eax
jne 0x52dd8e
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.00428ead
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52dd54
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x57cae9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057c766

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x61580ebc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x43e338d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3abb5e91
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1d874a6b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10018298
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100182d7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100182d7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100182d7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100182d7
cmp dword [ecx + 0x74], 0xe
jbe 0x100182d7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret