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

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

Function at 0x4135a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133c7

Function at 0x41399b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a30
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041242d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4139dd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b39
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d0c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x48a370]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414b6b
mov ecx, dword [esi*4 + 0x48a370]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x413b32
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b32
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413b32
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414b6b
add esp, 0x14
test edx, edx
jl 0x413b32
jg 0x413aa8
test eax, eax
jb 0x413b32
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b32
jl 0x413ac2
cmp dword [ebp - 0x1008], eax
ja 0x413b32
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413ae0
test ebx, ebx
je 0x413b19
cmp ecx, edi
jae 0x413b19
mov al, byte [ecx]
cmp al, 0xd
jne 0x413afa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b06
cmp byte [ecx + 1], 0xa
jne 0x413b06
inc ecx
jmp 0x413b06
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413ae0
cmp edx, ebx
jne 0x413ae0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b37
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406c76
leave
ret
Function at 0x414009
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x48a370]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414049
cmp byte [ebx], 0xa
jne 0x414049
or byte [eax + edi + 0x28], 4
jmp 0x41404e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41414c
mov al, byte [edx]
cmp al, 0x1a
je 0x41412e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41407d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4140a2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4140ac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41405f
jmp 0x41414c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414129
cmp dword [ebp - 0xc], 0
je 0x414129
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48a370]
test byte [eax + edi + 0x28], 0x48
je 0x414103
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4140ee
mov byte [esi], dl
jmp 0x4140ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48a370]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41414c
cmp byte [ebp - 1], 0xa
jne 0x414112
cmp esi, ebx
jne 0x414112
mov byte [esi], 0xa
jmp 0x41414b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414b89
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41414c
mov byte [esi], 0xd
jmp 0x41414b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48a370]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414148
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41414c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414155
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 + 0x48a370]
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 0x414198
cmp word [esi], dx
jne 0x414198
or byte [edi + eax + 0x28], 4
jmp 0x41419d
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 0x4142f0
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 0x4142d0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4141df
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414215
cmp eax, edx
jae 0x414221
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 0x4141b7
jmp 0x4142f0
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 0x4142cc
cmp dword [ebp - 0x14], 0
je 0x4142cc
mov eax, dword [ebx*4 + 0x48a370]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4142a4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41426d
mov word [esi], cx
jmp 0x4142a0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48a370]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48a370]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48a370]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4142f0
pop ebx
cmp word [ebp - 4], bx
jne 0x4142b5
cmp esi, dword [ebp + 0xc]
jne 0x4142b5
mov word [esi], bx
jmp 0x4142ed
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414b89
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4142f0
push 0xd
jmp 0x4142e9
mov ecx, dword [ebx*4 + 0x48a370]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4142e7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4142f0
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x54c31bf6
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x31476581
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x50ed00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x50ed22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ed29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ed18
mov eax, 1
add ebx, ebx
jne 0x50ed3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ed30
jne 0x50ed4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ed30
xor ecx, ecx
sub eax, 3
jb 0x50ed60
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50edd2
mov ebp, eax
add ebx, ebx
jne 0x50ed6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50ed78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ed9c
inc ecx
add ebx, ebx
jne 0x50ed88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50ed7d
jne 0x50ed99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ed7d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50edbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50edad
jmp 0x50ed1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50edbc
add edi, ecx
jmp 0x50ed1e
pop esi
mov edi, esi
mov ecx, 0x101
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50edda
cmp byte [edi], 1
jne 0x50edda
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 0x50eddf
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x50ee57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe514]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe58c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50ee0c
mov ecx, edi
jns 0x50ee3b
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 + 0xe590]
or eax, eax
je 0x50ee51
mov dword [ebx], eax
add ebx, 4
jmp 0x50ee29
call dword [esi + 0xe594]
popal
jmp 0x503280
Function at 0x401460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401479
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4014b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4014b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014a0
cmp esi, eax
jb 0x4014ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00406d81

Function at 0x401850
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x430da4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push 0
push ebx
call fcn.0041296f
add esp, 8
cmp eax, 0xffffffff
je 0x401894
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00411fe5
add esp, 0x20c
ret
push ebp
push edi
push 0x5c
push ebx
call fcn.004128c0
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
add esp, 8
test edi, edi
je 0x4018ee
push esi
mov edi, edi
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00412409
add esp, 0x10
xor ecx, ecx
push ecx
lea edx, [esp + 0x14]
push edx
mov word [esp + esi*2 + 0x18], cx
call ebp
push 0x5c
add edi, 2
push edi
call fcn.004128c0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4018b0
pop esi
push 0
push ebx
call fcn.0041296f
add esp, 8
cmp eax, 0xffffffff
je 0x401918
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00411fe5
add esp, 0x20c
ret
push 0
push ebx
call ebp
mov ecx, dword [esp + 0x214]
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.00411fe5
add esp, 0x20c
ret

Function at 0x401bc0
Capabilities:
Set registry value

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREQuickSYS
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401c09
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov edx, dword [eax - 0xc]
inc edx
push edx
push eax
mov eax, dword [esp + 8]
push 1
push 0
push str.LastProjectLocation
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ecx
ret
Function at 0x402060
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x425b09
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x430da4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0
call fcn.0040c805
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4020ae
push 0x80004005
call fcn.004013e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREQuickSYS
push 0x80000001
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x402175
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x10], 0x104
mov dword [esp + 0x14], 1
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x402122
push 0x104
mov ecx, esi
call fcn.00401b00
mov eax, dword [esi]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.LastProjectLocation
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402158
push ecx
push eax
call fcn.004128a1
add esp, 8
test eax, eax
jl 0x402188
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x402188
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
push 0x80070057
call fcn.004013e0
int3
Function at 0x4027c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x425b79
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x430da4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
call fcn.0040c805
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402809
push 0x80004005
call fcn.004013e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], 1
call fcn.0040d343
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 8]
push 0x17
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
call fcn.0040d343
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
call fcn.0040d343
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea edx, [edi + 1]
sub eax, edx
or eax, ecx
jge 0x40288d
push edx
mov ecx, esi
call fcn.00401da0
mov ebx, dword [esi]
push edi
push ebp
push ebx
call fcn.00412990
mov byte [ebx + edi], 0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
add esp, 0xc
test eax, eax
je 0x4028b5
push ecx
push eax
call fcn.004121b0
add esp, 8
test eax, eax
jl 0x4028db
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4028db
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.004013e0
int3
Function at 0x40c340
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x411fe5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430da4]
jne 0x411fef
repz ret
jmp fcn.00417ccc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x412917
call fcn.00413b9b
mov dword [eax], esi
call fcn.00413b88
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00417fe8
add esp, 0x14
push 0x16
pop eax
jmp 0x41296c
test dword [ebp + 0xc], 0xfffffff9
jne 0x4128f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412944
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413bae
pop ecx
call fcn.00413b88
mov eax, dword [eax]
jmp 0x41296c
test al, 0x10
jne 0x41296a
test al, 1
je 0x41296a
test byte [ebp + 0xc], 2
je 0x41296a
call fcn.00413b9b
mov dword [eax], 5
call fcn.00413b88
mov dword [eax], 0xd
jmp 0x41293b
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41f310
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00416835
and dword [ebp - 4], 0
cmp dword [0x434c08], 0
mov ebx, eax
jne 0x41f3c1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41f472
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41f472
push eax
call fcn.004167c3
mov dword [esp], 0x42a7d8
push edi
mov dword [0x434c08], eax
call esi
push eax
call fcn.004167c3
mov dword [esp], 0x42a7c4
push edi
mov dword [0x434c0c], eax
call esi
push eax
call fcn.004167c3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434c10], eax
call esi
push eax
call fcn.004167c3
pop ecx
mov dword [0x434c18], eax
test eax, eax
je 0x41f3c1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004167c3
pop ecx
mov dword [0x434c14], eax
mov eax, dword [0x434c14]
cmp eax, ebx
je 0x41f419
cmp dword [0x434c18], ebx
je 0x41f419
push eax
call fcn.0041683e
push dword [0x434c18]
mov esi, eax
call fcn.0041683e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41f419
test edi, edi
je 0x41f419
call esi
test eax, eax
je 0x41f410
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41f410
test byte [ebp - 0xc], 1
jne 0x41f419
or dword [ebp + 0x10], 0x200000
jmp 0x41f452
mov eax, dword [0x434c0c]
cmp eax, ebx
je 0x41f452
push eax
call fcn.0041683e
pop ecx
test eax, eax
je 0x41f452
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41f452
mov eax, dword [0x434c10]
cmp eax, ebx
je 0x41f452
push eax
call fcn.0041683e
pop ecx
test eax, eax
je 0x41f452
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434c08]
call fcn.0041683e
pop ecx
test eax, eax
je 0x41f472
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f474
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x11da1531
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7acb7343
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4b30285
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4a837ba7
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219