joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4205c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d563
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x49b180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x2c], ecx
mov dword [ecx + 4], 0
push 0x98
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edi
mov dword [ecx], vtable.spdlog::sinks::base_sink_class_std::mutex_.0
call fcn.0045328a
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push 0x98
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00455810
sub esp, 0xc
xorps xmm0, xmm0
mov ecx, esp
push 2
movups xmmword [ecx], xmm0
push 0x48d35c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004075a0
push ecx
mov ecx, esi
call fcn.0040cee0
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [esi + 8], eax
call fcn.00413570
xorps xmm0, xmm0
movups xmmword [esi + 0x18], xmm0
movq qword [esi + 0x28], xmm0
mov dword [esi + 0x30], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0xc], 2
mov dword [esi + 0x38], 0
mov dword [ebp - 4], 1
lea eax, [esi + 0x40]
mov dword [esi], vtable.spdlog::sinks::basic_file_sink_class_std::mutex_.0
mov dword [eax], 5
mov dword [eax + 4], 0xa
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0xf
mov dword [ebp - 0x14], eax
mov byte [eax + 0xc], 0
lea esi, [eax + 0x28]
mov dword [esi + 0x24], 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x42071d
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
lea edi, [esi + 0x28]
mov dword [edi + 0x24], 0
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x420745
mov eax, dword [ecx]
push edi
mov eax, dword [eax]
call eax
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x18]
lea edi, [esi + 0x50]
mov dword [edi + 0x24], 0
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 7
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x42076a
mov eax, dword [ecx]
push edi
mov eax, dword [eax]
call eax
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x18]
add esi, 0x78
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 9
mov ecx, dword [eax + 0x9c]
test ecx, ecx
je 0x42078f
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
push ecx
push dword [ebp - 0x24]
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x14]
call fcn.0040e990
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x421800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d60d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x49b180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 8]
push 0x58
mov dword [ebp - 0x18], esi
call fcn.0045328a
mov ecx, dword [esi]
mov edi, eax
add esi, 8
lea ebx, [edi + 8]
add esp, 4
mov dword [edi], ecx
mov dword [ebx + 0x24], 0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x421885
cmp ecx, esi
jne 0x42187b
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov dword [ebx + 0x24], eax
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x421885
mov eax, dword [ecx]
cmp ecx, esi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
jmp 0x42187e
mov dword [ebx + 0x24], ecx
mov dword [esi + 0x24], 0
mov esi, dword [ebp - 0x18]
lea ebx, [edi + 0x30]
add esi, 0x30
mov dword [ebx + 0x24], 0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4218c9
cmp ecx, esi
jne 0x4218bf
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov dword [ebx + 0x24], eax
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4218c9
mov eax, dword [ecx]
cmp ecx, esi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
jmp 0x4218c2
mov dword [ebx + 0x24], ecx
mov dword [esi + 0x24], 0
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
lea esi, [ebx + 4]
push esi
push 0
push edi
push 0x423430
push 0
push 0
call fcn.0045b593
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x421912
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453277
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [esi], 0
call fcn.0043e5a0
int3
Function at 0x42dd30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x49b180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x43c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x43c]
push eax
push esi
mov dword [ebp - 0x440], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42de5c
nop
push dword [ebp - 0x434]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x42de46
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x42de3f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ddd0
mov eax, dword [ebp - 0x444]
sub ecx, edx
sar ecx, 1
mov edi, eax
cmp dword [eax + 0x14], 7
mov esi, dword [eax + 0x10]
jbe 0x42ddf2
mov edi, dword [eax]
cmp esi, ecx
jne 0x42de39
lea eax, [ebp - 0x20c]
test esi, esi
je 0x42de15
mov ecx, eax
sub edi, ecx
mov dx, word [edi + eax]
cmp dx, word [eax]
jne 0x42de39
add eax, 2
sub esi, 1
jne 0x42de04
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x440]
call ebx
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453277
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x440]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x43c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42dd80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453277
mov esp, ebp
pop ebp
ret

Function at 0x452c9f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00465052
mov eax, dword [eax + 0x14]
test eax, eax
je 0x452ce2
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x452ce2
sub eax, 1
je 0x452cdd
sub eax, 1
je 0x452cd9
xor eax, eax
leave
ret
push 3
jmp 0x452ce4
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x454414
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49b180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x483b80
push esi
call fcn.004706ca
pop ecx
pop ecx
test eax, eax
jne 0x460deb
xor al, al
jmp 0x460e68
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.00460afe
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x460e25
push dword [ebp - 0x210]
call fcn.0045963c
xor al, al
jmp 0x460e66
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x460e2b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x460e4b
push edx
call fcn.00460cf4
pop ecx
test al, al
je 0x460e16
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x460e59
mov bl, 1
push dword [ebp - 0x210]
call fcn.0045963c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00453277
leave
ret
Function at 0x46c485
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x485efc
push 0x485ef4
push str.FlsAlloc
push 0x1f
call fcn.0046c2b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c4b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x481240]
call esi
jmp 0x46c4bf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46c503
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x485f0c
push 0x485f04
push str.FlsGetValue
push 0x21
call fcn.0046c2b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c53a
push dword [ebp + 8]
mov ecx, esi
call dword [0x481240]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x46c542
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x485f14
push 0x485f0c
push str.FlsSetValue
push 0x22
call fcn.0046c2b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c57c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x481240]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x46cead
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00454670
mov eax, dword [0x49b180]
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.0046a575
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46ceef
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46d04b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047ab60
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 + 0x4a01f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046dcae
mov ecx, dword [esi*4 + 0x4a01f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x46d044
cmp eax, dword [ecx + edi + 0x24]
jne 0x46d044
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46d044
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046dcae
add esp, 0x14
test edx, edx
jl 0x46d044
jg 0x46cfba
test eax, eax
jb 0x46d044
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46d044
jl 0x46cfd4
cmp dword [ebp - 0x1008], eax
ja 0x46d044
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46cff2
test ebx, ebx
je 0x46d02b
cmp ecx, edi
jae 0x46d02b
mov al, byte [ecx]
cmp al, 0xd
jne 0x46d00c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46d018
cmp byte [ecx + 1], 0xa
jne 0x46d018
inc ecx
jmp 0x46d018
movzx eax, al
movsx eax, byte [eax + 0x49b448]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46cff2
cmp edx, ebx
jne 0x46cff2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46d049
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00453277
leave
ret
Function at 0x46d146
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 + 0x4a01f8]
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 0x46d186
cmp byte [ebx], 0xa
jne 0x46d186
or byte [edi + eax + 0x28], 4
jmp 0x46d18b
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 0x46d28a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46d26d
inc eax
cmp dl, 0xd
je 0x46d1b7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46d1dd
cmp eax, ecx
jae 0x46d1eb
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 0x46d19f
jmp 0x46d28a
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 0x46d268
cmp dword [ebp - 0x10], 0
je 0x46d268
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4a01f8]
test byte [eax + edi + 0x28], 0x48
je 0x46d242
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46d22d
mov byte [esi], dl
jmp 0x46d23e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a01f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46d28a
cmp byte [ebp - 1], 0xa
jne 0x46d251
cmp esi, ebx
jne 0x46d251
mov byte [esi], 0xa
jmp 0x46d289
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046dccc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46d28a
mov byte [esi], 0xd
jmp 0x46d289
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4a01f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46d287
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46d28a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46d293
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 + 0x4a01f8]
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 0x46d2d9
cmp word [ebx], dx
jne 0x46d2d9
or byte [eax + edi + 0x28], 4
jmp 0x46d2de
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 0x46d441
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 0x46d421
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46d31f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46d355
cmp eax, edx
jae 0x46d363
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 0x46d2fa
jmp 0x46d441
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 0x46d41c
cmp dword [ebp - 0x18], 0
je 0x46d41c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4a01f8]
test byte [eax + edi + 0x28], 0x48
je 0x46d3f2
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 0x46d3b6
mov word [esi], cx
jmp 0x46d3ed
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4a01f8]
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 + 0x4a01f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4a01f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46d441
pop eax
cmp word [ebp - 4], ax
jne 0x46d402
cmp esi, ebx
jne 0x46d402
mov word [esi], ax
jmp 0x46d43e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046dccc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46d441
push 0xd
pop eax
jmp 0x46d3fd
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4a01f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46d43b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46d441
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 0x46e3b0
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.0046e32c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x46e51f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x46e51f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x46e4d4
jg 0x46e40c
test eax, eax
je 0x46e4ca
push 1
push 0x1000
call fcn.0046bfae
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x46e42f
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x46e4c1
push 0x8000
push ebx
call fcn.0046865d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46e458
jg 0x46e453
cmp ecx, 0x1000
jb 0x46e458
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046ba18
add esp, 0x10
cmp eax, 0xffffffff
je 0x46e49d
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 0x46e453
jl 0x46e484
test ecx, ecx
jne 0x46e445
push dword [ebp - 0xc]
push ebx
call fcn.0046865d
push esi
call fcn.0046bc34
add esp, 0xc
xor ebx, ebx
jmp 0x46e52d
cmp byte [edi + 0x24], 0
je 0x46e4b4
cmp dword [edi + 0x20], 5
jne 0x46e4b4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x46e4bf
mov ebx, dword [edi + 0x18]
jmp 0x46e4c1
xor ebx, ebx
push esi
call fcn.0046bc34
pop ecx
jmp 0x46e52d
test ecx, ecx
jg 0x46e496
jl 0x46e4d4
test eax, eax
jae 0x46e496
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046dccc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46e4f4
cmp byte [edi + 0x1c], 0
je 0x46e496
jmp 0x46e525
push ebx
call fcn.0046e2c2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46e496
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 0x46e52d
cmp byte [edi + 0x1c], 0
je 0x46e52a
mov ebx, dword [edi + 0x18]
jmp 0x46e52d
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046dccc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x472bf6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x49b180]
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 0x472c41
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00472d91
test al, al
jne 0x472c3b
sub edx, 2
cmp edx, edi
jne 0x472c21
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x472c63
lea eax, [edi + 2]
cmp edx, eax
je 0x472c63
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00472b42
add esp, 0x10
jmp 0x472d5d
push esi
lea ecx, [ebp - 0x255]
call fcn.00472d91
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 0x472ca6
push dword [ebp - 0x25c]
jmp 0x472c53
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 0x472ce3
cmp word [ebp - 0x226], 0
je 0x472d04
cmp word [ebp - 0x226], ax
jne 0x472ce3
cmp word [ebp - 0x224], 0
je 0x472d04
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00472b42
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x472d50
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x472cbd
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x472d38
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x472d5d
push 0x472972
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00478e90
add esp, 0x10
jmp 0x472d2d
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.00453277
leave
ret

Function at 0x473676
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x473687
pop esi
ret
push ebx
push edi
push esi
call fcn.0047363f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046dd2a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4736af
push ebx
push esi
push edi
call fcn.00455290
add esp, 0xc
push 0
call fcn.0046bc34
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x473a7f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004736c4
Function at 0x475c6a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0046ab32
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x475cd9
cmp esi, dword [ebp - 4]
je 0x475cd4
cmp dword [ebp + 0xc], 0
je 0x475cd4
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x475cb1
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004757bc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x475cdb
xor eax, eax
inc eax
jmp 0x475cdb
xor eax, eax
pop edi
pop esi
leave
ret