joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ae20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x448010]
mov esi, edx
mov edi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx + 0x10]
shl ebx, 7
mov edx, ebx
call fcn.0043af60
test al, al
je 0x43aefa
add ebx, dword [edi + 4]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x80
mov byte [ebp - 0x14], 1
push eax
push 0x40
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x43af3a
mov eax, dword [ebp - 0x30]
test eax, eax
mov dword [ebp - 0x34], eax
je 0x43af46
mov cl, byte [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
test cl, cl
je 0x43aebf
test ebx, ebx
je 0x43aebf
test eax, eax
je 0x43aebf
test edx, edx
je 0x43aebf
inc dword [edi + 0x10]
mov edi, dword [ebp - 0x34]
mov dword [esi], edi
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov edi, dword [ebp - 0x1c]
mov dword [esi + 0x10], edx
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edx
mov byte [esi + 0x1c], cl
mov byte [esi + 0x20], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c380
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
jmp 0x43aee6
mov dword [ebp - 0x2c], 0
jmp 0x43ae92
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov cl, byte [ebp - 0x14]
jmp 0x43aebc
Function at 0x43b2a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x448010]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x10]
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
mov dword [ecx + 4], eax
lea ecx, [edx + 1]
call fcn.00408320
mov ecx, eax
lea eax, [edi + ebx - 1]
xor edx, edx
mov dword [ebp - 0x18], 0
div ecx
mov ebx, eax
mov eax, edi
xor edx, edx
div ecx
sub ebx, eax
inc ebx
je 0x43b339
mov edi, eax
mov dword [ebp - 0x20], ecx
imul edi, ecx
lea eax, [ebp - 0x14]
push eax
push 0x40
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x43b34d
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x14]
cmp eax, dword [esi + 0xc]
je 0x43b35d
mov ecx, dword [esi + 4]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
inc dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
inc eax
add edi, ecx
cmp eax, ebx
mov dword [ebp - 0x18], eax
jb 0x43b2ff
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c380
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.0043b380
jmp 0x43b339
mov dword [ebp - 0x1c], edx
lea ecx, [esi + 4]
push 1
call fcn.00409e70
test al, al
je 0x43b354
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x1c]
jmp 0x43b31c
Function at 0x408bfc
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x408c0b
mov edx, dword [edx + 0x36]
jmp fcn.004034a8
mov ecx, dword [edx + 0x18]
jecxz 0x408c03
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.0040382c
pop edx
mov ecx, dword [ebx]
jecxz 0x408c33
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40d45c
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
cmp dword [0x4234fc], 0
jne 0x40d47d
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
jmp 0x40d47f
mov al, 1
inc dword [0x4234fc]
add esp, 0x190
ret
Function at 0x41434c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4245f0
cmp dword [edi], 0
jne 0x4143c8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4245ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x423598
mov ecx, 2
call fcn.004025e0
mov edx, 0x414324
lea eax, [esi + 5]
call fcn.00414344
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00414344
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0x52b
jl 0x41439d
mov dword [0x4245ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x416e44
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe48
cmp dword [0x424610], 0
ja 0x416ecb
lea eax, [esp + 0x28]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esp
mov edx, 0x28
call fcn.00405408
mov dword [esp + 4], 0x416cc8
mov eax, 0x416ed4
mov dword [esp + 0x24], eax
mov eax, dword [0x423894]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
push esp
call sub.user32.dll_RegisterClassA
push 0
mov eax, dword [0x423894]
mov eax, dword [eax]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push 0
mov eax, dword [esp + 0x4c]
push eax
push 0x80
call sub.user32.dll_CreateWindowExA
mov dword [0x424610], eax
call fcn.00405990
mov dword [0x424614], eax
add esp, 0x1b8
ret

Function at 0x4170e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x41716f
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
mov word [esp], 2
push esi
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, edi
call fcn.004036c0
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x41714a
mov eax, dword [ebx + 0xc]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
mov dword [ebx + 0xc], eax
jmp 0x41716f
push 0x23
push 0x400
mov eax, dword [0x424610]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.wsock32.dll_WSAAsyncSelect
cmp word [ebx + 0x26], 0
je 0x41716f
mov edx, ebx
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4171d8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
jmp 0x41720a
push 0
push esi
push edi
push eax
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x417204
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x417215
mov byte [ebx + 0x10], 1
jmp 0x41720a
sub esi, eax
add eax, edi
mov edi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x417215
test esi, esi
ja 0x4171e3
pop edi
pop esi
pop ebx
ret

Function at 0x41833c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xd], 0
cmp byte [ebx + 0x14], 0
jne 0x41835b
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x41835b
mov byte [ebx + 0xd], 1
pop ebx
ret

Function at 0x4183e8
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x14], 0
jne 0x418413
mov byte [ebx + 0x14], 1
push 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_TerminateThread
cmp byte [ebx + 0xd], 0
jne 0x41840f
mov eax, ebx
call fcn.004181cc
jmp 0x418413
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x4195c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004036b0
xor eax, eax
push ebp
push 0x4196a2
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp dword [ebx + 8], 0
jne 0x41968c
lea eax, [ebx + 0xc]
call fcn.00403384
xor eax, eax
mov dword [ebx + 0x10], eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x41961d
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
jmp 0x41968c
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, 0x10
call fcn.00402750
mov word [ebp - 0x18], 2
mov ax, word [ebp - 8]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 4]
call fcn.004036c0
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x41967b
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
mov dword [ebx + 8], eax
jmp 0x41968c
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 4]
call fcn.004033d8
mov eax, dword [ebp - 8]
mov dword [ebx + 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4196a9
lea eax, [ebp - 4]
call fcn.00403384
ret
Function at 0x464cd9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x51a66c]
cmp eax, 0xffffffff
jne 0x464de5
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa25e60
call sub.msvcrt.dll_memset
mov dword [0xa25e60], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa25ea4
call sub.msvcrt.dll_memset
mov dword [esp + 0x24], 0xa25ea4
mov dword [esp + 0x20], 0xa25e60
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.cmd.exe__c_ver
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
setne al
test al, al
je 0x464ddb
mov eax, dword [0xa25ea4]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa25ea4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa25ea8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0x51a66c], 1
jmp 0x464de5
mov dword [0x51a66c], 0
mov eax, dword [0x51a66c]
leave
ret
Function at 0x475dd2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004759ce
test eax, eax
sete al
test al, al
je 0x475dfe
mov eax, 0xfffffffe
mov edx, 0xffffffff
jmp 0x475eb1
mov edx, dword [0x68b6fc]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov edi, ecx
sub edi, eax
mov eax, edi
add eax, edx
mov dword [0xa1516c], eax
mov eax, dword [0xa1516c]
movzx eax, byte [eax + 0x70]
test al, al
je 0x475e35
mov eax, 0xfffffffc
mov edx, 0xffffffff
jmp 0x475eb1
mov eax, dword [0x68b6f8]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa15170], eax
mov edi, 0xa15178
mov eax, dword [0xa15170]
mov eax, dword [eax]
mov dword [esp + 4], 0xa1517c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [0xa15178]
mov edx, dword [0xa1517c]
mov ebx, eax
and bh, 0xff
mov esi, edx
and esi, 0
mov eax, ebx
xor eax, 0xffffffff
or eax, esi
test eax, eax
jne 0x475ea6
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x475ea6
mov eax, 0xfffffffd
mov edx, 0xffffffff
jmp 0x475eb1
mov eax, dword [0xa15178]
mov edx, dword [0xa1517c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x477857
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004759ce
test eax, eax
sete al
test al, al
je 0x477895
mov eax, 0xfffffffe
jmp 0x477a4f
mov edx, dword [0x68b6fc]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa150b4], eax
mov eax, dword [0xa150b4]
movzx eax, byte [eax + 0xa]
test al, al
jne 0x4778ca
mov eax, 0xfffffffd
jmp 0x477a4f
cmp dword [ebp - 0x14], 0
jns 0x4778da
mov eax, 0xfffffffc
jmp 0x477a4f
mov eax, dword [ebp - 0xc]
mov edx, eax
xor edx, 0xffffffff
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
or eax, edx
test eax, eax
je 0x477924
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047771d
mov dword [0xa150b8], eax
mov eax, dword [0xa150b8]
test eax, eax
setne al
test al, al
je 0x477924
mov eax, dword [0xa150b8]
jmp 0x477a4f
mov eax, dword [0x68b6f8]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa150bc], eax
jmp 0x477a35
cmp dword [ebp - 0x14], 0
jle 0x477955
mov dword [0xa150c0], 0xffffffff
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0xffffffff
jmp 0x47796b
mov eax, dword [ebp - 0x18]
mov dword [0xa150c0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0xa150c0]
mov eax, dword [0xa150bc]
mov eax, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa150c8
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x4779d7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa150d0], eax
mov eax, dword [0xa150d0]
cmp eax, 5
je 0x4779c9
mov eax, dword [0xa150d0]
cmp eax, 0x21
jne 0x4779d0
mov eax, 0xfffffff9
jmp 0x477a4f
mov eax, 0xfffffff7
jmp 0x477a4f
mov eax, dword [0xa150c8]
mov edx, dword [0xa150cc]
add dword [ebp + 0x14], eax
mov esi, dword [0xa150b4]
mov eax, dword [0xa150b4]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [0xa150c8]
mov edx, dword [0xa150cc]
add eax, ecx
adc edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0xa150c0]
mov ecx, eax
mov ebx, 0
mov eax, dword [0xa150c8]
mov edx, dword [0xa150cc]
mov esi, ebx
xor esi, edx
xor eax, ecx
or eax, esi
test eax, eax
je 0x477a35
mov eax, 0xffffffff
jmp 0x477a4f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
or eax, edx
test eax, eax
setne al
test al, al
jne 0x47793b
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x48e903
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48e94d
mov dword [esp], 7
call fcn.00441d1c
mov eax, dword [ebp - 0x14]
jmp 0x48e9e8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov edx, eax
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp edx, eax
setne al
test al, al
je 0x48e9a9
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 4], 1
mov dword [esp], 0
call fcn.00443436
mov dword [ebp - 0x14], eax
mov dword [esp], 0x33
call fcn.00441d1c
mov eax, dword [ebp - 0x14]
jmp 0x48e9e8
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00443436
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x496f70
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov dword [0xa37800], eax
jmp fcn.00496760
Function at 0x498b50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
cmp byte [0x51a9bc], 0
je 0x498b90
mov eax, dword [0xa37898]
test eax, eax
je 0x498bad
mov dword [esp + 4], 0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xa37898]
mov byte [eax + 0x38], 0
sub esp, 8
add esp, 0x1c
ret
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x54a298
call fcn.0049c5d0
mov eax, dword [0xa37898]
test eax, eax
jne 0x498b65
cmp dword [0x51aa14], 2
je 0x498b65
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x54a344
call fcn.0049c5d0
mov eax, dword [0xa37898]
jmp 0x498b65

Function at 0x498be0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
cmp byte [0x51a9bc], 0
je 0x498c20
mov eax, dword [0xa37898]
test eax, eax
je 0x498c3d
mov byte [eax + 0x39], 0
mov dword [esp + 4], 6
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xa37898]
mov byte [eax + 0x38], 0
sub esp, 8
add esp, 0x1c
ret
mov dword [esp + 4], str.glutIconifyWindow
mov dword [esp], 0x54a298
call fcn.0049c5d0
mov eax, dword [0xa37898]
test eax, eax
jne 0x498bf5
cmp dword [0x51aa14], 2
je 0x498bf5
mov dword [esp + 4], str.glutIconifyWindow
mov dword [esp], 0x54a344
call fcn.0049c5d0
mov eax, dword [0xa37898]
jmp 0x498bf5

Function at 0x49c3d0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, 1
push ebx
sub esp, 0x14
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [esp], 0xa0
call ebx
sub esp, 4
test ax, ax
js 0x49c403
mov dword [esp], 0xa1
call ebx
movsx esi, ax
sub esp, 4
shr esi, 0x1f
mov dword [esp], 0xa2
call ebx
mov edx, 2
sub esp, 4
test ax, ax
js 0x49c42d
mov dword [esp], 0xa3
call ebx
mov edx, eax
sub esp, 4
shr edx, 0xe
and edx, 2
or esi, edx
mov dword [esp], 0xa4
call ebx
mov edx, 4
sub esp, 4
test ax, ax
js 0x49c459
mov dword [esp], 0xa5
call ebx
mov edx, eax
sub esp, 4
shr edx, 0xd
and edx, 4
mov eax, esi
add esp, 0x14
or eax, edx
pop ebx
pop esi
ret

Function at 0x49c5d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x51aa48]
test ebx, ebx
je 0x49c5f8
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x51aa48]
add esp, 0x18
pop ebx
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea ebx, [esp + 0x24]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.freeglut
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [0x51aa1c]
test eax, eax
je 0x49c649
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.__s_:
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
cmp byte [0x51a9bc], 0
jne 0x49c692
mov dword [esp], 1
call sub.msvcrt.dll_exit
call fcn.004964d0
jmp 0x49c686
Function at 0x49c6a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [0x51aa4c]
test eax, eax
je 0x49c6c7
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x51aa4c]
add esp, 0x18
pop ebx
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea ebx, [esp + 0x24]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.freeglut
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [0x51aa1c]
test eax, eax
je 0x49c718
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.__s_:
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add esp, 0x18
pop ebx
ret

Function at 0x49e470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
movzx edx, byte [esp + 0x68]
mov dword [esp + 4], 1
mov ebp, dword [esp + 0x60]
mov dword [esp], 0xe8
movzx esi, byte [esp + 0x74]
movzx edi, byte [esp + 0x80]
mov byte [esp + 0x3f], dl
movzx ebx, byte [esp + 0x84]
call sub.msvcrt.dll_calloc
xor edx, edx
test eax, eax
je 0x49e4c3
mov dword [eax + edx*4 + 0x54], 0
add edx, 1
cmp edx, 0x1c
jne 0x49e4b3
mov edx, dword [0xa378a8]
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
add edx, 1
test ebp, ebp
mov dword [0xa378a8], edx
mov dword [eax + 8], edx
je 0x49e597
mov edx, dword [ebp + 0xe0]
test edx, edx
je 0x49e5b6
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [eax], 0
mov dword [ebp + 0xe0], eax
mov dword [eax + 0xd8], ebp
xor edx, edx
test ebp, ebp
setne dl
and edi, 0xff
mov byte [eax + 0xe4], bl
movzx ebx, byte [esp + 0x3f]
and esi, 0xff
mov dword [eax + 0x3c], 0x64
mov byte [eax + 0x50], 0
mov byte [eax + 0x51], 0
mov byte [eax + 0x53], 0
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
call fcn.004982b0
mov eax, dword [esp + 0x38]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0xa37884]
test edx, edx
je 0x49e5c8
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [eax], 0
mov dword [0xa37884], eax
jmp 0x49e516
mov dword [eax + 4], 0
mov dword [ebp + 0xdc], eax
jmp 0x49e504
mov dword [eax + 4], 0
mov dword [0xa37880], eax
jmp 0x49e5a6
Function at 0x49f4a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
test eax, eax
mov byte [esp + 0x2c], dl
je 0x49f4e0
lea edx, [esp + 0x3c]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
add esp, 0x4c
ret
xor eax, eax
add esp, 0x4c
ret