joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437315
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4e6628]
cmp eax, 0xffffffff
jne 0x437421
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa9d0c0
call sub.msvcrt.dll_memset
mov dword [0xa9d0c0], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa9d104
call sub.msvcrt.dll_memset
mov dword [esp + 0x24], 0xa9d104
mov dword [esp + 0x20], 0xa9d0c0
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 0x437417
mov eax, dword [0xa9d104]
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 [0xa9d104]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa9d108]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0x4e6628], 1
jmp 0x437421
mov dword [0x4e6628], 0
mov eax, dword [0x4e6628]
leave
ret
Function at 0x444f43
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xa8c570]
test eax, eax
jne 0x444f84
mov dword [0xa8c570], 1
mov word [0xa88bb0], 0x101
movzx eax, word [0xa88bb0]
movzx eax, ax
mov dword [esp + 4], 0xa88a20
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
leave
ret

Function at 0x444f95
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call fcn.00444f43
cmp dword [ebp - 0xc], 0
js 0x444fc7
cmp dword [ebp - 0xc], 0
js 0x444fd1
cmp dword [ebp - 0xc], 0
jg 0x444fc7
cmp dword [ebp - 0x10], 0xffff
jbe 0x444fd1
mov eax, 0
jmp 0x44511d
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [0xa8c550], eax
mov eax, dword [0xa8c550]
cmp eax, 0xffffffff
jne 0x44500b
mov eax, 0
jmp 0x44511d
mov word [0xa8c554], 2
mov dword [0xa8c558], 0
mov eax, dword [ebp - 0x10]
movzx eax, ax
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [0xa8c556], ax
mov eax, dword [0xa8c550]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0xa8c554
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_bind]
call eax
sub esp, 0xc
mov dword [0xa8c564], eax
mov eax, dword [0xa8c564]
cmp eax, 0xffffffff
jne 0x445084
mov eax, dword [0xa8c550]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0
jmp 0x44511d
mov eax, dword [0xa8c550]
mov dword [esp + 4], 0x7fffffff
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_listen]
call eax
sub esp, 8
mov dword [0xa8c564], eax
mov eax, dword [0xa8c564]
cmp eax, 0xffffffff
jne 0x4450c6
mov eax, dword [0xa8c550]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0
jmp 0x44511d
mov dword [0xa8c568], 1
mov eax, dword [0xa8c550]
mov dword [esp + 8], 0xa8c568
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ioctlsocket]
call eax
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], 4
call sub.msvcrt.dll_calloc
mov dword [0xa8c56c], eax
mov eax, dword [0xa8c56c]
mov edx, dword [0xa8c550]
mov dword [eax], edx
mov eax, dword [0xa8c56c]
leave
ret
Function at 0x44511f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
call fcn.00444f43
cmp dword [ebp - 0xc], 0
js 0x445151
cmp dword [ebp - 0xc], 0
js 0x44515b
cmp dword [ebp - 0xc], 0
jg 0x445151
cmp dword [ebp - 0x10], 0xffff
jbe 0x44515b
mov eax, 0
jmp 0x445291
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
call eax
sub esp, 4
mov dword [0xa8c52c], eax
mov eax, dword [0xa8c52c]
test eax, eax
jne 0x445183
mov eax, 0
jmp 0x445291
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [0xa8c530], eax
mov eax, dword [0xa8c530]
cmp eax, 0xffffffff
jne 0x4451bd
mov eax, 0
jmp 0x445291
mov word [0xa8c534], 2
mov eax, dword [0xa8c52c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [0xa8c538], eax
mov eax, dword [ebp - 0x10]
movzx eax, ax
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [0xa8c536], ax
mov eax, dword [0xa8c530]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0xa8c534
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
mov dword [0xa8c544], eax
mov eax, dword [0xa8c544]
cmp eax, 0xffffffff
jne 0x44523a
mov eax, dword [0xa8c530]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0
jmp 0x445291
mov dword [0xa8c548], 1
mov eax, dword [0xa8c530]
mov dword [esp + 8], 0xa8c548
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ioctlsocket]
call eax
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], 4
call sub.msvcrt.dll_calloc
mov dword [0xa8c54c], eax
mov eax, dword [0xa8c54c]
mov edx, dword [0xa8c530]
mov dword [eax], edx
mov eax, dword [0xa8c54c]
leave
ret

Function at 0x445293
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [0xa8c508], eax
mov dword [0xa8c50c], 0x10
mov eax, dword [0xa8c508]
mov eax, dword [eax]
mov dword [esp + 8], 0xa8c50c
mov dword [esp + 4], 0xa8c510
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_accept]
call eax
sub esp, 0xc
mov dword [0xa8c520], eax
mov eax, dword [0xa8c520]
cmp eax, 0xffffffff
jne 0x4452e5
mov eax, 0
jmp 0x44533c
mov dword [0xa8c524], 1
mov eax, dword [0xa8c520]
mov dword [esp + 8], 0xa8c524
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ioctlsocket]
call eax
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], 4
call sub.msvcrt.dll_calloc
mov dword [0xa8c528], eax
mov eax, dword [0xa8c528]
mov edx, dword [0xa8c520]
mov dword [eax], edx
mov eax, dword [0xa8c528]
leave
ret
Function at 0x445363
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [0xa8c500], eax
mov eax, dword [0xa8c500]
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [0xa8c504], eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [0xa8c4ec], eax
mov eax, dword [0xa8c4ec]
mov eax, dword [eax + 0xc]
mov dword [0xa8c4f0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
jne 0x445457
mov dword [esp], 0x400
call sub.msvcrt.dll_malloc
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x400
jmp 0x445457
nop
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edx, eax
jne 0x445494
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
lea edx, [eax + eax]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add edx, eax
mov eax, dword [0xa8c4f0]
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [0xa8c4f4], eax
mov eax, dword [0xa8c4f4]
cmp eax, 0xffffffff
jne 0x4454f2
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [0xa8c4f8], eax
jmp 0x445525
mov eax, dword [0xa8c4f4]
test eax, eax
jle 0x445524
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [0xa8c4f4]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp edx, eax
je 0x445456
jmp 0x445525
nop
leave
ret
Function at 0x44746a
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.004470a3
test eax, eax
sete al
test al, al
je 0x447496
mov eax, 0xfffffffe
mov edx, 0xffffffff
jmp 0x447532
mov edx, dword [0x64245c]
mov eax, dword [ebp + 8]
shl eax, 4
lea ecx, [eax*8]
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa8c2dc], eax
mov eax, dword [0x642458]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa8c2e0], eax
mov edi, 0xa8c2e8
mov eax, dword [0xa8c2e0]
mov eax, dword [eax]
mov dword [esp + 4], 0xa8c2ec
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [0xa8c2e8]
mov edx, dword [0xa8c2ec]
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 0x447527
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x447527
mov eax, 0xfffffffd
mov edx, 0xffffffff
jmp 0x447532
mov eax, dword [0xa8c2e8]
mov edx, dword [0xa8c2ec]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x448e41
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.004470a3
test eax, eax
sete al
test al, al
je 0x448e7f
mov eax, 0xfffffffe
jmp 0x44903b
mov edx, dword [0x64245c]
mov eax, dword [ebp + 8]
shl eax, 4
lea ecx, [eax*8]
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa8c224], eax
mov eax, dword [0xa8c224]
movzx eax, byte [eax + 0xa]
test al, al
jne 0x448eb6
mov eax, 0xfffffffd
jmp 0x44903b
cmp dword [ebp - 0x14], 0
jns 0x448ec6
mov eax, 0xfffffffc
jmp 0x44903b
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 0x448f10
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.00448d03
mov dword [0xa8c228], eax
mov eax, dword [0xa8c228]
test eax, eax
setne al
test al, al
je 0x448f10
mov eax, dword [0xa8c228]
jmp 0x44903b
mov eax, dword [0x642458]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa8c22c], eax
jmp 0x449021
cmp dword [ebp - 0x14], 0
jle 0x448f41
mov dword [0xa8c230], 0xffffffff
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0xffffffff
jmp 0x448f57
mov eax, dword [ebp - 0x18]
mov dword [0xa8c230], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0xa8c230]
mov eax, dword [0xa8c22c]
mov eax, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa8c238
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 0x448fc3
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa8c240], eax
mov eax, dword [0xa8c240]
cmp eax, 5
je 0x448fb5
mov eax, dword [0xa8c240]
cmp eax, 0x21
jne 0x448fbc
mov eax, 0xfffffff9
jmp 0x44903b
mov eax, 0xfffffff7
jmp 0x44903b
mov eax, dword [0xa8c238]
mov edx, dword [0xa8c23c]
add dword [ebp + 0x14], eax
mov esi, dword [0xa8c224]
mov eax, dword [0xa8c224]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [0xa8c238]
mov edx, dword [0xa8c23c]
add eax, ecx
adc edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0xa8c230]
mov ecx, eax
mov ebx, 0
mov eax, dword [0xa8c238]
mov edx, dword [0xa8c23c]
mov esi, ebx
xor esi, edx
xor eax, ecx
or eax, esi
test eax, eax
je 0x449021
mov eax, 0xffffffff
jmp 0x44903b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
or eax, edx
test eax, eax
setne al
test al, al
jne 0x448f27
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x463c50
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov dword [0xaaea60], eax
jmp fcn.00463440
Function at 0x465420
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
cmp byte [0x4e68bc], 0
je 0x465460
mov eax, dword [0xaaeaf8]
test eax, eax
je 0x46547d
mov dword [esp + 4], 0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xaaeaf8]
mov byte [eax + 0x38], 0
sub esp, 8
add esp, 0x1c
ret
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x5037d4
call fcn.004690a0
mov eax, dword [0xaaeaf8]
test eax, eax
jne 0x465435
cmp dword [0x4e6914], 2
je 0x465435
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x503880
call fcn.004690a0
mov eax, dword [0xaaeaf8]
jmp 0x465435

Function at 0x468ea0
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 0x468ed3
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 0x468efd
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 0x468f29
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 0x4690a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4e6948]
test ebx, ebx
je 0x4690c8
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x4e6948]
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 [0x4e691c]
test eax, eax
je 0x469119
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 [0x4e68bc], 0
jne 0x469162
mov dword [esp], 1
call sub.msvcrt.dll_exit
call fcn.004631b0
jmp 0x469156
Function at 0x469170
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [0x4e694c]
test eax, eax
je 0x469197
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x4e694c]
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 [0x4e691c]
test eax, eax
je 0x4691e8
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 0x46ae90
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 0x46aee3
mov dword [eax + edx*4 + 0x54], 0
add edx, 1
cmp edx, 0x1c
jne 0x46aed3
mov edx, dword [0xaaeb08]
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
add edx, 1
test ebp, ebp
mov dword [0xaaeb08], edx
mov dword [eax + 8], edx
je 0x46afb7
mov edx, dword [ebp + 0xe0]
test edx, edx
je 0x46afd6
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.00464b80
mov eax, dword [esp + 0x38]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0xaaeae4]
test edx, edx
je 0x46afe8
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [eax], 0
mov dword [0xaaeae4], eax
jmp 0x46af36
mov dword [eax + 4], 0
mov dword [ebp + 0xdc], eax
jmp 0x46af24
mov dword [eax + 4], 0
mov dword [0xaaeae0], eax
jmp 0x46afc6
Function at 0x46b8d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
test eax, eax
mov byte [esp + 0x2c], dl
je 0x46b910
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
Function at 0x46bb30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
cmp byte [0x4e6928], 0
je 0x46bb40
ret
sub esp, 0x7c
mov dword [esp], str.GLUT_DIALS_SERIAL
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebp
call sub.msvcrt.dll_getenv
test eax, eax
je 0x46bcd0
lea ebp, [esp + 0x44]
xor edx, edx
mov dword [ebp + edx], 0
add edx, 4
cmp edx, 0x1c
jb 0x46bb6d
mov dword [esp + 0x44], 0x1c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
test eax, eax
mov esi, eax
je 0x46bd5a
mov dword [esp], 0x34
call sub.msvcrt.dll_malloc
mov ecx, 0xd
mov ebx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x18]
mov dword [ebx], esi
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
lea eax, [ebx + 4]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
sub esp, 8
mov dword [esp + 0x44], 0x1c
mov dword [esp + 4], ebp
mov dword [esp], str.96_n_8_1
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
sub esp, 8
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetCommState]
sub esp, 8
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], 1
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov eax, dword [ebx]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, 0x20
mov eax, ebx
mov dword [0xaaeb20], ebx
sub esp, 4
call fcn.0046b8d0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x46b980
mov dword [esp], 0xa
call fcn.00467540
mov byte [0x4e6928], 1
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
add esp, 0x7c
ret
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x28], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str.SOFTWAREFreeGLUT
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
sub esp, 0xc
test eax, eax
jne 0x46bcb7
lea eax, [esp + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 0xaaeb40
mov dword [esp + 8], 0
mov dword [esp + 4], str.DialboxSerialPort
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x46bd69
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xaaeb40
sub esp, 4
jmp 0x46bb67
mov dword [0xaaeb20], 0
jmp 0x46bcb7
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
jmp 0x46bcb7