joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004add
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x40
push dword [ebp + 8]
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 8], 2
jne 0x10004b03
mov word [esi], bx
jmp 0x10004b0b
cmp dword [ebp + 8], 1
jne 0x10004b0b
mov byte [esi], bl
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
leave
ret

Function at 0x1000527c
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, 0x10002d56
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esi + 8], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
setne al
mov byte [esi + 8], al
mov eax, esi
pop esi
ret 0xc

Function at 0x100052a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x768c7c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x768c80]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [0x768c84]
cmp dword [edi + 8], 2
mov esi, dword [edi]
sete bl
mov dword [ebp - 0xc], eax
mov eax, dword [0x768c88]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 8], eax
lea ebx, [ebx*4 + 2]
add esi, ebx
mov dword [ebp - 0x28], ebx
mov ecx, esi
mov dword [ebp - 0x1c], esi
and ecx, 0x80000007
jns 0x1000530b
dec ecx
or ecx, 0xfffffff8
add ecx, 1
je 0x10005317
push 8
pop eax
sub eax, ecx
add esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0xc]
mov eax, esi
cdq
add ecx, ebx
and edx, 3
mov dword [ebp - 0x20], ecx
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edx
test eax, eax
jle 0x100053ab
mov edi, dword [ecx + edx*4]
xor esi, esi
mov ebx, dword [ecx + edx*4 + 4]
push 0x20
pop edx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
sub esi, 0x61c88647
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
xor ecx, eax
add ebx, ecx
sub edx, 1
jne 0x10005342
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + edx*4], edi
mov dword [ecx + edx*4 + 4], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x24]
jl 0x10005336
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + 0xc]
lea ecx, [ebx - 2]
add ecx, esi
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10005496
leave
ret
Function at 0x100053c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x768c7c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x768c80]
mov dword [ebp - 0x10], eax
mov eax, dword [0x768c84]
mov dword [ebp - 0xc], eax
mov eax, dword [0x768c88]
mov dword [ebp - 8], eax
mov eax, edx
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
test eax, eax
jle 0x10005489
push ebx
push edi
mov edi, dword [esi + edx*4 + 2]
mov ebx, dword [esi + edx*4 + 6]
mov esi, 0xc6ef3720
push 0x20
pop edx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
add esi, 0x61c88647
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
xor ecx, eax
sub edi, ecx
sub edx, 1
jne 0x10005426
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esi + edx*4 + 2], edi
mov dword [esi + edx*4 + 6], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x20]
jl 0x10005416
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10005496
leave
ret
Function at 0x404fb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov eax, edx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x11c], eax
push ecx
push 0x2001f
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40508f
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x118]
call edi
test eax, eax
jne 0x405076
nop word [eax + eax]
mov ecx, dword [ebp - 0x118]
lea edx, [ebp - 0x108]
call fcn.00404fb0
mov esi, eax
test esi, esi
jne 0x4050a0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], pe_nt_image_headers32
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp - 0x118]
call edi
test eax, eax
je 0x405030
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x11c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413732
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413732
mov esp, ebp
pop ebp
ret
Function at 0x4063b0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x445040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
push 0
push 0x2000000
push 3
push 0
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x406423
mov edx, 0x440830
mov ecx, 0x4464b0
call fcn.0040bb80
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00408710
push eax
call fcn.0040be30
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00413732
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
call fcn.0041e999
add esp, 4
push eax
call fcn.004183bc
add esp, 4
call fcn.0041839b
cdq
mov ecx, 0xf
idiv ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
mov esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ebx, dword [esp + 0x20]
lea eax, [esi + 0x1e]
push 0xffffff36
cdq
push 0xd5964000
push edx
push eax
call fcn.00414070
add dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0xc]
push eax
push 0
push 0
adc ebx, edx
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4064bc
mov edx, 0x440848
mov ecx, 0x4464b0
call fcn.0040bb80
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00408710
jmp 0x4064cb
mov edx, 0x440864
mov ecx, 0x4462f8
call fcn.0040bb80
push eax
call fcn.0040be30
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413732
mov esp, ebp
pop ebp
ret
Function at 0x4064f0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x442888
push 0x414ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x445040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x7530
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x40668e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x406652
mov esi, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x406652
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x40663f
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x24]
jae 0x406682
lea eax, [edi + edi*8]
movups xmm1, xmmword [esi + eax*4]
movups xmm0, xmmword [esi + eax*4 + 0x10]
movups xmmword [ebp - 0x78], xmm0
mov eax, dword [esi + eax*4 + 0x20]
mov dword [ebp - 0x68], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x40663f
mov dword [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40663f
cmp dword [ebp - 0x44], 1
je 0x406656
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push 0x24
lea eax, [ebp - 0x48]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40663f
cmp dword [ebp - 0x44], 1
je 0x406656
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x406605
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x445040
call fcn.00417c90
add esp, 0xc
xor eax, eax
jmp 0x406693
mov dword [ebp - 4], 0
call fcn.0040667a
inc edi
mov dword [ebp - 0x50], edi
mov esi, dword [ebp - 0x54]
jmp 0x4065b4
mov dword [ebp - 4], 0xfffffffe
call fcn.004066b2
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00413732
mov esp, ebp
pop ebp
ret
Function at 0x40fda9
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 0x40fdd0
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40fdd3
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.0040fd85
pop esi
leave
ret 8

Function at 0x411555
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 0x411576
jl 0x41156d
test edi, edi
jne 0x411576
xor eax, eax
xor edx, edx
jmp 0x411637
cmp dword [ebx + 0x38], 0
je 0x41158b
push eax
push edi
push dword [ebp + 8]
call fcn.0041163d
jmp 0x411637
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4115d2
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4115d2
cmp eax, edi
jb 0x4115ac
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00414f00
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 0x4115d8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x41162c
mov ecx, ebx
call fcn.00410deb
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x411617
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004200fb
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 0x41162c
jmp 0x4115ea
test edx, edx
je 0x41162c
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004200fb
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 0x414538
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41e8ac
call fcn.0041f11c
mov dword [eax], 0xf
call fcn.0041f131
mov dword [eax], 0xd
call fcn.0041ef96
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413732
leave
ret
test eax, eax
jne 0x41e8b3
inc eax
jmp 0x41e8a0
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x41e89e
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41e8a0
Function at 0x42b005
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004146a0
mov eax, dword [0x445040]
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.004279dd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42b047
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42b1be
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004357f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x446dc0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042c224
mov ecx, dword [esi*4 + 0x446dc0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42b1b7
cmp eax, dword [edi + ecx + 0x24]
jne 0x42b1b7
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x42b1b7
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042c224
add esp, 0x14
cmp edx, esi
jl 0x42b1b7
jg 0x42b112
cmp eax, esi
jb 0x42b1b7
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x42b1b7
jl 0x42b134
cmp dword [ebp - 0x1008], eax
ja 0x42b1b7
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x42b159
cmp ebx, esi
je 0x42b19e
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x42b19e
mov al, byte [ecx]
cmp al, 0xd
jne 0x42b17f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42b18b
cmp byte [ecx + 1], 0xa
jne 0x42b18b
inc ecx
jmp 0x42b18b
movzx eax, al
movsx eax, byte [eax + 0x445310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42b165
cmp edx, ebx
jne 0x42b165
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x42b1bc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413732
leave
ret
Function at 0x42b60b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x42b625
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x42b63c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x42b694
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0042defc
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x42b694
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42b694
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42b694
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x42b68e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x42b690
xor bl, bl
mov al, bl
jmp 0x42b696
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x42b6b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x446dc0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b6f2
cmp byte [ebx], 0xa
jne 0x42b6f2
or byte [edi + eax + 0x28], 4
jmp 0x42b6f7
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42b7fa
mov cl, byte [eax]
cmp cl, 0x1a
je 0x42b7d5
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x42b726
mov eax, dword [ebp - 8]
jmp 0x42b746
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x42b762
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x42b740
add eax, 2
mov cl, 0xa
jmp 0x42b743
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x42b708
jmp 0x42b7fa
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 0x42b7d0
cmp dword [ebp - 0x10], 0
je 0x42b7d0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x446dc0]
test byte [eax + edi + 0x28], 0x48
je 0x42b7af
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x42b79f
mov byte [esi], 0xa
jmp 0x42b7f9
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x446dc0]
mov byte [eax + edi + 0x2a], cl
jmp 0x42b7f9
cmp byte [ebp - 1], 0xa
jne 0x42b7b9
cmp esi, ebx
je 0x42b79a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042c242
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42b7fa
mov byte [esi], 0xd
jmp 0x42b7f9
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x446dc0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x42b7f7
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x42b7fa
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b803
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x446dc0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x42b847
push 0xa
pop esi
cmp word [ebx], si
jne 0x42b847
or byte [eax + edi + 0x28], 4
jmp 0x42b84c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x42b9b7
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x42b98f
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x42b899
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x42b8c3
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x42b8e2
push 0xa
pop ebx
cmp word [edx], bx
jne 0x42b8b0
push ebx
add eax, 4
pop edx
jmp 0x42b8b8
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x42b85e
jmp 0x42b9b7
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 0x42b98a
cmp dword [ebp - 0x14], 0
je 0x42b98a
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x446dc0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x42b966
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x42b92e
mov word [esi], ax
jmp 0x42b9b4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x446dc0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x446dc0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x446dc0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x42b9b4
cmp word [ebp - 4], ax
jne 0x42b970
cmp esi, ebx
je 0x42b926
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042c242
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42b9b7
push 0xd
pop eax
jmp 0x42b926
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x446dc0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x42b9b1
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x42b9b7
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d863
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42d900
push ebx
push esi
call fcn.0042d82c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00428890
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42d8ad
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42d8ff
push edi
push eax
call fcn.00424e20
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42d8cd
call fcn.00424dd0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42d8fe
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00428890
add esp, 0x20
test eax, eax
jne 0x42d8ec
push edi
call fcn.00424dd0
jmp 0x42d8f4
push ebx
call fcn.00424dd0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42fef7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004258ef
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 0x42ff66
cmp esi, dword [ebp - 4]
je 0x42ff61
cmp dword [ebp + 0xc], 0
je 0x42ff61
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42ff3e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042fa4c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42ff68
xor eax, eax
inc eax
jmp 0x42ff68
xor eax, eax
pop edi
pop esi
leave
ret