joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403df0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7f9a08]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x403f9d
cmp dword [0x7f9a0c], 0
jne 0x403f89
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00402070
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x403e40
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x403e50
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41e0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x403e85
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00402070
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403ee4
sub edx, esi
sar edx, 1
je 0x403f9d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x403f00
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x403f9d
xor eax, eax
push ebx
test edx, edx
je 0x403f38
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x403f38
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x403f21
xor eax, eax
test edx, edx
je 0x403f52
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x403f52
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403f40
xor eax, eax
test edx, edx
je 0x403f6f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x403f6f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403f60
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7f9a08]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x41d7c2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x563330
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10e000]
push edi
jmp 0x56334a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x563351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x563340
mov eax, 1
add ebx, ebx
jne 0x563363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x563374
jne 0x563393
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x563393
dec eax
add ebx, ebx
jne 0x563380
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x563358
add ebx, ebx
jne 0x56338f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5633e5
xor ecx, ecx
sub eax, 3
jb 0x5633ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x56341a
sar eax, 1
mov ebp, eax
jmp 0x5633b6
add ebx, ebx
jne 0x5633b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x563384
inc ecx
add ebx, ebx
jne 0x5633c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x563384
add ebx, ebx
jne 0x5633d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5633c6
jne 0x5633e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5633c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x563404
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5633f6
jmp 0x563346
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x563404
add edi, ecx
jmp 0x563346
pop esi
mov edi, esi
mov ecx, 0x3ed0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x563422
cmp byte [edi], 0x11
jne 0x563422
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x563427
lea edi, [esi + 0x15c000]
mov eax, dword [edi]
or eax, eax
je 0x56349f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ed4c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ed640]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x563454
mov ecx, edi
jns 0x563483
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ed644]
or eax, eax
je 0x563499
mov dword [ebx], eax
add ebx, 4
jmp 0x563471
call dword [esi + 0x1ed654]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5634d0
cmp al, 0xef
ja 0x5634c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5634a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5634b2
mov ebp, dword [esi + 0x1ed648]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x563504
sub esp, 0xffffff80
jmp 0x427654
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b030]
jne 0x401116
repz ret
jmp fcn.00401c81

Function at 0x40848e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406852
and dword [ebp - 4], 0
cmp dword [0x45d814], 0
mov ebx, eax
jne 0x40853f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4085f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4085f0
push eax
call fcn.004067e0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45d814], eax
call esi
push eax
call fcn.004067e0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45d818], eax
call esi
push eax
call fcn.004067e0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45d81c], eax
call esi
push eax
call fcn.004067e0
pop ecx
mov dword [0x45d824], eax
test eax, eax
je 0x40853f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004067e0
pop ecx
mov dword [0x45d820], eax
mov eax, dword [0x45d820]
cmp eax, ebx
je 0x408597
cmp dword [0x45d824], ebx
je 0x408597
push eax
call fcn.0040685b
push dword [0x45d824]
mov esi, eax
call fcn.0040685b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408597
test edi, edi
je 0x408597
call esi
test eax, eax
je 0x40858e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40858e
test byte [ebp - 0xc], 1
jne 0x408597
or dword [ebp + 0x10], 0x200000
jmp 0x4085d0
mov eax, dword [0x45d818]
cmp eax, ebx
je 0x4085d0
push eax
call fcn.0040685b
pop ecx
test eax, eax
je 0x4085d0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4085d0
mov eax, dword [0x45d81c]
cmp eax, ebx
je 0x4085d0
push eax
call fcn.0040685b
pop ecx
test eax, eax
je 0x4085d0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d814]
call fcn.0040685b
pop ecx
test eax, eax
je 0x4085f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4085f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cc50
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x45b030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2c3b114]
push ebx
mov ebx, dword [0x2c3af60]
push esi
mov esi, dword [0x45c050]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40cc91
push str.vudofijozeresudebomoke
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c3b114]
mov dword [0x45d9ec], esi
cmp eax, 0x114e
jne 0x40ccbb
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [esp + 0x14]
push eax
push str.yubodumejuwal
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2c3b114]
cmp eax, 0x2f
jne 0x40ccdd
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
call fcn.0040cba0
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x47965d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x52f66c]
cmp eax, 0xffffffff
jne 0x479769
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa3b000
call sub.msvcrt.dll_memset
mov dword [0xa3b000], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa3b044
call sub.msvcrt.dll_memset
mov dword [esp + 0x24], 0xa3b044
mov dword [esp + 0x20], 0xa3b000
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 0x47975f
mov eax, dword [0xa3b044]
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 [0xa3b044]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa3b048]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0x52f66c], 1
jmp 0x479769
mov dword [0x52f66c], 0
mov eax, dword [0x52f66c]
leave
ret
Function at 0x48a756
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.0048a352
test eax, eax
sete al
test al, al
je 0x48a782
mov eax, 0xfffffffe
mov edx, 0xffffffff
jmp 0x48a835
mov edx, dword [0x6a089c]
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 [0xa2a30c], eax
mov eax, dword [0xa2a30c]
movzx eax, byte [eax + 0x70]
test al, al
je 0x48a7b9
mov eax, 0xfffffffc
mov edx, 0xffffffff
jmp 0x48a835
mov eax, dword [0x6a0898]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa2a310], eax
mov edi, 0xa2a318
mov eax, dword [0xa2a310]
mov eax, dword [eax]
mov dword [esp + 4], 0xa2a31c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [0xa2a318]
mov edx, dword [0xa2a31c]
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 0x48a82a
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x48a82a
mov eax, 0xfffffffd
mov edx, 0xffffffff
jmp 0x48a835
mov eax, dword [0xa2a318]
mov edx, dword [0xa2a31c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x48c1db
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.0048a352
test eax, eax
sete al
test al, al
je 0x48c219
mov eax, 0xfffffffe
jmp 0x48c3d3
mov edx, dword [0x6a089c]
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 [0xa2a254], eax
mov eax, dword [0xa2a254]
movzx eax, byte [eax + 0xa]
test al, al
jne 0x48c24e
mov eax, 0xfffffffd
jmp 0x48c3d3
cmp dword [ebp - 0x14], 0
jns 0x48c25e
mov eax, 0xfffffffc
jmp 0x48c3d3
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 0x48c2a8
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.0048c0a1
mov dword [0xa2a258], eax
mov eax, dword [0xa2a258]
test eax, eax
setne al
test al, al
je 0x48c2a8
mov eax, dword [0xa2a258]
jmp 0x48c3d3
mov eax, dword [0x6a0898]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa2a25c], eax
jmp 0x48c3b9
cmp dword [ebp - 0x14], 0
jle 0x48c2d9
mov dword [0xa2a260], 0xffffffff
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0xffffffff
jmp 0x48c2ef
mov eax, dword [ebp - 0x18]
mov dword [0xa2a260], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0xa2a260]
mov eax, dword [0xa2a25c]
mov eax, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa2a268
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 0x48c35b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa2a270], eax
mov eax, dword [0xa2a270]
cmp eax, 5
je 0x48c34d
mov eax, dword [0xa2a270]
cmp eax, 0x21
jne 0x48c354
mov eax, 0xfffffff9
jmp 0x48c3d3
mov eax, 0xfffffff7
jmp 0x48c3d3
mov eax, dword [0xa2a268]
mov edx, dword [0xa2a26c]
add dword [ebp + 0x14], eax
mov esi, dword [0xa2a254]
mov eax, dword [0xa2a254]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [0xa2a268]
mov edx, dword [0xa2a26c]
add eax, ecx
adc edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0xa2a260]
mov ecx, eax
mov ebx, 0
mov eax, dword [0xa2a268]
mov edx, dword [0xa2a26c]
mov esi, ebx
xor esi, edx
xor eax, ecx
or eax, esi
test eax, eax
je 0x48c3b9
mov eax, 0xffffffff
jmp 0x48c3d3
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
or eax, edx
test eax, eax
setne al
test al, al
jne 0x48c2bf
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4a3287
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 0x4a32d1
mov dword [esp], 7
call fcn.004566a0
mov eax, dword [ebp - 0x14]
jmp 0x4a336c
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 0x4a332d
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.00457dba
mov dword [ebp - 0x14], eax
mov dword [esp], 0x33
call fcn.004566a0
mov eax, dword [ebp - 0x14]
jmp 0x4a336c
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00457dba
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 0x4ab8f0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov dword [0xa4c9a0], eax
jmp fcn.004ab0e0
Function at 0x4ad4d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
cmp byte [0x52f9bc], 0
je 0x4ad510
mov eax, dword [0xa4ca38]
test eax, eax
je 0x4ad52d
mov dword [esp + 4], 0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xa4ca38]
mov byte [eax + 0x38], 0
sub esp, 8
add esp, 0x1c
ret
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x55f7b8
call fcn.004b0f50
mov eax, dword [0xa4ca38]
test eax, eax
jne 0x4ad4e5
cmp dword [0x52fa14], 2
je 0x4ad4e5
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x55f864
call fcn.004b0f50
mov eax, dword [0xa4ca38]
jmp 0x4ad4e5

Function at 0x4ad560
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
cmp byte [0x52f9bc], 0
je 0x4ad5a0
mov eax, dword [0xa4ca38]
test eax, eax
je 0x4ad5bd
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 [0xa4ca38]
mov byte [eax + 0x38], 0
sub esp, 8
add esp, 0x1c
ret
mov dword [esp + 4], str.glutIconifyWindow
mov dword [esp], 0x55f7b8
call fcn.004b0f50
mov eax, dword [0xa4ca38]
test eax, eax
jne 0x4ad575
cmp dword [0x52fa14], 2
je 0x4ad575
mov dword [esp + 4], str.glutIconifyWindow
mov dword [esp], 0x55f864
call fcn.004b0f50
mov eax, dword [0xa4ca38]
jmp 0x4ad575

Function at 0x4b0d50
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 0x4b0d83
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 0x4b0dad
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 0x4b0dd9
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 0x4b0f50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x52fa48]
test ebx, ebx
je 0x4b0f78
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x52fa48]
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 [0x52fa1c]
test eax, eax
je 0x4b0fc9
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 [0x52f9bc], 0
jne 0x4b1012
mov dword [esp], 1
call sub.msvcrt.dll_exit
call fcn.004aae50
jmp 0x4b1006
Function at 0x4b1020
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [0x52fa4c]
test eax, eax
je 0x4b1047
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x52fa4c]
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 [0x52fa1c]
test eax, eax
je 0x4b1098
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 0x4b2df0
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 0x4b2e43
mov dword [eax + edx*4 + 0x54], 0
add edx, 1
cmp edx, 0x1c
jne 0x4b2e33
mov edx, dword [0xa4ca48]
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
add edx, 1
test ebp, ebp
mov dword [0xa4ca48], edx
mov dword [eax + 8], edx
je 0x4b2f17
mov edx, dword [ebp + 0xe0]
test edx, edx
je 0x4b2f36
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.004acc30
mov eax, dword [esp + 0x38]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0xa4ca24]
test edx, edx
je 0x4b2f48
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [eax], 0
mov dword [0xa4ca24], eax
jmp 0x4b2e96
mov dword [eax + 4], 0
mov dword [ebp + 0xdc], eax
jmp 0x4b2e84
mov dword [eax + 4], 0
mov dword [0xa4ca20], eax
jmp 0x4b2f26
Function at 0x4b3e20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
test eax, eax
mov byte [esp + 0x2c], dl
je 0x4b3e60
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