joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x45e09f
call fcn.0040fc2c
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x40907e
push eax
call fcn.0043b0c7
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0040765a
add esp, 0x10
test eax, eax
js 0x409078
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x408f04
push edi
call fcn.0040a3a4
pop ecx
test al, al
je 0x408f04
mov eax, edi
call fcn.004101e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x408f16
push edi
lea ecx, [ebp - 0x424]
call fcn.00407fe4
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.004082ac
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x409078
push 0x60
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x408f70
push 2
push ebx
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x408f70
call fcn.00408263
mov ebx, eax
jmp 0x40904c
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x408f97
call fcn.00408263
jmp 0x40903f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x408f8d
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x408fca
mov ebx, 0x8007000e
jmp 0x409041
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00408040
jmp 0x408ff0
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x408fc3
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.0040a422
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.00408d21
mov ebx, eax
test edi, edi
je 0x40904c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x409070
lea ecx, [ebp - 0x418]
call fcn.0040859e
jmp 0x409070
push esi
mov esi, dword [esi]
call fcn.0041c464
pop ecx
test esi, esi
jne 0x409067
mov eax, ebx
jmp 0x4090a7
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x40909e
lea ecx, [ebp - 0x418]
call fcn.0040859e
jmp 0x40909e
push esi
mov esi, dword [esi]
call fcn.0041c464
pop ecx
test esi, esi
jne 0x409095
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.0040fb7e
ret 0x10
Function at 0x409b0c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], ecx
jne 0x409b1e
push 0xd
pop eax
jmp 0x409b4e
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
push ebx
call fcn.0041bd80
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x409b25
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
leave
ret 8

Function at 0x43a316
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040fb30
mov eax, dword [0x4791b4]
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.00442525
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43a358
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43a4b4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045b130
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 + 0x47b268]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00445343
mov ecx, dword [esi*4 + 0x47b268]
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 0x43a4ad
cmp eax, dword [edi + ecx + 0x24]
jne 0x43a4ad
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 0x43a4ad
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00445343
add esp, 0x14
test edx, edx
jl 0x43a4ad
jg 0x43a423
test eax, eax
jb 0x43a4ad
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43a4ad
jl 0x43a43d
cmp dword [ebp - 0x1008], eax
ja 0x43a4ad
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43a45b
test ebx, ebx
je 0x43a494
cmp ecx, edi
jae 0x43a494
mov al, byte [ecx]
cmp al, 0xd
jne 0x43a475
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43a481
cmp byte [ecx + 1], 0xa
jne 0x43a481
inc ecx
jmp 0x43a481
movzx eax, al
movsx eax, byte [eax + 0x4793e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43a45b
cmp edx, ebx
jne 0x43a45b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43a4b2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040fb14
leave
ret
Function at 0x4453bf
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 + 0x47b268]
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 0x4453ff
cmp byte [ebx], 0xa
jne 0x4453ff
or byte [eax + edi + 0x28], 4
jmp 0x445404
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x445502
mov al, byte [edx]
cmp al, 0x1a
je 0x4454e4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x445433
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x445458
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x445462
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 0x445415
jmp 0x445502
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 0x4454df
cmp dword [ebp - 0xc], 0
je 0x4454df
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47b268]
test byte [eax + edi + 0x28], 0x48
je 0x4454b9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4454a4
mov byte [esi], dl
jmp 0x4454b5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47b268]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x445502
cmp byte [ebp - 1], 0xa
jne 0x4454c8
cmp esi, ebx
jne 0x4454c8
mov byte [esi], 0xa
jmp 0x445501
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00445361
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x445502
mov byte [esi], 0xd
jmp 0x445501
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47b268]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4454fe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x445502
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44550b
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 + 0x47b268]
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 0x44554e
cmp word [esi], dx
jne 0x44554e
or byte [edi + eax + 0x28], 4
jmp 0x445553
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 0x44568c
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 0x44566c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x445595
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4455cb
cmp eax, edx
jae 0x4455d7
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 0x44556d
jmp 0x44568c
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 0x445668
cmp dword [ebp - 0x14], 0
je 0x445668
mov eax, dword [ebx*4 + 0x47b268]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x445640
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x445686
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47b268]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x47b268]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47b268]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x445689
pop ebx
cmp word [ebp - 4], bx
jne 0x445651
cmp esi, dword [ebp + 0xc]
jne 0x445651
mov word [esi], bx
jmp 0x445689
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00445361
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44568c
push 0xd
jmp 0x445685
mov ecx, dword [ebx*4 + 0x47b268]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x445683
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44568c
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 0x44676e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4698a4
push 0x46989c
push str.FlsAlloc
push 0x1e
call fcn.0044643e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4467a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f6f8]
call esi
jmp 0x4467a8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4467ec
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4698b4
push 0x4698ac
push str.FlsGetValue
push 0x20
call fcn.0044643e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x446823
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f6f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x448c2d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4791b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x448c78
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00449043
test al, al
jne 0x448c72
sub edx, 2
cmp edx, edi
jne 0x448c58
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x448c9a
lea eax, [edi + 2]
cmp edx, eax
je 0x448c9a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004488f4
add esp, 0x10
jmp 0x448d94
push esi
lea ecx, [ebp - 0x255]
call fcn.00449043
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x448cdd
push dword [ebp - 0x25c]
jmp 0x448c8a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x448d1a
cmp word [ebp - 0x226], 0
je 0x448d3b
cmp word [ebp - 0x226], ax
jne 0x448d1a
cmp word [ebp - 0x224], 0
je 0x448d3b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004488f4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x448d87
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x448cf4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x448d6f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x448d94
push 0x448344
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00456620
add esp, 0x10
jmp 0x448d64
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fb14
leave
ret
Function at 0x44a723
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 0x44a7c0
push ebx
push esi
call fcn.0044a6df
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.0044a5d1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44a76d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44a7bf
push edi
push eax
call fcn.00440712
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44a78d
call fcn.004406d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44a7be
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044a5d1
add esp, 0x20
test eax, eax
jne 0x44a7ac
push edi
call fcn.004406d8
jmp 0x44a7b4
push ebx
call fcn.004406d8
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 0x44a7c3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44a7d4
pop esi
ret
push ebx
push edi
push esi
call fcn.0044a6df
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00440712
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44a7fc
push ebx
push esi
push edi
call fcn.00411b40
add esp, 0xc
push 0
call fcn.004406d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x44b0dd
Capabilities:
Set environment variable

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

Function at 0x44bfa1
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044be75
Function at 0x4594cd
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.004592ed
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x459645
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x459645
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4595f4
jg 0x459526
test eax, eax
je 0x4595ea
push 1
push 0x1000
call fcn.0044123b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45954c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4595e1
push 0x8000
push ebx
call fcn.0043e48d
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 0x459578
jg 0x459573
cmp ecx, 0x1000
jb 0x459578
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00444464
add esp, 0x10
cmp eax, 0xffffffff
je 0x4595bd
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 0x459573
jl 0x4595a4
test ecx, ecx
jne 0x459565
push dword [ebp - 0xc]
push ebx
call fcn.0043e48d
push esi
call fcn.004406d8
add esp, 0xc
xor edi, edi
jmp 0x459656
cmp byte [edi + 0x24], 0
je 0x4595d4
cmp dword [edi + 0x20], 5
jne 0x4595d4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4595df
mov edi, dword [edi + 0x18]
jmp 0x4595e1
xor edi, edi
push esi
call fcn.004406d8
pop ecx
jmp 0x459656
test ecx, ecx
jg 0x4595b6
jl 0x4595f4
test eax, eax
jae 0x4595b6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00445361
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x459617
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4595b6
jmp 0x45964e
push ebx
call fcn.0044c3d3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4595b6
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 0x459656
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x459653
mov edi, dword [edi + 0x18]
jmp 0x459656
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00445361
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e1b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x40a350
push edi
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x405e35
mov esi, edi
movzx eax, word [esi]
cmp eax, 0x5c
je 0x405e47
cmp eax, 0x2f
je 0x405e47
test ax, ax
jne 0x405e73
mov ebp, eax
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405e67
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x405e69
test al, 0x10
je 0x405e7a
test bp, bp
je 0x405e78
mov word [esi], bp
add esi, 2
jmp 0x405e35
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0xfc2780
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11e000]
push edi
or ebp, 0xffffffff
jmp 0xfc27a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xfc27a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfc2798
mov eax, 1
add ebx, ebx
jne 0xfc27bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xfc27cc
jne 0xfc27eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfc27eb
dec eax
add ebx, ebx
jne 0xfc27d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xfc27b0
add ebx, ebx
jne 0xfc27e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xfc283d
xor ecx, ecx
sub eax, 3
jb 0xfc2803
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xfc2872
sar eax, 1
mov ebp, eax
jmp 0xfc280e
add ebx, ebx
jne 0xfc280e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfc27dc
inc ecx
add ebx, ebx
jne 0xfc281c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfc27dc
add ebx, ebx
jne 0xfc2829
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xfc281e
jne 0xfc283a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xfc281e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xfc285c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xfc284e
jmp 0xfc279e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xfc285c
add edi, ecx
jmp 0xfc279e
pop esi
mov edi, esi
mov ecx, 0x62f7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xfc287a
cmp byte [edi], 0x1e
jne 0xfc287a
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 0xfc287f
lea edi, [esi + 0xbbf000]
mov eax, dword [edi]
or eax, eax
je 0xfc28f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc08b74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc08ca0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xfc28ac
mov ecx, edi
jns 0xfc28db
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 + 0xc08ca4]
or eax, eax
je 0xfc28f1
mov dword [ebx], eax
add ebx, 4
jmp 0xfc28c9
call dword [esi + 0xc08cb4]
mov ebp, dword [esi + 0xc08ca8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0xfc292b
sub esp, 0xffffff80
jmp 0x4e5663