joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452a20
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x4e20c0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [ebp + 0x24]
mov dword [esp + 0xc], eax
test edi, edi
jne 0x452a53
xorps xmm0, xmm0
lea edi, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
push edi
push edx
push 0
push 0
push 0x4000004
push 1
push 0
push 0
push 0
push ecx
call esi
test eax, eax
je 0x452aad
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [edi]
call fcn.00451f10
test eax, eax
jne 0x452ac2
mov ecx, dword [edi + 8]
push esi
push dword [esp + 0x10]
call fcn.00452780
test eax, eax
jne 0x452ac2
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 4]
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046ea75
mov esp, ebp
pop ebp
ret 0x2c
lea eax, [esp + 0x10]
cmp edi, eax
jne 0x452ad9
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0046ea75
mov esp, ebp
pop ebp
ret 0x2c

Function at 0x452cf0
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x4e20c0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
push 0
push 0x4e20
push 0
push 0
push 0xff
push 6
push 0x40000001
push 0x4d0a98
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp edi, 0xffffffff
je 0x452e05
push 0x1030
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x452e0f
push 0x1030
push 0
push esi
call fcn.004709e0
add esp, 0xc
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 1
push 0
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x452e19
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x452dd9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x217
jne 0x452ded
mov dword [esp + 0x10], 0
lock inc dword [0x4e6328]
push esi
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 0
push eax
push 0x100d
lea eax, [esi + 0x20]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x452dd2
call edi
cmp eax, 0x3e5
je 0x452dd2
call edi
mov ecx, ebx
call fcn.00452cf0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ea75
mov esp, ebp
pop ebp
ret
cmp eax, 0x3e5
je 0x452dd9
cmp eax, 0x218
je 0x452dd9
mov ecx, 0x4d0afc
call fcn.00452c20
mov ecx, str.CreatePipe
call fcn.00452c20
mov ecx, str.GlobalAlloc_pClient
call fcn.00452c20
mov ecx, str.CreateIoComplietionPort_pClient
call fcn.00452c20
int3
Function at 0x455060
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4de290
push 0x4700d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4e20c0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x34], edx
mov edx, ecx
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x4550ab
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edx], ax
je 0x4550c6
push 0xc1
jmp 0x4551f7
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
je 0x4550dd
push 0xbf
jmp 0x4551f7
cmp word [ecx + 0x14], 0
je 0x4551f2
mov ebx, dword [ecx + 0x78]
lea eax, [ebx + edx]
neg ebx
sbb ebx, ebx
and ebx, eax
je 0x4551f2
mov eax, dword [ecx + 0x7c]
add eax, ebx
mov dword [ebp - 0x24], eax
mov esi, dword [ebx + 0x1c]
lea eax, [esi + edx]
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebx + 0x20]
lea eax, [ecx + edx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 0x24]
lea eax, [ecx + edx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x20], ecx
xor edi, edi
mov dword [ebp - 0x38], edi
cmp edi, dword [ebx + 0x14]
jae 0x4551b4
test esi, esi
je 0x45514b
mov esi, dword [esi + edi*4]
lea eax, [edx + esi]
neg esi
sbb esi, esi
and esi, eax
jmp 0x45514d
xor esi, esi
mov dword [ebp - 0x28], esi
xor eax, eax
cmp esi, ebx
jbe 0x455161
xor edx, edx
cmp esi, dword [ebp - 0x24]
cmovb esi, edx
mov dword [ebp - 0x28], esi
xor edx, edx
mov dword [ebp - 0x30], edx
cmp edx, dword [ebx + 0x18]
jae 0x455188
movzx ecx, word [ecx + edx*2]
cmp ecx, edi
jne 0x4551ae
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4551aa
mov eax, dword [eax + edx*4]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0x10]
add ecx, edi
push esi
push eax
push ecx
push dword [ebp - 0x34]
mov eax, 0x4494a0
call eax
test eax, eax
je 0x4551b4
inc edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x3c]
jmp 0x455131
xor eax, eax
jmp 0x455188
inc edx
mov ecx, dword [ebp - 0x20]
jmp 0x455163
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45697c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.004564c0
mov edi, eax
test edi, edi
jne 0x4569a3
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x4569ec
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4569e7
test al, 0x10
je 0x4569e7
test eax, 0x400
je 0x4569e3
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004569f2
push dword [ebp - 4]
mov esi, eax
call fcn.0045652b
test esi, esi
jne 0x4569e7
xor edx, edx
jmp 0x4569e9
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x456d91
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x456db8
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x456dbb
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00456d6d
pop esi
leave
ret 8

Function at 0x460dd7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x460dfa
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x460de8
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x46e48b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0047ee92
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x46e4ca
sub eax, 1
je 0x46e4c5
sub eax, 1
je 0x46e4c1
xor eax, eax
leave
ret
push 3
jmp 0x46e4cc
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x46f8d7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46f916
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46f916
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46f916
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46f916
cmp dword [ecx + 0x74], 0xe
jbe 0x46f916
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x47e34b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046fb40
mov eax, dword [0x4e20c0]
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.00484a62
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47e38d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47e4e9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004948d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e5ee0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004892ca
mov ecx, dword [esi*4 + 0x4e5ee0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x47e4e2
cmp eax, dword [edi + ecx + 0x24]
jne 0x47e4e2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47e4e2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004892ca
add esp, 0x14
test edx, edx
jl 0x47e4e2
jg 0x47e458
test eax, eax
jb 0x47e4e2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47e4e2
jl 0x47e472
cmp dword [ebp - 0x1008], eax
ja 0x47e4e2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47e490
test ebx, ebx
je 0x47e4c9
cmp ecx, edi
jae 0x47e4c9
mov al, byte [ecx]
cmp al, 0xd
jne 0x47e4aa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47e4b6
cmp byte [ecx + 1], 0xa
jne 0x47e4b6
inc ecx
jmp 0x47e4b6
movzx eax, al
movsx eax, byte [eax + 0x4e2368]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47e490
cmp edx, ebx
jne 0x47e490
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47e4e7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046ea75
leave
ret
Function at 0x486e50
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c624c
push 0x4c6244
push 0x4c3cf4
push 0x1e
call fcn.00486c7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x486e84
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a4318]
call esi
jmp 0x486e8a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x486ece
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c625c
push 0x4c6254
push 0x4c3d18
push 0x20
call fcn.00486c7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x486f05
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a4318]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x487685
Capabilities:
Read file on windows

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

Function at 0x487690
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004874af
Function at 0x488782
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 + 0x4e5ee0]
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 0x4887c2
cmp byte [ebx], 0xa
jne 0x4887c2
or byte [eax + edi + 0x28], 4
jmp 0x4887c7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4888c5
mov al, byte [edx]
cmp al, 0x1a
je 0x4888a7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4887f6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48881b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x488825
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 0x4887d8
jmp 0x4888c5
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 0x4888a2
cmp dword [ebp - 0xc], 0
je 0x4888a2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e5ee0]
test byte [eax + edi + 0x28], 0x48
je 0x48887c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x488867
mov byte [esi], dl
jmp 0x488878
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e5ee0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4888c5
cmp byte [ebp - 1], 0xa
jne 0x48888b
cmp esi, ebx
jne 0x48888b
mov byte [esi], 0xa
jmp 0x4888c4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004892e8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4888c5
mov byte [esi], 0xd
jmp 0x4888c4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e5ee0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4888c1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4888c5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4888ce
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 + 0x4e5ee0]
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 0x488911
cmp word [esi], dx
jne 0x488911
or byte [edi + eax + 0x28], 4
jmp 0x488916
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 0x488a4f
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 0x488a2f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x488958
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48898e
cmp eax, edx
jae 0x48899a
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 0x488930
jmp 0x488a4f
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 0x488a2b
cmp dword [ebp - 0x14], 0
je 0x488a2b
mov eax, dword [ebx*4 + 0x4e5ee0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x488a03
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x488a49
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e5ee0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4e5ee0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e5ee0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x488a4c
pop ebx
cmp word [ebp - 4], bx
jne 0x488a14
cmp esi, dword [ebp + 0xc]
jne 0x488a14
mov word [esi], bx
jmp 0x488a4c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004892e8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x488a4f
push 0xd
jmp 0x488a48
mov ecx, dword [ebx*4 + 0x4e5ee0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x488a46
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x488a4f
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 0x48bb81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e20c0]
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 0x48bbcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0048bd20
test al, al
jne 0x48bbc6
sub edx, 2
cmp edx, edi
jne 0x48bbac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48bbee
lea eax, [edi + 2]
cmp edx, eax
je 0x48bbee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048bacd
add esp, 0x10
jmp 0x48bce8
push esi
lea ecx, [ebp - 0x255]
call fcn.0048bd20
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 0x48bc31
push dword [ebp - 0x25c]
jmp 0x48bbde
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 0x48bc6e
cmp word [ebp - 0x226], 0
je 0x48bc8f
cmp word [ebp - 0x226], ax
jne 0x48bc6e
cmp word [ebp - 0x224], 0
je 0x48bc8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048bacd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48bcdb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48bc48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48bcc3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48bce8
push 0x48b8fd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00492980
add esp, 0x10
jmp 0x48bcb8
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.0046ea75
leave
ret

Function at 0x48c60c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x48c61d
pop esi
ret
push ebx
push edi
push esi
call fcn.0048c5d5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048786b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48c645
push ebx
push esi
push edi
call fcn.004702a0
add esp, 0xc
push 0
call fcn.0048659b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x48ca09
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048c65a
Function at 0x493635
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.004935b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4937ad
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4937ad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x49375c
jg 0x49368e
test eax, eax
je 0x493752
push 1
push 0x1000
call fcn.0048697f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4936b4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x493749
push 0x8000
push ebx
call fcn.0048308c
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 0x4936e0
jg 0x4936db
cmp ecx, 0x1000
jb 0x4936e0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048619e
add esp, 0x10
cmp eax, 0xffffffff
je 0x493725
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 0x4936db
jl 0x49370c
test ecx, ecx
jne 0x4936cd
push dword [ebp - 0xc]
push ebx
call fcn.0048308c
push esi
call fcn.0048659b
add esp, 0xc
xor edi, edi
jmp 0x4937be
cmp byte [edi + 0x24], 0
je 0x49373c
cmp dword [edi + 0x20], 5
jne 0x49373c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x493747
mov edi, dword [edi + 0x18]
jmp 0x493749
xor edi, edi
push esi
call fcn.0048659b
pop ecx
jmp 0x4937be
test ecx, ecx
jg 0x49371e
jl 0x49375c
test eax, eax
jae 0x49371e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004892e8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x49377f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49371e
jmp 0x4937b6
push ebx
call fcn.0048d05b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x49371e
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 0x4937be
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4937bb
mov edi, dword [edi + 0x18]
jmp 0x4937be
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004892e8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4947b0
Capabilities:
Parse pe header

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