joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x140b0f8
push 0x14078b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x14021a9
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x14021a9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x14021a9
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x14021a9
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], edi
push 0x40
push edi
push ebx
push edi
call fcn.01401fd0
add esp, 0x10
test eax, eax
je 0x14021a2
cmp word [edi], 0x5a4d
jne 0x14021a2
mov eax, dword [edi + 0x3c]
lea esi, [eax + edi]
cmp edi, esi
ja 0x14021a2
cmp eax, 0x7fffffff
jg 0x14021a2
mov dword [ebp - 0x1c], esi
push 4
push esi
push ebx
push edi
call fcn.01401fd0
add esp, 0x10
test eax, eax
je 0x14021a2
cmp dword [esi], 0x4550
jne 0x14021a2
push 0x14
lea eax, [esi + 4]
push eax
push ebx
push edi
call fcn.01401fd0
add esp, 0x10
test eax, eax
je 0x14021a2
cmp word [esi + 6], 0x3e8
ja 0x14021a2
test byte [esi + 0x16], 2
je 0x14021a2
xor eax, eax
mov ax, word [esi + 0x14]
sub eax, 0xe0
je 0x140212f
sub eax, 0x10
jne 0x14021a2
mov dword [ebp - 0x20], esi
push 0xf0
lea ecx, [esi + 0x18]
push ecx
push ebx
push edi
call fcn.01401fd0
add esp, 0x10
test eax, eax
je 0x14021a2
add esi, 0x98
jmp 0x140214c
push 0xe0
lea edx, [esi + 0x18]
push edx
push ebx
push edi
call fcn.01401fd0
add esp, 0x10
test eax, eax
je 0x14021a2
add esi, 0x88
mov dword [ebp - 0x28], esi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x14021a2
mov eax, dword [esi]
test eax, eax
je 0x14021a2
push ecx
push eax
push ebx
push 0
call fcn.01401fd0
add esp, 0x10
test eax, eax
je 0x14021a2
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [esi + 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1402550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x140b128
push 0x14078b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
test esi, esi
je 0x1402684
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1402684
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1402684
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [ebp - 0x24], esi
push 0x40
push esi
push ebx
push esi
call fcn.01401fd0
add esp, 0x10
test eax, eax
je 0x140267d
cmp word [esi], 0x5a4d
jne 0x140267d
mov eax, dword [esi + 0x3c]
lea edi, [eax + esi]
cmp esi, edi
ja 0x140267d
cmp eax, 0x7fffffff
jg 0x140267d
mov dword [ebp - 0x1c], edi
push 4
push edi
push ebx
push esi
call fcn.01401fd0
add esp, 0x10
test eax, eax
je 0x140267d
cmp dword [edi], 0x4550
jne 0x140267d
push 0x14
lea eax, [edi + 4]
push eax
push ebx
push esi
call fcn.01401fd0
add esp, 0x10
test eax, eax
je 0x140267d
test byte [edi + 0x16], 2
je 0x140267d
xor eax, eax
mov ax, word [edi + 0x14]
sub eax, 0xe0
je 0x140265b
sub eax, 0x10
jne 0x140267d
mov dword [ebp - 0x20], edi
push 0xf0
jmp 0x1402660
mov edx, dword [edi + 0x50]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xe0
lea ecx, [edi + 0x18]
push ecx
push ebx
push esi
call fcn.01401fd0
add esp, 0x10
test eax, eax
jne 0x1402636
jmp 0x140267d
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
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 0x100050bf
Capabilities:
Initialize winsock library

Disassembly:
cmp byte [0x10051a30], 0
jne 0x100050d4
mov byte [0x10051a30], 1
jmp fcn.100050d5
ret

Function at 0x10005331
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10005358
mov eax, dword [ecx]
sub eax, 1
jne 0x10005358
push dword [ecx + 4]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10029efc
add esp, 0x10
ret
or eax, 0xffffffff
ret

Function at 0x10006022
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
add edi, ecx
cmp ecx, edi
jae 0x1000604c
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
sub edx, ecx
sub esi, ecx
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
cmp ecx, edi
jb 0x1000603e
pop esi
pop edi
ret

Function at 0x100066c5
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x100095d2
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x37c]
mov edi, dword [eax + 0x14]
lea eax, [ebp - 4]
push eax
push esi
call fcn.100061f8
xor ebx, ebx
push ebx
push ebx
push esi
call fcn.1000609b
add esp, 0x14
mov dword [edi], ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp + 8], eax
test eax, eax
je 0x100096b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100096b2
mov eax, dword [edi]
mov ecx, dword [ebp + 0x14]
or eax, 6
mov dword [edi], eax
test ecx, ecx
js 0x10009642
or eax, 8
mov dword [edi], eax
jmp 0x10009644
mov ecx, ebx
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10009657
push dword [edi + 0x1c]
push 1
call eax
pop ecx
pop ecx
lea eax, [edi + 0x20]
push eax
call fcn.10001e0e
mov eax, dword [edi + 0x18]
pop ecx
test eax, eax
je 0x10009670
push dword [edi + 0x1c]
push ebx
call eax
pop ecx
pop ecx
test byte [edi + 4], 8
jne 0x100096ad
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp + 8]
push eax
push 0x1007
push 0xffff
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100096ad
mov eax, dword [ebp + 8]
test eax, eax
je 0x100096b5
call fcn.10023829
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
or eax, 0xffffffff
jmp 0x100096b5
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e885
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x54
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x60]
mov dword [ebp], ecx
mov dword [eax], ecx
cmp dword [esi + 4], ecx
jne 0x1000e8a9
xor eax, eax
jmp 0x1000e9da
lea eax, [esp + 0x18]
push esi
push eax
call fcn.1000e063
pop ecx
pop ecx
test eax, eax
js 0x1000e9da
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x48]
mov eax, edi
imul ecx, edx, 0x30
imul eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
add eax, dword [ecx + 0x1004ff20]
cmp eax, dword [esi + 4]
ja 0x1000e9d5
test edx, edx
jne 0x1000e8f4
imul eax, edi, 0xe
jmp 0x1000e8fb
imul eax, edi, 9
add eax, dword [esp + 0x3c]
push eax
call fcn.10023776
mov dword [ebp], eax
pop ecx
test eax, eax
jne 0x1000e911
push 0xfffffffffffffffd
pop eax
jmp 0x1000e9d8
lea edx, [eax + edi*8]
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], eax
test edi, edi
je 0x1000e9cb
cmp dword [esp + 0x10], 0
jne 0x1000e962
movzx ecx, word [eax]
mov eax, dword [ebp]
push 0xa
mov dword [eax + ebx*8], edx
add edx, 6
mov eax, dword [ebp]
mov dword [esp + 0x74], edx
push dword [eax + ebx*8]
mov eax, ecx
cdq
push edx
push eax
call fcn.100053ed
mov ecx, dword [ebp]
add esp, 0x10
sub eax, dword [ecx + ebx*8]
mov dword [ecx + ebx*8 + 4], eax
jmp 0x1000e9b2
lea ecx, [esp + 0x18]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1000f419
add esp, 0xc
test al, al
jne 0x1000e9d5
mov eax, dword [ebp]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x70]
push esi
push dword [esp + 0x1c]
mov dword [eax + ebx*8 + 4], esi
mov eax, dword [ebp]
mov dword [eax + ebx*8], ecx
inc ecx
mov eax, dword [ebp]
add ecx, esi
mov dword [esp + 0x78], ecx
push dword [eax + ebx*8]
call fcn.1001b430
mov eax, dword [ebp]
add esp, 0xc
mov eax, dword [eax + ebx*8]
mov byte [esi + eax], 0
mov eax, dword [esp + 0x68]
inc ebx
add eax, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x68], eax
cmp ebx, edi
jb 0x1000e92a
mov eax, dword [esp + 0x6c]
mov dword [eax], edi
xor eax, eax
jmp 0x1000e9d8
or eax, 0xffffffff
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x54
ret

Function at 0x10018eec
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x10018f4b
mov edi, dword [esi]
test edi, edi
je 0x10018f4b
mov ebx, dword [esi + 0x14]
push 0
push 0
push esi
call fcn.100187a5
add esp, 0xc
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10018f47
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10018f47
push ebx
push 0
push esi
call fcn.10018676
add esp, 0xc
test eax, eax
jns 0x10018f45
or eax, edi
jmp 0x10018f4e
xor edi, edi
mov eax, edi
jmp 0x10018f4e
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x1002bd96
Capabilities:
Parse pe header

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

Function at 0x1002d124
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10047720
push 0x10047718
push str.FlsAlloc
push 0x1f
call fcn.1002cf63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d158
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b1c4]
call esi
jmp 0x1002d15e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002d1a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10047730
push 0x10047728
push str.FlsGetValue
push 0x21
call fcn.1002cf63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d1d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b1c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002d1e1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10047738
push 0x10047730
push str.FlsSetValue
push 0x22
call fcn.1002cf63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d21b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003b1c4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1002ffd3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002ff55
Function at 0x1003116c
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 + 0x100520a8]
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 0x100311ac
cmp byte [ebx], 0xa
jne 0x100311ac
or byte [edi + eax + 0x28], 4
jmp 0x100311b1
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 0x100312b0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10031293
inc eax
cmp dl, 0xd
je 0x100311dd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10031203
cmp eax, ecx
jae 0x10031211
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 0x100311c5
jmp 0x100312b0
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 0x1003128e
cmp dword [ebp - 0x10], 0
je 0x1003128e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100520a8]
test byte [eax + edi + 0x28], 0x48
je 0x10031268
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10031253
mov byte [esi], dl
jmp 0x10031264
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100520a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100312b0
cmp byte [ebp - 1], 0xa
jne 0x10031277
cmp esi, ebx
jne 0x10031277
mov byte [esi], 0xa
jmp 0x100312af
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10038924
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100312b0
mov byte [esi], 0xd
jmp 0x100312af
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100520a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100312ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100312b0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100312b9
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 + 0x100520a8]
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 0x100312ff
cmp word [ebx], dx
jne 0x100312ff
or byte [eax + edi + 0x28], 4
jmp 0x10031304
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 0x10031467
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 0x10031447
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10031345
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003137b
cmp eax, edx
jae 0x10031389
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 0x10031320
jmp 0x10031467
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 0x10031442
cmp dword [ebp - 0x18], 0
je 0x10031442
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100520a8]
test byte [eax + edi + 0x28], 0x48
je 0x10031418
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 0x100313dc
mov word [esi], cx
jmp 0x10031413
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100520a8]
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 + 0x100520a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100520a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10031467
pop eax
cmp word [ebp - 4], ax
jne 0x10031428
cmp esi, ebx
jne 0x10031428
mov word [esi], ax
jmp 0x10031464
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10038924
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10031467
push 0xd
pop eax
jmp 0x10031423
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100520a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10031461
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10031467
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 0x10033514
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 0x100335b1
push ebx
push esi
call fcn.100334dd
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.10033471
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003355e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100335b0
push edi
push eax
call fcn.1002dae7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003357e
call fcn.1002cdc2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100335af
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10033471
add esp, 0x20
test eax, eax
jne 0x1003359d
push edi
call fcn.1002cdc2
jmp 0x100335a5
push ebx
call fcn.1002cdc2
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 0x10039325
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.100392a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10039494
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10039494
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10039449
jg 0x10039381
test eax, eax
je 0x1003943f
push 1
push 0x1000
call fcn.1002cd65
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100393a4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10039436
push 0x8000
push ebx
call fcn.100391d2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100393cd
jg 0x100393c8
cmp ecx, 0x1000
jb 0x100393cd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1003463b
add esp, 0x10
cmp eax, 0xffffffff
je 0x10039412
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 0x100393c8
jl 0x100393f9
test ecx, ecx
jne 0x100393ba
push dword [ebp - 0xc]
push ebx
call fcn.100391d2
push esi
call fcn.1002cdc2
add esp, 0xc
xor ebx, ebx
jmp 0x100394a2
cmp byte [edi + 0x24], 0
je 0x10039429
cmp dword [edi + 0x20], 5
jne 0x10039429
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10039434
mov ebx, dword [edi + 0x18]
jmp 0x10039436
xor ebx, ebx
push esi
call fcn.1002cdc2
pop ecx
jmp 0x100394a2
test ecx, ecx
jg 0x1003940b
jl 0x10039449
test eax, eax
jae 0x1003940b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10038924
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10039469
cmp byte [edi + 0x1c], 0
je 0x1003940b
jmp 0x1003949a
push ebx
call fcn.10034c21
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1003940b
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 0x100394a2
cmp byte [edi + 0x1c], 0
je 0x1003949f
mov ebx, dword [edi + 0x18]
jmp 0x100394a2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10038924
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003a770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003a79d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003a79d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401800
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40189b
push 0x228
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.00403000
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40189b
nop dword [eax + eax]
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401886
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401860
jmp 0x40189b
mov ebx, dword [ebp - 0x230]
push ebx
push edi
push str.___found_process__s._pid:__d_n
call fcn.00401020
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b45
mov esp, ebp
pop ebp
ret
Function at 0x4015cf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncpy]
push edi
mov edi, dword [esp + 0x18]
push 0x100
mov esi, 0x4030e4
push dword [edi]
push esi
call ebx
push 0x4030c0
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 0x14
call fcn.00401000
test al, al
jne 0x401668
push 0x4032e4
push esi
jmp loc.00408758
push edi
xor ebp, ebp
push dword [esp + 0x18]
mov word [0x4032e4], bp
jmp loc.00408000

Function at 0x40170f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402088
push 0x401850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403cf8], 0xffffffff
or dword [0x403cfc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403cf4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403cf0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403d00], eax
call fcn.00401841
cmp dword [0x4030b0], 0
jne 0x401792
push 0x40183e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040182c
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403cec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403ce8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015cf
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret