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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push esi
push edi
call fcn.004093d7
push 0x14
pop esi
cmp eax, esi
jb 0x423f1f
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.004611bb
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x10], si
inc eax
mov byte [ebp - 0xc], bl
push eax
mov word [ebp - 0xe], ax
mov edi, 0x58453144
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push esi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0045f37b
add esp, 0x1c
pop ebx
test eax, eax
je 0x423f1f
cmp dword [ebp - 0x14], edi
jne 0x423f1f
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x423f1b
push 5
pop ecx
lea esi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov al, 1
jmp 0x423f21
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x4244d5
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ba080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
push 2
pop eax
test esi, esi
je 0x42454b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4244fe
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
cmp eax, 0x3fffffff
jg 0x424548
add eax, eax
call fcn.0044c790
mov edi, esp
test edi, edi
je 0x424545
mov ecx, dword [ebp - 0x1c]
push ebx
push ebx
mov byte [edi], bl
lea eax, [ecx + ecx]
push eax
push edi
push 0xffffffffffffffff
push esi
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb ebx, ebx
and ebx, edi
mov edi, dword [ebp - 0x18]
push 2
pop eax
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
push 0x7b
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x424587
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4245ae
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b95e
leave
ret 8
xor eax, eax
jmp 0x42459a
Function at 0x4245b2
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4ba080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push esi
push edi
mov edi, 0x3e8
mov esi, dword [ebp + 8]
div edi
xor edi, edi
mov dword [ebp - 0x110], eax
inc edi
mov eax, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x110]
push eax
push ecx
push ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], edx
push eax
push ecx
mov dword [ebp - 0x108], edi
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x424615
xor eax, eax
jmp 0x424620
xor ecx, ecx
test eax, eax
mov eax, edi
setne cl
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044b95e
leave
ret 8
Function at 0x4248c1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x48f52a
call fcn.0044c857
mov ebx, edx
push 0x801
call fcn.0044bc23
xor esi, esi
mov edi, eax
mov dword [ebp - 4], esi
mov dword [esp], 0x801
push esi
push edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0x800
call fcn.0044dac0
add esp, 0xc
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], esi
je 0x42494b
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x18], 1
jne 0x424942
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0040b671
inc esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0044bc1e
pop ecx
mov eax, esi
call fcn.0044c7bc
ret

Function at 0x4263f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f7dd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ba080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x24]
mov esi, eax
mov dword [ebp - 0x10], esi
push dword [ebp + 0x14]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push esi
call dword [eax + 0x28]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push esi
mov eax, dword [eax + 0x30]
call eax
mov bl, al
test esi, esi
je 0x42645c
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4290d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fa05
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ba080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
push 0x40
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
call fcn.0040220a
movups xmm0, xmmword [str.Integer:_no_integer_satisfies_the_given_parameters]
mov edi, eax
mov dword [ebp - 0x18], 0x32
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], 0x3f
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x495ec8]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x495ed8]
movups xmmword [edi + 0x20], xmm0
mov ax, word [0x495ee8]
mov word [edi + 0x30], ax
mov byte [edi + 0x32], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 6
movups xmmword [esi + 0x10], xmm0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
call fcn.0040220a
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], 0x32
mov dword [esi + 0x24], 0x3f
movups xmm0, xmmword [edi]
push 0x40
push edi
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
mov cx, word [edi + 0x30]
mov word [eax + 0x30], cx
mov cl, byte [edi + 0x32]
mov byte [eax + 0x32], cl
call fcn.0044b96c
mov eax, esi
add esp, 8
mov dword [eax], vtable.CryptoPP::Integer::RandomNumberNotFound.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b95e
mov esp, ebp
pop ebp
ret
Function at 0x43ae60
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
xor edx, edx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x1c]
mov eax, esi
shr eax, 2
mov dword [esp + 0xc], eax
push edi
test eax, eax
je 0x43af18
mov edi, ebp
sub edi, ecx
cmp eax, 8
jb 0x43aef4
mov ebx, eax
xorps xmm3, xmm3
and ebx, 0xfffffff8
lea eax, [ecx + 0x10]
xorps xmm2, xmm2
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebp + edx*4]
add edx, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + edi - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edx, ebx
jb 0x43aea0
mov eax, dword [esp + 0x10]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
cmp edx, eax
jae 0x43af18
mov ebp, eax
lea ecx, [ecx + edx*4]
sub ebp, edx
mov edx, eax
nop dword [eax]
mov eax, dword [ecx + edi]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebx, eax
sub ebp, 1
jne 0x43af00
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
shl edx, 2
sub esi, edx
jne 0x43af2a
pop edi
pop esi
test ebx, ebx
pop ebp
sete al
pop ebx
pop ecx
ret
add ecx, edx
add ebp, edx
mov edx, ebx
mov dword [esp + 0x1c], ecx
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
xor ecx, ecx
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
test esi, esi
je 0x43aff4
mov ebx, dword [esp + 0x1c]
mov edi, ebp
sub edi, ebx
cmp esi, 0x20
jb 0x43afdf
mov eax, esi
xorps xmm3, xmm3
and eax, 0xffffffe0
xorps xmm2, xmm2
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x10]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + ebp]
add ecx, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + edi - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, dword [esp + 0x10]
jb 0x43af74
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp ecx, esi
jae 0x43aff4
lea eax, [ecx + ebx]
sub esi, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x43afe4
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
pop ecx
ret
Function at 0x44ca78
Capabilities:
Parse pe header

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

Function at 0x461871
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ba080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x499ee0
push esi
call fcn.004623ae
pop ecx
pop ecx
test eax, eax
jne 0x46189f
xor al, al
jmp 0x46191c
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004615b4
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4618d9
push dword [ebp - 0x210]
call fcn.00458de1
xor al, al
jmp 0x46191a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4618df
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4618ff
push edx
call fcn.004617a7
pop ecx
test al, al
je 0x4618ca
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x46190d
mov bl, 1
push dword [ebp - 0x210]
call fcn.00458de1
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044b95e
leave
ret
Function at 0x46923b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49c0f8
push 0x49c0f0
push str.FlsAlloc
push 0x1e
call fcn.00469068
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46926f
push dword [ebp + 8]
mov ecx, esi
call dword [0x495474]
call esi
jmp 0x469275
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4692b9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49c108
push 0x49c100
push str.FlsGetValue
push 0x20
call fcn.00469068
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4692f0
push dword [ebp + 8]
mov ecx, esi
call dword [0x495474]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46aff2
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 + 0x4c3100]
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 0x46b035
cmp word [esi], dx
jne 0x46b035
or byte [edi + eax + 0x28], 4
jmp 0x46b03a
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 0x46b18d
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 0x46b16d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46b07c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46b0b2
cmp eax, edx
jae 0x46b0be
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 0x46b054
jmp 0x46b18d
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 0x46b169
cmp dword [ebp - 0x14], 0
je 0x46b169
mov eax, dword [ebx*4 + 0x4c3100]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46b141
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46b10a
mov word [esi], cx
jmp 0x46b13d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4c3100]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4c3100]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4c3100]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46b18d
pop ebx
cmp word [ebp - 4], bx
jne 0x46b152
cmp esi, dword [ebp + 0xc]
jne 0x46b152
mov word [esi], bx
jmp 0x46b18a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046c916
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46b18d
push 0xd
jmp 0x46b186
mov ecx, dword [ebx*4 + 0x4c3100]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46b184
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46b18d
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 0x46b9ae
Capabilities:
Read file on windows

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

Function at 0x46cd63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044ccd0
mov eax, dword [0x4ba080]
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.00461a84
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46cda5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46cf01
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00477ff0
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 + 0x4c3100]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0046c8f8
mov ecx, dword [esi*4 + 0x4c3100]
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 0x46cefa
cmp eax, dword [edi + ecx + 0x24]
jne 0x46cefa
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 0x46cefa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046c8f8
add esp, 0x14
test edx, edx
jl 0x46cefa
jg 0x46ce70
test eax, eax
jb 0x46cefa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46cefa
jl 0x46ce8a
cmp dword [ebp - 0x1008], eax
ja 0x46cefa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46cea8
test ebx, ebx
je 0x46cee1
cmp ecx, edi
jae 0x46cee1
mov al, byte [ecx]
cmp al, 0xd
jne 0x46cec2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46cece
cmp byte [ecx + 1], 0xa
jne 0x46cece
inc ecx
jmp 0x46cece
movzx eax, al
movsx eax, byte [eax + 0x4ba358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46cea8
cmp edx, ebx
jne 0x46cea8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46ceff
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044b95e
leave
ret
Function at 0x46f723
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ba080]
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 0x46f76e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046f8c2
test al, al
jne 0x46f768
sub edx, 2
cmp edx, edi
jne 0x46f74e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46f790
lea eax, [edi + 2]
cmp edx, eax
je 0x46f790
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046f66f
add esp, 0x10
jmp 0x46f88a
push esi
lea ecx, [ebp - 0x255]
call fcn.0046f8c2
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 0x46f7d3
push dword [ebp - 0x25c]
jmp 0x46f780
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 0x46f810
cmp word [ebp - 0x226], 0
je 0x46f831
cmp word [ebp - 0x226], ax
jne 0x46f810
cmp word [ebp - 0x224], 0
je 0x46f831
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046f66f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46f87d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46f7ea
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x46f865
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46f88a
push 0x46f49f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00476fe0
add esp, 0x10
jmp 0x46f85a
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.0044b95e
leave
ret

Function at 0x470195
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4701a6
pop esi
ret
push ebx
push edi
push esi
call fcn.0047015e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004697ae
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4701ce
push ebx
push esi
push edi
call fcn.0044d540
add esp, 0xc
push 0
call fcn.00468b49
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x470592
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004701e3
Function at 0x477605
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.00477581
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x47777d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x47777d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x47772c
jg 0x47765e
test eax, eax
je 0x477722
push 1
push 0x1000
call fcn.0046abd8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x477684
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x477719
push 0x8000
push ebx
call fcn.00464b40
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 0x4776b0
jg 0x4776ab
cmp ecx, 0x1000
jb 0x4776b0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00468318
add esp, 0x10
cmp eax, 0xffffffff
je 0x4776f5
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 0x4776ab
jl 0x4776dc
test ecx, ecx
jne 0x47769d
push dword [ebp - 0xc]
push ebx
call fcn.00464b40
push esi
call fcn.00468b49
add esp, 0xc
xor edi, edi
jmp 0x47778e
cmp byte [edi + 0x24], 0
je 0x47770c
cmp dword [edi + 0x20], 5
jne 0x47770c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x477717
mov edi, dword [edi + 0x18]
jmp 0x477719
xor edi, edi
push esi
call fcn.00468b49
pop ecx
jmp 0x47778e
test ecx, ecx
jg 0x4776ee
jl 0x47772c
test eax, eax
jae 0x4776ee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046c916
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47774f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4776ee
jmp 0x477786
push ebx
call fcn.0046c6a5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4776ee
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 0x47778e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x47778b
mov edi, dword [edi + 0x18]
jmp 0x47778e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046c916
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x477fb0
Capabilities:
Parse pe header

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