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

Disassembly:
sub esp, 0x74
mov eax, dword [0x45500c]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
push esi
mov esi, dword [esp + 0x88]
push edi
mov edi, edx
mov edx, ecx
mov dword [esp + 0x14], edx
test esi, esi
je 0x41ab82
mov ecx, esi
mov ebp, esi
nop dword [eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
or eax, 0xffffffff
cmp esi, 0xffffffff
cmovb eax, ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x41ac71
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41ab97
mov edx, dword [esp + 0x14]
mov esi, ebp
add ebx, eax
sub esi, eax
mov ecx, esi
mov ebp, esi
jne 0x41ab40
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00424cac
add esp, 0x74
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str.Reached_the_end_of_the_file
push eax
mov edx, 0x26
mov dword [esp + 0x20], 0x1b
lea ecx, [esp + 0x64]
call fcn.0041a940
mov esi, eax
add esp, 4
cmp edi, esi
je 0x41ac2c
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x41abfc
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41abf2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ad12
mov eax, edx
push ecx
push eax
call fcn.00424cbf
add esp, 8
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esp + 0x74]
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
cmp ecx, 8
jb 0x41acfd
mov edx, dword [esp + 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41acf3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ad12
jmp 0x41acf3
sub esp, 8
lea ecx, [esp + 0x68]
mov eax, esp
mov dword [eax], str.ReadFile:
mov dword [eax + 4], 0xa
call fcn.004010f0
mov esi, eax
add esp, 8
cmp edi, esi
je 0x41acbf
mov ecx, edi
call fcn.00401090
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esp + 0x74]
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
cmp ecx, 8
jb 0x41acfd
mov edx, dword [esp + 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41acf3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ad17
push ecx
push edx
call fcn.00424cbf
add esp, 8
mov ecx, dword [esp + 0x7c]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424cac
add esp, 0x74
ret
call fcn.0042821f
call fcn.0042821f
int3
Function at 0x41af30
Capabilities:
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d07d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x45500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x128], str..new
mov dword [ebp - 0x124], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ecx
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x90]
call fcn.00404870
mov eax, dword [ebx + 8]
lea edx, [ebp - 0xd8]
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x170], 0x44bc3c
push eax
lea eax, [ebp - 0x170]
mov dword [ebp - 0x16c], 1
push eax
call fcn.0040cc20
add esp, 0x14
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push dword [ebx + 0x14]
cmp dword [ebp - 0x18], 8
mov ecx, edi
push dword [ebx + 0x10]
cmovae eax, dword [ebp - 0x2c]
push dword [0x446958]
push dword [0x446954]
push dword [ebp - 0x1c]
push eax
call fcn.0041ae00
add esp, 0x18
test al, al
je 0x41b0b3
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 3
push dword [ebx + 8]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, 1
je 0x41b0e8
sub esp, 8
lea ecx, [ebp - 0x48]
mov eax, esp
mov dword [eax], 0x444c00
mov dword [eax + 4], 0
call fcn.004010f0
mov esi, eax
add esp, 8
cmp edi, esi
je 0x41b093
mov ecx, edi
call fcn.00401090
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x48]
mov dword [edi + 0x18], eax
call fcn.00401090
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0xd9], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x41b0fb
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41b0f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b11f
jmp 0x41b0f1
mov byte [ebp - 0xd9], 1
jmp 0x41b0ba
push ecx
push edx
call fcn.00424cbf
add esp, 8
mov al, byte [ebp - 0xd9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424cac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042821f
int3
Function at 0x41f0e0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d40e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x45500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push ecx
mov dword [ebp - 4], eax
mov edi, dword [ebx + 8]
push 0x100
push dword [ebp - 0x20]
mov dword [ebp - 0x18], 1
push 0x100
mov dword [ebp - 0x1c], edi
call fcn.004052d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41f17e
mov eax, dword [esi]
push 0x100
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x41f1af
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41f19b
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41f1e2
push ecx
push edi
mov ecx, esi
call fcn.00403f80
mov eax, esi
cmp edi, 0x100
jb 0x41f1e4
cmp dword [esi + 0x14], 8
jb 0x41f1ca
mov eax, dword [esi]
push edi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, edi
jae 0x41f1e2
push ecx
push eax
mov ecx, esi
call fcn.00403f80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424cac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x42427b
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.00424257
pop esi
leave
ret 8

Function at 0x4259f5
Capabilities:
Parse pe header

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

Function at 0x431d80
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441e84
push 0x441e7c
push str.FlsAlloc
push 0x1f
call fcn.00431cbb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431db4
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e274]
call esi
jmp 0x431dba
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431dfe
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441e94
push 0x441e8c
push str.FlsGetValue
push 0x21
call fcn.00431cbb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431e35
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e274]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x431e3d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441e9c
push 0x441e94
push str.FlsSetValue
push 0x22
call fcn.00431cbb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431e77
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e274]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x432716
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45500c]
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 0x432761
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004328b1
test al, al
jne 0x43275b
sub edx, 2
cmp edx, edi
jne 0x432741
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x432783
lea eax, [edi + 2]
cmp edx, eax
je 0x432783
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00432662
add esp, 0x10
jmp 0x43287d
push esi
lea ecx, [ebp - 0x255]
call fcn.004328b1
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 0x4327c6
push dword [ebp - 0x25c]
jmp 0x432773
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 0x432803
cmp word [ebp - 0x226], 0
je 0x432824
cmp word [ebp - 0x226], ax
jne 0x432803
cmp word [ebp - 0x224], 0
je 0x432824
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00432662
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x432870
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4327dd
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x432858
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43287d
push 0x432492
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00438760
add esp, 0x10
jmp 0x43284d
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.00424cac
leave
ret
Function at 0x4361f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x456518]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x436231
cmp byte [ebx], 0xa
jne 0x436231
or byte [edi + eax + 0x28], 4
jmp 0x436236
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x436335
mov dl, byte [eax]
cmp dl, 0x1a
je 0x436318
inc eax
cmp dl, 0xd
je 0x436262
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x436288
cmp eax, ecx
jae 0x436296
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43624a
jmp 0x436335
push 0
lea eax, [ebp - 0x10]
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 0x436313
cmp dword [ebp - 0x10], 0
je 0x436313
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x456518]
test byte [eax + edi + 0x28], 0x48
je 0x4362ed
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4362d8
mov byte [esi], dl
jmp 0x4362e9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x456518]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x436335
cmp byte [ebp - 1], 0xa
jne 0x4362fc
cmp esi, ebx
jne 0x4362fc
mov byte [esi], 0xa
jmp 0x436334
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004386dc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x436335
mov byte [esi], 0xd
jmp 0x436334
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x456518]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x436332
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x436335
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43633e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x456518]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x436384
cmp word [ebx], dx
jne 0x436384
or byte [eax + edi + 0x28], 4
jmp 0x436389
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4364ec
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4364cc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4363ca
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x436400
cmp eax, edx
jae 0x43640e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4363a5
jmp 0x4364ec
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4364c7
cmp dword [ebp - 0x18], 0
je 0x4364c7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x456518]
test byte [eax + edi + 0x28], 0x48
je 0x43649d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x436461
mov word [esi], cx
jmp 0x436498
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x456518]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x456518]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x456518]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4364ec
pop eax
cmp word [ebp - 4], ax
jne 0x4364ad
cmp esi, ebx
jne 0x4364ad
mov word [esi], ax
jmp 0x4364e9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004386dc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4364ec
push 0xd
pop eax
jmp 0x4364a8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x456518]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4364e6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4364ec
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x439025
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00438fa1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x439194
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x439194
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x439149
jg 0x439081
test eax, eax
je 0x43913f
push 1
push 0x1000
call fcn.00431b5f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4390a4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439136
push 0x8000
push ebx
call fcn.0042ed0f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4390cd
jg 0x4390c8
cmp ecx, 0x1000
jb 0x4390cd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00435fd5
add esp, 0x10
cmp eax, 0xffffffff
je 0x439112
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 0x4390c8
jl 0x4390f9
test ecx, ecx
jne 0x4390ba
push dword [ebp - 0xc]
push ebx
call fcn.0042ed0f
push esi
call fcn.0042fe4a
add esp, 0xc
xor ebx, ebx
jmp 0x4391a2
cmp byte [edi + 0x24], 0
je 0x439129
cmp dword [edi + 0x20], 5
jne 0x439129
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x439134
mov ebx, dword [edi + 0x18]
jmp 0x439136
xor ebx, ebx
push esi
call fcn.0042fe4a
pop ecx
jmp 0x4391a2
test ecx, ecx
jg 0x43910b
jl 0x439149
test eax, eax
jae 0x43910b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004386dc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x439169
cmp byte [edi + 0x1c], 0
je 0x43910b
jmp 0x43919a
push ebx
call fcn.00433963
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43910b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4391a2
cmp byte [edi + 0x1c], 0
je 0x43919f
mov ebx, dword [edi + 0x18]
jmp 0x4391a2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004386dc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b0bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b0bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403a90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x403b63
mov dword [ebp + 0x28], edi
test eax, eax
je 0x403b30
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403b1a
mov edi, eax
add ecx, 0x10
dec edx
jne 0x403b12
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x403b33
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00404230
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x403b59
push eax
call fcn.004042c6
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.004042c6
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00404230
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x403baf
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.0040438d
jmp 0x403bb1
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x403be0
test eax, eax
je 0x403bdd
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.0040432a
push ebx
call fcn.004042c6
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.004036d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219