joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10137e34
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x101aa100]
je 0x10137e4f
inc edi
cmp edi, 0x17
jb 0x10137e40
cmp edi, 0x17
jae 0x10137fcf
push ebp
push 3
call fcn.10142cf3
cmp eax, 1
pop ecx
je 0x10137f9b
push 3
call fcn.10142cf3
test eax, eax
pop ecx
jne 0x10137e83
cmp dword [0x101ae66c], 1
je 0x10137f9b
cmp ebx, 0xfc
je 0x10137fce
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x101aedc8
push ebp
call fcn.1012de8b
add esp, 0xc
test eax, eax
je 0x10137eb9
push esi
push esi
push esi
push esi
push esi
call fcn.1012357b
add esp, 0x14
push 0x104
mov esi, 0x101aede1
push esi
push 0
mov byte [0x101aeee5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10137efd
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1012de8b
add esp, 0xc
test eax, eax
je 0x10137efd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1012357b
add esp, 0x14
push esi
call fcn.10129eb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10137f42
push esi
call fcn.10129eb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x101af0dc
push 0x101717b0
sub ecx, eax
push ecx
push eax
call fcn.1013db39
add esp, 0x14
test eax, eax
je 0x10137f42
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1012357b
add esp, 0x14
jmp 0x10137f44
xor esi, esi
push 0x10183e88
push ebx
push ebp
call fcn.1013dac8
add esp, 0xc
test eax, eax
je 0x10137f64
push esi
push esi
push esi
push esi
push esi
call fcn.1012357b
add esp, 0x14
push dword [edi*8 + 0x101aa104]
push ebx
push ebp
call fcn.1013dac8
add esp, 0xc
test eax, eax
je 0x10137f86
push esi
push esi
push esi
push esi
push esi
call fcn.1012357b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10142b36
add esp, 0xc
jmp 0x10137fce
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10137fce
cmp ebp, 0xffffffff
je 0x10137fce
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x101aa104]
push dword [esi]
call fcn.10129eb0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10142b36
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1012e0f6
xor ebx, ebx
cmp dword [0x101af264], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10142c0c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10142cec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1018bce8
push edi
call esi
cmp eax, ebx
je 0x10142cec
push eax
call fcn.1012e088
mov dword [esp], 0x1018bcd8
push edi
mov dword [0x101af264], eax
call esi
push eax
call fcn.1012e088
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101af268], eax
call esi
push eax
call fcn.1012e088
mov dword [0x101af26c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1012da6a
test eax, eax
pop ecx
pop ecx
je 0x10142bda
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1012357b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10142c0c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1012e088
cmp eax, ebx
pop ecx
mov dword [0x101af274], eax
je 0x10142c0c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1012e088
pop ecx
mov dword [0x101af270], eax
mov eax, dword [0x101af270]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10142c91
cmp dword [0x101af274], ecx
je 0x10142c91
push eax
call fcn.1012e0ff
push dword [0x101af274]
mov esi, eax
call fcn.1012e0ff
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10142c91
cmp edi, ebx
je 0x10142c91
call esi
cmp eax, ebx
je 0x10142c5e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10142c5e
test byte [ebp - 0x18], 1
jne 0x10142c91
lea eax, [ebp - 0x10]
push eax
call fcn.1012daa1
test eax, eax
pop ecx
je 0x10142c79
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1012357b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10142c88
or dword [ebp + 0x10], 0x200000
jmp 0x10142ccc
or dword [ebp + 0x10], 0x40000
jmp 0x10142ccc
mov eax, dword [0x101af268]
cmp eax, dword [ebp - 8]
je 0x10142ccc
push eax
call fcn.1012e0ff
cmp eax, ebx
pop ecx
je 0x10142ccc
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10142ccc
mov eax, dword [0x101af26c]
cmp eax, dword [ebp - 8]
je 0x10142ccc
push eax
call fcn.1012e0ff
cmp eax, ebx
pop ecx
je 0x10142ccc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101af264]
call fcn.1012e0ff
cmp eax, ebx
pop ecx
je 0x10142cec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10142cee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49d605
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x55366c]
cmp eax, 0xffffffff
jne 0x49d711
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa60a40
call sub.msvcrt.dll_memset
mov dword [0xa60a40], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa60a84
call sub.msvcrt.dll_memset
mov dword [esp + 0x24], 0xa60a84
mov dword [esp + 0x20], 0xa60a40
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 0x49d707
mov eax, dword [0xa60a84]
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 [0xa60a84]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa60a88]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0x55366c], 1
jmp 0x49d711
mov dword [0x55366c], 0
mov eax, dword [0x55366c]
leave
ret
Function at 0x4ae6fe
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.004ae2fa
test eax, eax
sete al
test al, al
je 0x4ae72a
mov eax, 0xfffffffe
mov edx, 0xffffffff
jmp 0x4ae7dd
mov edx, dword [0x6c62dc]
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 [0xa4fd4c], eax
mov eax, dword [0xa4fd4c]
movzx eax, byte [eax + 0x70]
test al, al
je 0x4ae761
mov eax, 0xfffffffc
mov edx, 0xffffffff
jmp 0x4ae7dd
mov eax, dword [0x6c62d8]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa4fd50], eax
mov edi, 0xa4fd58
mov eax, dword [0xa4fd50]
mov eax, dword [eax]
mov dword [esp + 4], 0xa4fd5c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [0xa4fd58]
mov edx, dword [0xa4fd5c]
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 0x4ae7d2
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x4ae7d2
mov eax, 0xfffffffd
mov edx, 0xffffffff
jmp 0x4ae7dd
mov eax, dword [0xa4fd58]
mov edx, dword [0xa4fd5c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b0183
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.004ae2fa
test eax, eax
sete al
test al, al
je 0x4b01c1
mov eax, 0xfffffffe
jmp 0x4b037b
mov edx, dword [0x6c62dc]
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 [0xa4fc94], eax
mov eax, dword [0xa4fc94]
movzx eax, byte [eax + 0xa]
test al, al
jne 0x4b01f6
mov eax, 0xfffffffd
jmp 0x4b037b
cmp dword [ebp - 0x14], 0
jns 0x4b0206
mov eax, 0xfffffffc
jmp 0x4b037b
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 0x4b0250
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.004b0049
mov dword [0xa4fc98], eax
mov eax, dword [0xa4fc98]
test eax, eax
setne al
test al, al
je 0x4b0250
mov eax, dword [0xa4fc98]
jmp 0x4b037b
mov eax, dword [0x6c62d8]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa4fc9c], eax
jmp 0x4b0361
cmp dword [ebp - 0x14], 0
jle 0x4b0281
mov dword [0xa4fca0], 0xffffffff
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0xffffffff
jmp 0x4b0297
mov eax, dword [ebp - 0x18]
mov dword [0xa4fca0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0xa4fca0]
mov eax, dword [0xa4fc9c]
mov eax, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa4fca8
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 0x4b0303
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa4fcb0], eax
mov eax, dword [0xa4fcb0]
cmp eax, 5
je 0x4b02f5
mov eax, dword [0xa4fcb0]
cmp eax, 0x21
jne 0x4b02fc
mov eax, 0xfffffff9
jmp 0x4b037b
mov eax, 0xfffffff7
jmp 0x4b037b
mov eax, dword [0xa4fca8]
mov edx, dword [0xa4fcac]
add dword [ebp + 0x14], eax
mov esi, dword [0xa4fc94]
mov eax, dword [0xa4fc94]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [0xa4fca8]
mov edx, dword [0xa4fcac]
add eax, ecx
adc edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0xa4fca0]
mov ecx, eax
mov ebx, 0
mov eax, dword [0xa4fca8]
mov edx, dword [0xa4fcac]
mov esi, ebx
xor esi, edx
xor eax, ecx
or eax, esi
test eax, eax
je 0x4b0361
mov eax, 0xffffffff
jmp 0x4b037b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
or eax, edx
test eax, eax
setne al
test al, al
jne 0x4b0267
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4c722f
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 0x4c7279
mov dword [esp], 7
call fcn.0047a648
mov eax, dword [ebp - 0x14]
jmp 0x4c7314
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 0x4c72d5
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.0047bd62
mov dword [ebp - 0x14], eax
mov dword [esp], 0x33
call fcn.0047a648
mov eax, dword [ebp - 0x14]
jmp 0x4c7314
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0047bd62
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 0x4cf8a0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov dword [0xa723e0], eax
jmp fcn.004cf090
Function at 0x4d1480
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
cmp byte [0x5539bc], 0
je 0x4d14c0
mov eax, dword [0xa72478]
test eax, eax
je 0x4d14dd
mov dword [esp + 4], 0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xa72478]
mov byte [eax + 0x38], 0
sub esp, 8
add esp, 0x1c
ret
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x583c78
call fcn.004d4f00
mov eax, dword [0xa72478]
test eax, eax
jne 0x4d1495
cmp dword [0x553a14], 2
je 0x4d1495
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x583d24
call fcn.004d4f00
mov eax, dword [0xa72478]
jmp 0x4d1495

Function at 0x4d1510
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
cmp byte [0x5539bc], 0
je 0x4d1550
mov eax, dword [0xa72478]
test eax, eax
je 0x4d156d
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 [0xa72478]
mov byte [eax + 0x38], 0
sub esp, 8
add esp, 0x1c
ret
mov dword [esp + 4], str.glutIconifyWindow
mov dword [esp], 0x583c78
call fcn.004d4f00
mov eax, dword [0xa72478]
test eax, eax
jne 0x4d1525
cmp dword [0x553a14], 2
je 0x4d1525
mov dword [esp + 4], str.glutIconifyWindow
mov dword [esp], 0x583d24
call fcn.004d4f00
mov eax, dword [0xa72478]
jmp 0x4d1525

Function at 0x4d4d00
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 0x4d4d33
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 0x4d4d5d
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 0x4d4d89
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 0x4d4f00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x553a48]
test ebx, ebx
je 0x4d4f28
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x553a48]
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 [0x553a1c]
test eax, eax
je 0x4d4f79
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 [0x5539bc], 0
jne 0x4d4fc2
mov dword [esp], 1
call sub.msvcrt.dll_exit
call fcn.004cee00
jmp 0x4d4fb6
Function at 0x4d4fd0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [0x553a4c]
test eax, eax
je 0x4d4ff7
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x553a4c]
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 [0x553a1c]
test eax, eax
je 0x4d5048
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 0x4d6da0
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 0x4d6df3
mov dword [eax + edx*4 + 0x54], 0
add edx, 1
cmp edx, 0x1c
jne 0x4d6de3
mov edx, dword [0xa72488]
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
add edx, 1
test ebp, ebp
mov dword [0xa72488], edx
mov dword [eax + 8], edx
je 0x4d6ec7
mov edx, dword [ebp + 0xe0]
test edx, edx
je 0x4d6ee6
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.004d0be0
mov eax, dword [esp + 0x38]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0xa72464]
test edx, edx
je 0x4d6ef8
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [eax], 0
mov dword [0xa72464], eax
jmp 0x4d6e46
mov dword [eax + 4], 0
mov dword [ebp + 0xdc], eax
jmp 0x4d6e34
mov dword [eax + 4], 0
mov dword [0xa72460], eax
jmp 0x4d6ed6
Function at 0x4d7dd0
Capabilities:
Write file on windows

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

Disassembly:
cmp byte [0x553a28], 0
je 0x4d8040
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 0x4d81d0
lea ebp, [esp + 0x44]
xor edx, edx
mov dword [ebp + edx], 0
add edx, 4
cmp edx, 0x1c
jb 0x4d806d
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 0x4d825a
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 [0xa724a0], ebx
sub esp, 4
call fcn.004d7dd0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4d7e80
mov dword [esp], 0xa
call fcn.004d35a0
mov byte [0x553a28], 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 0x4d81b7
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], 0xa724c0
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 0x4d8269
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xa724c0
sub esp, 4
jmp 0x4d8067
mov dword [0xa724a0], 0
jmp 0x4d81b7
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
jmp 0x4d81b7
Function at 0x4d8330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x26c
mov dword [esp + 0x264], edi
mov edi, eax
mov dword [esp + 0x25c], ebx
mov dword [esp + 0x260], esi
mov dword [esp + 0x268], ebp
cmp byte [eax + 0x1d0], 0
je 0x4d8382
xor eax, eax
mov ebx, dword [esp + 0x25c]
mov esi, dword [esp + 0x260]
mov edi, dword [esp + 0x264]
mov ebp, dword [esp + 0x268]
add esp, 0x26c
ret
lea ebx, [esp + 0x50]
mov esi, dword [sym.imp.msvcrt.dll__snprintf]
lea eax, [eax + 0x70]
mov dword [esp + 0x14], str.CurrentJoystickSettings
lea ebp, [esp + 0x48]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.SystemCurrentControlSetControlMediaResourcesJoystick
mov dword [esp + 8], str._s_s_s
mov dword [esp + 4], 0x100
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call esi
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
mov dword [esp + 0x3c], eax
call eax
sub esp, 0x14
test eax, eax
jne 0x4d835d
mov dword [esp + 0x10], str.OEMName
mov eax, dword [edi + 0x1c8]
mov dword [esp + 0x4c], 0x100
mov dword [esp + 8], str.Joystick_d_s
mov dword [esp + 4], 0x100
add eax, 1
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call esi
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x150]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp + 0x38], eax
call eax
sub esp, 0x18
mov edi, eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], eax
call eax
sub esp, 4
test edi, edi
mov ecx, dword [esp + 0x30]
jne 0x4d835d
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x100
mov dword [esp], ebx
call esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call dword [esp + 0x3c]
sub esp, 0x14
test eax, eax
mov edx, dword [esp + 0x2c]
jne 0x4d835d
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 0x4c], pe_nt_image_headers32
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.OEMName
mov dword [esp], eax
call dword [esp + 0x38]
sub esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [esp + 0x34]
xor eax, eax
sub esp, 4
test ebx, ebx
sete al
jmp 0x4d835f