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

Disassembly:
sub esp, 0x194
mov eax, dword [0x101b6f10]
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
call fcn.101581be
add esp, 0x194
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101b6f10]
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 - 0x28], eax
jne 0x1013dd66
push esi
push str.ERROR
push str.Initialize_socket_fail
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1013ded9
cmp dword [ebx + 4], esi
mov dword [ebx + 0x2000c], esi
mov dword [ebx + 0x20008], esi
mov dword [ebx + 0x20010], esi
mov byte [ebx + 0x2013c], 0
mov byte [ebx + 0x2013d], 0
mov byte [ebx + 0x2013f], 0
mov byte [ebx + 0x2013e], 0
je 0x1013dda0
mov ecx, ebx
call fcn.1013dc8b
push edi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10158270
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
mov word [ebp - 0x12], si
mov esi, dword [sym.imp.WS2_32.dll_bind]
mov word [ebp - 0x14], 2
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.WS2_32.dll_htons]
jne 0x1013de50
add dword [0x10a4e178], 0xa
mov eax, dword [0x10a4e178]
add eax, 0x1388
push eax
call edi
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call esi
cmp eax, 0xffffffff
jne 0x1013de50
add dword [0x10a4e178], 0xa
mov eax, dword [0x10a4e178]
add eax, 0x1388
push eax
call edi
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call esi
cmp eax, 0xffffffff
jne 0x1013de50
push 0
push str.ERROR
push str.Binding_fail
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1013ded8
push 0x10
xor esi, esi
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.10158270
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov word [ebp - 0x24], 2
call edi
mov edi, dword [ebp - 0x28]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jl 0x1013dea3
push 0x21
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
jle 0x1013deaf
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], esi
jmp 0x1013de49
cmp dword [ebp + 0x1c], esi
mov dword [ebx + 4], edi
je 0x1013decc
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]
pop esi
pop ebx
call fcn.101581be
leave
ret 0x18
Function at 0x1013e3a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
ja 0x1013e3b2
xor eax, eax
jmp 0x1013e452
cmp dword [esi + 0x20014], ebx
jle 0x1013e3c1
mov ecx, esi
call fcn.1013df25
mov eax, dword [esi + 0x20008]
mov edx, 0x10000
cmp eax, edx
push edi
jg 0x1013e443
cmp eax, ebx
jl 0x1013e443
mov ecx, dword [esi + 0x20014]
cmp ecx, eax
jg 0x1013e3e7
cmp ecx, edx
jge 0x1013e3e7
cmp ecx, ebx
jge 0x1013e3f3
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 0x1013e420
add dword [esi + 0x20014], edi
jmp 0x1013e426
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi + 0x20014]
cmp eax, dword [esi + 0x20008]
jl 0x1013e43e
cmp edi, 0xffffffff
je 0x1013e43e
xor eax, eax
inc eax
jmp 0x1013e445
xor eax, eax
inc eax
jmp 0x1013e451
xor eax, eax
mov dword [esi + 0x20008], ebx
mov dword [esi + 0x20014], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x10144cdd
Capabilities:
Delete file

Disassembly:
mov eax, 0x1017964a
call fcn.101590a4
sub esp, 0x494
mov eax, dword [0x101b6f10]
mov ecx, dword [0x10a0b444]
push 3
mov dword [ebp - 0x10], eax
push 0x66
lea eax, [ebp - 0x4a0]
push eax
call fcn.1009670d
and dword [ebp - 4], 0
mov ecx, eax
call fcn.101510f0
push eax
lea ecx, [ebp - 0x180]
call fcn.101512e0
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 2
call fcn.101512b0
lea ecx, [ebp - 0x180]
call fcn.10151100
test al, al
je 0x10144d54
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.101512b0
jmp 0x10144e08
push esi
mov esi, str.._system_SaveID.bin
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3a0]
call fcn.10152860
push 0x16
push esi
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 3
call fcn.10152d80
test al, al
je 0x10144de9
lea ecx, [ebp - 0x180]
call fcn.101510e0
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x180]
call fcn.101510f0
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10159390
push 0x35
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.10158270
add esp, 0x18
xor eax, eax
test esi, esi
jle 0x10144dcd
mov cl, byte [ebp + eax - 0x80]
not cl
mov byte [ebp + eax - 0x48], cl
inc eax
cmp eax, esi
jl 0x10144dbe
push 0x35
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3a0]
call fcn.10152a70
lea ecx, [ebp - 0x3a0]
call fcn.101528a0
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 2
call fcn.10152d30
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.101512b0
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.101581be
leave
ret
Function at 0x10146c17
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10179753
call fcn.101590a4
sub esp, 0x30c
cmp byte [ecx], 1
mov eax, dword [0x101b6f10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x314], ecx
je 0x10146e68
cmp dword [0x10a059f4], 5
jne 0x10146e68
lea ecx, [ebp - 0x210]
call fcn.101512c0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x310]
call fcn.101512c0
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
call fcn.101512c0
mov eax, dword [0x10a0b35c]
mov eax, dword [eax + 0x1144]
sub eax, 0
mov byte [ebp - 4], 2
je 0x10146d3f
dec eax
je 0x10146d18
dec eax
je 0x10146cf1
dec eax
je 0x10146cca
dec eax
jne 0x10146d6f
push str.systemTantraParam_5.tpa
lea ecx, [ebp - 0x210]
call fcn.101511b0
push str.systemHTQuest_5.sys
lea ecx, [ebp - 0x310]
call fcn.101511b0
push str.systemHTScript_5.sys
jmp 0x10146d64
push str.systemTantraParam_4.tpa
lea ecx, [ebp - 0x210]
call fcn.101511b0
push str.systemHTQuest_4.sys
lea ecx, [ebp - 0x310]
call fcn.101511b0
push str.systemHTScript_4.sys
jmp 0x10146d64
push str.systemTantraParam_3.tpa
lea ecx, [ebp - 0x210]
call fcn.101511b0
push str.systemHTQuest_3.sys
lea ecx, [ebp - 0x310]
call fcn.101511b0
push str.systemHTScript_3.sys
jmp 0x10146d64
push str.systemTantraParam_2.tpa
lea ecx, [ebp - 0x210]
call fcn.101511b0
push str.systemHTQuest_2.sys
lea ecx, [ebp - 0x310]
call fcn.101511b0
push str.systemHTScript_2.sys
jmp 0x10146d64
push str.systemTantraParam_1.tpa
lea ecx, [ebp - 0x210]
call fcn.101511b0
push str.systemHTQuest_1.sys
lea ecx, [ebp - 0x310]
call fcn.101511b0
push str.systemHTScript_1.sys
lea ecx, [ebp - 0x110]
call fcn.101511b0
push ebx
push esi
lea ecx, [ebp - 0x210]
mov bl, 1
call fcn.101510f0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
jne 0x10146d8e
xor bl, bl
lea ecx, [ebp - 0x310]
call fcn.101510f0
push eax
call esi
cmp eax, 0xffffffff
jne 0x10146da3
xor bl, bl
lea ecx, [ebp - 0x110]
call fcn.101510f0
push eax
call esi
cmp eax, 0xffffffff
jne 0x10146db8
xor bl, bl
cmp bl, 1
jne 0x10146e30
mov ecx, dword [0x10a0b360]
test ecx, ecx
je 0x10146dd5
mov esi, ecx
call fcn.1000e34d
push esi
call fcn.101594b4
pop ecx
and dword [0x10a0b360], 0
push 0x1e4
call fcn.10157b9f
pop ecx
mov dword [ebp - 0x318], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x10146dfe
mov ecx, eax
call fcn.1000ea97
jmp 0x10146e00
xor eax, eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [0x10a0b360], eax
call fcn.1000f113
mov ecx, dword [0x10a0b360]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.1000f430
mov eax, dword [ebp - 0x314]
lea ecx, [ebp - 0x110]
mov byte [eax], 1
mov byte [ebp - 4], 1
call fcn.101512b0
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 0
call fcn.101512b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x210]
call fcn.101512b0
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.101581be
leave
ret
Function at 0x10152bc0
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.1015e923
add esp, 0xc
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x10152c4d
lea eax, [esp + 0x110]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10152c32
pop edi
mov word [esi], 0x5c
pop esi
pop ebp
add esp, 0x204
ret 4
cmp eax, 0xffffffff
je 0x10152d22
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x114]
push eax
call fcn.1015c342
add esp, 8
mov edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x10152c70
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.1015c342
add esp, 8
test eax, eax
je 0x10152d22
push ebx
jmp 0x10152c98
mov esi, dword [esp + 0x10]
mov ecx, esi
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10152ca0
sub ecx, esi
mov edi, ebp
mov edx, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10152cb0
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 0x10152cd0
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 0x10152ce0
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 0x10152d00
lea edx, [esp + 0x14]
push edx
push 0
call fcn.1015c342
add esp, 8
test eax, eax
jne 0x10152c94
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x204
ret 4
Function at 0x101576c0
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x101b6f10]
push ebx
mov dword [esp + 0x864], eax
mov eax, dword [ecx + 4]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
jne 0x101576fb
xor eax, eax
mov ecx, dword [esp + 0x86c]
call fcn.101581be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax*4 + 0x101b6e20]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [0x1017fc1e]
mov byte [esp + 0x68], al
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
push 0xf0000000
push 1
push ebx
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10157858
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10157848
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10157780
sub eax, edx
mov edx, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10157837
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 1
push ecx
push 0x6801
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10157837
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x6c]
push edx
push ebx
push 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10157804
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x68]
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10157820
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x1015784c
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x1015784c
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x86c]
mov eax, dword [esp + 0xc]
call fcn.101581be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10157b10
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
mov esi, ecx
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esi], 0x1018fdec
mov dword [esi + 4], 0
call edi
test eax, eax
jne 0x10157b58
push 8
push 1
push eax
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x10157b58
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x10157f0a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10158150
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10157fa5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10a596b8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10157fa5
cmp eax, 1
je 0x10157fc6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10157fa5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10157f72
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10157fa1
xor eax, eax
inc eax
jmp 0x10157fe5
cmp edi, eax
jae 0x10157fa9
xor eax, eax
jmp 0x10157fe5
cmp eax, esi
jae 0x10157fb0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10a596b8]
jmp 0x10157fc9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1015d5a2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x101903f0
call fcn.10157ff0
push 8
call fcn.1015f0ec
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10a596f8], esi
jne 0x1015d5d6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10a596f4], esi
mov al, byte [ebp + 0x10]
mov byte [0x10a596f0], al
cmp dword [ebp + 0xc], edi
jne 0x1015d620
cmp dword [0x10a5ae90], edi
je 0x1015d610
mov eax, dword [0x10a5ae8c]
sub eax, 4
mov dword [0x10a5ae8c], eax
cmp eax, dword [0x10a5ae90]
jb 0x1015d610
mov eax, dword [eax]
cmp eax, edi
je 0x1015d5f1
call eax
jmp 0x1015d5f1
push 0x101aa07c
mov eax, 0x101aa074
call fcn.1015d520
pop ecx
push 0x101aa088
mov eax, 0x101aa080
call fcn.1015d520
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.1015d651
cmp dword [ebp + 0x10], edi
jne 0x1015d65f
mov dword [0x10a596f8], esi
push dword [ebp + 8]
call fcn.1015d4de
xor edi, edi
xor esi, esi
inc esi
call fcn.1015802b
ret
Function at 0x1015d744
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x10190400
call fcn.10157ff0
mov edi, 0x94
mov eax, edi
call fcn.10158150
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 [0x10a596b8], ecx
mov eax, dword [esi + 4]
mov dword [0x10a596c4], eax
mov edx, dword [esi + 8]
mov dword [0x10a596c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10a596bc], esi
cmp ecx, 2
je 0x1015d7a4
or esi, 0x8000
mov dword [0x10a596bc], esi
shl eax, 8
add eax, edx
mov dword [0x10a596c0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1015d7df
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1015d7df
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1015d7f7
cmp eax, 0x20b
je 0x1015d7e4
mov dword [ebp - 0x1c], esi
jmp 0x1015d80b
cmp dword [ecx + 0x84], 0xe
jbe 0x1015d7df
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x1015d805
cmp dword [ecx + 0x74], 0xe
jbe 0x1015d7df
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.1015f137
pop ecx
test eax, eax
jne 0x1015d81f
push 0x1c
call fcn.1015d720
pop ecx
call fcn.1016163a
test eax, eax
jne 0x1015d830
push 0x10
call fcn.1015d720
pop ecx
call fcn.10168000
mov dword [ebp - 4], esi
call fcn.10166b99
test eax, eax
jge 0x1015d849
push 0x1b
call fcn.1015d6fb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10a5ae84], eax
call fcn.101686ce
mov dword [0x10a596fc], eax
call fcn.1016862c
test eax, eax
jge 0x1015d86f
push 8
call fcn.1015d6fb
pop ecx
call fcn.101683f9
test eax, eax
jge 0x1015d880
push 9
call fcn.1015d6fb
pop ecx
push 1
call fcn.1015d538
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x1015d896
push eax
call fcn.1015d6fb
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.1016839c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1015d8b7
movzx eax, word [ebp - 0x40]
jmp 0x1015d8ba
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.1003a7c4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x1015d8d8
push edi
call fcn.1015d665
call fcn.1015d687
jmp 0x1015d90a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.1015802b
ret
Function at 0x1015dcd8
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 0x1015deac
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10a59b00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1015deac
test cl, 0x48
je 0x1015dd43
cmp byte [eax + 5], 0xa
je 0x1015dd43
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x1015dd95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1015dd7d
call fcn.10162890
mov dword [eax], 9
call fcn.10162899
mov dword [eax], esi
jmp 0x1015dd8d
cmp eax, 0x6d
je 0x1015deac
push eax
call fcn.101628a2
pop ecx
or eax, 0xffffffff
jmp 0x1015deae
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1015dea7
test eax, eax
je 0x1015ddbc
cmp byte [ebx], 0xa
jne 0x1015ddbc
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1015ddc5
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x1015dea1
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1015de91
cmp al, 0xd
je 0x1015ddf7
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1015de83
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1015de11
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1015de0c
add dword [ebp + 0x10], 2
jmp 0x1015de65
mov dword [ebp + 0x10], eax
jmp 0x1015de7f
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 0x1015de39
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1015de7f
cmp dword [ebp - 0xc], 0
je 0x1015de7f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1015de5a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1015de65
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1015de82
cmp ebx, dword [ebp + 0xc]
jne 0x1015de6a
cmp byte [ebp - 1], 0xa
jne 0x1015de6a
mov byte [ebx], 0xa
jmp 0x1015de82
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1015e1d7
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1015de83
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1015dddb
jmp 0x1015dea1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1015dea1
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1015deae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret