joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b72d7
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00499140
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x4d92e0]
je 0x4b73de
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4b7347
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x4b734e
cmp ebx, ebx
jne 0x4b734e
xor eax, eax
jmp 0x4b73e1
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x4b735b
mov byte [esi + 0x20], bl
jmp 0x4b736f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043d6d0
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043d6d0
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043d6d0
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x4b73ca
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4b73de
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4b9619
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4f66e0]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x4b9668
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x4b9668
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4b9674
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00498784
leave
ret 8
Function at 0x4b9f05
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4f66e0]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.004b9eee
cmp dword [esi], 0
mov ebx, eax
je 0x4b9f6e
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push eax
call fcn.0049b4fd
add esp, 0xc
cmp eax, 1
pop edi
je 0x4b9f91
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.004ba5e1
mov ecx, esi
call fcn.004b9db3
jmp 0x4b9f91
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push eax
call fcn.0049a1cd
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.004b9619
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00498784
leave
ret

Function at 0x4ba7fd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f66e0]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x4ba84a
push dword [ebp + 8]
call fcn.004be22a
mov esi, eax
test esi, esi
je 0x4ba872
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [0x4c8004]
push esi
mov edi, eax
call dword [fcn.004c8058]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x4ba872
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x4cd998
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00498784
leave
ret 0xc

Function at 0x4bc2a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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 0x4bc2bf
mov edi, dword [esi + 0xc]
jmp 0x4bc2e9
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4bc2e9
call fcn.004b841d
call fcn.004bd601
cmp dword [eax + 0x2038], 0
je 0x4bc301
push edi
mov ecx, ebx
call fcn.004bb5d5
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004bc1c8
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x4bc31f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bc32b
mov edi, eax
mov dword [ebx + 0x58], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4bd6c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x4f66e0]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
jne 0x4bd726
push 0x4d9438
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0049be6c
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bd73a
cmp eax, esi
jae 0x4bd73a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4bd73c
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4bd6f1
jmp 0x4bd73d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00498784
leave
ret
Function at 0x4bd75d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4f66e0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x4d94e4
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push 0x4d94c8
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4bd7ff
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push 0x4d94ac
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x4bd901
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4bd8af
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push 0x4d9460
push 0x80000001
mov dword [ebp - 0x2c], ebx
call dword [0x4c8010]
test eax, eax
jne 0x4bd902
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [0x4c800c]
test eax, eax
jne 0x4bd8a4
cmp dword [ebp - 0x34], 1
jne 0x4bd8a4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push 0x4d9454
push eax
call fcn.0049b4fd
add esp, 0xc
cmp eax, 1
jne 0x4bd8a4
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [fcn.004c8058]
jmp 0x4bd902
push 0x4d9440
call edi
cmp eax, ebx
je 0x4bd902
lea ecx, [ebp - 0x28]
push ecx
push 0x4bd747
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x4bd902
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4bd928
push dword [ebp + edi*4 - 0x48]
push dword [ebp + 8]
call fcn.004bd6c8
cmp eax, ebx
pop ecx
pop ecx
jne 0x4bd92a
inc edi
cmp edi, esi
jl 0x4bd911
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00498784
leave
ret 4
Function at 0x4bd939
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [0x4f5dd0], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4f5dd0
je 0x4bd9f5
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [0x4c8010]
test eax, eax
jne 0x4bd9dd
mov esi, dword [ebx + 4]
jmp 0x4bd9d7
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [0x4c800c]
test eax, eax
jne 0x4bd9c7
cmp dword [ebp - 0xc], 4
jne 0x4bd9c7
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4bd9bf
or dword [eax + 0x9c], ecx
jmp 0x4bd9c7
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4bd98b
push dword [ebp - 4]
call dword [fcn.004c8058]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4bd96e
pop esi
push edi
call dword [fcn.004c8058]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4bddb2
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c5b70
call fcn.0049bc48
sub esp, 0x220
mov eax, dword [0x4f66e0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp + 8]
call dword [0x4c8060]
mov esi, eax
test esi, esi
jne 0x4bdeab
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [fcn.004c8018]
mov esi, eax
test esi, esi
jne 0x4bde7f
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401e40
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.004bddb2
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0042a490
test bl, bl
jne 0x4bde7f
or dword [ebp - 4], 0xffffffff
jmp 0x4bddf0
cmp esi, 0x103
je 0x4bde8f
cmp esi, 0x3f2
jne 0x4bde9f
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [fcn.004c8014]
mov esi, eax
push dword [ebp - 0x228]
call dword [fcn.004c8058]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00498784
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4be447
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4be47c
cmp edi, dword [esi + 0xc]
jge 0x4be47c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4be47c
cmp edi, dword [eax + 8]
jge 0x4be47c
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4be47e
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4be582
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4be5b6
jmp fcn.004aec60
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4be627
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4be720
cmp eax, dword [edi + 0xc]
jge 0x4be720
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4be678
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4be709
cmp dword [ebp + 0xc], ebx
je 0x4be709
jmp 0x4be6a2
push 0x10
call fcn.004be313
cmp eax, ebx
je 0x4be68e
mov ecx, eax
call fcn.004be579
mov esi, eax
jmp 0x4be690
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4be6b9
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4be6c9
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4be6db
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004aec60
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00499140
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4be71b
cmp ecx, dword [esi + 8]
jge 0x4be71b
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4be721
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4be7df
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4be80d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4be82b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004be749
jmp 0x4be82b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4be82b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004be749
test edi, edi
mov eax, edi
jne 0x4be815
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4fb5b4]
test ecx, ecx
je 0x4be8de
jmp 0x4be7de
ret 8
Function at 0xf019c6
Capabilities:
Terminate process

Disassembly:
jmp 0xf039f3
push 0xcf8a9352
pushf
push ebp
sbb ebp, ecx
jmp 0xf00c3b
lea ebp, [ecx + edx*2 + 0x44]
sub ebp, 0x44
jmp 0xf00c47
jmp 0xf00c4a
ror ebp, 0x3d
mov ebp, 0x47a1f2
lea ebp, [esp + esi + 0x67]
jmp 0xf00c5a
sub ebp, esi
lea ebp, [ebp + ecx - 0x67]
notrack jmp 0xf00c65
sub ebp, ecx
jmp 0xf00c6c
bnd jmp 0xf00c70
lea ebp, [ebp + eax + 6]
sub ebp, eax
bnd jmp 0xf00c7a
push ecx
add ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x38]
lea ecx, [edx + 0x4db9a4]
sub ecx, edx
jmp 0xf00c91
push ecx
pop dword [ebp]
pop ecx
pop ebp
popf
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jmp 0xf03a35
push dword [esp + 4]
call eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x417b7a
pushf
push ecx
add ecx, 0x1489954e
mov ecx, esp
jmp 0xf019da
lea ecx, [ecx + edx + 6]
sub ecx, edx
push 0x39c63516
push ebx
lea ebx, [edi + eax*2 + 0x79]
sub ebx, 0x79
mov ebx, esp
jmp 0xf019f3
lea ebx, [ebx + ecx + 4]
sub ebx, ecx
bnd jmp 0xf019fd
push 0x4db9b4
pop dword [ebx]
pop ebx
pop dword [ecx]
pop ecx
popf
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jmp 0xf0058a
je 0xf017ac
jmp 0xf00c2d
je 0xf017ac
jmp 0xf017a6
Function at 0x401b88
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x401bdd
sub al, 7
je 0x401c51
dec al
je 0x401bab
sub al, 2
je 0x401bd5
sub al, 3
je 0x401bc7
jmp 0x401bdd
mov eax, dword [0x407320]
cmp eax, dword [0x4071e0]
jle 0x401c51
dec dword [0x407320]
jmp 0x401c51
mov edi, dword [0x4071e0]
mov dword [0x407320], edi
jmp 0x401c51
inc dword [0x407310]
jmp 0x401c51
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x4071d0]
mov word [ebp - 2], ax
mov eax, dword [0x407320]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x407310]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x407320]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x407310]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x407230]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x407320]
mov eax, dword [0x407320]
cmp eax, dword [0x407200]
jle 0x401c7f
mov edi, dword [0x4071e0]
mov dword [0x407320], edi
inc dword [0x407310]
jmp 0x401c7f
push 1
call fcn.00401d28
dec dword [0x407310]
mov eax, dword [0x407310]
cmp eax, dword [0x407210]
jg 0x401c72
leave
ret 4
Function at 0x401ec0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.00403390
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401f05
push ebx
call fcn.00402138
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401f33
push 6
call fcn.0040214a
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x401f4f
push eax
mov ebx, eax
call fcn.00401a5f
inc eax
push eax
call fcn.00402144
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401f54
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401f65
push ebx
call fcn.00402138
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x404940
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00408044
test esi, esi
jne 0x404976
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004081cc
jmp 0x404994
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404884
mov edi, eax
test esi, esi
je 0x404994
cmp dword [ebx], 0
je 0x404994
dec esi
jmp 0x40497d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406dc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004071b8
mov byte [esp], al
cmp byte [esp], 0
jne 0x406f4c
test edi, edi
je 0x406f4c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406e83
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406e5e
cmp edi, 0xffffffff
je 0x406e1f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406e1f
mov byte [esp], 0
jmp 0x406f4c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406e5e
test ebx, ebx
jne 0x406e54
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004027e0
test eax, eax
jne 0x406e54
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406f4c
call 0x4072dc
dec ebp
test ebp, ebp
jg 0x406e04
cmp edi, 0xffffffff
je 0x406e83
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406e81
mov byte [esp], 0
jmp 0x406f4c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406dce
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004027e0
cmp ebx, eax
jne 0x406e83
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406fbc
mov edx, eax
mov ebx, dword [0x6538f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406eea
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406ee8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406eea
xor edi, edi
cmp byte [esp], 0
je 0x406f13
mov ebx, dword [esi]
test bl, 1
jne 0x406f2c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004027e0
cmp ebx, eax
jne 0x406ef0
mov byte [esp + 1], 1
jmp 0x406f2c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004027e0
cmp ebx, eax
jne 0x406f13
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406e9d
cmp byte [esp], 0
je 0x406f4c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407cdc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x653058], 0
je 0x407d43
cmp word [0x653344], 0xd7b2
jne 0x407d05
cmp dword [0x65334c], 0
jbe 0x407d05
mov eax, 0x653340
call dword [0x65335c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x407d70
call fcn.004089a4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x646032], 0
jne 0x407d5f
push 0
push 0x6469ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x646034], 0
je 0x407f2b
mov edx, edi
mov eax, esi
call dword [0x646034]
mov ebx, eax
jmp 0x407f3c
mov eax, 8
call fcn.004045c0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x653059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407ec8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407f71
mov edx, 8
mov eax, ebx
call fcn.004045dc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc