joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ddd70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
push edi
mov byte [esp + 0x10], al
lea eax, [esp + 0x40]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x50], 0
call fcn.004119a0
mov ebx, eax
mov dword [esp + 0x50], 1
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x28], ebx
push eax
push ebp
push esi
call fcn.004119a0
mov edi, eax
mov dword [esp + 0x60], 2
push 1
lea eax, [esp + 0x64]
mov dword [esp + 0x3c], edi
push eax
push ebp
push esi
call fcn.004119a0
push ebx
mov ebx, dword [esp + 0x68]
mov esi, eax
push 0x9a
push ebx
mov dword [esp + 0x58], esi
call fcn.0041cd60
push edi
push 0x9a
push ebx
mov dword [esp + 0x68], eax
call fcn.0041cd60
add esp, 0x48
mov dword [esp + 0x24], eax
push esi
push 0x9a
push ebx
call fcn.0041cd60
add esp, 0xc
mov dword [esp + 0x28], eax
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x2c], 0
je 0x4ddea2
push 1
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 3
push eax
push ebp
push ebx
call fcn.004119a0
movsd xmm0, qword [0x870080]
mov edi, eax
add esp, 0x10
movzx esi, byte [edi + 0x11]
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.00407920
push esi
push 1
push dword [ebx + 0xc]
mov ebp, eax
mov dword [esp + 0x58], edx
call fcn.004097b0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4dde8a
mov eax, dword [esp + 0x40]
push esi
mov dword [esi + 0x30], ebp
push ebx
mov dword [esi + 0x34], eax
call fcn.0041d130
add esp, 8
add esi, 0x18
push esi
push edi
push 0xe1
push ebx
call fcn.0041cdb0
mov dword [esp + 0x3c], eax
add esp, 0x10
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push eax
push edi
push 0xd0
push ebx
call fcn.0041cdb0
push dword [esp + 0x34]
mov esi, eax
push edi
push 0xd0
push ebx
call fcn.0041cdb0
push esi
push eax
push 0x10d
push ebx
call fcn.0041cdb0
push eax
push ebx
call fcn.0041d500
mov esi, eax
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.004dcda0
add esp, 0x40
mov dword [esp + 0x40], eax
push esi
push ebx
call fcn.0041d4a0
push dword [esp + 0x30]
mov ebp, eax
push dword [esp + 0x30]
push 0xd0
push ebx
call fcn.0041cdb0
push edi
push dword [esp + 0x40]
mov esi, eax
push 0xd0
push ebx
call fcn.0041cdb0
push esi
push eax
push 0x10d
push ebx
call fcn.0041cdb0
push eax
push ebx
call fcn.0041d500
add esp, 0x40
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004dd0e0
push esi
mov esi, dword [esp + 0x40]
mov ebx, eax
push esi
call fcn.0041d4a0
mov edi, eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004dd420
push edi
mov edi, dword [esp + 0x50]
mov esi, eax
push edi
call fcn.0041d3e0
push esi
push ebx
push edi
call fcn.0041d200
push ebp
push edi
mov esi, eax
call fcn.0041d3e0
push esi
push dword [esp + 0x78]
push edi
call fcn.0041d200
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4e6cc0
Capabilities:
Parse pe header

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

Function at 0x4f392e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x88ab60]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f3970
cmp byte [ebx], 0xa
jne 0x4f3970
or byte [edi + eax + 0x28], 4
jmp 0x4f3975
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4f3a78
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4f3a53
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4f39a4
mov eax, dword [ebp - 8]
jmp 0x4f39c4
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4f39e0
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4f39be
add eax, 2
mov cl, 0xa
jmp 0x4f39c1
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4f3986
jmp 0x4f3a78
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 0x4f3a4e
cmp dword [ebp - 0x10], 0
je 0x4f3a4e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x88ab60]
test byte [eax + edi + 0x28], 0x48
je 0x4f3a2d
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4f3a1d
mov byte [esi], 0xa
jmp 0x4f3a77
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x88ab60]
mov byte [eax + edi + 0x2a], cl
jmp 0x4f3a77
cmp byte [ebp - 1], 0xa
jne 0x4f3a37
cmp esi, ebx
je 0x4f3a18
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004fe57b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f3a78
mov byte [esi], 0xd
jmp 0x4f3a77
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x88ab60]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4f3a75
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4f3a78
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f3a81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x88ab60]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4f3ac5
push 0xa
pop esi
cmp word [ebx], si
jne 0x4f3ac5
or byte [eax + edi + 0x28], 4
jmp 0x4f3aca
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4f3c35
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4f3c0d
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4f3b17
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4f3b41
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4f3b60
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4f3b2e
push ebx
add eax, 4
pop edx
jmp 0x4f3b36
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4f3adc
jmp 0x4f3c35
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 0x4f3c08
cmp dword [ebp - 0x14], 0
je 0x4f3c08
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x88ab60]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4f3be4
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4f3bac
mov word [esi], ax
jmp 0x4f3c32
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x88ab60]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x88ab60]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x88ab60]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4f3c32
cmp word [ebp - 4], ax
jne 0x4f3bee
cmp esi, ebx
je 0x4f3ba4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004fe57b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f3c35
push 0xd
pop eax
jmp 0x4f3ba4
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x88ab60]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4f3c2f
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4f3c35
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f579d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004e6990
mov eax, dword [0x886f80]
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.004f9cb6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f57df
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f5956
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004e61e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x88ab60]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004fe55d
mov ecx, dword [esi*4 + 0x88ab60]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4f594f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f594f
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x4f594f
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004fe55d
add esp, 0x14
cmp edx, esi
jl 0x4f594f
jg 0x4f58aa
cmp eax, esi
jb 0x4f594f
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4f594f
jl 0x4f58cc
cmp dword [ebp - 0x1008], eax
ja 0x4f594f
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x4f58f1
cmp ebx, esi
je 0x4f5936
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4f5936
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f5917
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f5923
cmp byte [ecx + 1], 0xa
jne 0x4f5923
inc ecx
jmp 0x4f5923
movzx eax, al
movsx eax, byte [eax + 0x8870d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f58fd
cmp edx, ebx
jne 0x4f58fd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4f5954
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004e5b77
leave
ret
Function at 0x4faba3
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x4fabbd
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4fabd4
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x4fac2c
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.004fe2b5
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x4fac2c
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4fac2c
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4fac2c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x4fac26
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x4fac28
xor bl, bl
mov al, bl
jmp 0x4fac2e
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x4fe65d
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.004fe5d9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4fe7cc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4fe7cc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4fe781
jg 0x4fe6b9
test eax, eax
je 0x4fe777
push 1
push 0x1000
call fcn.004f9450
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fe6dc
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4fe76e
push 0x8000
push ebx
call fcn.004f77ca
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4fe705
jg 0x4fe700
cmp ecx, 0x1000
jb 0x4fe705
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004fa7bf
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fe74a
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 0x4fe700
jl 0x4fe731
test ecx, ecx
jne 0x4fe6f2
push dword [ebp - 0xc]
push ebx
call fcn.004f77ca
push esi
call fcn.004f94b0
add esp, 0xc
xor ebx, ebx
jmp 0x4fe7da
cmp byte [edi + 0x24], 0
je 0x4fe761
cmp dword [edi + 0x20], 5
jne 0x4fe761
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4fe76c
mov ebx, dword [edi + 0x18]
jmp 0x4fe76e
xor ebx, ebx
push esi
call fcn.004f94b0
pop ecx
jmp 0x4fe7da
test ecx, ecx
jg 0x4fe743
jl 0x4fe781
test eax, eax
jae 0x4fe743
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004fe57b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4fe7a1
cmp byte [edi + 0x1c], 0
je 0x4fe743
jmp 0x4fe7d2
push ebx
call fcn.004fe2b5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4fe743
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 0x4fe7da
cmp byte [edi + 0x1c], 0
je 0x4fe7d7
mov ebx, dword [edi + 0x18]
jmp 0x4fe7da
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004fe57b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50020b
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 0x5002a8
push ebx
push esi
call fcn.005001d4
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.0050016a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x500255
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5002a7
push edi
push eax
call fcn.004fad70
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x500275
call fcn.004f94b0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5002a6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0050016a
add esp, 0x20
test eax, eax
jne 0x500294
push edi
call fcn.004f94b0
jmp 0x50029c
push ebx
call fcn.004f94b0
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 0x5002ab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5002bc
pop esi
ret
push ebx
push edi
push esi
call fcn.005001d4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004fad70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5002e4
push ebx
push esi
push edi
call fcn.004e6fa0
add esp, 0xc
push 0
call fcn.004f94b0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x500a3b
Capabilities:
Set environment variable

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

Function at 0x506e40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x506e6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x506e6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x422a7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00416f97
and dword [ebp - 4], 0
cmp dword [0x43be54], 0
mov ebx, eax
jne 0x422b2d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422bde
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422bde
push eax
call fcn.00416f25
mov dword [esp], 0x430f84
push edi
mov dword [0x43be54], eax
call esi
push eax
call fcn.00416f25
mov dword [esp], 0x430f70
push edi
mov dword [0x43be58], eax
call esi
push eax
call fcn.00416f25
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43be5c], eax
call esi
push eax
call fcn.00416f25
pop ecx
mov dword [0x43be64], eax
test eax, eax
je 0x422b2d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416f25
pop ecx
mov dword [0x43be60], eax
mov eax, dword [0x43be60]
cmp eax, ebx
je 0x422b85
cmp dword [0x43be64], ebx
je 0x422b85
push eax
call fcn.00416fa0
push dword [0x43be64]
mov esi, eax
call fcn.00416fa0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422b85
test edi, edi
je 0x422b85
call esi
test eax, eax
je 0x422b7c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422b7c
test byte [ebp - 0xc], 1
jne 0x422b85
or dword [ebp + 0x10], 0x200000
jmp 0x422bbe
mov eax, dword [0x43be58]
cmp eax, ebx
je 0x422bbe
push eax
call fcn.00416fa0
pop ecx
test eax, eax
je 0x422bbe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422bbe
mov eax, dword [0x43be5c]
cmp eax, ebx
je 0x422bbe
push eax
call fcn.00416fa0
pop ecx
test eax, eax
je 0x422bbe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43be54]
call fcn.00416fa0
pop ecx
test eax, eax
je 0x422bde
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422be0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x440130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.tJrdyPER
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x440152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x440159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x440148
mov eax, 1
add ebx, ebx
jne 0x44016b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x440160
jne 0x44017c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440160
xor ecx, ecx
sub eax, 3
jb 0x440190
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x440202
mov ebp, eax
add ebx, ebx
jne 0x44019b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4401a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4401cc
inc ecx
add ebx, ebx
jne 0x4401b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4401ad
jne 0x4401c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4401ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4401ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4401dd
jmp 0x44014e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4401ec
add edi, ecx
jmp 0x44014e
pop esi
lea edi, [esi + 0x3e000]
mov eax, dword [edi]
or eax, eax
je 0x440254
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4020c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x402b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x440209
mov ecx, edi
jns 0x440238
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 + 0x402bc]
or eax, eax
je 0x44024e
mov dword [ebx], eax
add ebx, 4
jmp 0x440226
call dword [esi + 0x402b8]
mov ebp, dword [esi + 0x402c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x440288
sub esp, 0xffffff80
jmp section.NDltoTPW

Function at 0x411078
Capabilities:
Terminate process

Disassembly:
jmp 0x41a3f0
jmp fcn.0041b800
cmp ecx, dword [0x42529c]
jne 0x41a3fa
repz ret
jmp 0x4111f9
Function at 0x40ea38
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eb0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40eb28
push ebx
push 0x40eb38
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40eab8
mov al, 0x6a
call fcn.0040e658
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ea0c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40eac1
call fcn.0040ea0c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb14
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ec28
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
jmp 0x40ece7
cmp dword [esi + 0x10], 0x1000
jne 0x40ecd3
test byte [esi + 0x15], 1
jne 0x40ecd3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec84
cmp ebp, 2
je 0x40ec84
cmp ebp, 0x10
je 0x40ec84
cmp ebp, 0x20
jne 0x40eca0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec20
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40eca4
cmp byte [esp + 4], 0
je 0x40ecd3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec59
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402bac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405020]
jne 0x402bb6
repz ret
jmp fcn.00403018