joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011a030
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
shr eax, 0x1f
mov ebx, dword [edi]
add edx, eax
cmp edx, 2
je 0x1011a06c
push str.Couldnt_set_desired_mode
push ebx
call fcn.101002b0
add esp, 8
mov eax, 0x11
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x1011a083
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.10100240
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 0x13
jne 0x1011a09b
push edi
call fcn.10118ab0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x1011a0af
push edi
call fcn.1011a0e0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x1011a0c3
push edi
call fcn.1011a200
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x1011a0d3
push edi
call fcn.1011a220
add esp, 4
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x1011a7f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x20]
push edi
mov ebp, dword [esi + 0x19c]
mov ebx, dword [esi]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebp
or edi, 0xffffffff
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1011a83e
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
push ebp
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push esi
call fcn.101040e0
add esp, 8
cmp edi, 0xffffffff
jne 0x1011a868
push str.Error_accept__ing_server_connect
push ebx
call fcn.101002b0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.10100240
push 1
push edi
mov dword [esi + 0x2d0], 0
mov dword [esi + 0x19c], edi
call fcn.10126fa0
mov dword [esi + 0x1ac], 1
mov eax, dword [ebx + 0x1c8]
add esp, 0x10
test eax, eax
je 0x1011a8cb
mov ecx, dword [ebx + 0x1cc]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x1011a8cb
push esi
call fcn.10119390
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x10122c60
Capabilities:
Check http status code

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
mov edi, dword [esp + 0x48]
xor ebx, ebx
mov eax, dword [edi + ebp*4 + 0x198]
mov esi, dword [edi]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + ebp*4 + 0x5c4]
cmp eax, 2
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
je 0x101236de
mov dword [edi + 0x308], ebx

Function at 0x101256a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x108]
push eax
call fcn.10088678
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x101256ed
lea ecx, [esp]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov al, byte [esp]
test al, al
je 0x101256ed
lea edx, [esp]
push edx
call dword [0x102e2058]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x10126e50
Capabilities:
Get common file path

Disassembly:
push ecx
push edi
push str.kernel32
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x10126e6e
pop edi
pop ecx
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push esi
push str.LoadLibraryExA
push edi
call ebx
mov esi, dword [esp + 0x18]
push 0x102e9db0
push esi
mov ebp, eax
call fcn.1007a9c0
add esp, 8
test eax, eax
je 0x10126ebd
test ebp, ebp
je 0x10126eac
push 8
push 0
push esi
call ebp
pop esi
pop ebp
pop ebx
mov dword [esp + 4], eax
pop edi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
pop ebx
mov dword [esp + 4], eax
pop edi
pop ecx
ret
test ebp, ebp
je 0x10126ee1
push str.AddDllDirectory
push edi
call ebx
test eax, eax
je 0x10126ee1
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
pop ebx
mov dword [esp + 4], eax
pop edi
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
mov dword [esp + 0x18], edx
je 0x10126f8d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 1]
push eax
call dword [0x102e204c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10126f83
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10126f83
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dx, word [0x102e6228]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov word [ecx + ebx], dx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
add edx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x10126f78
push 8
push 0
push ebx
call ebp
jmp 0x10126f7f
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x10], eax
push ebx
call dword [0x102e2050]
add esp, 4
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
Function at 0x10128360
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
mov byte [esi + edi - 1], 0
jne 0x10128392
push 0x2e
push esi
call fcn.1007a450
add esp, 8
test eax, eax
je 0x10128390
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x1012d660
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push eax
call dword [0x102e204c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1012d683
pop edi
pop esi
ret
lea eax, [edi + 0xc]
push ebx
mov dword [edi], esi
mov dword [edi + 4], eax
mov ebx, dword [esi + 0xc]
mov edx, eax
add edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [edi + 8], edx
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
push ebp
jbe 0x1012d6ce
push eax
call dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
push ebx
push eax
push ecx
call dword [esi + 4]
mov ebx, dword [edi + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [edi + 4]
add ebx, eax
push edx
push ebx
call dword [esi + 8]
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x1c], eax
jmp 0x1012d6d2
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 4]
push ecx
call dword [esi]
mov edx, dword [edi + 8]
push edx
call dword [esi]
mov eax, dword [esp + 0x24]
add esp, 8
xor ebp, ebp
test eax, eax
jbe 0x1012d738
mov dword [esp + 0x1c], eax
mov ebp, eax
mov al, byte [ebx]
mov cl, byte [0x102766a0]
xor al, cl
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
mov edx, dword [edi + 4]
push 1
push ecx
push edx
call dword [esi + 4]
mov al, byte [ebx]
mov dl, byte [0x102766a1]
xor al, dl
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
mov edx, dword [edi + 8]
push 1
push ecx
push edx
inc ebx
call dword [esi + 4]
mov eax, dword [esp + 0x34]
add esp, 0x18
dec eax
mov dword [esp + 0x1c], eax
jne 0x1012d6f1
cmp ebp, dword [esi + 0x10]
jae 0x1012d764
mov eax, dword [edi + 4]
push 1
push 0x102766a0
push eax
call dword [esi + 4]
mov ecx, dword [edi + 8]
push 1
push 0x102766a1
push ecx
call dword [esi + 4]
mov eax, dword [esi + 0x10]
add esp, 0x18
inc ebp
cmp ebp, eax
jb 0x1012d73d
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
ret
Function at 0x10132470
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x1030e0f4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x10132492
mov eax, dword [0x1030e87c]
test eax, eax
jne 0x10132492
mov eax, dword [0x1030ee8c]
test eax, eax
je 0x10132496
test ebx, ebx
je 0x101324d0
mov eax, dword [0x102ea7a8]
or esi, 0xffffffff
cmp eax, esi
jne 0x101324d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x102ea7a8], eax
je 0x101324d0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x101324d0
mov eax, dword [0x102ea7a8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x102ea7a8], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.101442c0
add esp, 0xc
test eax, eax
je 0x10132513
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.10160b70
add esp, 0x10
test eax, eax
je 0x10132513
push ebx
push esi
push edi
call fcn.1016fea0
add esp, 0xc
test eax, eax
je 0x10132513
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x101374b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
je 0x1013761b
cmp esi, 0xffffffff
je 0x1013761b
cmp dword [0x1030e050], ebp
je 0x1013761b
mov ecx, dword [0x1030e058]
cmp ecx, ebp
je 0x1013761b
mov eax, dword [0x1030e054]
cmp eax, ebp
jge 0x101374f9
neg eax
cmp ecx, eax
ja 0x1013761b
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.1024cbd1
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x10137610
mov ecx, dword [0x1030e058]
xor eax, eax
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
mov dword [esp + 0x14], ebp
rep stosb byte es:[edi], al
mov ebx, dword [0x1030e058]
mov edi, dword [0x1030e054]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
xor ecx, ecx
mov dword [esp + 0x1c], eax
test edi, edi
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
push edi
push esi
call ebp
cmp eax, 0xffffffff
je 0x10137602
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x10137595
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.1017df60
add esp, 0x18
jmp 0x101375a7
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push esi
call ebp
test edi, edi
je 0x10137602
mov ebx, dword [0x1030dffc]
xor edx, edx
test ebx, ebx
jle 0x10137602
mov ebp, dword [0x1030dff8]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x101375e8
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x101375fa
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x10137602
jmp 0x101375ce
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1024cbfa
add esp, 4
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x101448c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x1030e0e8], ebp
call ebx
mov dword [0x1030e0f0], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x101449fc
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.1014b7b0
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x10144965
test edi, edi
jne 0x10144965
test ebp, ebp
jne 0x10144965
test ebx, ebx
jne 0x10144965
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x10144965
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x101449f1
cmp eax, 3
jne 0x101449f1
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.1017eb10
add esp, 0xc
test eax, eax
je 0x101449ed
mov eax, dword [esp + 0x40]
test esi, esi
je 0x10144995
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x101449a0
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x101449ac
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x101449cb
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x101449dd
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x101449ed
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x10144a8d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x10144a8d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10144aa8
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10144a86
mov dword [0x1030e0e8], 0xd
mov dword [0x1030e0ec], 0x29f7
call ebx
mov dword [0x1030e0f0], eax
jmp 0x10144aaa
mov edi, 1
jmp 0x10144aaa
mov dword [0x1030e0e8], 1
mov dword [0x1030e0ec], 0x29ea
call ebx
mov dword [0x1030e0f0], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x1014490e
mov dword [0x1030e0e8], 0xf
mov dword [0x1030e0ec], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x1030e0f0], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x10145c80
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.1013fdb0
push eax
call fcn.101816d0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x10145ce5
mov dword [0x1030e0e8], 0xc
mov dword [0x1030e0ec], 0x1da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1030e0f0], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.1024cbd1
mov esi, eax
add esp, 4
test esi, esi
jne 0x10145d49
mov dword [0x1030e0e8], 0x21
mov dword [0x1030e0ec], 0x1db1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1030e0f0], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x10145e31
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x10145dca
test eax, eax
jne 0x10145dca
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10145e47
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.1017eb60
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x10145e66
mov dword [0x1030e0e8], 0x11
mov dword [0x1030e0ec], 0x1dbd
jmp 0x10145e5b
mov dword [0x1030e0e8], 0xe
mov dword [0x1030e0ec], 0x1dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030e0f0], eax
push esi
call fcn.1024cbfa
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x10147b60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x1030e0e8], ebx
call esi
mov ebp, dword [esp + 0x3f4]
mov dword [0x1030e0f0], eax
lea eax, [esp + 0x14]
push 1
push eax
push ebx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x1c], eax
mov ecx, 0xf3
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
cmp ebp, 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
je 0x10147c12
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x10147c12
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10147d1c
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x28]
push 4
push eax
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10147c32
mov dword [0x1030e0e8], 0xd
mov dword [0x1030e0ec], 0x29f7
call esi
mov dword [0x1030e0f0], eax
jmp 0x10147d1c
mov dword [0x1030e0e8], 1
mov dword [0x1030e0ec], 0x29ea
call esi
mov dword [0x1030e0f0], eax
jmp 0x10147d1c
mov ecx, 4
mov edi, 0x102ea89c
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10147c4b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10147c70
mov ecx, 4
mov edi, 0x102ea874
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10147c68
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10147d1c
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x10147cd2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10147d1c
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push ebx
push edx
lea eax, [esp + 0x2c]
push 0x34
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10147cf3
mov dword [0x1030e0e8], 0xd
mov dword [0x1030e0ec], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030e0f0], eax
jmp 0x10147d1c
mov dword [0x1030e0e8], 1
mov dword [0x1030e0ec], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030e0f0], eax
jmp 0x10147d1c
mov ecx, dword [esp + 0x400]
mov edx, dword [esp + 0x3fc]
mov eax, dword [esp + 0x3f8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.1014a340
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3e0
ret
Function at 0x1014cd70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10266460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1026e87c]
push esi
mov dword [esp + 4], eax
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
mov byte [esp + 0x30], 1
call fcn.1014ce20
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0x1c
test eax, eax
je 0x1014cde8
mov ecx, dword [esp + 4]
push 0x104
push ecx
push eax
call fcn.10079788
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.10090bf0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10090bf0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10153030
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
push esi
push edi
xor edx, edx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
mov esi, dword [esp + 0x44]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, edx
mov dword [esp + 8], edx
stosb byte es:[edi], al
je 0x10153067
mov ecx, 0xc
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
jmp 0x1015312b
mov esi, dword [esp + 0x40]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x4c]
push 1
push eax
push edx
push esi
mov dword [esp + 0x5c], edx
call ebp
push 0
push 0
push 0
push esi
mov ebx, eax
call ebp
cmp esi, 0xffffffff
je 0x101530f9
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x101530f9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10153118
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x48]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x14]
push edi
push edx
push 0x30
push eax
push esi
mov dword [esp + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101530f2
mov dword [0x1030e0e8], 0xd
mov dword [0x1030e0ec], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030e0f0], eax
jmp 0x1015311a
mov edi, 1
jmp 0x1015311a
mov dword [0x1030e0e8], 1
mov dword [0x1030e0ec], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030e0f0], eax
xor edi, edi
lea ecx, [esp + 0x4c]
push 0
push ecx
push ebx
push esi
call ebp
pop ebp
pop ebx
test edi, edi
je 0x1015313a
test byte [esp + 0x30], 0x20
je 0x1015313a
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x34
ret
Function at 0x10165bd0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x10165c2f
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x10165c2f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10165c2f
push esi
lea esi, [esp + 8]
push 0
push esi
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x10165c29
mov dword [0x1030e870], 0xe
mov dword [0x1030e874], 0x2263
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030e878], eax
xor eax, eax
ret
mov eax, 1
ret
mov dword [0x1030e870], 1
mov dword [0x1030e874], 0x225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1030e878], eax
xor eax, eax
ret