joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67b0c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [ebx + 4]
push 0x1001
mov dword [esi + 0xc], 0x1000
call fcn.0068661b
add esp, 4
test eax, eax
mov dword [esi + 8], eax
jne 0x67b0fa
push str.Out_of_memory.
push edi
call fcn.00679ce0
add esp, 8
mov eax, 1
pop esi
add esp, 0x10
ret
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x67b117
push str.There_was_an_error_creating_a_socket.
jmp 0x67b1c4
push 1
push eax
call fcn.00674650
add esp, 8
test eax, eax
jne 0x67b130
push str.There_was_an_error_making_a_socket_non_blocking.
jmp 0x67b1c4
push str.gpsp.codeusa.net
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x67b145
push str.Could_not_resolve_search_mananger_host_name.
jmp 0x67b1c4
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov word [esp + 4], 2
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 8], eax
jne 0x67b181
push 0x59
push str..GameSpygpgpiSearch.c
push str.address.sin_addr.s_addr___0
call fcn.006870ba
add esp, 0xc
push 0x74cd
call sub.WSOCK32.dll_htons
push 0x10
lea ecx, [esp + 8]
mov word [esp + 0xa], ax
mov edx, dword [esi + 4]
push ecx
push edx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x67b1e3
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x67b1e3
cmp eax, 0x2734
je 0x67b1e3
cmp eax, 0x274c
je 0x67b1e3
push str.There_was_an_error_connecting_a_socket.
push 5
push edi
call fcn.00679c80
push 1
push 3
push edi
call fcn.006821d0
add esp, 0x18
mov eax, 3
pop esi
add esp, 0x10
ret
mov dword [ebx + 0x14], 1
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x67edb0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x10]
push 0
push eax
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x67ee23
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x67ee13
cmp eax, 0x2734
je 0x67ee13
cmp eax, 0x274c
je 0x67ee13
cmp byte [ebp], 0x50
jne 0x67edf2
cmp byte [ebp + 1], 0x52
je 0x67ee0c
push str.There_was_an_error_sending_on_a_socket.
push 5
push ebx
call fcn.00679c80
push 0
push 3
push ebx
call fcn.006821d0
add esp, 0x18
mov eax, 3
pop ebp
ret
mov dword [esi], 0
mov dword [edi], 0
xor eax, eax
pop ebp
ret
test eax, eax
jne 0x67ee46
push ebp
push str.SENDXXXX__s_:_Connection_closed_n
push ebx
call fcn.00442050
add esp, 0xc
mov dword [esi], 0
mov dword [edi], 1
xor eax, eax
pop ebp
ret
mov dword [esi], eax
mov dword [edi], 0
xor eax, eax
pop ebp
ret
Function at 0x67f0b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
cmp eax, 0xffffffff
jne 0x67f0d3
push 0x154
push str..GameSpygpgpiBuffer.c
push str.sock___INVALID_SOCKET
call fcn.006870ba
add esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
test esi, esi
push edi
jne 0x67f0f6
push 0x155
push str..GameSpygpgpiBuffer.c
push str.inputBuffer___NULL
call fcn.006870ba
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x67f115
push 0x156
push str..GameSpygpgpiBuffer.c
push str.bytesRead___NULL
call fcn.006870ba
add esp, 0xc
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x67f134
push 0x157
push str..GameSpygpgpiBuffer.c
push str.connClosed___NULL
call fcn.006870ba
add esp, 0xc
mov ebx, dword [esi]
mov edi, dword [esi + 8]
mov ebp, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [edi + 0x4000]
cmp eax, ebp
jle 0x67f169
mov ebp, eax
lea eax, [ebp + 1]
push eax
push ebx
call fcn.00686f0d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x67f258
mov eax, dword [esp + 0x20]
push 0
mov ecx, ebp
sub ecx, edi
push ecx
lea edx, [edi + ebx]
push edx
push eax
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x67f1be
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x67f1ef
cmp eax, 0x2734
je 0x67f1ef
cmp eax, 0x274c
je 0x67f1ef
mov ecx, dword [esp + 0x1c]
push str.There_was_an_error_reading_from_a_socket.
push ecx
call fcn.00679ce0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
test esi, esi
jne 0x67f1e3
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push ecx
push str.RECVXXXX__s_:_Connection_closed_n
push edx
mov dword [esp + 0x20], 1
call fcn.00442050
add esp, 0xc
jmp 0x67f1ef
mov eax, dword [esp + 0x10]
add edi, esi
add eax, esi
mov dword [esp + 0x10], eax
cmp esi, 0xffffffff
mov byte [edi + ebx], 0
je 0x67f20e
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x67f20e
cmp dword [esp + 0x10], 0x20000
jl 0x67f146
mov eax, dword [esp + 0x10]
test eax, eax
je 0x67f22e
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.RECVTOTL__s_:__d_n
push eax
call fcn.00442050
add esp, 0x10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [eax + 8], edi
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x2c]
pop edi
mov dword [ecx], edx
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
push str.Out_of_memory.
push eax
call fcn.00679ce0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x680aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x11c
mov eax, dword [esp + 0x120]
mov ecx, dword [eax]
mov eax, dword [edi + 0x18]
test eax, eax
mov dword [esp], ecx
je 0x680ac2
xor eax, eax
add esp, 0x11c
ret
push ebx
mov ebx, dword [esp + 0x128]
push 0x10
lea edx, [esp + 0x10]
push edx
push str._file_
push ebx
call fcn.00679b90
add esp, 0x10
test eax, eax
jne 0x680aeb
pop ebx
add esp, 0x11c
ret
lea eax, [esp + 0xc]
push ebp
push eax
call fcn.006867ae
mov ebp, eax
add esp, 4
test ebp, ebp
jl 0x680b14
mov ecx, dword [edi + 4]
push ecx
call fcn.00674e70
add esp, 4
cmp ebp, eax
jge 0x680b14
cmp ebp, dword [edi + 0x24]
je 0x680b1f
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
mov edx, dword [edi + 4]
push esi
push ebp
push edx
call fcn.00674e80
mov esi, eax
mov al, byte [esi + 0x18]
add esp, 8
test al, 2
je 0x680b42
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
push 0x10
lea eax, [esp + 0x18]
push eax
push str._size_
push ebx
call fcn.00679b90
add esp, 0x10
test eax, eax
je 0x680b36
lea ecx, [esp + 0x14]
push ecx
call fcn.006867ae
mov ebx, eax
add esp, 4
test ebx, ebx
jl 0x680b36
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0x38]
mov edx, ebx
sub edx, eax
push 0x10
add ecx, edx
lea eax, [esp + 0x18]
push eax
mov dword [edi + 0x38], ecx
mov ecx, dword [esp + 0x138]
push str.mtime_
push ecx
call fcn.00679b90
add esp, 0x10
test eax, eax
je 0x680b36
push 0xa
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0068830d
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x20]
push eax
call fcn.00675ad0
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ecx
xor ebx, ebx
call fcn.00686552
mov edx, dword [edi + 0x14]
push eax
mov eax, dword [edi + 0x2c]
push ebp
push edx
push eax
lea ecx, [esp + 0x34]
push str._sgpt__d__d__d.gpt
push ecx
call fcn.006864ed
lea edx, [esp + 0x3c]
push 0x708738
push edx
call fcn.006860d4
add esp, 0x20
inc ebx
test eax, eax
mov dword [esi + 0x14], eax
jne 0x680c06
cmp ebx, 5
jl 0x680bc7
jmp 0x680c1d
lea eax, [esp + 0x24]
push eax
call fcn.00674610
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x680b36
push 0x14
call fcn.0068661b
add esp, 4
test eax, eax
mov ebx, 0x901
je 0x680c8b
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov ecx, dword [edi + 0x14]
mov dword [eax], ecx
mov dword [eax + 8], ebp
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x680c5a
mov dword [eax + 4], 0x80a
jmp 0x680c64
mov dword [eax + 4], 0x80f
mov dword [eax + 0xc], ebx
mov ecx, dword [esp + 0x12c]
push 7
push 0
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x1ec]
mov eax, dword [eax + 0x1e8]
push edx
push eax
push ecx
call fcn.00681ec0
add esp, 0x18
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x680cb1
mov edx, dword [esp + 0x12c]
push 1
push edi
push edx
call fcn.00680620
mov eax, dword [esi + 0x18]
add esp, 0xc
or eax, 8
mov dword [esi + 0x18], eax
mov dword [esi + 0x78], ebx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c
ret
Function at 0x682ae0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x20]
push eax
push ecx
push ebx
call fcn.0067d050
add esp, 0xc
test eax, eax
jne 0x682b1c
push str.Error_connecting_to_a_peer.
push ebx
call fcn.00679ce0
add esp, 8
pop edi
mov eax, 3
pop ebx
add esp, 0x10
ret
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x682b43
push str.There_was_an_error_creating_a_socket.
push 5
push ebx
call fcn.00679c80
push 0
jmp 0x682bde
push 1
push eax
call fcn.00674650
add esp, 8
test eax, eax
jne 0x682b63
push str.There_was_an_error_making_a_socket_non_blocking.
push 5
push ebx
call fcn.00679c80
push 0
jmp 0x682bde
push esi
mov esi, dword [edi + 8]
call fcn.00682950
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov word [esp + 0xc], 2
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 8]
mov cx, word [eax + 0x14]
mov eax, dword [edi + 8]
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
mov word [esp + 0x1a], cx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
pop esi
jne 0x682bf4
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x682bf4
cmp eax, 0x2734
je 0x682bf4
cmp eax, 0x274c
je 0x682bf4
push str.There_was_an_error_connecting_a_socket.
push 5
push ebx
call fcn.00679c80
push 1
push 3
push ebx
call fcn.006821d0
add esp, 0x18
pop edi
mov eax, 3
pop ebx
add esp, 0x10
ret
mov dword [edi], 0x67
pop edi
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x685c15
Capabilities:
Terminate process

Disassembly:
push 8
push 0x6f1068
call fcn.006889f0
push 8
call fcn.00688c98
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x79b4b4], esi
jne 0x685c49
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x79b4b0], esi
mov al, byte [ebp + 0x10]
mov byte [0x79b4ac], al
cmp dword [ebp + 0xc], edi
jne 0x685c93
cmp dword [0x9614ec], edi
je 0x685c83
mov eax, dword [0x9614e8]
sub eax, 4
mov dword [0x9614e8], eax
cmp eax, dword [0x9614ec]
jb 0x685c83
mov eax, dword [eax]
cmp eax, edi
je 0x685c64
call eax
jmp 0x685c64
push 0x744c08
mov eax, 0x744bfc
call fcn.00685b93
pop ecx
push 0x744c14
mov eax, 0x744c0c
call fcn.00685b93
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x685cc4
cmp dword [ebp + 0x10], edi
jne 0x685cd2
mov dword [0x79b4b4], esi
push dword [ebp + 8]
call fcn.00685b51
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x685cd1
push 8
call fcn.00688be3
pop ecx
ret
call fcn.00688a2b
ret
Function at 0x685d6f
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ecx
mov ecx, dword [ebx + 8]
dec ebx
mov edx, dword [ebx + 0xd]
lea esi, [edx]
add esi, 0xc
mov ebx, dword [esi]
push edi
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x685db7
mov edx, ebx
add edx, 0x30
mov edx, dword [edx]
mov edi, dword [edx]
and edi, 0xdf00df
mov edx, dword [edx + 0xb]
add edx, edi
shr edx, 1
sub edx, 0x192299a5
cmp edx, 0
je 0x685dbd
mov edx, dword [ebx]
lea ebx, [edx]
jmp 0x685d8a
call fcn.00685ec0
call fcn.00685e81
push eax
call fcn.00685e76
mov ebx, edi
mov eax, dword [ebx]
add eax, esi
mov ebx, dword [eax + 0xb]
add ebx, ebx
sub ebx, 0xe8c6ca
cmp ebx, 0
jne 0x685de5
jmp 0x685dea
add edi, 4
jmp 0x685dcd
mov ebx, edx
add ebx, 0x20
mov ebx, dword [ebx]
sub edi, esi
sub edi, ebx
shr edi, 1
mov ebx, dword [edx + 0x24]
add ebx, edi
add ebx, esi
mov edi, dword [ebx]
shl edi, 0x10
shr edi, 0xe
mov ebx, dword [edx + 0x1c]
add ebx, esi
add ebx, edi
mov edi, dword [ebx]
add edi, esi
mov ebx, 0x31000
push esi
mov edx, 0x621000
lea eax, [0x40]
push ecx
add edx, ecx
push ebx
push esp
push eax
push ebx
push edx
call edi
pop ebx
pop ecx
push eax
mov esi, 0x5d87c0
lea ebx, [0x63f000]
add esi, ecx
add ebx, ecx
mov edx, 0x2854
call fcn.00685e8c
lea esi, [0x6ef6]
mov edx, 0x1b0a4
mov ebx, 0x621000
add ebx, ecx
lea edi, [0xd3]
imul esi, edi
add esi, 0x60fe
add esi, ecx
call fcn.00685e8c
jmp 0x685ec6
nop
ret
lea edx, [0x128]
mov esi, 0x10000000
lea ebx, [0x621000]
add ebx, ecx
mov edi, 0xd
imul edx, edi
add edx, 0xf8
sub ebx, edx
lea edx, [ebx]
sub edx, esi
lea esi, [0x5db5c0]
add esi, ecx
mov edi, dword [esi]
xor edi, 0x38501d7a
dec edi
test edi, edi
je 0x685f0f
add edi, ebx
mov eax, dword [edi]
add eax, edx
mov dword [edi], eax
add esi, 4
jmp 0x685ef5
lea ebx, [0xc8]
lea esi, [0x6194]
add esi, ecx
add esi, 0x61fd3f
add esi, ebx
push esi
lea edx, [edi]
test edi, edi
jmp 0x685eb0
Function at 0x688d51
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x74b8f0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x74b170]
je 0x688d86
inc eax
cmp eax, 0x13
jb 0x688d77
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x74b170]
jne 0x688eac
mov eax, dword [0x79b4c0]
cmp eax, 1
je 0x688e84
cmp eax, edx
jne 0x688db6
cmp dword [0x74afe0], 1
je 0x688e84
cmp ecx, 0xfc
je 0x688eac
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x688dec
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0068e660
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0068b480
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x688e20
mov eax, edi
push eax
call fcn.0068b480
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x731d00
push edi
call fcn.00687c60
add esp, 0x10
push edi
call fcn.0068b480
push dword [esi + 0x74b174]
mov ebx, eax
call fcn.0068b480
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.006864b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0068e660
push edi
push ebx
call fcn.0068e670
push 0x6f1144
push ebx
call fcn.0068e670
push dword [esi + 0x74b174]
push ebx
call fcn.0068e670
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0068e3a1
add esp, 0x2c
jmp 0x688eac
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x74b174]
push dword [esi]
call fcn.0068b480
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0068e789
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x689fda
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x74b8f0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x68a00b
xor eax, eax
jmp 0x68a194
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x9613e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x68a047
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00690637
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x68a122
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x68a160
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x68a0ab
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x68a09c
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x68a07c
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x68a0eb
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x68a0f4
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x68a06d
jmp 0x68a0f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x68a18f
cmp dword [ebp - 0x6c], edi
je 0x68a160
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x68a155
call fcn.00689d1a
mov dword [eax], 9
call fcn.00689d23
mov dword [eax], esi
jmp 0x68a18a
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x68a14a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x68a0f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x68a0f6
push dword [ebp - 0x6c]
call fcn.00689d2c
pop ecx
jmp 0x68a18a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x68a178
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x68a178
xor eax, eax
jmp 0x68a192
call fcn.00689d1a
mov dword [eax], 0x1c
call fcn.00689d23
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x68a192
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0068e789
add ebp, 0x3a0
leave
ret
Function at 0x68dd61
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 0x68df35
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x9613e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x68df35
test cl, 0x48
je 0x68ddcc
cmp byte [eax + 5], 0xa
je 0x68ddcc
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 0x68de1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x68de06
call fcn.00689d1a
mov dword [eax], 9
call fcn.00689d23
mov dword [eax], esi
jmp 0x68de16
cmp eax, 0x6d
je 0x68df35
push eax
call fcn.00689d2c
pop ecx
or eax, 0xffffffff
jmp 0x68df37
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x68df30
test eax, eax
je 0x68de45
cmp byte [ebx], 0xa
jne 0x68de45
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x68de4e
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 0x68df2a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x68df1a
cmp al, 0xd
je 0x68de80
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x68df0c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x68de9a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x68de95
add dword [ebp + 0x10], 2
jmp 0x68deee
mov dword [ebp + 0x10], eax
jmp 0x68df08
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 0x68dec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x68df08
cmp dword [ebp - 0xc], 0
je 0x68df08
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x68dee3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x68deee
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x68df0b
cmp ebx, dword [ebp + 0xc]
jne 0x68def3
cmp byte [ebp - 1], 0xa
jne 0x68def3
mov byte [ebx], 0xa
jmp 0x68df0b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0068dfe7
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x68df0c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x68de64
jmp 0x68df2a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x68df2a
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 0x68df37
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x68e3a1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x79b778], ebx
push esi
push edi
jne 0x68e421
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x68e45c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6f1b8c
push edi
call esi
test eax, eax
mov dword [0x79b778], eax
je 0x68e45c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x79b77c], eax
call esi
cmp dword [0x79b474], 2
mov dword [0x79b780], eax
jne 0x68e421
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x79b788], eax
je 0x68e421
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x79b784], eax
mov eax, dword [0x79b784]
test eax, eax
je 0x68e466
call eax
test eax, eax
je 0x68e44d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x79b788]
test eax, eax
je 0x68e44d
test byte [ebp - 8], 1
jne 0x68e466
cmp dword [0x79b480], 4
jb 0x68e460
or byte [ebp + 0x12], 0x20
jmp 0x68e485
xor eax, eax
jmp 0x68e495
or byte [ebp + 0x12], 4
jmp 0x68e485
mov eax, dword [0x79b77c]
test eax, eax
je 0x68e485
call eax
mov ebx, eax
test ebx, ebx
je 0x68e485
mov eax, dword [0x79b780]
test eax, eax
je 0x68e485
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x79b778]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x68ecb3
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.006864b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x68ed4e
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 [0x79b474]
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 0x68ed4e
cmp eax, 1
je 0x68ed6f
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 0x68ed4e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x68ed1b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x68ed4a
xor eax, eax
inc eax
jmp 0x68ed8e
cmp edi, eax
jae 0x68ed52
xor eax, eax
jmp 0x68ed8e
cmp eax, esi
jae 0x68ed59
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 [0x79b474]
jmp 0x68ed72
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