joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2bf0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
jmp 0x4a2c15
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx]
jge 0x4a2d46
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x206b0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, eax
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call fcn.00496cb0
test eax, eax
je 0x4a2d41
mov ecx, dword [ebp - 8]
call fcn.0047c8f0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jg 0x4a2c5a
jmp 0x4a2c0c
mov dword [0x6e31a0], 0
mov dword [ebp - 0x14], 0
jmp 0x4a2c76
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x6e31a0]
jae 0x4a2c97
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [edx*4 + 0x6e31a4]
cmp ecx, dword [eax + 0x7c]
jne 0x4a2c95
jmp 0x4a2c97
jmp 0x4a2c6d
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x6e31a0]
jne 0x4a2cc8
cmp dword [0x6e31a0], 0x40
jae 0x4a2cc8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x7c]
mov dword [eax*4 + 0x6e31a4], edx
mov eax, dword [0x6e31a0]
add eax, 1
mov dword [0x6e31a0], eax
xor ecx, ecx
test ecx, ecx
jne 0x4a2c64
push 0x6f8418
push 0
push 0x6e31a0
push 0
push 1
call dword [sym.imp.WS2_32.dll_select]
mov dword [0x5f1800], eax
cmp dword [0x5f1800], 0
jle 0x4a2d07
cmp dword [ebp - 0xc], 0x1b
jl 0x4a2d05
push 0x6e31a0
mov ecx, dword [ebp - 8]
call fcn.004a3500
jmp 0x4a2d41
cmp dword [0x5f1800], 0xffffffff
jne 0x4a2d41
cmp dword [ebp - 0xc], 0x2e
jl 0x4a2d41
cmp dword [0x60f874], 0
jne 0x4a2d41
mov dword [ebp - 0x18], 0x1b
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 8]
call fcn.00482410
push 0x36
push 0x5d932c
call fcn.0051c190
add esp, 8
jmp 0x4a2c0c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a3500
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x7c]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a35f4
lea eax, [ebp - 0xc]
push eax
push 0xe1a160
mov ecx, dword [ebp - 4]
call fcn.004a3650
test eax, eax
jge 0x4a354e
xor al, al
jmp 0x4a35f6
cmp dword [ebp - 0xc], 0
je 0x4a35f4
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0xe1a160
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4a35b4
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [0x6bc7a0]
call fcn.004a3600
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jle 0x4a35b2
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xe1a160
push ecx
push 0xe1a160
call fcn.005b5460
add esp, 0xc
jmp 0x4a35f4
mov ecx, dword [ebp - 4]
call fcn.0047c8f0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2e
jl 0x4a35f0
cmp dword [0x60f874], 0
jne 0x4a35f0
mov dword [ebp - 0x14], 0x1b
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 4]
call fcn.00482410
push 0x3b
push 0x5d932c
call fcn.0051c190
add esp, 8
xor al, al
jmp 0x4a35f6
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a7be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
and eax, 0xff
neg eax
sbb eax, eax
and eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xc], 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0x4a7cd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4a7c70
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xc], 1
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [0x6bc77c], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a7d90
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov ecx, dword [0x6bc7b8]
call fcn.00430a60
cmp eax, 4
jne 0x4a7e2a
mov dword [0x6f8540], 0
push 0x6f8540
mov ecx, dword [0x6bc7b8]
call fcn.004a9a00
push 0x703660
push 0
push 0x6f8540
push 0
push 1
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4a7dfe
push 0x6f8540
mov ecx, dword [0x6bc7b8]
call fcn.004a9cb0
jmp 0x4a7e2a
cmp dword [ebp - 8], 0
jge 0x4a7e2a
mov ecx, dword [0x6bc7a0]
call fcn.00407280
cmp eax, 7
jle 0x4a7e2a
mov dword [ebp - 0xc], 2
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [0x6bc7b8]
call fcn.004a7ec0
mov ecx, dword [0x6bc7b8]
call fcn.00430a60
cmp eax, 4
jne 0x4a7eb1
mov dword [0x6f8540], 0
push 0x6f8540
mov ecx, dword [0x6bc7b8]
call fcn.004a9a00
push 0x703660
push 0
push 0x6f8540
push 0
push 1
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4a7e85
push 0x6f8540
mov ecx, dword [0x6bc7b8]
call fcn.004a9cb0
jmp 0x4a7eb1
cmp dword [ebp - 8], 0
jge 0x4a7eb1
mov ecx, dword [0x6bc7a0]
call fcn.00407280
cmp eax, 0x18
jle 0x4a7eb1
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [0x6bc7b8]
call fcn.004a7ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a7f00
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [0x6bc7a0]
call fcn.00474cf0
and eax, 0xff
test eax, eax
je 0x4a7f25
jmp 0x4a806a
mov dword [ebp - 8], 0
mov ecx, dword [0x6bc7b8]
call fcn.00403f90
and eax, 0xff
test eax, eax
je 0x4a7fb7
mov dword [0x6f8438], 0
push 0x6f8438
mov ecx, dword [0x6bc7b8]
call fcn.004a9a00
push 0x703668
push 0
push 0
push 0x6f8438
push 1
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4a7f8b
push 0x6f8438
mov ecx, dword [0x6bc7b8]
call fcn.004aa190
jmp 0x4a7fb7
cmp dword [ebp - 8], 0
jge 0x4a7fb7
mov ecx, dword [0x6bc7a0]
call fcn.00407280
cmp eax, 7
jle 0x4a7fb7
mov dword [ebp - 0xc], 2
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [0x6bc7b8]
call fcn.004a7ec0
mov ecx, dword [0x6bc7a0]
call fcn.00409010
cmp eax, 2
jne 0x4a806a
mov ecx, dword [0x6bc7bc]
call fcn.00403f90
and eax, 0xff
test eax, eax
je 0x4a806a
mov ecx, dword [0x6bc7bc]
call fcn.00430a60
cmp eax, 4
jne 0x4a806a
mov dword [0x6f8438], 0
push 0x6f8438
mov ecx, dword [0x6bc7bc]
call fcn.004a9a00
push 0x703668
push 0
push 0
push 0x6f8438
push 1
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4a803e
push 0x6f8438
mov ecx, dword [0x6bc7bc]
call fcn.004aa190
jmp 0x4a806a
cmp dword [ebp - 8], 0
jge 0x4a806a
mov ecx, dword [0x6bc7a0]
call fcn.00407280
cmp eax, 0x18
jle 0x4a806a
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [0x6bc7bc]
call fcn.004a7ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a9cb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a9d9c
mov ecx, dword [ebp - 4]
call fcn.004a9a90
test eax, eax
jge 0x4a9ce6
xor al, al
jmp 0x4a9d9e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x805b4], 0
je 0x4a9d9c
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x805b4]
push edx
mov eax, dword [ebp - 4]
add eax, 0xb4
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [0x784bd8], eax
cmp dword [0x784bd8], 0
jle 0x4a9d89
mov eax, dword [0x784bd8]
push eax
mov ecx, dword [0x6bc7a0]
call fcn.004a9db0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x805b4]
sub edx, dword [0x784bd8]
mov eax, dword [ebp - 4]
mov dword [eax + 0x805b4], edx
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x805b4], 0
jle 0x4a9d87
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x805b4]
push eax
mov ecx, dword [0x784bd8]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 0xb4]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0xb4
push ecx
call fcn.005b5460
add esp, 0xc
jmp 0x4a9d9c
mov dword [ebp - 8], 2
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.004a7ec0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4aa190
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4aa219
push 0
push 0x80500
push 0x7036b0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4aa206
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [0x6bc7a0]
call fcn.004aa230
mov eax, dword [ebp - 8]
push eax
push 0x7036b0
mov ecx, dword [ebp - 4]
call fcn.004a9e00
and eax, 0xff
test eax, eax
jne 0x4aa204
xor al, al
jmp 0x4aa21b
jmp 0x4aa219
mov dword [ebp - 0xc], 2
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004a7ec0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4aa280
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx], 0xffffffff
mov ecx, dword [ebp - 4]
call fcn.004a9830
call fcn.00435e20
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4aa2cc
push 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
jne 0x4aa2e7
jmp 0x4aa32c
push 4
lea eax, [ebp - 0xc]
push eax
push 1
push 6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4aa319
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 4]
mov dword [edx], 0xffffffff
jmp 0x4aa32c
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
call fcn.004a7ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f06d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 4
je 0x4f07c1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0x1c
jne 0x4f0713
mov edx, dword [ebp + 8]
add edx, 0x14
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004f00e0
add esp, 8
jmp 0x4f07ba
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0xc
jne 0x4f07ba
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0x3e7
jne 0x4f07ba
mov edx, dword [ebp - 0x14]
cmp dword [edx + 4], 0x3e7
jne 0x4f07ba
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0x3e7
jne 0x4f07ba
mov dword [ebp - 0x11c], 0
jmp 0x4f076b
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
push 0x603b8c
call fcn.005b3b30
add esp, 4
cmp dword [ebp - 0x11c], eax
jae 0x4f079f
mov edx, dword [ebp - 0x11c]
movsx eax, byte [edx + 0x603b8c]
sub eax, 1
mov ecx, dword [ebp - 0x11c]
mov byte [ebp + ecx - 0x118], al
jmp 0x4f075c
mov edx, dword [ebp - 0x11c]
mov byte [ebp + edx - 0x118], 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x4f08c7
mov ecx, dword [ebp + 8]
add ecx, 0x14
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 0x128], ax
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [0x6bc7a0]
call fcn.0047c6e0
mov dword [ebp - 0x120], eax
mov edx, dword [ebp + 8]
add edx, 0x14
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x120], 0
je 0x4f0807
cmp dword [ebp - 0xc], 0
jne 0x4f0811
mov eax, 1
jmp 0x4f08c7
push 0x2ff
push 0
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
call fcn.005b3bb0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xcb1
mov edx, dword [ebp - 0x120]
add edx, 0x5d6
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005b3a40
add esp, 8
mov dword [ebp - 0x124], 0
jmp 0x4f0865
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 7
jge 0x4f08b6
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x120]
cmp dword [eax + edx*4 + 0x2cdc], 0
je 0x4f08b4
mov ecx, dword [ebp - 0x124]
imul ecx, ecx, 0x49
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x100]
push eax
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x120]
mov eax, dword [edx + ecx*4 + 0x2cdc]
push eax
mov ecx, dword [ebp - 4]
call fcn.00403b70
jmp 0x4f0856
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0052fb10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5279a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x59f610
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push connect
push eax
mov dword [ebx], 0
mov dword [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x59f6b8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x59f6a8
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [ebx], eax
je 0x59f6a8
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x59f6a8
cmp dword [esp + 0x10], esi
jne 0x59f6a8
mov edx, dword [ebx]
push edx
push ebx
call fcn.0059ee90
add esp, 8
test al, al
jne 0x59f6be
mov eax, dword [ebx]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call fcn.0059f5e0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x59f860
Capabilities:
Check os version

Disassembly:
sub esp, 0x1a8
lea eax, [esp + 0xa4]
push esi
push str.CrashInfo.txt
push 0x104
push eax
call fcn.0059ee20
add esp, 0xc
lea ecx, [esp + 0xa8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x59fa0b
lea edx, [esp + 4]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0x10]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x12]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x14]
and eax, 0xffff
and ecx, 0xffff
push eax
push ecx
mov ecx, dword [0xe1788c]
and edx, 0xffff
push edx
mov eax, ecx
xor edx, edx
mov edi, 0x3e8
div edi
mov eax, 0x10624dd3
push edx
mul ecx
shr edx, 6
push edx
push 0xe17648
push str._s_crash_report____build__d._04d_date__04d__02d__02d_time__02d:_02d:_02d_r_n_______________________________________________________________r_n_r_nDisassembly:
push esi
push 0
call fcn.0059fa20
push 0x5d932c
push esi
push 0
call fcn.0059fa20
add esp, 0x3c
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x59f9b1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
cmp eax, 1
jne 0x59f971
test ecx, ecx
jbe 0x59f96a
mov eax, 0x5f374c
jmp 0x59f98e
mov eax, 0x5f3748
jmp 0x59f98e
cmp eax, 2
jne 0x59f989
cmp edx, 5
jb 0x59f982
mov eax, 0x5f3744
jmp 0x59f98e
mov eax, 0x5f3740
jmp 0x59f98e
mov eax, 0x5f373c
lea edi, [esp + 0x2c]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xffff
push edi
push eax
push ecx
push edx
push str.Windows__d._d__Win_s_build__d____s_
push esi
push 0
call fcn.0059fa20
add esp, 0x20
push 0x5d932c
push esi
push 0
call fcn.0059fa20
mov edi, dword [esp + 0x1c0]
push edi
push esi
push 0
push 0
call fcn.0059faa0
push 0x5d932c
push esi
push 0
call fcn.0059fa20
mov ecx, dword [0xe17870]
mov edx, dword [ecx + 0x144]
push edx
push edi
push esi
push 0
call fcn.0059fd80
push str._r_n___End_of_report
push esi
push 0
call fcn.0059fa20
add esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x1a8
ret

Function at 0x59fa20
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x104
lea eax, [esp + 0x114]
lea edx, [esp + 4]
push esi
push edi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, eax
mov eax, dword [esp + 0x110]
test eax, eax
je 0x59fa60
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0x114]
test edi, edi
je 0x59fa93
mov byte [esp + esi + 0xc], 0xd
mov byte [esp + esi + 0xd], 0xa
lea edx, [esp + 8]
push 0
add esi, 2
push edx
lea eax, [esp + 0x14]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
pop esi
add esp, 0x104
ret
Function at 0x5a0560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
je 0x5a057e
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
cmp word [eax + 0x14], 0x68
jae 0x5a058d
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
movsx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x5a05c2
cmp ecx, 0x20b
je 0x5a05a9
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
cmp dword [eax + 0x84], 1
jae 0x5a05ba
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [eax + 0x88]
jmp 0x5a05d3
cmp dword [eax + 0x74], 1
jae 0x5a05d0
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [eax + 0x78]
add esi, edi
cmp esi, edi
jne 0x5a05e1
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
sub ebp, edi
xor ebx, ebx
mov dword [esp + 0x24], ebp
mov ebp, dword [esi + 0x18]
add ecx, edi
add eax, edi
add edx, edi
cmp ebp, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
jle 0x5a068d
mov ebx, edx
mov ebp, ecx
jmp 0x5a0623
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov cx, word [ebx]
mov edx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jb 0x5a0677
mov eax, dword [esp + 0x10]
sub ecx, edx
cmp ecx, eax
jae 0x5a0677
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp]
test eax, eax
je 0x5a0656
add eax, edi
mov dword [esp + 0x20], eax
jmp 0x5a0677
xor ecx, ecx
mov cx, word [ebx]
push ecx
push str.ord_d
push 0xe17628
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x20], 0xe17628
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
inc eax
add ebp, 4
add ebx, 2
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x5a061f
mov eax, dword [esp + 0x20]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x5a10e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push connect
push eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5a11ee
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push 4
push 0x1000
lea ecx, [ebp + 0x10000]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [ebx + 0x14], eax
je 0x5a11e7
lea edx, [esp + 0x14]
push edi
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a11e7
cmp dword [esp + 0x14], ebp
jne 0x5a11e7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x14]
cmp byte [eax], 0x5b
jne 0x5a11ee
cmp byte [eax + 3], 0x7c
jne 0x5a11ee
mov ecx, 4
mov edi, str.__Elysium_disasm
lea esi, [eax + 6]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x5a11ee
movsx ecx, byte [eax + 4]
movsx edx, byte [eax + 5]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2 - 0x210]
cmp ecx, 1
jg 0x5a11ee
mov esi, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
lea ecx, [eax + ebp]
sub ebp, esi
add edx, ecx
add ebp, 0xffffffb8
mov dword [ebx + 0x20], edx
add edx, 0x80
test ebp, ebp
mov dword [ebx], ecx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x24], 0
je 0x5a11d2
lea edx, [eax + esi + 0x48]
mov dword [ebx + 0x24], edx
add eax, 0x48
push esi
push eax
push ecx
call fcn.005a0f00
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x5b58d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x5b58f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x5b58f8
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x5b590f
mov edx, dword [ebp - 4]
push edx
call fcn.005b9830
add esp, 4
or eax, 0xffffffff
jmp 0x5b5911
xor eax, eax
mov esp, ebp
pop ebp
ret