joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f260d
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10169ccc]
xor eax, dword [esp + 0x194]
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
neg eax
sbb eax, eax
inc eax
xor ecx, dword [esp + 0x194]
add esp, 0x194
jmp fcn.10115a7a

Function at 0x100f2654
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10169ccc]
xor eax, dword [ebp + 4]
push ebx
push esi
xor esi, esi
push esi
push 1
push 2
mov dword [ebp - 4], eax
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x100f2697
push esi
push str.ERROR
push str.Initialize_socket_fail
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x100f280a
and byte [ebx + 0x2013c], 0
and byte [ebx + 0x2013d], 0
and byte [ebx + 0x2013f], 0
and byte [ebx + 0x2013e], 0
cmp dword [ebx + 4], esi
mov dword [ebx + 0x2000c], esi
mov dword [ebx + 0x20008], esi
mov dword [ebx + 0x20010], esi
je 0x100f26d1
mov ecx, ebx
call fcn.100f25ab
push edi
push 0x10
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10116190
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
mov word [ebp - 0x16], si
mov esi, dword [sym.imp.WS2_32.dll_bind]
mov word [ebp - 0x18], 2
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.WS2_32.dll_htons]
jne 0x100f2781
add dword [0x10a00f6c], 0xa
mov eax, dword [0x10a00f6c]
add eax, 0x1388
push eax
call edi
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call esi
cmp eax, 0xffffffff
jne 0x100f2781
add dword [0x10a00f6c], 0xa
mov eax, dword [0x10a00f6c]
add eax, 0x1388
push eax
call edi
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call esi
cmp eax, 0xffffffff
jne 0x100f2781
push 0
push str.ERROR
push str.Binding_fail
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x100f2809
push 0x10
xor esi, esi
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.10116190
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x28], 2
call edi
mov edi, dword [ebp - 8]
mov word [ebp - 0x26], ax
push 0x10
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jl 0x100f27d4
push 0x21
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
jle 0x100f27e0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], esi
jmp 0x100f277a
cmp dword [ebp + 0x1c], esi
mov dword [ebx + 4], edi
je 0x100f27fd
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push edi
mov dword [ebp + 0x10], 0x1f44f321
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebx + 0x20018], 1
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.10115a7a
leave
ret 0x18
Function at 0x100f2cd7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
ja 0x100f2ce9
xor eax, eax
jmp 0x100f2d89
cmp dword [esi + 0x20014], ebx
jle 0x100f2cf8
mov ecx, esi
call fcn.100f2859
mov eax, dword [esi + 0x20008]
mov edx, 0x10000
cmp eax, edx
push edi
jg 0x100f2d7a
cmp eax, ebx
jl 0x100f2d7a
mov ecx, dword [esi + 0x20014]
cmp ecx, eax
jg 0x100f2d1e
cmp ecx, edx
jge 0x100f2d1e
cmp ecx, ebx
jge 0x100f2d2a
mov dword [esi + 0x20008], ebx
mov dword [esi + 0x20014], ebx
mov ecx, dword [esi + 0x20014]
mov eax, dword [esi + 0x20008]
push ebx
sub eax, ecx
push eax
lea eax, [ecx + esi + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
je 0x100f2d57
add dword [esi + 0x20014], edi
jmp 0x100f2d5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi + 0x20014]
cmp eax, dword [esi + 0x20008]
jl 0x100f2d75
cmp edi, 0xffffffff
je 0x100f2d75
xor eax, eax
inc eax
jmp 0x100f2d7c
xor eax, eax
inc eax
jmp 0x100f2d88
xor eax, eax
mov dword [esi + 0x20008], ebx
mov dword [esi + 0x20014], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x100f81ce
Capabilities:
Delete file

Disassembly:
mov eax, 0x101334ee
call fcn.1011695c
sub esp, 0x394
mov eax, dword [0x10169ccc]
xor eax, dword [ebp + 4]
mov ecx, dword [0x109be284]
push 3
mov dword [ebp - 0x10], eax
push 0x66
lea eax, [ebp - 0x180]
push eax
call fcn.10083475
and dword [ebp - 4], 0
lea ecx, [ebp - 0x180]
call fcn.1010f470
test al, al
je 0x100f8226
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.1010f440
jmp 0x100f82da
push esi
mov esi, str.._system_SaveID.bin
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3a0]
call fcn.10110ab0
push 0x16
push esi
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 1
call fcn.10110fa0
test al, al
je 0x100f82bb
lea ecx, [ebp - 0x180]
call fcn.1010f450
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x180]
call fcn.1010f460
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10116b50
push 0x35
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.10116190
add esp, 0x18
xor eax, eax
test esi, esi
jle 0x100f829f
mov cl, byte [ebp + eax - 0x80]
not cl
mov byte [ebp + eax - 0x48], cl
inc eax
cmp eax, esi
jl 0x100f8290
push 0x35
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3a0]
call fcn.10110cc0
lea ecx, [ebp - 0x3a0]
call fcn.10110af0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3a0]
call fcn.10110f80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.1010f440
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
call fcn.10115a7a
leave
ret
Function at 0x1010443a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10104492
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x10104492
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x10104492
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10110e10
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x204
push ebp
push esi
push edi
mov edx, ecx
xor eax, eax
mov word [esp + 0x10], 0x5c
mov ecx, 0x3f
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x214]
stosw word es:[edi], ax
lea eax, [esp + 0x110]
push eax
lea esi, [edx + 8]
lea ebp, [edx + 0x108]
push str.PATH
push ecx
mov dword [esp + 0x18], esi
mov byte [esi], 0
mov byte [ebp], 0
call fcn.1011b9c9
add esp, 0xc
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x10110ea2
mov edx, ebp
lea ecx, [esp + 0x110]
lea eax, [esp + 0x110]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10110e87
pop edi
mov word [esi], 0x5c
pop esi
pop ebp
add esp, 0x204
ret 4
cmp eax, 0xffffffff
je 0x10110f72
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x114]
push eax
call fcn.10119b26
add esp, 8
mov edx, esi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x10110ec2
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.10119b26
add esp, 8
test eax, eax
je 0x10110f72
push ebx
jmp 0x10110ef0
mov esi, dword [esp + 0x10]
lea ebx, [ebx]
mov ecx, esi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10110ef2
sub ecx, esi
mov edi, ebp
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10110f00
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
mov edx, ecx
lea esp, [esp]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10110f20
sub ecx, edx
mov edi, ebp
mov esi, edx
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10110f30
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10110f50
lea edx, [esp + 0x14]
push edx
push 0
call fcn.10119b26
add esp, 8
test eax, eax
jne 0x10110ee6
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x204
ret 4
Function at 0x10118f87
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.1011c1ae
xor esi, esi
inc esi
cmp dword [0x10a072b4], esi
pop ecx
jne 0x10118faf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x10a072b0], esi
mov byte [0x10a072ac], al
jne 0x10119015
mov ecx, dword [0x10a08a30]
test ecx, ecx
je 0x10118ff6
mov eax, dword [0x10a08a2c]
sub eax, 4
cmp eax, ecx
jmp 0x10118fef
mov eax, dword [eax]
test eax, eax
je 0x10118fe1
call eax
mov eax, dword [0x10a08a2c]
sub eax, 4
cmp eax, dword [0x10a08a30]
mov dword [0x10a08a2c], eax
jae 0x10118fd9
mov eax, 0x1015c070
mov esi, 0x1015c078
cmp eax, esi
mov edi, eax
jae 0x10119015
mov eax, dword [edi]
test eax, eax
je 0x1011900e
call eax
add edi, 4
cmp edi, esi
jb 0x10119006
mov eax, 0x1015c07c
mov esi, 0x1015c084
cmp eax, esi
mov edi, eax
jae 0x10119034
mov eax, dword [edi]
test eax, eax
je 0x1011902d
call eax
add edi, 4
cmp edi, esi
jb 0x10119025
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x10119045
push 8
call fcn.1011c11a
jmp 0x10119057
push dword [ebp + 8]
mov dword [0x10a072b4], 1
call fcn.10118ee0
pop ecx
pop ebp
ret
Function at 0x1011a7dd
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x10145e58
call fcn.1011c030
mov edi, 0x94
mov eax, edi
call fcn.10115c40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x10a07274], ecx
mov eax, dword [esi + 4]
mov dword [0x10a07280], eax
mov edx, dword [esi + 8]
mov dword [0x10a07284], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10a07278], esi
cmp ecx, 2
je 0x1011a83d
or esi, 0x8000
mov dword [0x10a07278], esi
shl eax, 8
add eax, edx
mov dword [0x10a0727c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1011a878
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1011a878
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1011a890
cmp eax, 0x20b
je 0x1011a87d
mov dword [ebp - 0x1c], esi
jmp 0x1011a8a4
cmp dword [ecx + 0x84], 0xe
jbe 0x1011a878
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x1011a89e
cmp dword [ecx + 0x74], 0xe
jbe 0x1011a878
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.1011c25f
pop ecx
test eax, eax
jne 0x1011a8b8
push 0x1c
call fcn.1011a7b9
pop ecx
call fcn.1011e25a
test eax, eax
jne 0x1011a8c9
push 0x10
call fcn.1011a7b9
pop ecx
call fcn.10121338
mov dword [ebp - 4], esi
call fcn.10125094
test eax, eax
jge 0x1011a8e2
push 0x1b
call fcn.1011a794
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10a08a24], eax
call fcn.10124f72
mov dword [0x10a072c4], eax
call fcn.10124ed0
test eax, eax
jge 0x1011a908
push 8
call fcn.1011a794
pop ecx
call fcn.10124c9d
test eax, eax
jge 0x1011a919
push 9
call fcn.1011a794
pop ecx
call fcn.10118f22
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1011a92c
push eax
call fcn.1011a794
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.10124c34
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x1011a94d
movzx eax, word [ebp - 0x34]
jmp 0x1011a950
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.100362e2
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x1011a96e
push edi
call fcn.1011905a
call fcn.1011907c
jmp 0x1011a9a0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.1011c06b
ret
Function at 0x1011ae18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1011afde
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10a076a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1011afde
test cl, 0x48
je 0x1011ae7e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x1011ae7e
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1011aed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1011aeb8
call fcn.1011f15c
mov dword [eax], 9
call fcn.1011f165
mov dword [eax], esi
jmp 0x1011aec8
cmp eax, 0x6d
je 0x1011afde
push eax
call fcn.1011f16e
pop ecx
or eax, 0xffffffff
jmp 0x1011afe0
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x1011afd9
test edx, edx
je 0x1011aef3
cmp byte [ebx], 0xa
jne 0x1011aef3
or al, 4
jmp 0x1011aef5
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1011afd3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1011afc3
cmp al, 0xd
je 0x1011af29
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1011afb5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1011af43
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1011af3e
add dword [ebp + 0x10], 2
jmp 0x1011af97
mov dword [ebp + 0x10], eax
jmp 0x1011afb1
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1011af6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1011afb1
cmp dword [ebp - 0xc], 0
je 0x1011afb1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1011af8c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1011af97
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1011afb4
cmp ebx, dword [ebp + 0xc]
jne 0x1011af9c
cmp byte [ebp - 1], 0xa
jne 0x1011af9c
mov byte [ebx], 0xa
jmp 0x1011afb4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1011b2e0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1011afb5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1011af0d
jmp 0x1011afd3
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x1011afd3
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1011afe0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1011b090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10169ccc]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x1011b0b9
xor eax, eax
jmp 0x1011b227
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10a076a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1011b0ec
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.1012562b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1011b1be
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x1011b1f9
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x1011b147
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1011b138
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x1011b11b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1011b187
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1011b190
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1011b10c
jmp 0x1011b192
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x1011b222
cmp dword [ebp - 8], edi
je 0x1011b1f9
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x1011b1eb
call fcn.1011f15c
mov dword [eax], 9
call fcn.1011f165
mov dword [eax], esi
jmp 0x1011b1f4
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1011b1e0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x1011b192
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1011b192
push dword [ebp - 8]
call fcn.1011f16e
pop ecx
or eax, 0xffffffff
jmp 0x1011b225
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1011b20e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x1011b20e
xor eax, eax
jmp 0x1011b225
call fcn.1011f15c
mov dword [eax], 0x1c
call fcn.1011f165
mov dword [eax], edi
jmp 0x1011b1f4
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.10115a7a
leave
ret
Function at 0x10120e4e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.10115c40
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10120ee3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10a07274]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10120ee3
cmp eax, 1
je 0x10120efb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10120ee3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10120eb8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10120edf
xor eax, eax
inc eax
jmp 0x10120f17
cmp esi, ebx
jae 0x10120ee7
xor eax, eax
jmp 0x10120f17
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10a07274]
jmp 0x10120efd
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10124920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10169ccc]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1016aa10]
je 0x1012494d
inc eax
cmp eax, 0x12
jb 0x1012493e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1016aa10]
jne 0x10124a81
mov eax, dword [0x10a072cc]
cmp eax, 1
je 0x10124a5c
cmp eax, edx
jne 0x1012497d
cmp dword [0x1016a028], 1
je 0x10124a5c
cmp ecx, 0xfc
je 0x10124a81
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x101249b6
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10115ed0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10115dc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x101249f8
lea eax, [ebp - 0x10c]
push eax
call fcn.10115dc0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10144030
push edi
call fcn.10116b50
add esp, 0x10
push edi
call fcn.10115dc0
push dword [esi + 0x1016aa14]
mov ebx, eax
call fcn.10115dc0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10115c40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10115ed0
push edi
push ebx
call fcn.10115ee0
push 0x10145f40
push ebx
call fcn.10115ee0
push dword [esi + 0x1016aa14]
push ebx
call fcn.10115ee0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10125b34
add esp, 0x2c
jmp 0x10124a81
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x1016aa14]
push dword [esi]
call fcn.10115dc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10115a7a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101259b3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x101259d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1011f16e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x101259f6
test byte [esp + 8], 2
je 0x101259f6
call fcn.1011f15c
mov dword [eax], 0xd
call fcn.1011f165
mov dword [eax], 5
jmp 0x101259cf
xor eax, eax
ret
Function at 0x101259f9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10115c40
mov eax, dword [0x10169ccc]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1011b2e0
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10125b23
push 2
push esi
push dword [ebp + 8]
call fcn.1011b2e0
add esp, 0xc
cmp eax, ebx
je 0x10125b23
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x10125ac6
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.10116190
push 0x8000
push dword [ebp + 8]
call fcn.101288bb
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x10125a7f
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.1011b090
add esp, 0xc
cmp eax, 0xffffffff
je 0x10125a9f
sub edi, eax
test edi, edi
jg 0x10125a77
jmp 0x10125ab7
call fcn.1011f165
cmp dword [eax], 5
jne 0x10125ab4
call fcn.1011f15c
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.101288bb
pop ecx
pop ecx
jmp 0x10125b0e
jge 0x10125b0e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1011b2e0
push dword [ebp + 8]
call fcn.10125408
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x10125b0e
call fcn.1011f15c
mov dword [eax], 0xd
call fcn.1011f165
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.1011b2e0
add esp, 0xc
mov eax, esi
pop edi
jmp 0x10125b25
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.10115a7a
leave
ret