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

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

Function at 0x448712
Capabilities:
Allocate thread local storage

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x45f150
push 0x45f148
push str.FlsAlloc
push 3
call fcn.004484ca
push eax
pop esi
add esp, 0x10
test esi, esi
je 0x44874f
push dword [ebp + 8]
push esi
pop ecx
call dword [0x4594fc]
call esi
jmp 0x448755
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00434fcb
mov esp, ebp
pop ebp
ret 4

Function at 0x4487bc
Capabilities:
Get thread local storage value

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x45f160
push 0x45f158
push str.FlsGetValue
push 5
call fcn.004484ca
add esp, 0x10
push eax
pop esi
push dword [ebp + 8]
test esi, esi
je 0x4487fb
push esi
pop ecx
call dword [0x4594fc]
call esi
jmp 0x448801
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00434fcb
mov esp, ebp
pop ebp
ret 4

Function at 0x448812
Capabilities:
Set thread local storage value

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x45f168
push 0x45f160
push str.FlsSetValue
push 6
call fcn.004484ca
add esp, 0x10
push eax
pop esi
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x448854
push esi
pop ecx
call dword [0x4594fc]
call esi
jmp 0x44885a
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00434fcb
mov esp, ebp
pop ebp
ret 8

Function at 0x4488ed
Capabilities:
Get geographical location

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x45f190
push 0x45f188
push str.GetLocaleInfoEx
push 0xd
call fcn.004484ca
add esp, 0x10
push eax
pop esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
test esi, esi
je 0x448935
push dword [ebp + 8]
push esi
pop ecx
call dword [0x4594fc]
call esi
jmp 0x448946
push 0
push dword [ebp + 8]
call fcn.00448c3b
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00434fcb
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44b3bc
Capabilities:
Write file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
pop ecx
and eax, 0x3f
sar ecx, 6
push ebx
imul ebx, eax, 0x30
push esi
mov eax, dword [ecx*4 + 0x472810]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + ebx + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
add eax, edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.DLL_GetConsoleCP]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
cmp edi, ecx
jae 0x44b55c
mov ch, byte [edi]
xor eax, eax
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x1b], ch
mov edx, dword [eax*4 + 0x472810]
mov cl, byte [edx + ebx + 0x2d]
test cl, 4
je 0x44b456
mov al, byte [edx + ebx + 0x2e]
and cl, 0xfb
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push 2
mov byte [ebp - 0xb], ch
mov byte [edx + ebx + 0x2d], cl
push eax
jmp 0x44b490
call fcn.00445b50
movzx ecx, byte [edi]
mov edx, 0x8000
test word [eax + ecx*2], dx
je 0x44b48d
cmp edi, dword [ebp - 0x24]
jae 0x44b533
push 2
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00449e22
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b55c
inc edi
jmp 0x44b4a5
push 1
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00449e22
add esp, 0xc
cmp eax, 0xffffffff
je 0x44b55c
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
push ecx
push 5
push eax
push 1
lea eax, [ebp - 0x18]
inc edi
push eax
push ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x44b55c
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44b554
mov eax, dword [esi + 8]
sub eax, dword [ebp - 0x30]
add eax, edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x20], eax
jb 0x44b55c
cmp byte [ebp - 0x1b], 0xa
jne 0x44b528
push 0xd
pop eax
push 0
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44b554
cmp dword [ebp - 0x20], 1
jb 0x44b55c
inc dword [esi + 8]
inc dword [esi + 4]
cmp edi, dword [ebp - 0x24]
jb 0x44b41f
jmp 0x44b55c
mov edx, dword [ebp - 0x2c]
mov al, byte [edi]
mov ecx, dword [edx*4 + 0x472810]
mov byte [ecx + ebx + 0x2e], al
mov eax, dword [edx*4 + 0x472810]
or byte [eax + ebx + 0x2d], 4
inc dword [esi + 4]
jmp 0x44b55c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
push esi
pop eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434fcb
mov esp, ebp
pop ebp
ret
Function at 0x44b652
Capabilities:
Write file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.004576b0
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
pop eax
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax*4 + 0x472810]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx + 0x18]
mov eax, dword [ebp + 0x14]
and dword [esi], 0
add eax, ebx
and dword [esi + 4], 0
and dword [esi + 8], 0
mov dword [ebp - 0x1410], ecx
mov dword [ebp - 0x1408], eax
jmp 0x44b710
lea edi, [ebp - 0x1404]
cmp ebx, eax
jae 0x44b6d3
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x44b6c3
inc dword [esi + 8]
mov byte [edi], 0xd
inc edi
mov byte [edi], al
lea eax, [ebp - 5]
inc edi
cmp edi, eax
mov eax, dword [ebp - 0x1408]
jb 0x44b6b1
lea eax, [ebp - 0x1404]
sub edi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
push edi
lea eax, [ebp - 0x1404]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44b716
mov eax, dword [ebp - 0x140c]
add dword [esi + 4], eax
cmp eax, edi
jb 0x44b71e
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp ebx, eax
jb 0x44b6ab
jmp 0x44b71e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
push esi
pop eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434fcb
mov esp, ebp
pop ebp
ret

Function at 0x44b731
Capabilities:
Write file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.004576b0
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
pop eax
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax*4 + 0x472810]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx + 0x18]
mov eax, dword [ebp + 0x14]
add eax, ebx
mov dword [ebp - 0x1410], ecx
xor edx, edx
mov dword [ebp - 0x1408], eax
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
jmp 0x44b7fe
lea edi, [ebp - 0x1404]
cmp ebx, eax
jae 0x44b7be
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xa
jne 0x44b7ab
add dword [esi + 8], 2
push 0xd
pop edx
mov word [edi], dx
add edi, 2
mov word [edi], ax
lea eax, [ebp - 6]
add edi, 2
cmp edi, eax
mov eax, dword [ebp - 0x1408]
jb 0x44b78f
lea eax, [ebp - 0x1404]
sub edi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
and edi, 0xfffffffe
lea eax, [ebp - 0x1404]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44b804
mov eax, dword [ebp - 0x140c]
add dword [esi + 4], eax
cmp eax, edi
jb 0x44b80c
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp ebx, eax
jb 0x44b789
jmp 0x44b80c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
push esi
pop eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434fcb
mov esp, ebp
pop ebp
ret
Function at 0x44b81f
Capabilities:
Write file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.004576b0
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
pop eax
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x30
push ebx
push esi
mov eax, dword [eax*4 + 0x472810]
xor ebx, ebx
mov esi, dword [ebp + 8]
push edi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
push ecx
pop edi
mov dword [ebp - 0x1414], eax
mov eax, dword [ebp + 0x14]
add eax, ecx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [ebp - 0x140c], eax
mov dword [esi + 8], ebx
cmp ecx, eax
jae 0x44b939
mov esi, dword [ebp - 0x140c]
lea eax, [ebp - 0x6b0]
cmp edi, esi
jae 0x44b8b0
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0xa
jne 0x44b8a3
push 0xd
pop edx
mov word [eax], dx
add eax, 2
mov word [eax], cx
add eax, 2
lea ecx, [ebp - 8]
cmp eax, ecx
jb 0x44b88b
push ebx
push ebx
push 0xd55
lea ecx, [ebp - 0x1408]
push ecx
lea ecx, [ebp - 0x6b0]
sub eax, ecx
sar eax, 1
push eax
push ecx
pop eax
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1418], eax
test eax, eax
je 0x44b931
push 0
lea ecx, [ebp - 0x1410]
sub eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1408]
add eax, ebx
push eax
push dword [ebp - 0x1414]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44b931
add ebx, dword [ebp - 0x1410]
mov eax, dword [ebp - 0x1418]
cmp ebx, eax
jb 0x44b8e5
push edi
pop eax
sub eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp edi, dword [ebp - 0x140c]
jae 0x44b939
xor ebx, ebx
jmp 0x44b87f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
push esi
pop eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434fcb
mov esp, ebp
pop ebp
ret
Function at 0x44c0e6
Capabilities:
Read file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
test eax, eax
jne 0x44bf8a
call fcn.004405dd
mov dword [eax], 0x16
call fcn.0043bcec
or eax, 0xffffffff
jmp 0x44c0e3
mov eax, dword [eax + 0xc]
push ebx
xor ebx, ebx
shr eax, 0xd
inc ebx
test bl, al
je 0x44c0df
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
shr eax, 0xc
test bl, al
jne 0x44c0df
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
shr eax, 1
test bl, al
mov eax, dword [ebp + 8]
je 0x44bfca
push 0x10
pop ecx
add eax, 0xc
lock or dword [eax], ecx
jmp 0x44c0df
add eax, 0xc
lock or dword [eax], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, 0x4c0
jne 0x44bfe6
push dword [ebp + 8]
call fcn.0044c0f1
pop ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [eax], ecx
mov esi, dword [ebp + 8]
push dword [esi + 0x18]
push dword [esi + 4]
push esi
call fcn.0044aae7
pop ecx
push eax
call fcn.0044cc6d
mov dword [esi + 8], eax
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
test edx, edx
je 0x44c0c4
cmp edx, 0xffffffff
je 0x44c0c4
mov eax, dword [eax + 0xc]
test al, 6
jne 0x44c085
push dword [ebp + 8]
call fcn.0044aae7
pop ecx
cmp eax, 0xffffffff
je 0x44c06b
push dword [ebp + 8]
call fcn.0044aae7
pop ecx
cmp eax, 0xfffffffe
je 0x44c06b
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0044aae7
push eax
pop edi
push esi
sar edi, 6
call fcn.0044aae7
and eax, 0x3f
imul eax, eax, 0x30
pop ecx
pop ecx
add eax, dword [edi*4 + 0x472810]
pop edi
jmp 0x44c070
mov eax, 0x471350
mov al, byte [eax + 0x28]
and al, 0x82
cmp al, 0x82
jne 0x44c085
mov eax, dword [ebp + 8]
push 0x20
pop ecx
add eax, 0xc
lock or dword [eax], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x200
jne 0x44c0b5
mov eax, dword [eax + 0xc]
shr eax, 6
test bl, al
je 0x44c0b2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
shr eax, 8
test bl, al
jne 0x44c0b2
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x1000
mov eax, dword [ebp + 8]
dec dword [eax + 8]
mov ecx, dword [eax]
mov dl, byte [ecx]
inc ecx
mov dword [eax], ecx
movzx eax, dl
jmp 0x44c0e2
xor ecx, ecx
test edx, edx
setne cl
add eax, 0xc
lea ecx, [ecx*8 + 8]
lock or dword [eax], ecx
mov ecx, dword [ebp + 8]
and dword [ecx + 8], 0
or eax, 0xffffffff
pop ebx
pop esi
pop ebp
ret
push edi
pop edi
push ebp
mov ebp, esp
pop ebp
jmp 0x44bf65
Function at 0x44c785
Capabilities:
Read file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x472810]
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 0x44c7c6
cmp byte [edx], 0xa
jne 0x44c7c6
or byte [eax + edi + 0x28], 4
jmp 0x44c7cb
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
push edx
pop ebx
mov dword [ebp - 8], eax
push edx
pop esi
cmp edx, eax
jae 0x44c8d1
lea eax, [edx + 1]
mov cl, byte [ebx]
cmp cl, 0x1a
je 0x44c8b2
cmp cl, 0xd
je 0x44c7fa
mov byte [esi], cl
inc esi
inc ebx
inc eax
jmp 0x44c8a5
mov ecx, dword [ebp - 8]
cmp eax, ecx
jae 0x44c820
cmp byte [eax], 0xa
jne 0x44c815
add ebx, 2
mov byte [esi], 0xa
add eax, 2
inc esi
jmp 0x44c8a8
mov byte [esi], 0xd
inc esi
inc ebx
inc eax
jmp 0x44c8a8
inc ebx
inc eax
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
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 0x44c89b
cmp dword [ebp - 0x18], 0
je 0x44c89b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x472810]
test byte [eax + edi + 0x28], 0x48
je 0x44c871
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x44c861
mov byte [esi], dl
jmp 0x44c89f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x472810]
mov byte [eax + edi + 0x2a], dl
jmp 0x44c89f
cmp byte [ebp - 1], 0xa
jne 0x44c884
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x44c884
mov byte [esi], 0xa
inc esi
jmp 0x44c8a2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044c2ec
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44c89f
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp ebx, ecx
jb 0x44c7e0
jmp 0x44c8d1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x472810]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44c8cc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44c8d1
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
push esi
pop eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c8dc
Capabilities:
Read file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x472810]
pop ebx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x44c920
cmp word [edx], bx
jne 0x44c920
or byte [eax + edi + 0x28], 4
jmp 0x44c925
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + esi*2]
push edx
pop ebx
mov dword [ebp - 0x10], eax
push edx
pop esi
cmp edx, eax
jae 0x44ca8e
lea eax, [edx + 2]
movzx ecx, word [ebx]
mov dword [ebp - 0xc], ecx
cmp ecx, 0x1a
mov ecx, dword [ebp - 8]
je 0x44ca6e
push 0xd
pop edx
cmp word [ebp - 0xc], dx
mov edx, dword [ebp + 0xc]
je 0x44c96c
mov ecx, dword [ebp - 0xc]
add ebx, 2
mov word [esi], cx
add esi, 2
add eax, 2
jmp 0x44ca63
cmp eax, dword [ebp - 0x10]
jae 0x44c9a4
push 0xa
pop edx
cmp word [eax], dx
mov edx, dword [ebp + 0xc]
jne 0x44c990
push 0xa
pop ecx
add ebx, 4
mov word [esi], cx
add eax, 4
add esi, 2
jmp 0x44ca63
push 0xd
pop edx
mov word [esi], dx
add ebx, 2
add esi, 2
add eax, 2
jmp 0x44ca60
add eax, 2
add ebx, 2
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44ca54
cmp dword [ebp - 0x18], 0
je 0x44ca54
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x472810]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x44ca22
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x44c9f6
mov word [esi], ax
jmp 0x44ca5d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x472810]
push 0xa
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ecx*4 + 0x472810]
mov byte [eax + edi + 0x2b], dh
mov eax, dword [ecx*4 + 0x472810]
pop edx
mov byte [eax + edi + 0x2c], dl
jmp 0x44ca5d
cmp word [ebp - 4], ax
jne 0x44ca3a
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x44ca3a
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0xc]
jmp 0x44ca63
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044c2ec
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44ca5d
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 0x10]
jb 0x44c93a
jmp 0x44ca8e
mov ecx, dword [ecx*4 + 0x472810]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44ca85
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44ca8e
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
push esi
pop eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e90f
Capabilities:
Enumerate files on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x148], esi
jmp 0x44e951
mov al, byte [ecx]
cmp al, 0x2f
je 0x44e955
cmp al, 0x5c
je 0x44e955
cmp al, 0x3a
je 0x44e955
push ecx
push ebx
call fcn.00456280
pop ecx
pop ecx
push eax
pop ecx
cmp ecx, ebx
jne 0x44e938
mov dl, byte [ecx]
cmp dl, 0x3a
jne 0x44e973
lea eax, [ebx + 1]
cmp ecx, eax
je 0x44e973
push esi
xor edi, edi
push edi
push edi
push ebx
call fcn.0044e879
add esp, 0x10
jmp 0x44e9ed
xor edi, edi
cmp dl, 0x2f
je 0x44e988
cmp dl, 0x5c
je 0x44e988
cmp dl, 0x3a
je 0x44e988
push edi
pop eax
jmp 0x44e98b
xor eax, eax
inc eax
movzx eax, al
sub ecx, ebx
inc ecx
neg eax
push 0x140
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x144]
push edi
push eax
call fcn.00436e90
add esp, 0xc
lea eax, [ebp - 0x144]
push edi
push edi
push edi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExA]
push eax
pop esi
mov eax, dword [ebp - 0x148]
cmp esi, 0xffffffff
jne 0x44e9fe
push eax
push edi
push edi
push ebx
call fcn.0044e879
add esp, 0x10
push eax
pop edi
cmp esi, 0xffffffff
je 0x44e9eb
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push edi
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434fcb
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
mov dword [ebp - 0x150], ecx
cmp byte [ebp - 0x118], 0x2e
jne 0x44ea2d
mov cl, byte [ebp - 0x117]
test cl, cl
je 0x44ea48
cmp cl, 0x2e
jne 0x44ea2d
cmp byte [ebp - 0x116], 0
je 0x44ea48
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.0044e879
add esp, 0x10
test eax, eax
jne 0x44e9dd
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x148]
jne 0x44ea0c
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x150]
sub eax, edx
sar eax, 2
cmp ecx, eax
je 0x44e9df
push 0x44e6d1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00441000
add esp, 0x10
jmp 0x44e9df

Function at 0x44f3dd
Capabilities:
Query environment variable

Disassembly:
push edi
pop edi
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
push eax
pop esi
test esi, esi
jne 0x44f3f1
xor edi, edi
jmp 0x44f428
push ebx
push esi
call fcn.0044f323
sub eax, esi
sar eax, 1
lea ebx, [eax + eax]
push ebx
call fcn.00446137
push eax
pop edi
pop ecx
pop ecx
test edi, edi
je 0x44f418
push ebx
push esi
push edi
call fcn.00436910
add esp, 0xc
push 0
call fcn.00446782
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
pop ebx
push edi
pop eax
pop edi
pop esi
ret
Function at 0x45243c
Capabilities:
Get geographical location

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
push edi
test ecx, ecx
je 0x4524ed
xor eax, eax
cmp word [ecx], ax
je 0x4524ed
mov esi, 0x460348
push ecx
pop edx
mov di, word [edx]
cmp di, word [esi]
jne 0x452487
test di, di
je 0x452483
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x452487
add edx, 4
add esi, 4
test di, di
jne 0x452461
push eax
pop edx
jmp 0x45248c
sbb edx, edx
or edx, 1
test edx, edx
je 0x4524ed
mov esi, 0x460350
push ecx
pop edx
mov di, word [edx]
cmp di, word [esi]
jne 0x4524bb
test di, di
je 0x4524c0
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x4524bb
add edx, 4
add esi, 4
test di, di
jne 0x452497
jmp 0x4524c0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4524e4
push 2
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push 0x2000000b
push dword [eax + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x452508
mov eax, dword [ebp - 4]
jmp 0x452519
push ecx
call fcn.0043ba82
pop ecx
jmp 0x452519
push 2
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push 0x20001004
push dword [eax + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jne 0x45250c
xor eax, eax
jmp 0x452519
mov eax, dword [ebp - 4]
test eax, eax
jne 0x452519
call dword [sym.imp.KERNEL32.DLL_GetACP]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x452543
Capabilities:
Get geographical location

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00448215
mov esi, dword [ebp + 8]
push eax
pop edi
push 2
lea eax, [ebp - 4]
push esi
pop ecx
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jne 0x45257d
xor eax, eax
jmp 0x4525ad
cmp esi, dword [ebp - 4]
je 0x4525aa
cmp dword [ebp + 0xc], 0
je 0x4525aa
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45258e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00452097
pop ecx
cmp eax, esi
je 0x452579
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret