joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf00c7a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0xf0022d8
cmp edx, dword [eax]
je 0xf00c7c7
add eax, 8
inc ecx
cmp eax, 0xf002368
jl 0xf00c7b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0xf0022d8]
jne 0xf00c8f5
mov eax, dword [0xf01a710]
cmp eax, 1
je 0xf00c8cf
test eax, eax
jne 0xf00c7f8
cmp dword [0xf001cf4], 1
je 0xf00c8cf
cmp edx, 0xfc
je 0xf00c8f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0xf00c82f
lea eax, [ebp - 0x1a4]
push 0xf006448
push eax
call fcn.0f00abb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0f00dc60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0xf00c872
lea eax, [ebp - 0x1a4]
push eax
call fcn.0f00dc60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0xf006444
push edi
call fcn.0f00ed20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0xf006428
push eax
call fcn.0f00abb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0f00abc0
lea eax, [ebp - 0xa0]
push 0xf006424
push eax
call fcn.0f00abc0
push dword [esi + 0xf0022dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0f00abc0
push 0x12010
lea eax, [ebp - 0xa0]
push 0xf0063fc
push eax
call fcn.0f00ec88
add esp, 0x2c
pop edi
jmp 0xf00c8f5
lea eax, [ebp + 8]
lea esi, [esi + 0xf0022dc]
push 0
push eax
push dword [esi]
call fcn.0f00dc60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret

Function at 0xf0135a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0xf0135ea
call fcn.0f01642e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0xf0135ea
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0xf0135e1
xor eax, eax
jmp 0xf0135f2
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0f0135f8
pop edi
pop esi
pop ebx
ret 4

Function at 0xf016b7a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0xf016ba8
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0xf016bc6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0f016ae0
jmp 0xf016bc6
mov eax, dword [esi + 0x14]
test eax, eax
je 0xf016bc6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0f016ae0
test edi, edi
mov eax, edi
jne 0xf016bb0
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401170
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
cmp dword [edi + 0x18], 0
je 0x401238
mov eax, dword [edi + 0x30]
movzx esi, word [edi + 0x2c]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4011b7
xor ecx, ecx
jmp 0x40121c
push 0x1fe
push 0
push 0x405380
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
test esi, esi
je 0x4011fc
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx esi, word [eax + ebx*2]
lea eax, [esi + 0x20]
lea ecx, [esi - 0x41]
movzx edx, ax
cmp ecx, 0x19
mov eax, esi
cmova edx, eax
mov word [ebx*2 + 0x405380], dx
inc ebx
cmp ebx, edi
jb 0x4011d4
mov edi, dword [ebp - 4]
xor eax, eax
mov ecx, 0x405380
cmp word [0x405380], ax
je 0x40121c
nop dword [eax]
inc eax
cmp word [eax*2 + 0x405380], 0
jne 0x401210
lea edx, [eax + eax]
call fcn.004023c0
cmp eax, dword [ebp - 0x10]
je 0x401241
mov edi, dword [edi]
mov dword [ebp - 4], edi
cmp dword [edi + 0x18], 0
jne 0x4011a2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
push edi
test ebx, ebx
je 0x401947
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
cmp dword [edi + 0x18], esi
jbe 0x401947
mov eax, dword [edi + 0x20]
xor edx, edx
lea eax, [eax + esi*4]
mov ecx, dword [eax + ebx]
add ecx, ebx
jne 0x401926
call fcn.004023c0
jmp 0x401941
cmp byte [ecx], dl
je 0x401937
nop word [eax + eax]
inc edx
cmp byte [edx + ecx], 0
jne 0x401930
call fcn.004023c0
cmp eax, dword [ebp - 4]
je 0x401950
inc esi
cmp esi, dword [edi + 0x18]
jb 0x401910
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edi + 0x1c]
pop edi
pop esi
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [0x405004]
xor eax, esp
mov dword [esp + 0xbc], eax
push esi
push edi
mov dword [esp + 8], 0x2eca438c
xor esi, esi
mov dword [esp + 0xc], 0x405784
nop
mov ecx, dword [esp + esi*8 + 8]
call fcn.00401170
mov ecx, dword [esp + esi*8 + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x4023aa
inc esi
cmp esi, 1
jb 0x402150
mov dword [esp + 8], 0x26797e77
xor esi, esi
mov dword [esp + 0xc], 0x405788
nop
mov ecx, dword [esp + esi*8 + 8]
call fcn.00401170
mov ecx, dword [esp + esi*8 + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x4023aa
inc esi
cmp esi, 1
jb 0x402180
call fcn.00401250
test eax, eax
je 0x4023aa
call fcn.00401970
test eax, eax
je 0x4023aa
mov dword [esp + 0x10], 0x48fa9930
xor esi, esi
mov dword [esp + 0x14], 0x40578c
mov dword [esp + 0x18], 0x248685e7
mov dword [esp + 0x1c], 0x405790
mov dword [esp + 0x20], 0x3b42cf7f
mov dword [esp + 0x24], 0x405794
mov dword [esp + 0x28], 0x929b1529
mov dword [esp + 0x2c], 0x405798
nop dword [eax]
mov ecx, dword [esp + esi*8 + 0x10]
call fcn.004016a0
mov ecx, dword [esp + esi*8 + 0x14]
mov dword [ecx], eax
test eax, eax
je 0x4023aa
inc esi
cmp esi, 4
jb 0x402200
mov dword [esp + 0x30], 0x572d5d8e
lea esi, [esp + 0x34]
mov dword [esp + 0x34], 0x40578c
xor edi, edi
mov dword [esp + 0x38], 0x405750
mov dword [esp + 0x3c], 0x201d0dd6
mov dword [esp + 0x40], 0x40578c
mov dword [esp + 0x44], 0x405754
mov dword [esp + 0x48], 0xd4c9b887
mov dword [esp + 0x4c], 0x40578c
mov dword [esp + 0x50], 0x405758
mov dword [esp + 0x54], 0x2ec21d6c
mov dword [esp + 0x58], 0x405790
mov dword [esp + 0x5c], 0x405760
mov dword [esp + 0x60], 0xc24fa5f4
mov dword [esp + 0x64], 0x405790
mov dword [esp + 0x68], 0x405764
mov dword [esp + 0x6c], 0x447d086b
mov dword [esp + 0x70], 0x405790
mov dword [esp + 0x74], 0x405768
mov dword [esp + 0x78], 0xff00b1f6
mov dword [esp + 0x7c], 0x405790
mov dword [esp + 0x80], 0x40576c
mov dword [esp + 0x84], 0x6cc098f5
mov dword [esp + 0x88], 0x405790
mov dword [esp + 0x8c], 0x405778
mov dword [esp + 0x90], 0xe5191d24
mov dword [esp + 0x94], 0x405790
mov dword [esp + 0x98], 0x405774
mov dword [esp + 0x9c], 0xc7652b3f
mov dword [esp + 0xa0], 0x405794
mov dword [esp + 0xa4], 0x40577c
mov dword [esp + 0xa8], 0x59761a93
mov dword [esp + 0xac], 0x405798
mov dword [esp + 0xb0], 0x405780
mov dword [esp + 0xb4], 0x89606806
mov dword [esp + 0xb8], 0x40578c
mov dword [esp + 0xbc], 0x40575c
mov ecx, dword [esi]
mov edx, dword [esi - 4]
mov ecx, dword [ecx]
call fcn.004018f0
mov ecx, dword [esi + 4]
mov dword [ecx], eax
test eax, eax
je 0x4023aa
inc edi
add esi, 0xc
cmp edi, 0xc
jb 0x402373
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.004025c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc4]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004025c6
mov esp, ebp
pop ebp
ret
Function at 0x4023c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x405ba8], 0
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], edi
jne 0x402492
xor edi, edi
push ebx
nop dword [eax]
mov edx, edi
mov eax, edi
shr edx, 1
mov ecx, edx
xor ecx, 0xedb88320
and al, 1
cmove ecx, edx
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ebx, eax
xor ebx, 0xedb88320
and dl, 1
cmove ebx, eax
mov ecx, ebx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
and bl, 1
cmove eax, ecx
mov dword [edi*4 + 0x4057a8], eax
inc edi
cmp edi, 0x100
jb 0x4023e0
mov edi, dword [ebp - 4]
mov dword [0x405ba8], 1
pop ebx
or eax, 0xffffffff
xor edx, edx
test esi, esi
je 0x4024b8
nop dword [eax + eax]
movzx ecx, byte [edx + edi]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4057a8]
cmp edx, esi
jb 0x4024a0
pop edi
not eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x409ce1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ce1
lcall 0x5de5, 0x8b10c483
jmp loc.0095f1ac
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x419200
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x419222
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419218
mov eax, 1
add ebx, ebx
jne 0x41923b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419230
jne 0x41924c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419230
xor ecx, ecx
sub eax, 3
jb 0x419260
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4192d2
mov ebp, eax
add ebx, ebx
jne 0x41926b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419278
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41929c
inc ecx
add ebx, ebx
jne 0x419288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41927d
jne 0x419299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41927d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4192bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4192ad
jmp 0x41921e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4192bc
add edi, ecx
jmp 0x41921e
pop esi
mov edi, esi
mov ecx, 0x156
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4192da
cmp byte [edi], 2
jne 0x4192da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4192df
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x41934e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19bbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19c48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41930c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19c4c]
or eax, eax
je 0x419348
mov dword [ebx], eax
add ebx, 4
jmp 0x419329
call dword [esi + 0x19c50]
popal
jmp 0x403c73
Function at 0x402f28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40600c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fa0
xor eax, eax
push ebp
push 0x402f99
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402fdc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fa0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40600c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40600c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4036c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x403729
cmp word [0x407208], 0xd7b2
jne 0x4036f1
cmp dword [0x407210], 0
jbe 0x4036f1
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403750
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406018], 0
jne 0x403745
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x403de0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404010
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403e63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404010
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403e63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40402c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403eec
xor eax, eax
push ebp
push 0x403ee5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403c1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403eca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40404c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403eca
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403eec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404006
cmp byte [ebp - 0xd], 0
jne 0x403f33
cmp byte [ebp - 0x12], 0
je 0x404006
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403f4c
dec ebx
cmp byte [ebx], 0x2e
je 0x403f5b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403f4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404006
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403f98
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404006
cmp byte [ebp - 0xd], 0
je 0x404006
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404006
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4044fc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00403978
add esp, 0x104
pop ebx
ret

Function at 0x40452c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403aec
xor eax, eax
push ebp
push 0x404574
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403afc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40457b
lea eax, [ebp - 4]
call fcn.00403848
ret

Function at 0x404704
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403aec
xor eax, eax
push ebp
push 0x4047a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x44
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, ebx
call fcn.00402e54
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403afc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x40478a
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047a7
lea eax, [ebp - 4]
call fcn.00403848
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x59433ce6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x13d706ae
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219