joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c360d
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x65bde0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004b92bf
pop ecx
cmp eax, esi
je 0x4c36f7
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4c36f7
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005b6e50
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4c36f7
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4c36f7
cmp esi, 0x14
jge 0x4c36f7
push 0x10
push 0
push edi
call fcn.005b8c33
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4c36e6
call fcn.005b6dc7
cmp dword [eax], 0x22
je 0x4c36e6
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005b67a3
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4c36bc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x65f0fc], 0
jne 0x4c3782
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4c37ab
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004c308b
pop ecx
pop ecx
test eax, eax
jne 0x4c37ad
inc edi
cmp edi, esi
jl 0x4c3788
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b3023
leave
ret 8
Function at 0x4c4477
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4c44bf
call fcn.004bfdc6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c44bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c4502
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4c44eb
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4c44eb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4c44ff
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4cb567
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x65bde0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4cb59c
xor eax, eax
jmp 0x4cb5ef
lea eax, [ebp - 0x210]
push eax
call fcn.005b67a3
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4cb5cd
push 0x616bd0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005b6428
add esp, 0xc
test eax, eax
jne 0x4cb598
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005b6428
add esp, 0xc
test eax, eax
jne 0x4cb598
lea eax, [ebp - 0x210]
push eax
call fcn.004b92bf
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b3023
leave
ret
Function at 0x4da56f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.005131fd
call fcn.004bf7e3
cmp dword [eax + 0x14], 0
jne 0x4da58c
mov ecx, esi
pop esi
jmp fcn.004da074
pop esi
ret

Function at 0x4ddd05
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004fa8a8
call fcn.004bf7e3
cmp dword [eax + 0x14], 0
jne 0x4ddd22
mov ecx, esi
pop esi
jmp fcn.004dd6d8
pop esi
ret

Function at 0x516c31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x516c4b
call fcn.004bfdc6
mov esi, dword [eax + 0xc]
push dword [0x660da8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x516c69
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x516c61
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x516c96
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x516c63
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00516b5f
mov esi, eax
jmp 0x516c88

Function at 0x598df7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x598e0f
mov edi, dword [esi + 0xc]
jmp 0x598e4f
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x598e28
call fcn.004b61e5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x598e3d
call fcn.004b61e5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x598e4f
call fcn.004b61e5
call fcn.004bfdc6
cmp dword [eax + 0x3c], 0
je 0x598e64
push edi
mov ecx, ebx
call fcn.00597c29
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00598d11
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x598e82
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x598e8e
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5b3023
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x65bde0]
jne 0x5b302d
repz ret
jmp fcn.005bb565
Function at 0x5c5da8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x65bde0]
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.005baf8b
and dword [ebp - 0x14], 0
cmp dword [0x66391c], 0
mov dword [ebp - 0x18], eax
jne 0x5c5e5b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5c5f03
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x614318
push ebx
call edi
test eax, eax
je 0x5c5f03
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x614308
push ebx
mov dword [0x66391c], eax
call edi
push eax
call esi
push 0x6142f4
push ebx
mov dword [0x663920], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x663924], eax
call edi
push eax
call esi
mov dword [0x66392c], eax
test eax, eax
je 0x5c5e5b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x663928], eax
mov eax, dword [0x663928]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5c5eb4
cmp dword [0x66392c], ecx
je 0x5c5eb4
push eax
call esi
push dword [0x66392c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5c5eb4
test ebx, ebx
je 0x5c5eb4
call edi
test eax, eax
je 0x5c5eab
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5c5eab
test byte [ebp - 8], 1
jne 0x5c5eb4
or dword [ebp + 0x10], 0x200000
jmp 0x5c5ee7
mov eax, dword [0x663920]
cmp eax, dword [ebp - 0x18]
je 0x5c5ee7
push eax
call esi
test eax, eax
je 0x5c5ee7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5c5ee7
mov eax, dword [0x663924]
cmp eax, dword [ebp - 0x18]
je 0x5c5ee7
push eax
call esi
test eax, eax
je 0x5c5ee7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x66391c]
call esi
test eax, eax
je 0x5c5f03
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5c5f05
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b3023
leave
ret
Function at 0x402030
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x42a014]
xor eax, esp
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push 0xf013f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402087
mov edx, str.RegOpenKeyEx_fail_
call fcn.004022a0
push eax
call fcn.00402570
add esp, 4
xor eax, eax
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00404e0b
mov esp, ebp
pop ebp
ret
push 0x5d
push str.C:Program_Files__x86_MedionOSDMedionOSD.exe
push 1
push 0
push str.OSDProject
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4020c9
mov edx, str.RegSetValueEx_fail_
call fcn.004022a0
push eax
call fcn.00402570
add esp, 4
xor eax, eax
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00404e0b
mov esp, ebp
pop ebp
ret
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 4]
xor eax, eax
xor ecx, esp
call fcn.00404e0b
mov esp, ebp
pop ebp
ret

Function at 0x404017
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 0x404038
jl 0x40402f
test edi, edi
jne 0x404038
xor eax, eax
xor edx, edx
jmp 0x4040f9
cmp dword [ebx + 0x38], 0
je 0x40404d
push eax
push edi
push dword [ebp + 8]
call fcn.004040ff
jmp 0x4040f9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404094
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404094
cmp eax, edi
jb 0x40406e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406250
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 0x40409a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4040ee
mov ecx, ebx
call fcn.0040388c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4040d9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a4ea
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 0x4040ee
jmp 0x4040ac
test edx, edx
je 0x4040ee
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a4ea
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 0x405865
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4202c0
push 0x4202b8
push str.FlsAlloc
push 0x1f
call fcn.0040fb3a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fd03
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
jmp 0x40fd09
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40fd4d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4202d0
push 0x4202c8
push str.FlsGetValue
push 0x21
call fcn.0040fb3a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fd84
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40fd8c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4202d8
push 0x4202d0
push str.FlsSetValue
push 0x22
call fcn.0040fb3a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fdc6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411718
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405ba0
mov eax, dword [0x42a014]
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.0041035f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41175a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4118b6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c2f0
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 + 0x42b908]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00412715
mov ecx, dword [esi*4 + 0x42b908]
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 0x4118af
cmp eax, dword [ecx + edi + 0x24]
jne 0x4118af
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 0x4118af
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412715
add esp, 0x14
test edx, edx
jl 0x4118af
jg 0x411825
test eax, eax
jb 0x4118af
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4118af
jl 0x41183f
cmp dword [ebp - 0x1008], eax
ja 0x4118af
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41185d
test ebx, ebx
je 0x411896
cmp ecx, edi
jae 0x411896
mov al, byte [ecx]
cmp al, 0xd
jne 0x411877
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411883
cmp byte [ecx + 1], 0xa
jne 0x411883
inc ecx
jmp 0x411883
movzx eax, al
movsx eax, byte [eax + 0x42a298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41185d
cmp edx, ebx
jne 0x41185d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4118b4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404e0b
leave
ret
Function at 0x411bad
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 + 0x42b908]
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 0x411bed
cmp byte [ebx], 0xa
jne 0x411bed
or byte [edi + eax + 0x28], 4
jmp 0x411bf2
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 0x411cf1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x411cd4
inc eax
cmp dl, 0xd
je 0x411c1e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x411c44
cmp eax, ecx
jae 0x411c52
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 0x411c06
jmp 0x411cf1
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 0x411ccf
cmp dword [ebp - 0x10], 0
je 0x411ccf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42b908]
test byte [eax + edi + 0x28], 0x48
je 0x411ca9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411c94
mov byte [esi], dl
jmp 0x411ca5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42b908]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411cf1
cmp byte [ebp - 1], 0xa
jne 0x411cb8
cmp esi, ebx
jne 0x411cb8
mov byte [esi], 0xa
jmp 0x411cf0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412733
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411cf1
mov byte [esi], 0xd
jmp 0x411cf0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42b908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411cee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411cf1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411cfa
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 + 0x42b908]
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 0x411d40
cmp word [ebx], dx
jne 0x411d40
or byte [eax + edi + 0x28], 4
jmp 0x411d45
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 0x411ea8
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 0x411e88
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x411d86
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411dbc
cmp eax, edx
jae 0x411dca
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 0x411d61
jmp 0x411ea8
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 0x411e83
cmp dword [ebp - 0x18], 0
je 0x411e83
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42b908]
test byte [eax + edi + 0x28], 0x48
je 0x411e59
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 0x411e1d
mov word [esi], cx
jmp 0x411e54
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42b908]
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 + 0x42b908]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42b908]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x411ea8
pop eax
cmp word [ebp - 4], ax
jne 0x411e69
cmp esi, ebx
jne 0x411e69
mov word [esi], ax
jmp 0x411ea5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00412733
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x411ea8
push 0xd
pop eax
jmp 0x411e64
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42b908]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x411ea2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x411ea8
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 0x416f16
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 0x416fb3
push ebx
push esi
call fcn.00416edf
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.00415bd1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416f60
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416fb2
push edi
push eax
call fcn.00412914
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416f80
call fcn.0040f232
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416fb1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415bd1
add esp, 0x20
test eax, eax
jne 0x416f9f
push edi
call fcn.0040f232
jmp 0x416fa7
push ebx
call fcn.0040f232
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 0x4195e0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040f5aa
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 0x41964f
cmp esi, dword [ebp - 4]
je 0x41964a
cmp dword [ebp + 0xc], 0
je 0x41964a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x419627
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00419132
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x419651
xor eax, eax
inc eax
jmp 0x419651
xor eax, eax
pop edi
pop esi
leave
ret