joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7813480f
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ebx, ebx
push ebx
push ebx
mov ebp, str.__MSVCRT_HEAP_SELECT
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x78134961
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x7813495f
push esi
push ebx
push ebp
call edi
test eax, eax
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
jbe 0x78134953
cmp eax, esi
ja 0x78134953
cmp byte [ebx], 0
mov ecx, ebx
je 0x78134889
mov al, byte [ecx]
cmp al, 0x61
jl 0x78134883
cmp al, 0x7a
jg 0x78134883
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x78134875
push 0x16
push ebx
push str.__GLOBAL_HEAP_SELECTED
call fcn.7815136c
add esp, 0xc
test eax, eax
jne 0x781348a1
mov edi, ebx
jmp 0x781348fc
push 0x105
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x78134953
push 3
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x781348e5
mov al, byte [ecx]
cmp al, 0x61
jl 0x781348df
cmp al, 0x7a
jg 0x781348df
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x781348d1
push esi
push ebx
call sym.MSVCR80.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
test edi, edi
je 0x78134953
push 0x2c
push edi
call sym.MSVCR80.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x78134953
inc eax
cmp byte [eax], 0x20
je 0x7813490e
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x78134953
cmp cl, 0x39
jg 0x78134934
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x7813491d
cmp esi, 2
je 0x78134943
cmp esi, 3
je 0x78134943
cmp esi, 1
jne 0x78134953
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov eax, esi
jmp 0x781349c1
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
je 0x7813497d
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x78134999
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [esp + 0x10], 2
jne 0x781349ac
cmp dword [esp + 0x14], 5
jb 0x781349ac
xor eax, eax
inc eax
jmp 0x781349c1
lea eax, [esp + 0x18]
push eax
call fcn.781347e2
cmp byte [esp + 0x1c], 6
pop ecx
sbb eax, eax
add eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x78138894
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.MSVCR80.dll__invalid_parameter

Function at 0x78139847
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x781c19c8]
jne 0x78139851
repz ret
jmp sym.MSVCR80.dll___report_gsfailure
Function at 0x7815136c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x7815137b
pop dword [ebp - 0x10]
mov eax, 0x5b62a183
sub eax, 0xe34d8e08
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3de53
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x324df064
sub ecx, 0x324db9f6
xor edx, edx
add edx, eax
mov ebx, 0x1aee873c
add ebx, 0x5d2e28c4
add ebx, dword [ebp - 0x10]
mov edi, 0xeb4e6d40
sub dword [ebp - 0xc], 0xac93edf4
mov esi, dword [ebx]
mov dword [ebp - 0xc], 0xf518bc46
xor esi, edi
xor dword [ebp - 8], 0xcd43d4b3
mov dword [edx], esi
add dword [ebp - 4], 0xdb512c3c
add edx, 4
add ebx, 0x157eaf49
add ebx, 0xea8150bb
loop 0x781513d1
add eax, 0xb06c2b3
sub eax, 0xb05f628
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x13758567
sub ecx, 0x9b628567
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154759
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7815136c
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78154735
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154788
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x781547af
test al, 1
je 0x781547af
test byte [esp + 0xc], 2
je 0x781547af
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x7815477f
xor eax, eax
pop esi
ret

Function at 0x78154a51
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154a7e
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7815136c
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154a9c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78154a79
test byte [esp + 0xc], 0x80
je 0x78154aa8
and eax, 0xfffffffe
jmp 0x78154aab
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78154a8d
xor eax, eax
pop esi
ret
Function at 0x78155c9d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155cca
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7815136c
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78155ca6
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155cf9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x78155d20
test al, 1
je 0x78155d20
test byte [esp + 0xc], 2
je 0x78155d20
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x78155cf0
xor eax, eax
pop esi
ret

Function at 0x78155e6a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155e97
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.7815136c
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155eb5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78155e92
test byte [esp + 0xc], 0x80
je 0x78155ec1
and eax, 0xfffffffe
jmp 0x78155ec4
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78155ea6
xor eax, eax
pop esi
ret
Function at 0x402a95
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x404698
call fcn.004029c0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [0x404038]
call edi
cmp word [eax], 0x5a4d
jne 0x402ad5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402ad5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402aed
cmp eax, 0x20b
je 0x402ada
mov dword [ebp - 0x1c], ebx
jmp 0x402b01
cmp dword [ecx + 0x84], 0xe
jbe 0x402ad5
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x402afb
cmp dword [ecx + 0x74], 0xe
jbe 0x402ad5
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [0x4040c4]
pop ecx
or dword [0x40636c], 0xffffffff
or dword [0x406370], 0xffffffff
call dword [0x4040c0]
mov ecx, dword [0x406328]
mov dword [eax], ecx
call dword [0x4040bc]
mov ecx, dword [0x406324]
mov dword [eax], ecx
mov eax, dword [0x4040b8]
mov eax, dword [eax]
mov dword [0x406368], eax
call fcn.00402d82
call fcn.00402e22
cmp dword [0x4060e0], ebx
jne 0x402b61
push fcn.00402e22
call dword [0x404150]
pop ecx
call fcn.00402e10
push 0x406014
push 0x406010
call fcn.00402e0a
push 0x402dc6
call fcn.00402a83
mov eax, dword [0x406320]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40631c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [0x4040ac]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x402bb5
push 8
call fcn.00402d7c
pop ecx
push 0x40600c
push section..data
call fcn.00402e0a
pop ecx
pop ecx
mov eax, dword [0x4040a4]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x402c33
cmp al, bl
je 0x402bdf
cmp dword [ebp - 0x20], ebx
jne 0x402c33
mov al, byte [esi]
cmp al, bl
je 0x402bef
cmp al, 0x20
ja 0x402bef
inc esi
mov dword [ebp - 0x24], esi
jmp 0x402bdf
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [0x404028]
mul bl
pop ds
bound esi, qword [esi]
pop ds
imul ecx, dword [ebx], 0xf1bcfefb
test eax, 0x577e8679
in al, dx
rcl byte [esi + edi*8 - 0x6fc2957]
mov ch, 0x18
das
inc eax
invalid
xor esi, dword [ebx - 0x31cd45b8]
invalid
Function at 0x4192f8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419337
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419337
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419337
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x419337
cmp dword [ecx + 0x74], 0xe
jbe 0x419337
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x420511
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6370c8
push 0x6370c0
push str.FlsAlloc
push 0x1e
call fcn.004203d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420545
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a138]
call esi
jmp 0x42054b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42058f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6370d8
push 0x6370d0
push str.FlsGetValue
push 0x20
call fcn.004203d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4205c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42261b
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 0x4226b8
push ebx
push esi
call fcn.004225e4
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.0042252d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422665
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4226b7
push edi
push eax
call fcn.004201d5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422685
call fcn.0041e47b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4226b6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042252d
add esp, 0x20
test eax, eax
jne 0x4226a4
push edi
call fcn.0041e47b
jmp 0x4226ac
push ebx
call fcn.0041e47b
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 0x4253d2
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 + 0x63d158]
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 0x425412
cmp byte [ebx], 0xa
jne 0x425412
or byte [eax + edi + 0x28], 4
jmp 0x425417
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x425515
mov al, byte [edx]
cmp al, 0x1a
je 0x4254f7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x425446
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42546b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x425475
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 0x425428
jmp 0x425515
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 0x4254f2
cmp dword [ebp - 0xc], 0
je 0x4254f2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x63d158]
test byte [eax + edi + 0x28], 0x48
je 0x4254cc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4254b7
mov byte [esi], dl
jmp 0x4254c8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x63d158]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425515
cmp byte [ebp - 1], 0xa
jne 0x4254db
cmp esi, ebx
jne 0x4254db
mov byte [esi], 0xa
jmp 0x425514
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004251cb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425515
mov byte [esi], 0xd
jmp 0x425514
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x63d158]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425511
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425515
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42551e
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 + 0x63d158]
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 0x425561
cmp word [esi], dx
jne 0x425561
or byte [edi + eax + 0x28], 4
jmp 0x425566
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 0x4256b9
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 0x425699
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4255a8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4255de
cmp eax, edx
jae 0x4255ea
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 0x425580
jmp 0x4256b9
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 0x425695
cmp dword [ebp - 0x14], 0
je 0x425695
mov eax, dword [ebx*4 + 0x63d158]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42566d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x425636
mov word [esi], cx
jmp 0x425669
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x63d158]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x63d158]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x63d158]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4256b9
pop ebx
cmp word [ebp - 4], bx
jne 0x42567e
cmp esi, dword [ebp + 0xc]
jne 0x42567e
mov word [esi], bx
jmp 0x4256b6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004251cb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4256b9
push 0xd
jmp 0x4256b2
mov ecx, dword [ebx*4 + 0x63d158]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4256b0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4256b9
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 0x426ff5
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.00426f71
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42716d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42716d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42711c
jg 0x42704e
test eax, eax
je 0x427112
push 1
push 0x1000
call fcn.004213b7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x427074
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x427109
push 0x8000
push ebx
call fcn.0041d4ba
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 0x4270a0
jg 0x42709b
cmp ecx, 0x1000
jb 0x4270a0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041fc58
add esp, 0x10
cmp eax, 0xffffffff
je 0x4270e5
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 0x42709b
jl 0x4270cc
test ecx, ecx
jne 0x42708d
push dword [ebp - 0xc]
push ebx
call fcn.0041d4ba
push esi
call fcn.0041e47b
add esp, 0xc
xor edi, edi
jmp 0x42717e
cmp byte [edi + 0x24], 0
je 0x4270fc
cmp dword [edi + 0x20], 5
jne 0x4270fc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x427107
mov edi, dword [edi + 0x18]
jmp 0x427109
xor edi, edi
push esi
call fcn.0041e47b
pop ecx
jmp 0x42717e
test ecx, ecx
jg 0x4270de
jl 0x42711c
test eax, eax
jae 0x4270de
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004251cb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42713f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4270de
jmp 0x427176
push ebx
call fcn.00422ede
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4270de
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 0x42717e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42717b
mov edi, dword [edi + 0x18]
jmp 0x42717e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004251cb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x429450
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7d000]
lea eax, [edi + 0xcf740]
push dword [eax]
mov dword [eax], 0xc80b9096
push eax
push edi
jmp 0x5f981a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5f9821
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f9810
mov eax, 1
add ebx, ebx
jne 0x5f9833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5f9844
jne 0x5f9863
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f9863
dec eax
add ebx, ebx
jne 0x5f9850
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5f9828
add ebx, ebx
jne 0x5f985f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5f98b5
xor ecx, ecx
sub eax, 3
jb 0x5f987b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5f98ea
sar eax, 1
mov ebp, eax
jmp 0x5f9886
add ebx, ebx
jne 0x5f9886
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f9854
inc ecx
add ebx, ebx
jne 0x5f9894
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f9854
add ebx, ebx
jne 0x5f98a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5f9896
jne 0x5f98b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5f9896
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5f98d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5f98c6
jmp 0x5f9816
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5f98d4
add edi, ecx
jmp 0x5f9816
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5f98f6
cmp byte [edi], 0x11
jne 0x5f98f6
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 0x5f98fb
lea edi, [esi + 0x1e0000]
mov eax, dword [edi]
or eax, eax
je 0x5f9973
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f9ed0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1fa074]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5f9928
mov ecx, edi
jns 0x5f9957
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 + 0x1fa07c]
or eax, eax
je 0x5f996d
mov dword [ebx], eax
add ebx, 4
jmp 0x5f9945
call dword [esi + 0x1fa078]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5f99a4
cmp al, 0xef
ja 0x5f9997
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5f9979
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5f9986
mov ebp, dword [esi + 0x1fa080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5f99d8
sub esp, 0xffffff80
jmp 0x420577