joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408380
Capabilities:
Create directory
Delete directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ffbb
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x450008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x85c], edx
mov esi, ecx
mov ecx, dword [0x5d22c0]
mov eax, 0x66666667
mov ebx, dword [0x5d22bc]
sub ecx, ebx
imul ecx
mov ecx, dword [0x5d22cc]
mov eax, 0x66666667
sub ecx, dword [0x5d22c8]
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [edi + ecx]
cmp esi, eax
jb 0x40842c
mov edx, str.Specified_Mode:
mov ecx, 0x451948
call fcn.0040e7b0
push esi
mov ecx, eax
call fcn.0040b230
mov edx, str._out_of_range
mov ecx, eax
call fcn.0040e7b0
push eax
call fcn.0040ea50
add esp, 4
xor al, al
jmp 0x408575
cmp esi, edi
jae 0x408438
lea eax, [esi + esi*4]
lea ebx, [ebx + eax*8]
jmp 0x40844e
sub esi, edi
cmp ecx, esi
jbe 0x408591
mov ecx, dword [0x5d22c8]
lea eax, [esi + esi*4]
lea ebx, [ecx + eax*8]
push ebx
lea ecx, [ebp - 0x858]
call fcn.0040b750
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
je 0x4084be
push eax
lea ecx, [ebp - 0x83c]
call fcn.00408260
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
sub esi, eax
mov edi, dword [ebp - 0x83c]
push esi
push eax
push edi
call fcn.0041f730
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebp - 0x838], eax
push ecx
mov ecx, dword [ebp - 0x85c]
lea edx, [ebp - 0x420]
mov dword [ebp - 4], 1
call fcn.004048d0
lea eax, [ebp - 0x628]
push eax
lea edx, [ebp - 0x830]
lea ecx, [ebp - 0x420]
call fcn.00404bd0
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x628]
add esp, 8
push eax
call esi
push ecx
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x830]
call fcn.00404c80
add esp, 4
lea eax, [ebp - 0x218]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x218]
push eax
call esi
push dword [ebp - 0x83c]
lea eax, [ebp - 0x420]
push 0x449f04
push eax
call dword [ebp - 0x840]
mov ebx, eax
add esp, 0xc
shr ebx, 0x1f
test bl, bl
je 0x408568
lea eax, [ebp - 0x628]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x858]
call fcn.004082f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b61b
mov esp, ebp
pop ebp
ret
call fcn.0040cbf0
int3
Function at 0x40a1c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40a1f2
jl 0x40a1e5
test ecx, ecx
jne 0x40a1f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40a2b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040ccf0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40a25e
jg 0x40a21d
test esi, esi
je 0x40a25e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40a235
mov eax, dword [esp + 0x10]
jl 0x40a22f
cmp eax, esi
jae 0x40a235
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0041f730
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40a27f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40a29b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x40a204
jl 0x40a29b
test ecx, ecx
jne 0x40a204
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40a2f0
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40a2f0
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0041f730
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40a359
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40a316
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40a344
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00425a58
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40a359
cmp edi, eax
ja 0x40a322
test edi, edi
je 0x40a359
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00425a58
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c1da
Capabilities:
Parse pe header

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

Function at 0x41c591
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041c56d
pop esi
leave
ret 8
Function at 0x425605
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043f440
mov eax, dword [0x450008]
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.004305e3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x425647
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4257a3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043f390
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 + 0x451f58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004337b7
mov ecx, dword [esi*4 + 0x451f58]
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 0x42579c
cmp eax, dword [edi + ecx + 0x24]
jne 0x42579c
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 0x42579c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004337b7
add esp, 0x14
test edx, edx
jl 0x42579c
jg 0x425712
test eax, eax
jb 0x42579c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42579c
jl 0x42572c
cmp dword [ebp - 0x1008], eax
ja 0x42579c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42574a
test ebx, ebx
je 0x425783
cmp ecx, edi
jae 0x425783
mov al, byte [ecx]
cmp al, 0xd
jne 0x425764
lea eax, [edi - 1]
cmp ecx, eax
jae 0x425770
cmp byte [ecx + 1], 0xa
jne 0x425770
inc ecx
jmp 0x425770
movzx eax, al
movsx eax, byte [eax + 0x4502e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42574a
cmp edx, ebx
jne 0x42574a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4257a1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b61b
leave
ret

Function at 0x42ffaf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x445ff0
push 0x445fe8
push str.FlsAlloc
push 0x1e
call fcn.0042fe1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42ffe3
push dword [ebp + 8]
mov ecx, esi
call dword [0x44217c]
call esi
jmp 0x42ffe9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43002e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x446000
push 0x445ff8
push str.FlsGetValue
push 0x20
call fcn.0042fe1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430065
push dword [ebp + 8]
mov ecx, esi
call dword [0x44217c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x433833
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 + 0x451f58]
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 0x433873
cmp byte [ebx], 0xa
jne 0x433873
or byte [eax + edi + 0x28], 4
jmp 0x433878
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x433976
mov al, byte [edx]
cmp al, 0x1a
je 0x433958
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4338a7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4338cc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4338d6
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 0x433889
jmp 0x433976
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 0x433953
cmp dword [ebp - 0xc], 0
je 0x433953
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x451f58]
test byte [eax + edi + 0x28], 0x48
je 0x43392d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x433918
mov byte [esi], dl
jmp 0x433929
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451f58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x433976
cmp byte [ebp - 1], 0xa
jne 0x43393c
cmp esi, ebx
jne 0x43393c
mov byte [esi], 0xa
jmp 0x433975
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004337d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x433976
mov byte [esi], 0xd
jmp 0x433975
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x451f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x433972
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x433976
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43397f
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 + 0x451f58]
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 0x4339c2
cmp word [esi], dx
jne 0x4339c2
or byte [edi + eax + 0x28], 4
jmp 0x4339c7
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 0x433b00
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 0x433ae0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x433a09
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x433a3f
cmp eax, edx
jae 0x433a4b
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 0x4339e1
jmp 0x433b00
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 0x433adc
cmp dword [ebp - 0x14], 0
je 0x433adc
mov eax, dword [ebx*4 + 0x451f58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x433ab4
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x433afa
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x451f58]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x451f58]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x451f58]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x433afd
pop ebx
cmp word [ebp - 4], bx
jne 0x433ac5
cmp esi, dword [ebp + 0xc]
jne 0x433ac5
mov word [esi], bx
jmp 0x433afd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004337d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x433b00
push 0xd
jmp 0x433af9
mov ecx, dword [ebx*4 + 0x451f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x433af7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x433b00
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 0x4344f7
Capabilities:
Read file on windows

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

Function at 0x434502
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434321
Function at 0x435caf
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 0x435d4c
push ebx
push esi
call fcn.00435c78
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.00435bc1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x435cf9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x435d4b
push edi
push eax
call fcn.0042fad0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x435d19
call fcn.0042fa96
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x435d4a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00435bc1
add esp, 0x20
test eax, eax
jne 0x435d38
push edi
call fcn.0042fa96
jmp 0x435d40
push ebx
call fcn.0042fa96
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 0x43dc75
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043dbf1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43dded
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43dded
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43dd9c
jg 0x43dcce
test eax, eax
je 0x43dd92
push 1
push 0x1000
call fcn.0042fb1e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43dcf4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43dd89
push 0x8000
push ebx
call fcn.0042c08f
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43dd20
jg 0x43dd1b
cmp ecx, 0x1000
jb 0x43dd20
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004328d8
add esp, 0x10
cmp eax, 0xffffffff
je 0x43dd65
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43dd1b
jl 0x43dd4c
test ecx, ecx
jne 0x43dd0d
push dword [ebp - 0xc]
push ebx
call fcn.0042c08f
push esi
call fcn.0042fa96
add esp, 0xc
xor edi, edi
jmp 0x43ddfe
cmp byte [edi + 0x24], 0
je 0x43dd7c
cmp dword [edi + 0x20], 5
jne 0x43dd7c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43dd87
mov edi, dword [edi + 0x18]
jmp 0x43dd89
xor edi, edi
push esi
call fcn.0042fa96
pop ecx
jmp 0x43ddfe
test ecx, ecx
jg 0x43dd5e
jl 0x43dd9c
test eax, eax
jae 0x43dd5e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004337d5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43ddbf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43dd5e
jmp 0x43ddf6
push ebx
call fcn.00436a24
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43dd5e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43ddfe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43ddfb
mov edi, dword [edi + 0x18]
jmp 0x43ddfe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004337d5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43f2b0
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
or ebp, 0xffffffff
jmp 0x4391c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4391c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4391b8
mov eax, 1
add ebx, ebx
jne 0x4391db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4391d0
jne 0x4391ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4391d0
xor ecx, ecx
sub eax, 3
jb 0x439200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x439272
mov ebp, eax
add ebx, ebx
jne 0x43920b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x439218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43923c
inc ecx
add ebx, ebx
jne 0x439228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43921d
jne 0x439239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43921d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43925c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43924d
jmp 0x4391be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43925c
add edi, ecx
jmp 0x4391be
pop esi
mov edi, esi
mov ecx, 0x49c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43927a
cmp byte [edi], 0xa
jne 0x43927a
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 0x43927f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x4392ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a128]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3a1c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4392ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3a1cc]
or eax, eax
je 0x4392e8
mov dword [ebx], eax
add ebx, 4
jmp 0x4392c9
call dword [esi + 0x3a1d0]
popal
jmp 0x4075a7
Function at 0x408e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x408eb2
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x408eb2
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x408eb0
mov ebx, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, ebx
mov ebx, edx
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call edi
cmp eax, 3
je 0x408ec6
cmp eax, 1
je 0x408e8c
test eax, eax
jne 0x408eb0
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
sub edi, ebx
je 0x408ea7
push dword [esi + 0x4c]
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x408eb0
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x408eb2
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407d20
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x3d], 0
mov bl, 1
jmp 0x408eb2
Function at 0x4063a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81040b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40465c
call fcn.00407001
push 4
mov dword [esp + 0x18], 0
call fcn.00407dc0
mov edi, eax
add esp, 4
test edi, edi
je 0x406414
push ebx
call fcn.00406ed9
mov dword [edi], eax
call fcn.00406c98
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406fc2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406408
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406fea
pop ebx
jmp 0x406416
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408831
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813658]
jne 0x40883b
repz ret
jmp fcn.0040d28c