joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007040
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012321
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x140], edi
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0x105
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140.dll_Ordinal_5095]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x100070b9
push 0xffffffffffffffff
lea ecx, [ebp - 0x13c]
call dword [sym.imp.mfc140.dll_Ordinal_12503]
push dword [0x10023228]
lea ecx, [ebp - 0x13c]
call dword [sym.imp.mfc140.dll_Ordinal_1696]
push 0
lea eax, [ebp - 0x138]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x13c]
movlpd qword [ebp - 0x138], xmm0
movlpd qword [ebp - 0x130], xmm0
movlpd qword [ebp - 0x128], xmm0
call sub.mfc140.dll_Ordinal_6925
test eax, eax
jne 0x1000719e
call sub.mfc140.dll_Ordinal_2241
push 0x10016508
push 0x3f5
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call sub.mfc140.dll_Ordinal_2241
push esi
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
call sub.mfc140.dll_Ordinal_2241
push esi
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x13c]
mov dword [ebp - 0x140], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007180
push 0x100146f0
mov ecx, edi
call dword [sym.imp.mfc140.dll_Ordinal_310]
jmp 0x100071ad
push 0
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x140]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
lea ecx, [ebp - 0x13c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f28b
mov esp, ebp
pop ebp
ret 4
Function at 0x10007200
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x608], esi
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x10007283
test edi, edi
je 0x10007283
push 0x400
lea eax, [ebp - 0x604]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x10023174]
lea eax, [ebp - 0x604]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x604]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0x100146f0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x204]
push eax
jmp 0x10007288
push 0x100146f0
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_310]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f28b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ad80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012ce8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10023330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0x163
mov ecx, esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0x163
call dword [sym.imp.mfc140.dll_Ordinal_5095]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push 0x10018edc
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ae22
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_12503]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000bb50
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100130ee
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10023330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000bb85
mov dword [eax], 0
push str.plusmat
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_310]
push 0
push 0
push 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, dword [ebp + 0xc]
mov ebx, eax
push 0
push 0x80000000
push 0
push 0
push edi
push ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
push esi
call fcn.1000b650
push esi
mov dword [ebp - 0x20], eax
call fcn.1000acd0
xor ecx, ecx
mov dword [ebp - 0x14], eax
add esp, 8
test eax, eax
setne cl
mov dword [ebp - 0x18], ecx
test ebx, ebx
je 0x1000bc14
test esi, esi
jne 0x1000bc39
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x80000000
push esi
push esi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x1000bc33
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x20], 0xc8
je 0x1000bc50
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
jmp 0x1000bc14
test ecx, ecx
mov edx, 0x40000
cmove eax, edx
push eax
mov dword [ebp - 0x14], eax
call sub.mfc140.dll_Ordinal_265
add esp, 4
xor edi, edi
mov ebx, eax
lea eax, [ebp - 0x10]
push edi
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000bca9
nop
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [edi + ebx]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
add edi, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1000bc80
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x18], 0
jne 0x1000bcda
push edi
call sub.mfc140.dll_Ordinal_265
push edi
mov esi, eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
push ebx
call sub.mfc140.dll_Ordinal_266
add esp, 0x14
mov ebx, esi
jmp 0x1000bcdd
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000bc16
mov dword [eax], edi
jmp 0x1000bc16
Function at 0x1000c270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push 0x10018e28
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c2b0
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov esp, ebp
pop ebp
ret

Function at 0x1000c2d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push 0x10018e88
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c310
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov esp, ebp
pop ebp
ret

Function at 0x1000c330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push 0x10018f20
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c370
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov esp, ebp
pop ebp
ret

Function at 0x1000c450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push str.AppEventsSchemesAppsExplorerNavigating.Current
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c4e7
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c4c3
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f28b
mov esp, ebp
pop ebp
ret
Function at 0x1000c520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push str.AppEventsSchemesAppsExplorerNavigating.Default
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c5b7
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c593
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f28b
mov esp, ebp
pop ebp
ret

Function at 0x1000c5f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000c659
test esi, esi
je 0x1000c659
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x10023174]
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, 1
jmp 0x1000c65b
xor esi, esi
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1000f28b
mov esp, ebp
pop ebp
ret
Function at 0x1000ce80
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100133fe
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x20]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
call ebx
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push str.cx___d__cy___d
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0x10
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1000cf15
lea ecx, [ebp - 0x20]
push ecx
push eax
call ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov esi, dword [ebx + 0xac]
mov ebx, dword [ebx + 0xa8]
push 0x40
push esi
mov dword [ebp - 0x30], eax
call edi
add esp, 4
add eax, 2
push eax
push ebx
call edi
add esp, 4
push eax
push esi
call edi
mov ecx, dword [ebp - 0x2c]
add esp, 4
sub ecx, dword [ebp - 0x30]
sub ecx, eax
push ecx
push ebx
call edi
mov ecx, dword [ebp - 0x34]
add esp, 4
sub ecx, eax
mov eax, dword [ebp - 0x24]
push ecx
push dword [eax + 0x94]
mov ecx, eax
call sub.mfc140.dll_Ordinal_14048
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f28b
mov esp, ebp
pop ebp
ret
Function at 0x1000e680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100280ac
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100330c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x1000e6d6
lea ecx, [edi + 0x68]
mov dword [edi], 0x10029460
call fcn.1000e610
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.1000fdf0
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov dword [ebp + 8], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10010e36
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000e79f
push 1
mov byte [ebp - 4], 3
call fcn.10012450
add esp, 4
mov dword [ebx + 4], eax
jmp 0x1000e7a1
xor ebx, ebx
mov ecx, esi
mov dword [esi + 0x34], ebx
call fcn.1000f7c0
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
mov byte [esi + 0x48], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea edx, [esi + 0x14]
mov byte [esi + 0x3d], 0
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
lea ebx, [esi + 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ebx
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax], 0
mov dword [esi + 4], 0
mov dword [edx], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x100340fc]
mov ecx, dword [0x10034100]
mov dword [esi + 0x40], eax
mov eax, edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10010930
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x10010951
jl 0x10010947
test esi, esi
jne 0x10010951
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x10010a04
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.1000f6b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x100109c1
jg 0x10010989
test esi, esi
je 0x100109c1
cmp ebp, eax
jg 0x10010999
jl 0x10010993
cmp edi, esi
jae 0x10010999
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.10013280
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x100109e0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x100109f0
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x10010970
jl 0x100109f0
test edi, edi
jne 0x10010970
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x10010a49
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x10010a50
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.10013280
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x10010a50
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x10010ab9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10010a7a
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 [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x10010aa4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.10017648
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10010ab9
cmp edi, eax
ja 0x10010a82
test edi, edi
je 0x10010ab9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.10017648
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x10018a6b
Capabilities:
Parse pe header

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

Function at 0x1001ca60
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002c508
push 0x1002c500
push str.FlsAlloc
push 0x1f
call fcn.1001c928
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001ca94
push dword [ebp + 8]
mov ecx, esi
call dword [0x10029138]
call esi
jmp 0x1001ca9a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001cade
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002c518
push 0x1002c510
push str.FlsGetValue
push 0x21
call fcn.1001c928
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cb15
push dword [ebp + 8]
mov ecx, esi
call dword [0x10029138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001cb1d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002c520
push 0x1002c518
push str.FlsSetValue
push 0x22
call fcn.1001c928
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cb57
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10029138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001e44c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10027990
mov eax, dword [0x100330c0]
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.1001d093
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001e48e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001e5ea
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10011350
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 + 0x10034d18]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001f449
mov ecx, dword [esi*4 + 0x10034d18]
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 0x1001e5e3
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001e5e3
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 0x1001e5e3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001f449
add esp, 0x14
test edx, edx
jl 0x1001e5e3
jg 0x1001e559
test eax, eax
jb 0x1001e5e3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001e5e3
jl 0x1001e573
cmp dword [ebp - 0x1008], eax
ja 0x1001e5e3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001e591
test ebx, ebx
je 0x1001e5ca
cmp ecx, edi
jae 0x1001e5ca
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001e5ab
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001e5b7
cmp byte [ecx + 1], 0xa
jne 0x1001e5b7
inc ecx
jmp 0x1001e5b7
movzx eax, al
movsx eax, byte [eax + 0x10033398]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001e591
cmp edx, ebx
jne 0x1001e591
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001e5e8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10010e74
leave
ret