joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f29
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410d7c]
jne 0x406f33
repz ret
jmp fcn.0040870f

Function at 0x4078dd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410d7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040465e
and dword [ebp - 0x14], 0
cmp dword [0x7b8320], 0
mov dword [ebp - 0x18], eax
jne 0x407990
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407a38
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407a38
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x7b8320], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x7b8324], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x7b8328], eax
call edi
push eax
call esi
mov dword [0x7b8330], eax
test eax, eax
je 0x407990
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x7b832c], eax
mov eax, dword [0x7b832c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4079e9
cmp dword [0x7b8330], ecx
je 0x4079e9
push eax
call esi
push dword [0x7b8330]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4079e9
test ebx, ebx
je 0x4079e9
call edi
test eax, eax
je 0x4079e0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4079e0
test byte [ebp - 8], 1
jne 0x4079e9
or dword [ebp + 0x10], 0x200000
jmp 0x407a1c
mov eax, dword [0x7b8324]
cmp eax, dword [ebp - 0x18]
je 0x407a1c
push eax
call esi
test eax, eax
je 0x407a1c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407a1c
mov eax, dword [0x7b8328]
cmp eax, dword [ebp - 0x18]
je 0x407a1c
push eax
call esi
test eax, eax
je 0x407a1c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x7b8320]
call esi
test eax, eax
je 0x407a38
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407a3a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f29
leave
ret
Function at 0x408bd0
Capabilities:
Delete file
Read .ini file
Read file on windows

Disassembly:
sub esp, 0x900
mov eax, dword [esp + 0x904]
push ebx
push ebp
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov eax, dword [0xf4d184]
push esi
push edi
mov dword [esp + 0x14], 0xc6ef3720
cmp eax, 0x114e
jne 0x408c0d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
mov eax, dword [0xf4d184]
mov ecx, dword [0x7b3c80]
mov edx, dword [0x7b3c84]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
cmp eax, 0xb54
jne 0x408c56
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
push 0
push 0
push 0
lea ecx, [esp + 0x11c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
mov eax, dword [0xf4d184]
mov edx, dword [str.6mxx]
mov ecx, dword [0x7b3c8c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0x20
mov edi, ebp
shl edi, 4
cmp eax, 0x4c3
jne 0x408c8b
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0xf4d184]
add edi, dword [esp + 0x2c]
cmp eax, 0xfa9
jne 0x408ca0
mov dword [0xf327ac], 0xedeb2e40
mov ebx, dword [esp + 0x14]
mov esi, ebp
shr esi, 5
add esi, dword [esp + 0x20]
add ebx, ebp
mov dword [0xf327a8], 0x9150ce2e
cmp eax, 0x976
jne 0x408ceb
push 0
push 0
lea eax, [esp + 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0xf4d184]
mov dword [0x7c7114], 0
xor esi, ebx
xor esi, edi
mov edi, dword [esp + 0x10]
sub edi, esi
mov dword [esp + 0x10], edi
cmp eax, 0x5b6
jne 0x408d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [esp + 0x18], edx
and eax, 0x4dd0071b
sub dword [esp + 0x18], 0x2273eb88
mov ebx, 0x3a7cd587
add dword [esp + 0x18], 0x2273eb8c
mov ecx, dword [esp + 0x18]
mov eax, edi
shl eax, cl
mov ecx, edi
shr ecx, 5
add ecx, dword [esp + 0x24]
add eax, dword [esp + 0x28]
mov dword [0x7c7110], edx
xor eax, ecx
mov ecx, dword [esp + 0x14]
add ecx, edi
xor eax, ecx
sub ebp, eax
mov eax, dword [0xf4d184]
cmp eax, 0x1d5
jne 0x408d98
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
push 0
push 0
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push 0
call dword [sym.imp.KERNEL32.dll_GetTapeStatus]
mov eax, dword [0xf4d184]
add dword [esp + 0x14], 0x61c88647
dec dword [esp + 0x1c]
jne 0x408c72
mov esi, dword [esp + 0x914]
mov dword [esi], ebp
cmp eax, 0xa6d
jne 0x408df6
push 0x30
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x3c], 0
call fcn.00406fe0
add esp, 0xc
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
mov edx, dword [esp + 0x10]
mov dword [esi + 4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x900
ret 4
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
add esp, 0x900
ret 4
Function at 0x4024a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x441080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x134], ecx
push edi
push 2
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40254e
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402547
nop dword [eax]
push dword [ebp - 0x134]
lea eax, [ebp - 0x10c]
push eax
call fcn.0041e7bd
add esp, 8
test eax, eax
jne 0x40251b
mov eax, dword [ebp - 0x11c]
cmp eax, edi
jbe 0x40251b
mov ebx, dword [ebp - 0x128]
mov edi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4024f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413523
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413523
mov esp, ebp
pop ebp
ret
Function at 0x402b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433e4d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x441080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 3
jb 0x402c04
cmp edx, 0xf
lea esi, [ebp + 8]
lea eax, [ecx + 3]
cmova esi, dword [ebp + 8]
mov dword [ebp + 0x18], eax
cmp esi, 0x43ce5b
jae 0x402bc8
lea eax, [esi + ecx]
cmp eax, 0x43ce58
jb 0x402bc8
cmp esi, 0x43ce58
ja 0x402bbe
xor edi, edi
jmp 0x402bcd
mov edi, esi
sub edi, 0x43ce58
jmp 0x402bcd
mov edi, 3
lea eax, [ecx + 1]
push eax
lea eax, [esi + 3]
push esi
push eax
call fcn.00414b20
push edi
push 0x43ce58
push esi
call fcn.00414b20
mov eax, 3
sub eax, edi
push eax
lea eax, [edi + 0x43ce5b]
push eax
lea eax, [esi + edi]
push eax
call fcn.00414b20
add esp, 0x24
jmp 0x402c1a
push 3
sub esp, 8
mov byte [ebp - 0x14], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x14]
push 3
call fcn.0040d4a0
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0x3c
cmova eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.cmd.exe
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x402c85
or esi, 0xffffffff
jmp 0x402ca9
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x402cd9
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402ccf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cf6
push ecx
push edx
call fcn.00413566
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413523
mov esp, ebp
pop ebp
ret
call fcn.0041f372
int3
Function at 0x408bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x408be2
jl 0x408bd5
test ecx, ecx
jne 0x408be2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x408cbf
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x408c12
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x408c14
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x408c68
jg 0x408c25
test esi, esi
je 0x408c68
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x408c39
jl 0x408c33
cmp ecx, esi
jae 0x408c39
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.00414b20
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x408c8c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x408ca8
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x408bf7
jl 0x408ca8
test ecx, ecx
jne 0x408bf7
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x408d03
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x408d03
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00414b20
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x408d6c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408d29
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x408d57
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0041ed26
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x408d6c
cmp edi, eax
ja 0x408d35
test edi, edi
je 0x408d6c
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0041ed26
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bce0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4342c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x441080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00413536
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004128f1
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0040bc80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414375
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439218
push 0x439210
push str.FlsAlloc
push 0x1f
call fcn.004263da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4265a3
push dword [ebp + 8]
mov ecx, esi
call dword [0x435184]
call esi
jmp 0x4265a9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4265ed
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439228
push 0x439220
push str.FlsGetValue
push 0x21
call fcn.004263da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426624
push dword [ebp + 8]
mov ecx, esi
call dword [0x435184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42662c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439230
push 0x439228
push str.FlsSetValue
push 0x22
call fcn.004263da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426666
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x435184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x427137
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004144e0
mov eax, dword [0x441080]
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.0042331e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x427179
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4272d5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00433580
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 + 0x442cd8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00428925
mov ecx, dword [esi*4 + 0x442cd8]
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 0x4272ce
cmp eax, dword [ecx + edi + 0x24]
jne 0x4272ce
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 0x4272ce
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00428925
add esp, 0x14
test edx, edx
jl 0x4272ce
jg 0x427244
test eax, eax
jb 0x4272ce
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4272ce
jl 0x42725e
cmp dword [ebp - 0x1008], eax
ja 0x4272ce
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42727c
test ebx, ebx
je 0x4272b5
cmp ecx, edi
jae 0x4272b5
mov al, byte [ecx]
cmp al, 0xd
jne 0x427296
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4272a2
cmp byte [ecx + 1], 0xa
jne 0x4272a2
inc ecx
jmp 0x4272a2
movzx eax, al
movsx eax, byte [eax + 0x441340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42727c
cmp edx, ebx
jne 0x42727c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4272d3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413523
leave
ret
Function at 0x427dbd
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 + 0x442cd8]
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 0x427dfd
cmp byte [ebx], 0xa
jne 0x427dfd
or byte [edi + eax + 0x28], 4
jmp 0x427e02
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 0x427f01
mov dl, byte [eax]
cmp dl, 0x1a
je 0x427ee4
inc eax
cmp dl, 0xd
je 0x427e2e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x427e54
cmp eax, ecx
jae 0x427e62
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 0x427e16
jmp 0x427f01
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 0x427edf
cmp dword [ebp - 0x10], 0
je 0x427edf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x442cd8]
test byte [eax + edi + 0x28], 0x48
je 0x427eb9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x427ea4
mov byte [esi], dl
jmp 0x427eb5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x442cd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x427f01
cmp byte [ebp - 1], 0xa
jne 0x427ec8
cmp esi, ebx
jne 0x427ec8
mov byte [esi], 0xa
jmp 0x427f00
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00428943
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x427f01
mov byte [esi], 0xd
jmp 0x427f00
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x442cd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x427efe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x427f01
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x427f0a
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 + 0x442cd8]
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 0x427f50
cmp word [ebx], dx
jne 0x427f50
or byte [eax + edi + 0x28], 4
jmp 0x427f55
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 0x4280b8
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 0x428098
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x427f96
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x427fcc
cmp eax, edx
jae 0x427fda
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 0x427f71
jmp 0x4280b8
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 0x428093
cmp dword [ebp - 0x18], 0
je 0x428093
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x442cd8]
test byte [eax + edi + 0x28], 0x48
je 0x428069
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 0x42802d
mov word [esi], cx
jmp 0x428064
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x442cd8]
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 + 0x442cd8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x442cd8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4280b8
pop eax
cmp word [ebp - 4], ax
jne 0x428079
cmp esi, ebx
jne 0x428079
mov word [esi], ax
jmp 0x4280b5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00428943
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4280b8
push 0xd
pop eax
jmp 0x428074
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x442cd8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4280b2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4280b8
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 0x42aee1
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 0x42af7e
push ebx
push esi
call fcn.0042aeaa
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.00429b9a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42af2b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42af7d
push edi
push eax
call fcn.0042501b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42af4b
call fcn.00424c37
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42af7c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00429b9a
add esp, 0x20
test eax, eax
jne 0x42af6a
push edi
call fcn.00424c37
jmp 0x42af72
push ebx
call fcn.00424c37
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 0x42d704
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004238db
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 0x42d773
cmp esi, dword [ebp - 4]
je 0x42d76e
cmp dword [ebp + 0xc], 0
je 0x42d76e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42d74b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042d256
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42d775
xor eax, eax
inc eax
jmp 0x42d775
xor eax, eax
pop edi
pop esi
leave
ret