joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100093d4
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x1003daa4], 0
jne 0x1000950a
or dword [0x1003daa4], 0xffffffff
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000941b
push str.GetDpiForWindow
push edi
call esi
push str.GetSystemMetricsForDpi
push edi
mov dword [0x1003dabc], eax
call esi
mov dword [0x1003dac0], eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.shell32.dll
call edi
test eax, eax
je 0x10009439
push str.SHAppBarMessage
push eax
call esi
mov dword [0x1003dac4], eax
push str.gdi32.dll
call edi
mov edi, eax
test edi, edi
je 0x10009460
push str.DeleteObject
push edi
call esi
push str.CreateSolidBrush
push edi
mov dword [0x1003dac8], eax
call esi
mov dword [0x1003dacc], eax
mov edi, dword [esp + 0xc]
push dword [esp + 0x10]
push edi
mov eax, dword [edi]
call dword [eax + 0x7c]
mov ecx, dword [edi]
mov esi, eax
push str._IIZ_I
push str.onNcHitTest
push esi
push edi
call dword [ecx + 0x84]
push 0x10023908
push str.isFullscreen
mov dword [0x1003daa8], eax
mov ecx, dword [edi]
push esi
push edi
call dword [ecx + 0x84]
push 0x1002391c
push str.fireStateChangedLaterOnce
mov dword [0x1003daac], eax
mov eax, dword [edi]
push esi
push edi
call dword [eax + 0x84]
cmp dword [0x1003daa8], 0
pop edi
mov dword [0x1003dab0], eax
pop esi
je 0x1000950a
cmp dword [0x1003daac], 0
je 0x1000950a
test eax, eax
je 0x1000950a
cmp dword [0x1003dabc], 0
je 0x1000950a
cmp dword [0x1003dac0], 0
je 0x1000950a
cmp dword [0x1003dac4], 0
je 0x1000950a
cmp dword [0x1003dac8], 0
je 0x1000950a
cmp dword [0x1003dacc], 0
je 0x1000950a
mov dword [0x1003daa4], 1
ret

Function at 0x10009c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x28]
mov eax, dword [esi]
push esi
call dword [eax + 0x2a4]
mov ecx, dword [esi]
mov ebp, eax
push 0
push dword [esp + 0x2c]
push esi
call dword [ecx + 0x2a4]
mov edi, dword [esp + 0x2c]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 1
push 0
push ebp
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10009cb0
and dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x20], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10009ca6
cmp dword [esp + 0x1c], 4
jne 0x10009ca6
cmp dword [esp + 0x14], 4
cmove edi, dword [esp + 0x2c]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi]
push ebp
push dword [esp + 0x28]
push esi
call dword [ecx + 0x2a8]
mov ecx, dword [esi]
push ebx
push dword [esp + 0x2c]
push esi
call dword [ecx + 0x2a8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x14
Function at 0x1000a470
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x1000a48c
push str.Could_not_load_wininet.dll_n
jmp 0x1000a5a0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenW
push edi
call esi
push str.HttpQueryInfoA
push edi
mov dword [0x1003daec], eax
call esi
push str.InternetCloseHandle
push edi
mov dword [0x1003daf0], eax
call esi
push str.InternetReadFile
push edi
mov dword [0x1003daf4], eax
call esi
push str.InternetConnectW
push edi
mov dword [0x1003daf8], eax
call esi
push str.HttpOpenRequestW
push edi
mov dword [0x1003dafc], eax
call esi
push str.HttpEndRequestW
push edi
mov dword [0x1003db00], eax
call esi
push str.InternetSetOptionW
push edi
mov dword [0x1003db04], eax
call esi
push str.InternetWriteFile
push edi
mov dword [0x1003db08], eax
call esi
push str.InternetQueryOptionW
push edi
mov dword [0x1003db0c], eax
call esi
push str.HttpSendRequestW
push edi
mov dword [0x1003db10], eax
call esi
push str.InternetErrorDlg
push edi
mov dword [0x1003db14], eax
call esi
cmp dword [0x1003daec], 0
mov dword [0x1003db18], eax
pop esi
je 0x1000a59b
cmp dword [0x1003daf0], 0
je 0x1000a59b
cmp dword [0x1003daf4], 0
je 0x1000a59b
cmp dword [0x1003daf8], 0
je 0x1000a59b
cmp dword [0x1003dafc], 0
je 0x1000a59b
cmp dword [0x1003db00], 0
je 0x1000a59b
cmp dword [0x1003db04], 0
je 0x1000a59b
cmp dword [0x1003db08], 0
je 0x1000a59b
cmp dword [0x1003db0c], 0
je 0x1000a59b
cmp dword [0x1003db10], 0
je 0x1000a59b
cmp dword [0x1003db14], 0
je 0x1000a59b
test eax, eax
je 0x1000a59b
mov al, 1
jmp 0x1000a5b7
push str.Could_not_load_wininet.dll_functions_n
call fcn.10001324
push 1
call fcn.10010318
push eax
call fcn.100153c9
add esp, 0xc
xor al, al
pop edi
ret 8
Function at 0x1000c183
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x44
mov eax, dword [0x1003b040]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x54]
push str.com_install4j_runtime_installer_platform_win32_WinGuiHelper
push edi
mov eax, dword [edi]
call dword [eax + 0x18]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1000c1cc
mov eax, dword [edi]
push edi
call dword [eax + 0x44]
push str.could_not_load_class_com_install4j_runtime_installer_platform_win32_WinGuiHelper
call esi
mov al, byte [esp + 0x60]
pop ecx
xor al, 1
jmp 0x1000c2c4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10029bf8
push ebx
call ebp
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1000c1ed
push str.did_not_find_Java_com_install4j_runtime_installer_platform_win32_WinGuiHelper_getPeer0
jmp 0x1000c287
push 0x10029d40
push ebx
mov dword [esp + 0x1c], str.getPeer0
mov dword [esp + 0x20], str._Ljava_awt_Window_Ljava_lang_Class__Ljava_lang_Object_
call ebp
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1000c214
push str.did_not_find_Java_com_install4j_runtime_installer_platform_win32_WinGuiHelper_getHwnd0
jmp 0x1000c287
push 0x10029e80
push ebx
mov dword [esp + 0x28], str.getHwnd0
mov dword [esp + 0x2c], str._Ljava_lang_Object_Ljava_lang_reflect_Method__J
call ebp
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1000c23b
push str.did_not_find_Java_com_install4j_runtime_installer_platform_win32_WinGuiHelper_destroyHIcon0
jmp 0x1000c287
push 0x10029fa0
push ebx
mov dword [esp + 0x34], str.destroyHIcon0
mov dword [esp + 0x38], str._J_V
call ebp
mov dword [esp + 0x40], eax
test eax, eax
jne 0x1000c262
push str.did_not_find_Java_com_install4j_runtime_installer_platform_win32_WinGuiHelper_createHIcon0
jmp 0x1000c287
push 0x1002a0c8
push ebx
mov dword [esp + 0x40], str.createHIcon0
mov dword [esp + 0x44], str.__BII_J
call ebp
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x1000c28b
push str.did_not_find_Java_com_install4j_runtime_installer_platform_win32_WinGuiHelper_flashWindow0
call esi
jmp 0x1000c2bc
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push 5
push ecx
push dword [esp + 0x18]
mov dword [esp + 0x50], str.flashWindow0
push edi
mov dword [esp + 0x58], str._JZ_V
call dword [eax + 0x35c]
test eax, eax
je 0x1000c2c1
push eax
push str.register_com_install4j_runtime_installer_platform_win32_WinGuiHelper_failed__d
call esi
pop ecx
pop ecx
xor al, al
jmp 0x1000c2c3
mov al, 1
pop ebp
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000cf58
add esp, 0x44
ret
Function at 0x100159f4
Capabilities:
Parse pe header

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

Function at 0x1001680c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10031018
push 0x10031010
push str.FlsAlloc
push 0x1f
call fcn.10016728
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016840
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002230c]
call esi
jmp 0x10016846
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001688a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10031028
push 0x10031020
push str.FlsGetValue
push 0x21
call fcn.10016728
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100168c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002230c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100168c9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10031030
push 0x10031028
push str.FlsSetValue
push 0x22
call fcn.10016728
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016903
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002230c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001a97e
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 0x1001aa1b
push ebx
push esi
call fcn.1001a947
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.1001a8db
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001a9c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001aa1a
push edi
push eax
call fcn.10016d2c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001a9e8
call fcn.100165d5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001aa19
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001a8db
add esp, 0x20
test eax, eax
jne 0x1001aa07
push edi
call fcn.100165d5
jmp 0x1001aa0f
push ebx
call fcn.100165d5
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 0x10021690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100216bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100216bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403957
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x40397c
jl 0x403973
test ebx, ebx
jne 0x40397c
xor eax, eax
xor edx, edx
jmp 0x403a39
cmp dword [esi + 0x38], 0
je 0x403991
push eax
push ebx
push dword [ebp + 8]
call fcn.00403a3f
jmp 0x403a39
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4039d4
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x4039d4
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.00405e10
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x4039da
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x403a2e
mov ecx, esi
call fcn.0040302c
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x403a19
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.00409d38
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x403a2e
jmp 0x4039ec
test edx, edx
je 0x403a2e
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.00409d38
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x404b53
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x404b88
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x404b85
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x404b91
add edx, 0x28
cmp edx, esi
jne 0x404b73
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x404b8e

Function at 0x4055f5
Capabilities:
Parse pe header

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

Function at 0x40f3fc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f308
push 0x41f300
push str.FlsAlloc
push 0x1f
call fcn.0040f267
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f430
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c138]
call esi
jmp 0x40f436
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40f47a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f318
push 0x41f310
push str.FlsGetValue
push 0x21
call fcn.0040f267
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f4b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40f4b9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f320
push 0x41f318
push str.FlsSetValue
push 0x22
call fcn.0040f267
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f4f3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41c138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410de8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405760
mov eax, dword [0x426040]
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.0040fa2f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410e2a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410f86
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041aea0
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 + 0x427978]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00411de5
mov ecx, dword [esi*4 + 0x427978]
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 0x410f7f
cmp eax, dword [ecx + edi + 0x24]
jne 0x410f7f
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 0x410f7f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411de5
add esp, 0x14
test edx, edx
jl 0x410f7f
jg 0x410ef5
test eax, eax
jb 0x410f7f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410f7f
jl 0x410f0f
cmp dword [ebp - 0x1008], eax
ja 0x410f7f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x410f2d
test ebx, ebx
je 0x410f66
cmp ecx, edi
jae 0x410f66
mov al, byte [ecx]
cmp al, 0xd
jne 0x410f47
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410f53
cmp byte [ecx + 1], 0xa
jne 0x410f53
inc ecx
jmp 0x410f53
movzx eax, al
movsx eax, byte [eax + 0x4262f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x410f2d
cmp edx, ebx
jne 0x410f2d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x410f84
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040488e
leave
ret
Function at 0x41127d
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 + 0x427978]
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 0x4112bd
cmp byte [ebx], 0xa
jne 0x4112bd
or byte [edi + eax + 0x28], 4
jmp 0x4112c2
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 0x4113c1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4113a4
inc eax
cmp dl, 0xd
je 0x4112ee
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x411314
cmp eax, ecx
jae 0x411322
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 0x4112d6
jmp 0x4113c1
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 0x41139f
cmp dword [ebp - 0x10], 0
je 0x41139f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x427978]
test byte [eax + edi + 0x28], 0x48
je 0x411379
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411364
mov byte [esi], dl
jmp 0x411375
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x427978]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4113c1
cmp byte [ebp - 1], 0xa
jne 0x411388
cmp esi, ebx
jne 0x411388
mov byte [esi], 0xa
jmp 0x4113c0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411e03
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4113c1
mov byte [esi], 0xd
jmp 0x4113c0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x427978]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4113be
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4113c1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4113ca
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 + 0x427978]
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 0x411410
cmp word [ebx], dx
jne 0x411410
or byte [eax + edi + 0x28], 4
jmp 0x411415
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 0x411578
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 0x411558
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x411456
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41148c
cmp eax, edx
jae 0x41149a
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 0x411431
jmp 0x411578
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 0x411553
cmp dword [ebp - 0x18], 0
je 0x411553
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x427978]
test byte [eax + edi + 0x28], 0x48
je 0x411529
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 0x4114ed
mov word [esi], cx
jmp 0x411524
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x427978]
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 + 0x427978]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x427978]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x411578
pop eax
cmp word [ebp - 4], ax
jne 0x411539
cmp esi, ebx
jne 0x411539
mov word [esi], ax
jmp 0x411575
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411e03
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x411578
push 0xd
pop eax
jmp 0x411534
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x427978]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x411572
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x411578
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 0x41521e
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 0x4152bb
push ebx
push esi
call fcn.004151e7
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.00413ed9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415268
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4152ba
push edi
push eax
call fcn.00411fe4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415288
call fcn.0040ef88
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4152b9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413ed9
add esp, 0x20
test eax, eax
jne 0x4152a7
push edi
call fcn.0040ef88
jmp 0x4152af
push ebx
call fcn.0040ef88
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 0x4178e8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040ec40
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 0x417957
cmp esi, dword [ebp - 4]
je 0x417952
cmp dword [ebp + 0xc], 0
je 0x417952
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41792f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041743a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x417959
xor eax, eax
inc eax
jmp 0x417959
xor eax, eax
pop edi
pop esi
leave
ret