joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408920
Capabilities:
Create process on windows
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x78], esi
test esi, esi
jne 0x40894b
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.004a4a80
add esp, 0xc
mov dword [ebp - 0x74], 0x44
xor eax, eax
mov dword [ebp - 0x6c], 0x4e0a88
mov word [ebp - 0x44], ax
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], 0xc
push eax
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4089c6
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
jne 0x4089f4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
jmp 0x408a5f
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 8]
mov dword [ebp - 8], esi
je 0x408a6d
push 0
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x8000420
push 0
push 0
push eax
push 0
push dword [ebp - 0x78]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408a5c
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push esi
call edi
test ebx, ebx
je 0x408a6d
push dword [ebp - 0x30]
call edi
push dword [ebp - 0x2c]
call edi
push 0
call fcn.0044b746
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.0044b735
mov esp, ebp
pop ebp
ret
Function at 0x408ef0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x4fa078]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0xffffffff
push eax
push 0x202
mov esi, 0x1f95
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x408fc0
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x408fc0
mov eax, 2
push str.0.0.0.0
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push esi
mov dword [esp + 0x18], eax
call ebx
mov word [esp + 0x12], ax
nop dword [eax + eax]
push 0x10
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x408f96
inc esi
push esi
call ebx
mov word [esp + 0x12], ax
cmp esi, 0x10001
jl 0x408f70
jmp 0x408f9a
mov dword [esp + 0xc], esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.0044b735
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1b4]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b735
mov esp, ebp
pop ebp
ret
Function at 0x40a710
Capabilities:
Check for time delay via gettickcount
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
movzx ebx, word [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x78], 0x10
lea eax, [esi + 0x64]
push edi
movzx edi, word [ebp + 8]
jb 0x40a73b
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
mov dword [esi + 0x58], ecx
test ecx, ecx
jne 0x40a771
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi + 0x4c], eax
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x2c], 0x10
lea eax, [esi + 0x18]
jb 0x40a77c
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 0
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x60], eax
test eax, eax
jne 0x40a7dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x58]
test eax, eax
je 0x40a7b6
push eax
call edi
mov dword [esi + 0x58], 0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x40a7c7
push eax
call edi
mov dword [esi + 0x60], 0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x1bb
mov ebx, 0x84c01000
cmp di, cx
mov eax, 0x84401000
lea edi, [esi + 0x30]
cmovne ebx, eax
cmp dword [esi + 0x54], 0
je 0x40a81b
cmp dword [edi + 0x14], 0x10
jb 0x40a802
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
push 0
push 0x4e0a3d
push 0
push edi
push 0x4e0c60
jmp 0x40a83a
cmp dword [edi + 0x14], 0x10
jb 0x40a823
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
push 0
push 0x4e0a3d
push 0
push edi
push 0x4e0c64
push dword [esi + 0x60]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x5c], eax
test eax, eax
jne 0x40a86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x4c], eax
call fcn.0040a6d0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 4
mov eax, 0x1bb
cmp word [ebp - 8], ax
jne 0x40a8aa
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x3380
push eax
push 0x1f
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x40a8aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetSetOptionA_set_error__d_n
call fcn.00409f30
add esp, 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b735
mov esp, ebp
pop ebp
ret 4
Function at 0x40c1c0
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push eax
push dword [esi + 0x380]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40c211
mov eax, dword [ebp - 8]
add dword [esi + 0x3ac], eax
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0044b735
mov esp, ebp
pop ebp
ret 8
Function at 0x410b70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x4fa078]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
call fcn.00410af0
add esp, 0x10
test eax, eax
jne 0x410baf
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044b735
mov esp, ebp
pop ebp
ret
jns 0x410bce
call fcn.004aed31
cmp dword [eax], 9
jne 0x410bce
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044b735
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea edx, [esp + 0xf]
mov eax, 2
mov dword [esp + 8], edx
mov ecx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
push eax
push ecx
push edx
push esi
call edi
mov esi, eax
test esi, esi
jns 0x410c1c
call fcn.004aed31
cmp dword [eax], 4
jne 0x410c1a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x18]
jmp 0x410bf2
test esi, esi
mov ecx, dword [esp + 0x1c]
setg al
pop edi
pop esi
xor ecx, esp
call fcn.0044b735
mov esp, ebp
pop ebp
ret
Function at 0x410fd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x40c], eax
push edi
mov edi, edx
movzx eax, word [esi]
cmp eax, 2
je 0x411003
cmp eax, 0x17
jne 0x41107f
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push 0x401
mov dword [ebx], eax
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.004a4a80
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x41107f
lea edx, [ebp - 0x408]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x411050
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
sub edx, esi
push edx
push eax
call fcn.00407000
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b735
mov esp, ebp
pop ebp
ret
Function at 0x415ad0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4fa078]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], 1
mov eax, dword [edi + 0x24]
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x18]
inc eax
push ecx
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jns 0x415b4e
call fcn.004aed31
cmp dword [eax], 4
jne 0x415b4c
mov eax, dword [esp + 0x14]
jmp 0x415b24
test esi, esi
jle 0x415bc8
mov ecx, dword [edi + 4]
call fcn.00410b70
test al, al
je 0x415bc8
mov eax, dword [ebp + 0xc]
mov ecx, SysReAllocString
mov esi, dword [edi + 4]
cmp eax, ecx
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_send]
cmova eax, ecx
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
push ecx
push eax
push edx
push esi
call edi
mov esi, eax
test esi, esi
jns 0x415baf
call fcn.004aed31
cmp dword [eax], 4
jne 0x415baf
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
jmp 0x415b87
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x134]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x4fa078]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x415cb3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push esi
call fcn.00410fd0
add esp, 8
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 8
Function at 0x41a570
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7cd9
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x41a5b6
or eax, 0xffffffff
jmp 0x41a78b
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x264]
test ecx, ecx
je 0x41a5eb
mov eax, dword [ecx]
lea edx, [ebp - 0xe0]
push edx
call dword [eax]
mov dword [ebp - 0xbc], eax
sub esp, 0x28
mov dword [ebp - 4], 1
mov esi, esp
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x9c], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x41a65a
lea eax, [ebp - 0xe0]
cmp ecx, eax
jne 0x41a64d
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x41a65a
mov edx, dword [ecx]
lea eax, [ebp - 0xe0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x41a650
mov dword [esi + 0x24], ecx
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0xb4]
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
movzx eax, byte [edi + 0x23c]
push eax
push ecx
push dword [edi + 0x238]
mov ecx, ebx
push esi
call fcn.0042e990
mov byte [ebp - 4], 1
add esp, 0x3c
mov edx, dword [ebp - 0xa0]
mov ebx, eax
cmp edx, 0x10
jb 0x41a6df
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a6d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a7a9
push edx
push ecx
call fcn.0044bea4
add esp, 8
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x41a729
mov edx, dword [ecx]
lea eax, [ebp - 0xe0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0xbc], 0
add edi, 0x30
xchg dword [edi], ebx
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x41a5ae
test esi, esi
jne 0x41a789
mov eax, dword [edi]
mov dword [ebp - 0x14], 0x80
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x41a5ae
mov ax, word [ebp - 0x98]
cmp ax, 2
je 0x41a778
cmp ax, 0x17
jne 0x41a5ae
push dword [ebp - 0x96]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x41a78b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 0xc
call fcn.004ab9cc
int3
Function at 0x41cf40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8119
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4fa078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0xf
mov byte [ebx + 0x18], 0
mov byte [ebp - 4], 1
lea esi, [ebx + 0x30]
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042a750
mov dword [esi], eax
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0xf
mov byte [ebx + 0x38], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0xf
mov byte [ebx + 0x50], 0
mov dword [ebx + 0x68], 0xffffffff
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0xf
mov byte [ebx + 0x6c], 0
mov dword [ebx + 0x84], 0xffffffff
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0xf
mov byte [ebx + 0x88], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0xf
mov byte [ebx + 0xa0], 0
mov byte [ebp - 4], 7
lea esi, [ebx + 0xb8]
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042a750
mov dword [esi], eax
mov byte [ebp - 4], 8
lea esi, [ebx + 0xc0]
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042a940
mov dword [esi], eax
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xcc], 0
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xd4], 0
mov byte [ebx + 0xd8], 0
mov dword [ebx + 0xdc], 0
mov dword [ebx + 0xe0], 0
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov byte [ebx + 0xf0], 0
mov dword [ebx + 0xf4], 0
mov dword [ebx + 0xf8], 0
mov byte [ebx + 0xfc], 0
mov dword [ebx + 0x100], 0
mov dword [ebx + 0x104], 0
mov byte [ebx + 0x108], 0
add ebx, 0x10c
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x1c], ebx
lea edi, [ebx + 4]
mov dword [ebx], 0
mov dword [ebp - 0x10], edi
push 0
push 0
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0042b270
mov dword [edi], eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov byte [ebp - 4], 0xd
lea ecx, [ebx + 0xc]
push 0x10
mov dword [ebx], 0x3f800000
call fcn.0042a830
mov eax, dword [edi]
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x10
call fcn.00429250
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x1c], 8
mov dword [eax + 0x154], 0
mov dword [eax + 0x17c], 0
mov dword [eax + 0x1a4], 0
mov dword [eax + 0x1a8], 0x14
mov dword [eax + 0x1ac], 0
mov dword [eax + 0x1d4], 0
mov byte [eax + 0x1d8], 0
mov dword [eax + 0x1dc], 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
Function at 0x426090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4260bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004271f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4260dd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4260df
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x426163
jg 0x4260f4
test esi, esi
je 0x426163
test ecx, ecx
jl 0x42613d
jg 0x4260fe
test eax, eax
je 0x42613d
cmp edi, ecx
jg 0x426112
jl 0x426108
cmp esi, eax
jae 0x426112
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004a4500
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x426140
mov edx, dword [ebp + 8]
test edi, edi
jl 0x426163
jg 0x42614a
test esi, esi
je 0x426163
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x426163
push eax
push esi
push 1
push edx
call fcn.004ac6fb
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4261ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004272d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4261cd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4261cf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x42626e
jg 0x4261ec
test esi, esi
je 0x42626e
test ecx, ecx
jl 0x426239
jg 0x4261f6
test eax, eax
je 0x426239
cmp ebx, ecx
jg 0x42620a
jl 0x426200
cmp esi, eax
jae 0x42620a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004a4500
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x426240
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x42626e
jg 0x42624a
test esi, esi
je 0x42626e
cmp dword [edi + 0x4c], 0
je 0x42626e
mov ecx, edi
call fcn.004288d0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004af412
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4265c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4265f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42662c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42662c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x426711
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x426654
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x426687
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004adc65
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x426711
cmp eax, 1
jle 0x4266e4
cmp eax, 3
jne 0x426711
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040e230
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x426701
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004ac6fb
add esp, 0x10
cmp edi, eax
jne 0x426711
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x426617
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b735
mov esp, ebp
pop ebp
ret 4