joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eb40
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5b3e64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
call fcn.004364a2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406fd6
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
fld dword [ebp + 0x14]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x10]
push 0x56289c
push ecx
mov byte [ebp - 4], 3
call fcn.004053e0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
mov edi, dword [ebp + 0x10]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 0x10
or eax, ecx
jge 0x40702d
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004013a0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0x104
push esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00534a12
add esp, 8
test eax, eax
js 0x407114
cmp eax, dword [esi - 8]
jg 0x407114
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.00534fcf
fstp dword [ebp - 0x10]
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407100
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x407640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5b3e64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
call ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x407748
nop
push edi
call ebx
mov edx, dword [esi + 8]
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
lea ecx, [ebp - 0x11]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4076fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0x3e5
je 0x4076d6
push str.ReadFile__
jmp 0x4076f3
mov ecx, dword [esi + 8]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4076fa
push str.GetOverlappedResults___in_ReadFile__
mov ecx, esi
call fcn.00407500
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x88]
movzx eax, byte [ebp - 0x11]
mov ecx, dword [esi + 0x84]
push edx
mov edx, dword [ecx + 0x20]
push eax
push 0x407
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
jne 0x4076a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534f15
mov esp, ebp
pop ebp
ret
Function at 0x407f70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
push edi
mov edi, ecx
jne 0x407fcb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xff00
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x407fcb
mov eax, dword [esi + 8]
cmp eax, 0x53
je 0x407fa7
cmp eax, 0x73
jne 0x407fcb
cmp dword [edi + 0xb8], 0
push esi
je 0x4080ac
mov ecx, dword [edi + 0xb8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10c]
call edx
pop edi
pop esi
pop ebp
ret 4
cmp dword [esi + 4], 0x104
jne 0x4080ab
test dword [esi + 0xc], 0x20000000
je 0x4080ab
mov eax, dword [esi + 8]
cmp eax, 0x52
je 0x407fa7
cmp eax, 0x72
je 0x407fa7
cmp eax, 0x44
je 0x407fa7
cmp eax, 0x64
je 0x407fa7
cmp eax, 0x43
je 0x407fa7
cmp eax, 0x63
je 0x407fa7
cmp eax, 0x42
je 0x407fa7
cmp eax, 0x62
je 0x407fa7
cmp eax, 0x4e
je 0x407fa7
cmp eax, 0x6e
je 0x407fa7
cmp eax, 0x46
je 0x407fa7
cmp eax, 0x66
je 0x407fa7
cmp eax, 0x50
je 0x407fa7
cmp eax, 0x70
je 0x407fa7
cmp eax, 0x4f
je 0x407fa7
cmp eax, 0x6f
je 0x407fa7
cmp eax, 0x45
je 0x407fa7
cmp eax, 0x65
je 0x407fa7
cmp eax, 0x31
je 0x407fa7
cmp eax, 0x32
je 0x407fa7
cmp eax, 0x33
je 0x407fa7
cmp eax, 0x34
je 0x407fa7
cmp eax, 0x35
je 0x407fa7
cmp eax, 0x36
je 0x407fa7
cmp eax, 0x37
je 0x407fa7
cmp eax, 0x61
je 0x407fa7
cmp eax, 0x67
je 0x407fa7
push esi
mov ecx, edi
call fcn.004387e3
pop edi
pop esi
pop ebp
ret 4

Function at 0x40d440
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push str.USB_Driver.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
test eax, eax
jne 0x40d460
push eax
push eax
push 0x5646b4
call fcn.00437112
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.USB_Read
push eax
call edi
mov ecx, dword [esi]
push str.USB_Write
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi]
push str.Open_Device
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push 0x564684
push eax
call edi
mov ecx, dword [esi]
push str.Light_Set
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.Light_Get
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.Data_Save
push eax
call edi
mov ecx, dword [esi]
push str.Data_Get
push ecx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
lea eax, [esi + 0x24]
mov byte [eax], 1
xor edx, edx
push eax
mov eax, dword [esi + 4]
mov dword [esi + 0x26], 0x6104d8
mov byte [esi + 0x2c], 0
mov word [esi + 0x2a], dx
call eax
add esp, 4
pop edi
test eax, eax
je 0x40d502
push 0
push 0
push str.open_LS_fail_
call fcn.00437112
mov eax, esi
pop esi
ret
Function at 0x43726a
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0043dce4
call fcn.00406050
cmp eax, esi
pop esi
jne 0x438a1f
mov ecx, 0x5b7188
jmp fcn.0044f990
ret

Function at 0x4395c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004493af
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x439600
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00439209
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x43965e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x439682
cmp dword [edi + 0x74], 0
jne 0x439682
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004493af
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0043961f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43f931
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x43f978
call fcn.004493af
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43f978
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43f994
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043f436
mov esi, eax
test edi, edi
je 0x43f992
test ebx, ebx
je 0x43f992
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4427d5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x553cd6
call fcn.00536f1b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4427fa
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x44284c
call fcn.004364a2
push eax
lea ecx, [ebp - 0x10]
call fcn.00401350
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00536d4b
push eax
call fcn.00405e80
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.00536ff3
ret 8

Function at 0x443e7a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00443925
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x443ec4
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043639c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406c20
jmp 0x443ecf
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004509d6
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x443ed5
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004420a4
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x443f12
call fcn.00443925
mov dword [esi + 0xc], 1
jmp 0x443f17
call fcn.00443925
cmp dword [esi], 0
je 0x443f60
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x443f38
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043639c
jmp 0x443f4a
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401640
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406c20
jmp 0x443f84
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x443f84
push dword [esi]
push dword [ebp + 8]
call fcn.004509d6
pop esi
pop ebp
ret 0xc
Function at 0x44800a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x448052
call fcn.004493af
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x448052
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x448095
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44807e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44807e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x448092
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x49ee8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x49eea4
call fcn.004493af
mov esi, dword [eax + 0xc]
push dword [0x5b8e1c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49eec2
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x49eeba
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x49eeef
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x49eebc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0049edb8
mov esi, eax
jmp 0x49eee1
Function at 0x51b358
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x51b370
mov edi, dword [esi + 0xc]
jmp 0x51b3b0
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x51b389
call fcn.0043ff7a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x51b39e
call fcn.0043ff7a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x51b3b0
call fcn.0043ff7a
call fcn.004493af
cmp dword [eax + 0x3c], 0
je 0x51b3c5
push edi
mov ecx, ebx
call fcn.0051a194
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0051b272
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x51b3e3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x51b3ef
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x534f15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b3e64]
jne 0x534f1f
repz ret
jmp fcn.0053ec0c
Function at 0x54b0ad
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b3e64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0053d371
and dword [ebp - 0x14], 0
cmp dword [0x5bb72c], 0
mov dword [ebp - 0x18], eax
jne 0x54b160
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x54b208
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x54b208
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x58e4b0
push ebx
mov dword [0x5bb72c], eax
call edi
push eax
call esi
push 0x58e49c
push ebx
mov dword [0x5bb730], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5bb734], eax
call edi
push eax
call esi
mov dword [0x5bb73c], eax
test eax, eax
je 0x54b160
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5bb738], eax
mov eax, dword [0x5bb738]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x54b1b9
cmp dword [0x5bb73c], ecx
je 0x54b1b9
push eax
call esi
push dword [0x5bb73c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x54b1b9
test ebx, ebx
je 0x54b1b9
call edi
test eax, eax
je 0x54b1b0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x54b1b0
test byte [ebp - 8], 1
jne 0x54b1b9
or dword [ebp + 0x10], 0x200000
jmp 0x54b1ec
mov eax, dword [0x5bb730]
cmp eax, dword [ebp - 0x18]
je 0x54b1ec
push eax
call esi
test eax, eax
je 0x54b1ec
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x54b1ec
mov eax, dword [0x5bb734]
cmp eax, dword [ebp - 0x18]
je 0x54b1ec
push eax
call esi
test eax, eax
je 0x54b1ec
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5bb72c]
call esi
test eax, eax
je 0x54b208
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x54b20a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534f15
leave
ret
Function at 0x10001120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10014080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.1000bad0
push edi
push esi
lea edx, [ebp - 0x804]
push 0x3ff
push edx
call fcn.10005083
add esp, 0x1c
test eax, eax
js 0x10001179
cmp eax, 0x3ff
ja 0x10001179
jne 0x1000117f
xor eax, eax
mov word [ebp - 6], ax
jmp 0x1000117f
xor ecx, ecx
mov word [ebp - 6], cx
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004f18
mov esp, ebp
pop ebp
ret

Function at 0x10001350
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10014080]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10015c78]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100013a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1000144a
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004f18
mov esp, ebp
pop ebp
ret
cmp dword [0x10015c8c], 0
push esi
push edi
jne 0x100013f4
push 0x72c
call fcn.100052b5
add esp, 4
test eax, eax
je 0x100013cd
mov esi, eax
call fcn.10001880
mov esi, eax
jmp 0x100013cf
xor esi, esi
push 0
push esi
push 0x10015c8c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100013f4
test esi, esi
je 0x100013f4
push esi
mov dword [esi], vtable.Titan.0
call fcn.10004f27
add esp, 4
mov edi, dword [0x10015c8c]
lea esi, [ebp - 0x20c]
call fcn.10003be0
mov esi, eax
test esi, esi
js 0x10001446
call fcn.10003d80
mov esi, eax
test esi, esi
js 0x10001446
test edi, edi
je 0x1000143b
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0
mov ecx, edi
call eax
push eax
push 0x100114e8
push edi
mov edx, str.Titan
mov ecx, 0x10011498
call fcn.100033b0
push 0x100114f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004f18
mov esp, ebp
pop ebp
ret
Function at 0x10001880
Capabilities:
Check if file exists
Create directory
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10014080]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
mov word [esi + 0x8c], cx
xor eax, eax
lea ecx, [ebp - 0x230]
xor edx, edx
push ecx
mov dword [esi], vtable.Titan.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [esi + 0xc], ax
mov word [esi + 0x10c], dx
mov word [esi + 0x314], ax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x230]
cmp ax, 9
je 0x100018ea
cmp ax, 6
je 0x100018ea
xor eax, eax
jmp 0x100018ef
mov eax, 1
lea edx, [esi + 0x728]
push edx
push 0
push esi
push 0x10002340
push 0
push 0
mov dword [esi + 0x724], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10001919
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.1000bad0
mov eax, dword [0x10015c78]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000197b
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push str.Titan.ini
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esi + 0x51c]
lea edi, [ebp - 0x20c]
mov edx, 0x104
sub edi, eax
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x100019bf
movzx ecx, word [edi + eax]
test cx, cx
je 0x100019bf
mov word [eax], cx
add eax, 2
dec edx
jne 0x100019a1
jmp 0x100019c3
test edx, edx
jne 0x100019c6
sub eax, 2
mov ecx, dword [ebp - 4]
xor edx, edx
mov word [eax], dx
xor ecx, ebp
mov eax, esi
pop edi
call fcn.10004f18
mov esp, ebp
pop ebp
ret