joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455580
Capabilities:
Hash data using fnv

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 0x4a0965
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4c6180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 0xc]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0041d7b0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x455617
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x455750
cmp dword [edi + 8], 0x5d1745d
je 0x455766
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x20], 0
call fcn.00474a76
mov esi, eax
add esp, 4
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], esi
mov ecx, dword [eax]
mov dword [esi + 8], ecx
movups xmm0, xmmword [eax + 4]
movups xmmword [esi + 0xc], xmm0
movups xmm0, xmmword [eax + 0x14]
movups xmmword [esi + 0x1c], xmm0
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4b5140]
mov eax, dword [edi + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4b5140]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x455700
divss xmm0, xmm3
call fcn.00407430
call fcn.0049c5e0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jae 0x4556dc
cmp eax, 0x200
jae 0x4556da
shl eax, 3
cmp eax, ecx
jae 0x4556dc
mov eax, ecx
push eax
mov ecx, edi
call fcn.0041dba0
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d7b0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
jmp 0x455703
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
and eax, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x20]
jne 0x455731
mov dword [ecx + eax*8], esi
jmp 0x455743
cmp edi, edx
jne 0x45573a
mov dword [ecx + eax*8], esi
jmp 0x455747
mov edx, dword [ebp - 0x18]
cmp dword [ecx + eax*8 + 4], edx
jne 0x455747
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebx + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
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 8
push str.unordered_map_set_too_long
call fcn.0045bc99
int3
Function at 0x4595c0
Capabilities:
Hide graphical window

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 0x4a373d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x4c6180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edi, dword [esi + 4]
test edi, edi
jne 0x4596fc
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x45977d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.SYSTEM_EVT_HANDLER
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00409810
test al, al
jne 0x45964a
push 0x12
push str.SYSTEM_EVT_HANDLER
lea ecx, [ebp - 0x14]
call fcn.00409a50
mov eax, dword [0x4c6cd4]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x58], 0x459790
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x4c6cd4]
mov esi, dword [ebp - 0x14]
push 0
push eax
push 0
push 0
push 1
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push SysReAllocString
push 0
push esi
push 0x8000000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
jne 0x4596ce
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4596ca
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
jmp 0x4596f6
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4596f6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov dword [esi + 4], edi
push 1
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push edi
lea eax, [ebp - 0x34]
movq qword [ebp - 0x24], xmm0
push eax
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x459767
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x30]
cmp eax, 0x401
je 0x45974e
cmp eax, 0x402
je 0x45974e
cmp eax, 0x12
jne 0x459767
mov dword [esi + 8], eax
mov al, 1
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
xor al, al
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
push 0x80004005
call fcn.00407590
int3
Function at 0x45a080
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov ebx, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 2
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
lea esi, [ebx + 0x20]
mov dword [ebp - 0x2c], 4
push esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
call dword [sym.imp.Secur32.dll_ApplyControlToken]
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], 2
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0
push 0
push ecx
push 0
push 0
push 0x811c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 1
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x18]
push esi
push eax
mov dword [ebp - 8], 0x811c
call dword [sym.imp.Secur32.dll_InitializeSecurityContextW]
test eax, eax
jne 0x45a145
mov esi, dword [ebp - 0x18]
push edi
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x45a13a
nop dword [eax]
push 0
push edi
push esi
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x45a137
add esi, eax
sub edi, eax
jne 0x45a120
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.Secur32.dll_FreeContextBuffer]
lea esi, [ebx + 0x20]
pop edi
push 2
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ae30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4c6180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x414], 0x400
push edi
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x410], eax
call fcn.0045afa0
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004064d0
mov edi, eax
lea eax, [ebp - 0x408]
lea ecx, [edi + 0x10]
push ecx
push 0x4b4e48
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45ae99
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [ebp + 8]
cmp al, 0xff
jne 0x45af0c
cmp byte [ebp + 0xc], 0
jne 0x45af0c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x408]
push eax
push 0x4b26b0
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ax, word [ebp - 0x408]
cmp ax, 0x31
jne 0x45aef4
mov dword [esi + 0xc], 1
jmp 0x45af5a
cmp ax, 0x32
jne 0x45af03
mov dword [esi + 0xc], 2
jmp 0x45af5a
mov dword [esi + 0xc], 0
jmp 0x45af5a
push eax
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x408]
push 0x4b3ff4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x408]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45af30
sub ecx, edx
lea eax, [ebp - 0x408]
sar ecx, 1
push ecx
push eax
push 1
push 0x4b26b0
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov eax, dword [ebp - 0x410]
cmp eax, dword [esi + 0xc]
je 0x45af6c
mov cl, 1
lea eax, [esi + 8]
xchg byte [eax], cl
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00474a5a
mov esp, ebp
pop ebp
ret 8
Function at 0x45bd8a
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 0x45bdb1
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x45bdb4
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.0045bd66
pop esi
leave
ret 8

Function at 0x462511
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x462532
jl 0x462529
test edi, edi
jne 0x462532
xor eax, eax
xor edx, edx
jmp 0x4625f3
cmp dword [ebx + 0x38], 0
je 0x462547
push eax
push edi
push dword [ebp + 8]
call fcn.004625f9
jmp 0x4625f3
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x46258e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x46258e
cmp eax, edi
jb 0x462568
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004769e0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x462594
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4625e8
mov ecx, ebx
call fcn.00461e17
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4625d3
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00487728
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4625e8
jmp 0x4625a6
test edx, edx
je 0x4625e8
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00487728
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4745ef
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0048625d
mov eax, dword [eax + 0x14]
test eax, eax
je 0x474632
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 0x474632
sub eax, 1
je 0x47462d
sub eax, 1
je 0x474629
xor eax, eax
leave
ret
push 3
jmp 0x474634
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x475a0f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x475a4e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x475a4e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x475a4e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x475a4e
cmp dword [ecx + 0x74], 0xe
jbe 0x475a4e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x48f109
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ab9c4
push 0x4ab9bc
push str.FlsAlloc
push 0x1f
call fcn.0048ef32
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48f13d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a6448]
call esi
jmp 0x48f143
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48f187
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ab9d4
push 0x4ab9cc
push str.FlsGetValue
push 0x21
call fcn.0048ef32
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48f1be
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a6448]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48f1c6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ab9dc
push 0x4ab9d4
push str.FlsSetValue
push 0x22
call fcn.0048ef32
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48f200
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a6448]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x493584
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00475c60
mov eax, dword [0x4c6180]
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.0048e72b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4935c6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x493722
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0049c150
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 + 0x4cbe30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00494329
mov ecx, dword [esi*4 + 0x4cbe30]
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 0x49371b
cmp eax, dword [ecx + edi + 0x24]
jne 0x49371b
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 0x49371b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00494329
add esp, 0x14
test edx, edx
jl 0x49371b
jg 0x493691
test eax, eax
jb 0x49371b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49371b
jl 0x4936ab
cmp dword [ebp - 0x1008], eax
ja 0x49371b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4936c9
test ebx, ebx
je 0x493702
cmp ecx, edi
jae 0x493702
mov al, byte [ecx]
cmp al, 0xd
jne 0x4936e3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4936ef
cmp byte [ecx + 1], 0xa
jne 0x4936ef
inc ecx
jmp 0x4936ef
movzx eax, al
movsx eax, byte [eax + 0x4c65f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4936c9
cmp edx, ebx
jne 0x4936c9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x493720
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00474a5a
leave
ret
Function at 0x4937c1
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 + 0x4cbe30]
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 0x493801
cmp byte [ebx], 0xa
jne 0x493801
or byte [edi + eax + 0x28], 4
jmp 0x493806
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 0x493905
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4938e8
inc eax
cmp dl, 0xd
je 0x493832
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x493858
cmp eax, ecx
jae 0x493866
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 0x49381a
jmp 0x493905
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 0x4938e3
cmp dword [ebp - 0x10], 0
je 0x4938e3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4cbe30]
test byte [eax + edi + 0x28], 0x48
je 0x4938bd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4938a8
mov byte [esi], dl
jmp 0x4938b9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cbe30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x493905
cmp byte [ebp - 1], 0xa
jne 0x4938cc
cmp esi, ebx
jne 0x4938cc
mov byte [esi], 0xa
jmp 0x493904
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00494347
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x493905
mov byte [esi], 0xd
jmp 0x493904
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4cbe30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x493902
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x493905
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49390e
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 + 0x4cbe30]
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 0x493954
cmp word [ebx], dx
jne 0x493954
or byte [eax + edi + 0x28], 4
jmp 0x493959
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 0x493abc
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 0x493a9c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49399a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4939d0
cmp eax, edx
jae 0x4939de
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 0x493975
jmp 0x493abc
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 0x493a97
cmp dword [ebp - 0x18], 0
je 0x493a97
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4cbe30]
test byte [eax + edi + 0x28], 0x48
je 0x493a6d
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 0x493a31
mov word [esi], cx
jmp 0x493a68
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4cbe30]
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 + 0x4cbe30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4cbe30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x493abc
pop eax
cmp word [ebp - 4], ax
jne 0x493a7d
cmp esi, ebx
jne 0x493a7d
mov word [esi], ax
jmp 0x493ab9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00494347
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x493abc
push 0xd
pop eax
jmp 0x493a78
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4cbe30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x493ab6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x493abc
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 0x4948e9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4c6180]
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 0x494934
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00494a84
test al, al
jne 0x49492e
sub edx, 2
cmp edx, edi
jne 0x494914
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x494956
lea eax, [edi + 2]
cmp edx, eax
je 0x494956
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00494835
add esp, 0x10
jmp 0x494a50
push esi
lea ecx, [ebp - 0x255]
call fcn.00494a84
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 0x494999
push dword [ebp - 0x25c]
jmp 0x494946
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 0x4949d6
cmp word [ebp - 0x226], 0
je 0x4949f7
cmp word [ebp - 0x226], ax
jne 0x4949d6
cmp word [ebp - 0x224], 0
je 0x4949f7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00494835
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x494a43
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4949b0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x494a2b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x494a50
push 0x494665
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004833c0
add esp, 0x10
jmp 0x494a20
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.00474a5a
leave
ret

Function at 0x495367
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x495378
pop esi
ret
push ebx
push edi
push esi
call fcn.00495330
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048d8af
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4953a0
push ebx
push esi
push edi
call fcn.004769e0
add esp, 0xc
push 0
call fcn.0048d875
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x495770
Capabilities:
Set environment variable

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