joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426d10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x4e6570]
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
test eax, eax
je 0x426d2d
cmp dword [eax + 4], 0
jne 0x426d83
mov eax, dword [eax]
test eax, eax
jne 0x426d21
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x426ecb
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
nop
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x426d60
mov ecx, dword [0x4e6570]
mov dword [eax], ecx
mov dword [0x4e6570], eax
test eax, eax
je 0x426ecb
mov ebx, dword [eax + 4]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0x425a20
mov dword [esp + 0x18], ebx
mov ecx, dword [ebx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x10]
call fcn.00426f20
test eax, eax
je 0x426ec4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x4e6564], eax
test eax, eax
je 0x426ecb
push 0x2c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x426ec4
mov ecx, dword [esp + 0x14]
mov dl, byte [esi + 0x14]
mov ebx, dword [esp + 0x10]
and dl, 0xf8
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x1c]
mov al, cl
and al, 1
mov dword [esi], ebx
or dl, al
mov eax, dword [esi + 0x18]
xor eax, dword [esp + 0x20]
and eax, 0xf
mov byte [esi + 0x14], dl
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x28], eax
test ecx, ecx
je 0x426e4f
mov eax, dword [edi - 5]
mov dword [esi + 0xc], eax
mov ax, word [edi - 1]
mov word [esi + 0x10], ax
mov al, byte [edi + 1]
mov byte [esi + 0x12], al
jmp 0x426e5a
mov eax, dword [edi]
mov dword [esi + 0xc], eax
mov al, byte [edi + 4]
mov byte [esi + 0x10], al
and dl, 1
lea edi, [ebx - 5]
movzx eax, dl
cmove edi, ebx
lea ebx, [eax*2 + 5]
lea eax, [esp + 0xc]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x426ecb
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x426e9b
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov ecx, ebx
call fcn.00426ca0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x427280
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4e8930], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4e892c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4e8930], ecx
inc eax
cmp eax, 0x270
jl 0x427290
mov dword [0x4e4b58], 1
mov dword [0x4e892c], 1
ret

Function at 0x4272d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4e892c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4e8930
jne 0x4272ef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.00427280
mov eax, dword [0x4e8930]
mov ebx, 0xe3
mov dword [0x4e4b58], 0x270
mov dword [0x4e92f0], 0x4e8930
nop dword [eax]
mov edi, dword [esi + 4]
mov ecx, edi
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub ebx, 1
jne 0x427310
mov ebp, 0x18c
nop word [eax + eax]
mov ebx, dword [esi + 4]
lea esi, [esi + 4]
mov ecx, ebx
mov eax, ebx
xor ecx, edi
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
mov edi, ebx
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x390]
mov dword [esi - 4], ecx
sub ebp, 1
jne 0x427350
mov eax, dword [0x4e8930]
mov ecx, ebx
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, ebx
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
ret

Function at 0x4273c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4e4b58], 1
jne 0x4273ce
call fcn.004272d0
mov eax, dword [0x4e92f0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4e92f0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x427410
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4e4b58], 1
jne 0x42741e
call fcn.004272d0
mov eax, dword [0x4e92f0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4e92f0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4dd110]
mulsd xmm0, qword [0x4dcf80]
ret

Function at 0x427c50
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x427c59
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x427c72
cmp dword [0x4e86dc], 0
je 0x427c72
mov ecx, 0x4e86d0
jmp fcn.00406180
mov al, byte [ecx + 0x15]
and al, 0x86
cmp byte [esp + 4], 0
mov byte [ecx + 0x15], al
je 0x427c86
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4
Function at 0x42bd80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4e30f0]
push ebx
push ebp
add eax, 4
imul eax, eax, 0x108
push esi
push edi
push eax
push dword [0x4e58ac]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov dword [0x4e58ac], eax
test eax, eax
jne 0x42bdb0
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4e30f4]
mov edi, eax
push 0x404b20
push 0x4ef6d80
push 0xe
push dword [0x4e59e8]
mov ecx, 0x42
mov dword [0x4e30f4], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
call edi
cmp dword [0x4e8180], 0
jne 0x42bdf1
mov ebp, 1
jmp 0x42beb3
mov eax, dword [0x4e30f4]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0xec], 0
call esi
cmp byte [0x4e58a5], 0
mov ecx, dword [0x4e30f4]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
jne 0x42be3e
push 0x4049f0
push 0x64
push 0xb
push dword [0x4e59e8]
call edi
test eax, eax
setne byte [0x4e58a5]
mov byte [0x4e8669], 1
call esi
inc dword [0x4e59d0]
push str.Auto_execute
mov dword [0x4e868c], eax
mov dword [0x4e8688], eax
call fcn.0040c020
mov ecx, dword [0x4e8180]
push 0
push 0
push 1
call fcn.0043e5d0
sub dword [0x4e4af4], 0xc
mov ebp, eax
dec dword [0x4e59d0]
cmp byte [0x4e58a5], 0
je 0x42beac
push 0xb
push dword [0x4e59e8]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4e58a5]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4e58a5], cl
mov byte [0x4e8669], 0
mov ebx, dword [0x4e30f4]
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x42bf09
cmp dword [eax + 8], 6
jne 0x42bed7
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x104]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42beee
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebx + 0x104]
add esp, 4
push 0x10
push eax
call fcn.004b6a58
mov dword [ebx + 0x104], 0
add esp, 8
mov ebx, dword [0x4e30f4]
mov ecx, ebx
call fcn.00404be0
push 1
push 0
mov byte [ebx + 0xec], 1
mov ecx, 0x42
mov esi, ebx
mov edi, 0x4e58b0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4e59cc]
push 0xffffffffffffffff
push 0x4b9d08
mov word [ebx + 0xec], 0x101
mov dword [ebx + 0xe0], 0
mov byte [ebx + 0xee], 0
mov dword [ebx + 0x2c], connect
call fcn.004a0a20
cmp word [0x4e6550], 0
mov esi, 1
jne 0x42bfa6
cmp dword [0x4e6538], 0
jne 0x42bfa6
cmp dword [0x4e5a08], 0
jne 0x42bfa6
cmp dword [0x4e5a04], 0
jne 0x42bfa6
cmp byte [0x4e59f9], 0
jne 0x42bfa6
test ebp, ebp
mov ecx, 7
push 0
cmove ecx, esi
push ecx
mov ecx, 0x4e7b70
call fcn.0042c260
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x42c160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10230
call fcn.004b79a0
cmp dword [0x4e5a54], 0
push esi
push edi
mov esi, ecx
jne 0x42c1ee
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xc], 1
mov edi, eax
jne 0x42c208
mov edx, dword [edi]
lea ecx, [esp + 0x10]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42c1de
test ax, ax
je 0x42c1da
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x42c1de
add ecx, 4
add edx, 4
test ax, ax
jne 0x42c1b8
xor eax, eax
jmp 0x42c1e3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42c208
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4e5a1c]
push str._restart
jmp 0x42c243
push dword [esi + 0xae0]
lea eax, [esp + 0x21c]
push str._restart___s_
push 0x8010
push eax
call fcn.0049c650
add esp, 0x10
lea eax, [esp + 0x218]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4e5a1c]
push eax
push dword [esi + 0xaec]
mov ecx, 0x4e7b70
call fcn.00448cb0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42c260
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x124
cmp byte [0x4e9af6], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0xab4], eax
jne 0x42c41e
cmp byte [ebx + 0xaf8], 0
je 0x42c41e
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4e59cc]
push 0
push 1
mov dword [0x4e9da0], eax
call fcn.00401640
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
inc dword [0x4e59d0]
xor eax, eax
mov word [esp + 0x13a], ax
add esp, 0xc
mov eax, dword [0x4e30f4]
mov ecx, 0x42
add eax, 0x108
mov esi, 0x4e58b0
mov edi, eax
mov dword [0x4e30f4], eax
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4e7b70
mov dword [eax + 0x2c], 0
call fcn.0042bc80
cmp dword [0x4e59e4], 0
xorps xmm0, xmm0
movlpd qword [0x4e8678], xmm0
je 0x42c32c
mov eax, dword [0x4e4ae8]
mov ecx, 0x4b9c40
test eax, eax
je 0x42c325
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [0x4e30ec]
push str.OnExit
mov dword [0x4e30ec], 0
mov byte [0x4e9af6], 1
call fcn.0040c020
mov ecx, dword [ebx + 0xaa8]
mov eax, 1
mov dword [esp + 0xc], eax
mov byte [0x4e4f10], 0
test ecx, ecx
je 0x42c386
call fcn.00401700
test eax, eax
mov eax, dword [esp + 0xc]
je 0x42c386
xor ecx, ecx
movzx eax, al
cmp byte [0x4e4f10], cl
cmove eax, ecx
mov dword [esp + 0xc], eax
mov byte [0x4e4f10], 1
test al, al
je 0x42c3e7
mov dword [esp + 0x18], 0
call fcn.0045d030
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0xa74]
mov eax, dword [0x4e9da0]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [ebx + 0xaa8], eax
mov dword [esp + 0x28], 1
sete al
mov dword [esp + 0x24], edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call fcn.0048f4f0
mov edx, dword [esp + 0xc]
movzx ecx, dl
xor edx, edx
cmp eax, 3
cmove ecx, edx
mov al, cl
sub dword [0x4e4af4], 0xc
test al, al
mov eax, dword [ebp + 8]
mov byte [0x4e9af6], 0
jne 0x42c46a
cmp eax, 2
je 0x42c46a
lea ecx, [esp + 0x30]
call fcn.00404850
mov dword [0x4e30ec], esi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x4e4f10], 0
jne 0x42c45a
cmp eax, 7
jne 0x42c45a
mov eax, dword [0x4e7260]
mov ecx, dword [0x4e9da0]
pop edi
pop esi
cmp word [eax], 0
mov eax, 8
mov byte [0x4e4f10], 1
cmovne ecx, dword [ebp + 0xc]
mov dword [0x4e9da0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov byte [0x4e4f10], 0
push eax
call fcn.0042c480
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0042c480
int3
Function at 0x433390
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
mov word [esp + 0xc], ax
mov ebx, ebp
mov ax, word [0x4e4348]
mov word [esp + 0xe], ax
mov dword [esp + 0x10], 0x90028
mov dword [esp + 0x14], 0x3e003c
mov dword [esp + 0x18], 0x3d003a
mov dword [esp + 0x1c], 0x2d002b
mov dword [esp + 0x20], 0x2f002a
mov dword [esp + 0x24], 0x7e0021
mov dword [esp + 0x28], 0x7c0026
mov dword [esp + 0x2c], 0x5b005e
mov dword [esp + 0x30], 0x3f002e
mov dword [esp + 0x34], 0x7b
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
push edi
test ebp, ebp
je 0x433455
movzx eax, word [ebp]
test ax, ax
je 0x43346b
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x433465
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x433430
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x433420
mov esi, dword [esp + 0x10]
xor ebx, ebx
test ebx, ebx
je 0x43346b
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x433485
mov esi, dword [esp + 0x10]
jmp 0x433457
mov ecx, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433470
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x4334a4
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x43349d
cmp eax, 9
jne 0x4334a4
sub edi, 2
cmp edi, ebp
ja 0x433490
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x4334d3
cmp byte [esp + 0x4c], 0
je 0x4334c7
push ebp
push str.This_line_does_not_contain_a_recognized_action.
mov ecx, esi
call fcn.00447e20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
mov esi, dword [esp + 0x44]
push ebx
push ebp
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
Function at 0x4383f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004b79a0
push esi
push edi
push dword [esp + 0x10018]
lea eax, [esp + 0xc]
push dword [esp + 0x10018]
push 0x4d5594
push 0x8001
push eax
call fcn.0049c650
add esp, 0x14
mov edi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x10010]
cmp eax, 0xffffffff
je 0x438479
test al, 0x10
je 0x438479
lea eax, [edi*4 + 0x408]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x438479
lea ecx, [edi*2 + 2]
push ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 4], edi
pop edi
pop esi
add esp, 0x10004
ret 0xc
pop edi
mov dword [esi], 0x4b9c40
pop esi
add esp, 0x10004
ret 0xc
Function at 0x4474f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], str.What
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], 0
push esi
mov esi, 8
test eax, eax
jne 0x447590
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4e35a0]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x4e6574]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4d6da4
mov dword [esp + 0x68], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], 0
test eax, eax
je 0x447659
cmp word [eax], 0
je 0x447659
mov esi, 0xa
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], eax
mov edx, esi
lea ecx, [esp + 8]
call fcn.0048c310
pop esi
add esp, 0xcc
ret 0xc
Function at 0x4484a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004b79a0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x4485b1
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4484e0
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x4484e0
mov ecx, dword [edi + 0x24c]
movzx eax, word [edi + 0x250]
jmp 0x4484e8
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
mov eax, dword [0x4e6574]
push dword [eax + ecx*4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.0049c650
mov edx, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
add edx, edx
cmp word [eax], 0
je 0x44853c
push eax
mov ecx, edx
mov eax, 0x2000
sar ecx, 1
sub eax, ecx
push str._____Specifically:__s_n
push eax
lea eax, [esp + 0x1c]
add eax, edx
push eax
call fcn.0049c650
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x44855d
push 0x4d2f6c
push 0
push eax
mov ecx, edi
call fcn.00447920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x4e4af0
call fcn.0040b160
test al, al
jne 0x448577
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x4485b1
test esi, esi
jne 0x4485a1
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x4485a1
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00447e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 1
push eax
call fcn.00447a80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44e800
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0045be00
mov edi, eax
test edi, edi
je 0x44e8ff
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004a23e0
mov ebx, eax
test ebx, ebx
je 0x44e8ff
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x44e87c
cmp esi, dword [0x4e72e4]
je 0x44e87c
mov ecx, edi
call fcn.004a28c0
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x44e882
push 1
push esi
push dword [0x4e72e4]
call edi
test eax, eax
setne byte [esp + 0xf]
jmp 0x44e882
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x44e8df
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4b9d08
call fcn.004a0a20
mov eax, dword [0x4e30f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x44e8df
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e72e4], eax
je 0x44e8cc
mov eax, dword [0x4e30f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44e8df
mov ecx, dword [0x4e30f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004019f0
cmp byte [esp + 0xf], 0
je 0x44e8f1
push 0
push esi
push dword [0x4e72e4]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x44e92c
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4b9c40
push 0
push 0x4d00fc
mov ecx, esi
call fcn.00447670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x450170
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4e7210]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0045be00
mov ebx, eax
test ebx, ebx
je 0x4501a0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x4501a5
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004a0a20
cmp eax, 1
je 0x4501c3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push 0
push 1
mov ecx, esi
call fcn.00401640
test ebx, ebx
je 0x45024d
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x4501e8
mov edi, dword [esi + 0xc]
jmp 0x4501ea
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x450202
test byte [edi + 0x15], 8
je 0x4501fd
mov ecx, edi
call fcn.00401560
add edi, 0xc
jmp 0x450207
mov edi, 0x4e9af0
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x450217
mov edi, dword [esi + 0xc]
jmp 0x450219
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x450231
test byte [edi + 0x15], 8
je 0x45022c
mov ecx, edi
call fcn.00401560
add edi, 0xc
jmp 0x450236
mov edi, 0x4e9af0
cmp dword [edi], 2
jae 0x450281
push 0
push 1
mov ecx, esi
call fcn.00401640
xor ecx, ecx
mov word [eax], cx
jmp 0x450281
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x45025c
mov edi, dword [esi + 0xc]
jmp 0x45025e
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x450276
test byte [edi + 0x15], 8
je 0x450271
mov ecx, edi
call fcn.00401560
add edi, 0xc
jmp 0x45027b
mov edi, 0x4e9af0
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x45028a
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4502aa
cmp dword [0x4e86dc], 0
je 0x4502aa
push ecx
mov ecx, 0x4e86d0
call fcn.00406180
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x451090
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004b79a0
push esi
mov esi, dword [0x4e7210]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x451156
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004a0a20
test eax, eax
jne 0x4510e7
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401640
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x451114
push eax
push 1
mov ecx, esi
call fcn.00401640
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x45111d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x451142
cmp dword [0x4e86dc], 0
je 0x451142
push ecx
mov ecx, 0x4e86d0
call fcn.00406180
pop edi
pop esi
add esp, 0x10000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x10000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4b9c40
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004a0a20
pop edi
pop esi
add esp, 0x10000
ret 4