joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eff0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f023
push esi
call fcn.004420e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f01c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f0a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f092
mov eax, dword [esi + 8]
test eax, eax
je 0x43f047
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f08e
cmp eax, 2
je 0x43f092
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f03a
cmp eax, 3
je 0x43f06d
cmp eax, 1
jne 0x43f03a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43f03a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f03a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f0d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f0b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f0d0
add esp, 4
pop esi
ret

Function at 0x44a390
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44a3f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44a3f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44a3d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44a780
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44a7b8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x44b430
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44b479
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44b8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x490fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044b4a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044b520
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044b520
lea ecx, [esi + 0xc]
call fcn.00482a86
lea ecx, [esi + 0x10]
call fcn.00482a86
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044cac0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044cac0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044cac0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00482afb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00482afb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x451710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x491358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00451a20
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x5d52ac
call fcn.00461cc6
mov ecx, dword [0x4cbae0]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0044cf90
mov esi, 0x4cbb1c
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x4517b7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4517ae
cmp al, 0xff
je 0x4517ae
dec al
mov byte [ecx], al
jmp 0x4517b7
push ecx
call fcn.0048307d
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0047ed10
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x4517fd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4517f4
cmp al, 0xff
je 0x4517f4
dec al
mov byte [ecx], al
jmp 0x4517fd
push ecx
call fcn.0048307d
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00461d4d
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4791a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x492350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0046e17b
mov eax, dword [0x595ec0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0046e0ad
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00479cb0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x479247
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47923e
cmp al, 0xff
je 0x47923e
dec al
mov byte [ecx], al
jmp 0x479247
push ecx
call fcn.0048307d
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x479278
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47926f
cmp al, 0xff
je 0x47926f
dec al
mov byte [ecx], al
jmp 0x479278
push ecx
call fcn.0048307d
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x484f17
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x484f4f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00482f56
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00482f2e
jmp 0x484f5b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x486605
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x486647
call fcn.0048c964
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x486647
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48663e
xor eax, eax
jmp 0x48664f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00486655
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c04e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48c07c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c09a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048bfb4
jmp 0x48c09a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c09a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048bfb4
test edi, edi
mov eax, edi
jne 0x48c084
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1004999
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push esi
push 0x18
lea eax, [ebp - 0x18]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
jl 0x1004a01
push edi
push 0x3e
call fcn.010057bf
mov edi, eax
cmp edi, esi
jne 0x10049cc
mov eax, 0xc000009a
jmp 0x1004a00
push ebx
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x10049f7
push esi
push 0x1001278
push 0x1f
push edi
call fcn.01006bd5
add esp, 0x10
push edi
call fcn.010045e4
test eax, eax
jge 0x10049f1
mov ebx, eax
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x10049d4
push edi
call fcn.010057e4
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x1004a20
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1014420]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10012a4
lea eax, [ebp - 0xc]
push 3
push eax
call fcn.01006bf6
add esp, 0xc
push 0x41
pop eax
mov word [ebp - 0xc], ax
push 0x106
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1004a7c
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xc]
call fcn.01004820
test eax, eax
jl 0x1004a89
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x1004a4f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006913
leave
ret
Function at 0x1004cb2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 8]
push 0x1083
call fcn.0100593f
push 0x101d
call fcn.0100593f
add esp, 0xc
push esi
call fcn.01004c3e
mov ebx, eax
xor edi, edi
cmp ebx, edi
jge 0x1004d11
push 0x1082
call fcn.0100593f
pop ecx
push ebx
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.01005990
push 0x101d
call fcn.0100593f
mov eax, ebx
jmp 0x1004ea8
cmp dword [esi + 0xc], edi
je 0x1004d27
push 0x1084
call fcn.0100593f
xor eax, eax
jmp 0x1004ea8
push dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x2a
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
push 7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0xc0100080
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 8], ebx
jge 0x1004d94
push 0x1086
call fcn.0100593f
pop ecx
push ebx
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.01005990
mov eax, ebx
jmp 0x1004ea9
mov esi, dword [esi + 0x10]
mov eax, 0x200
cmp esi, eax
jb 0x1004da8
test esi, 0x1ff
je 0x1004daa
mov esi, eax
lea eax, [esi + 0x200]
push eax
call fcn.010057bf
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, edi
jne 0x1004dd6
push 0x1085
call fcn.0100593f
pop ecx
mov dword [ebp + 8], 0xc000009a
jmp 0x1004e8a
push edi
push esi
push edi
push ebx
call fcn.01006930
cmp eax, edi
je 0x1004de7
sub ebx, eax
add ebx, esi
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1004dff
push 0x1087
jmp 0x1004e71
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004e6c
cmp dword [ebp - 8], esi
jne 0x1004e6c
mov eax, dword [0x1015bc0]
mov esi, dword [eax + 0xc]
push 0x6e
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1004df8
push esi
lea eax, [ebp - 8]
push eax
mov esi, 0x200
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004e65
cmp dword [ebp - 8], esi
jne 0x1004e65
push 0x108a
call fcn.0100593f
pop ecx
jmp 0x1004e8a
push 0x1089
jmp 0x1004e71
push 0x1088
call fcn.0100593f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005990
mov dword [ebp + 8], 0xc0000001
push dword [ebp - 0xc]
call fcn.010057e4
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push 0x101d
call fcn.0100593f
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10060f0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x1014420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x81c], ecx
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x83c]
push eax
mov dword [ebp - 0x818], ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x834]
push eax
xor esi, esi
push 1
lea eax, [ebp - 0x808]
push eax
mov dword [ebp - 0x834], 0x18
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x828], 0x40
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x820], esi
call dword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
cmp eax, esi
jl 0x1006224
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
push edi
mov dword [ebp - 0x80c], esi
jmp 0x10061c2
cmp edi, esi
jl 0x1006200
cmp word [ebp - 0x804], si
je 0x10061c2
lea edi, [ebp - 0x800]
push dword [ebp - 0x818]
push dword [edi + 8]
push dword [edi]
call dword [ebp - 0x81c]
cmp eax, esi
mov dword [ebp - 0x814], eax
jl 0x1006210
add edi, 0x10
cmp word [edi - 4], si
jne 0x100619e
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x80c]
push eax
push esi
push esi
push 0x800
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call ebx
mov edi, eax
cmp edi, 0x8000001a
jne 0x100618b
push dword [ebp - 0x808]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
jmp 0x1006222
push dword [ebp - 0x808]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
jmp 0x1006222
push dword [ebp - 0x808]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x814]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01006913
leave
ret 0xc
Function at 0x1009666
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x1009695
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01006ab4
add esp, 0x14
jmp 0x1009773
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x1009773
test al, 0x40
jne 0x1009773
test al, 2
je 0x10096b7
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x1009773
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x1009677
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1009763
cmp eax, 0xffffffff
je 0x1009763
test byte [esi + 0xc], 0x82
jne 0x1009738
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x1009723
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x1009723
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x1009728
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x1009738
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x1009756
mov eax, dword [esi + 0xc]
test al, 8
je 0x1009756
test eax, 0x400
jne 0x1009756
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x1009776
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100af9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x100afc9
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01006ab4
add esp, 0x14
jmp 0x100b0b3
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x100b0b3
test al, 0x40
jne 0x100b0b3
test al, 2
je 0x100afeb
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x100b0b3
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x100afab
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100b0a3
cmp eax, 1
je 0x100b0a3
cmp eax, 0xffffffff
je 0x100b0a3
test byte [esi + 0xc], 0x82
jne 0x100b075
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100b060
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100b060
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x100b065
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x100b075
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x100b093
mov eax, dword [esi + 0xc]
test al, 8
je 0x100b093
test eax, 0x400
jne 0x100b093
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x100b0b8
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100b259
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1014420]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x1014aac], edi
jne 0x100b375
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x100b2c0
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x1014aac], edi
pop esi
je 0x100b348
dec eax
jne 0x100b375
cmp dword [ebp - 0x11c], 5
jne 0x100b335
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x100b329
dec eax
je 0x100b316
dec eax
je 0x100b2fc
mov dword [0x1014aac], 0x14
jmp 0x100b375
cmp word [ebp - 0xc], 1
jb 0x100b30d
mov dword [0x1014aac], 0x10
or dword [0x1014aac], 4
jmp 0x100b375
cmp word [ebp - 0xc], 2
jb 0x100b30d
mov dword [0x1014aac], 8
jmp 0x100b30d
mov dword [0x1014aac], 4
jmp 0x100b375
cmp dword [ebp - 0x11c], 4
ja 0x100b387
mov dword [0x1014aac], 2
cmp dword [ebp - 0x11c], 4
jne 0x100b375
cmp dword [ebp - 0x118], edi
je 0x100b36b
cmp dword [ebp - 0x118], 0xa
je 0x100b36b
cmp dword [ebp - 0x118], 0x5a
jne 0x100b375
mov dword [0x1014aac], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x1014aac]
xor ecx, ebp
pop edi
call fcn.01006913
leave
ret
mov dword [0x1014aac], 0x20
jmp 0x100b375

Function at 0x100b398
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1014420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100b3ec
push 3
lea eax, [ebp - 0x44]
push 0x1001900
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01006913
leave
ret

Function at 0x100b401
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1014420]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x1014ab0]
jne 0x100b49c
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1001830
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100b49b
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10018e8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [entry0]
cmp edi, esi
pop edi
jne 0x100b49b
push 3
push dword [esi*8 + 0x1001680]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x100b48d
inc esi
cmp esi, 0x1c
jb 0x100b46c
jmp 0x100b49b
mov ax, word [esi*8 + 0x1001684]
mov word [0x1014ab0], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x1014ab0]
xor ecx, ebp
call fcn.01006913
leave
ret
Function at 0x100c31a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 0x63
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x100c34a
cmp ebx, edi
jl 0x100c3be
mov ebx, 0xc0000001
jmp 0x100c3be
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x100c36d
mov ebx, 0xc000009a
jmp 0x100c3a5
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x63
call esi
mov ebx, eax
test ebx, ebx
jl 0x100c3a5
movzx eax, word [edi]
mov ecx, dword [ebp + 0x10]
add eax, 2
mov dword [ecx], eax
cmp eax, dword [ebp + 0xc]
jbe 0x100c396
mov ebx, 0xc0000023
jmp 0x100c3a5
push eax
push dword [edi + 4]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x100c3be
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x100c3cc
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 0x62
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x100c3fc
cmp ebx, edi
jl 0x100c470
mov ebx, 0xc0000001
jmp 0x100c470
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x100c41f
mov ebx, 0xc000009a
jmp 0x100c457
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x62
call esi
mov ebx, eax
test ebx, ebx
jl 0x100c457
movzx eax, word [edi]
mov ecx, dword [ebp + 0x10]
add eax, 2
mov dword [ecx], eax
cmp eax, dword [ebp + 0xc]
jbe 0x100c448
mov ebx, 0xc0000023
jmp 0x100c457
push eax
push dword [edi + 4]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x100c470
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc