joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
movsx esi, word [ebp]
mov eax, dword [ebp + 4]
mov ecx, 0x44b5d4
test esi, esi
jle 0x407c42
mov edi, esi
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec edi
jne 0x407c39
cmp word [0x44c32e], 0
je 0x407c85
test byte [ebp + 0x14], 1
je 0x407c85
xor al, al
mov edx, 0x44b5d4
test esi, esi
jle 0x407c75
push ebx
mov edi, esi
mov bl, byte [edx]
xor al, bl
inc edx
dec edi
jne 0x407c60
cmp al, 0x11
pop ebx
je 0x407c75
cmp al, 0x13
je 0x407c75
test al, al
jne 0x407c82
mov dl, byte [ecx - 1]
xor al, 0x20
mov byte [ecx], dl
mov byte [ecx - 1], 0x20
inc esi
inc ecx
mov byte [ecx], al
inc esi
push esi
push 0x44b5d4
call fcn.0040e320
add esp, 8
cmp eax, 8
jne 0x407ca1
pop edi
pop esi
mov eax, 8
pop ebp
ret
cmp word [0x44c32c], 0
je 0x407d10
mov ax, word [ebp + 0x14]
and eax, 0x100
test ax, ax
je 0x407d10
call fcn.0040e0f0
mov ecx, dword [0x44c4a0]
cmp al, byte [ecx]
je 0x407d10
cmp word [0x44c556], 0
mov edi, 1
jl 0x407d07
push esi
push 0x44b5d4
call fcn.0040e320
add esp, 8
cmp eax, 8
je 0x407c98
call fcn.0040e0f0
mov edx, dword [0x44c4a0]
cmp al, byte [edx]
je 0x407d10
movsx eax, word [0x44c556]
mov ecx, edi
inc edi
cmp ecx, eax
jle 0x407cd7
pop edi
pop esi
mov eax, 0xe
pop ebp
ret
pop edi
pop esi
mov eax, 0xd
pop ebp
ret

Function at 0x4086c0
Capabilities:
Encode data using xor

Disassembly:
movsx eax, word [0x44c32e]
sar eax, 8
push esi
push eax
call fcn.0040e100
mov esi, dword [esp + 0x10]
add esp, 4
xor cl, cl
test esi, esi
jle 0x4086ec
mov edx, dword [esp + 8]
push ebx
mov bl, byte [edx]
xor cl, bl
inc edx
dec esi
jne 0x4086e3
pop ebx
cmp al, cl
pop esi
jne 0x4086f7
mov eax, 2
ret
cmp al, 0xff
jne 0x40870b
cmp cl, 0x11
je 0x408705
cmp cl, 0x13
jne 0x40870b
mov eax, 2
ret
mov eax, 3
ret
Function at 0x40a820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x437ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x1818]
call fcn.00409900
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 0x17c4], eax
mov dword [esi + 0x1814], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x1810], eax
mov al, byte [ebp + 0xc]
mov dword [esi + 0x38], 0x88e368f1
mov dword [esi + 0x17e8], ebx
mov dword [esi + 0x17e0], ebx
mov dword [esi + 0x1800], ebx
mov dword [esi + 0x17f8], ebx
cmp al, bl
mov dword [esp + 0x18], ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], 1
mov byte [esi + 0xd], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x17c0], bl
mov dword [esi + 0x17c8], ebx
mov dword [esi + 0x17cc], 0x6e
mov dword [esi + 0x17d0], ebx
mov dword [esi + 0x34], 0x3fd00000
mov dword [esi + 0x3c], 0x3ee4f8b5
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x17ec], ebx
mov dword [esi + 0x17e4], ebx
mov dword [esi + 0x1804], ebx
mov dword [esi + 0x17fc], ebx
mov dword [esi + 0x17d4], 0xea60
mov dword [esi + 0x17d8], 0xfa
je 0x40a95a
cmp dword [0x44b8a0], ebx
jne 0x40a95a
push 0x308
call fcn.0042bac6
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x40a948
push ebx
mov ecx, eax
call fcn.00408ed0
jmp 0x40a94a
xor eax, eax
mov ecx, eax
mov byte [esp + 0x18], bl
mov dword [0x44b8a0], eax
call fcn.00409760
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c010
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x437f28
push eax
mov al, byte [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x1c
test al, al
push ebx
push esi
push edi
mov esi, ecx
je 0x40c200
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40c200
push eax
call fcn.0041a409
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x28]
add esp, 4
xor edi, edi
test eax, eax
mov dword [esp + 0xc], eax
je 0x40c085
fild dword [esp + 0x38]
fidiv dword [esp + 0xc]
fmul qword [0x43b000]
call fcn.0041a124
mov edi, eax
cmp edi, 0x64
jle 0x40c07f
mov edi, 0x64
jmp 0x40c085
test edi, edi
jge 0x40c085
xor edi, edi
mov eax, dword [esi + 0x1810]
test eax, eax
je 0x40c24c
mov eax, dword [esi + 0x2c]
lea ecx, [esp + 0x18]
push eax
push 0x44640c
push ecx
call fcn.00419b3c
mov ecx, dword [esi + 0x1810]
add esp, 0xc
lea edx, [esp + 0x18]
add ecx, 0x19c
push edx
call fcn.0042bbd0
mov eax, dword [esi + 0x1810]
push 0
add eax, 0x214
push edi
push 0x402
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
push ecx
call fcn.0042975a
mov edx, dword [0x44b6d4]
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
lea ecx, [esp + 0x14]
mov dword [eax], edx
lea eax, [esp + 0x10]
push eax
call fcn.0040c260
mov edi, dword [esp + 0xc]
mov eax, 0x91a2b3c5
imul edi
add edx, edi
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, edx
lea eax, [ecx + ecx*2]
lea ebx, [eax + eax*4]
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
shl ebx, 2
add edx, eax
mov eax, dword [esi + 0x1814]
sub edx, ebx
cmp edx, eax
je 0x40c24c
mov eax, dword [0x446b48]
mov dword [esp + 0x38], eax
mov eax, 0xc22e4507
push edx
imul edi
add edx, edi
mov dword [esp + 0x34], 0
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [esp + 0x3c]
lea edx, [edx + edx*2]
shl edx, 3
sub ecx, edx
push ecx
push str._02d:_02d
push eax
call fcn.0042917e
mov ecx, dword [esp + 0x48]
add esp, 0x10
push ecx
mov ecx, dword [esi + 0x1810]
add ecx, 0xe8
call fcn.0042bbd0
mov ecx, dword [esp + 0xc]
mov eax, 0x91a2b3c5
imul ecx
add edx, ecx
mov dword [esp + 0x30], 0xffffffff
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea edx, [eax + eax*4]
mov eax, 0x88888889
shl edx, 2
mov edi, edx
imul ecx
add edx, ecx
lea ecx, [esp + 0x38]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
sub edx, edi
mov dword [esi + 0x1814], edx
call fcn.0042ab0d
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
mov eax, dword [esi + 0x1810]
test eax, eax
je 0x40c24c
push 0x44628c
lea ecx, [eax + 0x19c]
call fcn.0042bbd0
mov ecx, dword [esi + 0x1810]
push 0
push 0
push 0x402
mov edx, dword [ecx + 0x230]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x1810]
push str.00:00
add ecx, 0xe8
call fcn.0042bbd0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4
Function at 0x40c520
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [esi + 0x14], 5
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
jle 0x40c571
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild dword [ebp + 0xc]
fmul qword [0x43b010]
fstp qword [esp + 0x18]
push 1
lea edx, [esp + 0x18]
mov dword [esi + 0xc00], ebx
mov ecx, dword [0x44c700]
push 0xbb8
lea eax, [esi + 0x48]
push edx
push eax
push ecx
mov byte [esp + 0x27], 1
mov dword [esp + 0x28], ebx
call fcn.004103d0
mov edx, dword [esp + 0x28]
mov edi, dword [esi + 0xc00]
add esp, 0x14
add edi, edx
cmp eax, 2
mov dword [esi + 0xc00], edi
mov ecx, edi
jne 0x40c65e
mov edi, dword [ebp + 8]
cmp ecx, edi
je 0x40c673
cmp dword [ebp + 0xc], ebx
jle 0x40c612
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x40c612
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub ecx, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
sbb edx, eax
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
fild qword [esp + 0x38]
fdivp st(1)
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
je 0x40c673
mov byte [esp + 0x13], bl
jmp 0x40c618
cmp byte [esp + 0x13], bl
jne 0x40c673
mov ecx, dword [esi + 0xc00]
push 1
lea eax, [esp + 0x18]
push 0xbb8
push eax
mov eax, dword [0x44c700]
lea edx, [ecx + esi + 0x48]
mov dword [esp + 0x20], ebx
push edx
push eax
call fcn.004103d0
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0xc00]
add esp, 0x14
add edx, ecx
cmp eax, 2
mov dword [esi + 0xc00], edx
mov ecx, edx
je 0x40c5bf
push ebx
push 6
mov ecx, esi
call fcn.0040be90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0xc00], edi
jne 0x40c686
mov ecx, esi
call fcn.0040a980
test eax, eax
jne 0x40c68d
mov dword [esi + 0x14], 5
mov eax, dword [esi + 0xc00]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ddc0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x438008
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0x1c], eax
mov dword [esi], 0x43b020
mov ecx, dword [0x446b48]
mov dword [esp + 0x1c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
push 0x11
push eax
mov dword [esp + 0x24], 0
call edi
push eax
push eax
lea ecx, [esp + 0x24]
call fcn.0042af3d
mov edx, dword [esi + 0x1c]
push eax
push 0x11
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.0042af8c
mov eax, dword [esp + 0x1c]
push eax
call fcn.004197f9
mov ecx, dword [esi + 0x1c]
add esp, 4
mov dword [esi + 4], eax
push 0
push 0
push 0x12
push ecx
call edi
push eax
push eax
lea ecx, [esp + 0x24]
call fcn.0042af3d
mov edx, dword [esi + 0x1c]
push eax
push 0x12
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.0042af8c
mov eax, dword [esp + 0x1c]
push eax
call fcn.004197f9
mov ecx, dword [esi + 0x1c]
add esp, 4
mov dword [esi + 8], eax
push 0
push 0
push 0x10
push ecx
call edi
push eax
push eax
lea ecx, [esp + 0x24]
call fcn.0042af3d
mov edx, dword [esi + 0x1c]
push eax
push 0x10
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.0042af8c
mov eax, dword [esp + 0x1c]
push eax
call fcn.004197f9
mov ecx, dword [esi + 0x1c]
add esp, 4
mov dword [esi + 0xc], eax
push 0
push 0
push 0xe
push ecx
call edi
mov ebx, eax
push ebx
call fcn.0042bac6
mov edx, dword [esi + 0x1c]
add esp, 4
mov dword [esi + 0x10], eax
push ebx
push eax
push 0xe
push edx
call edi
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xf
push eax
call edi
mov ebx, eax
push ebx
call fcn.0042bac6
mov ecx, dword [esi + 0x1c]
add esp, 4
mov dword [esi + 0x14], eax
push ebx
push eax
push 0xf
push ecx
call edi
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x1010
push edx
call edi
push eax
push eax
lea ecx, [esp + 0x24]
call fcn.0042af3d
push eax
mov eax, dword [esi + 0x1c]
push 0x1010
push eax
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.0042af8c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004197f9
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esp + 0x14], 0xffffffff
call fcn.0042ab0d
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x40e350
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4380a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x446b48]
push esi
mov dword [esp + 4], eax
mov eax, dword [0x44c700]
mov cl, byte [esp + 0x18]
lea edx, [esp + 0x18]
push 1
push edx
push eax
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], 0
call fcn.0040fd10
mov esi, eax
add esp, 0xc
cmp esi, 1
je 0x40e3e1
push 1
call fcn.0040e410
add esp, 4
lea ecx, [esp + 4]
push esi
push 0xd8
push ecx
call fcn.00429191
mov edx, dword [esp + 0x10]
add esp, 0xc
push 0
push 0
push edx
call fcn.00431cd2
mov ecx, dword [0x44b258]
push 1
call fcn.0042c4c7
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042ab0d
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40fbc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4381d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x446b48]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x20], 1
call fcn.0042ac46
lea ecx, [esp + 0xc]
lea edx, [esp + 0x24]
push ecx
push str.._
push edx
call fcn.0042ae16
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.0042ac46
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.0042ab0d
mov eax, dword [esp + 0xc]
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x30]
or edi, 0xffffffff
cmp eax, edi
mov dword [esi], eax
jne 0x40fc67
push edi
push ebx
push 0xe1
call fcn.00431d0a
jmp 0x40fcd6
mov ecx, dword [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x40fc88
push edi
push ebx
push 0xe2
call fcn.00431d0a
mov edx, dword [esi]
push edx
jmp 0x40fcce
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x40fcd6
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x7a5c
call fcn.00408d30
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push eax
call fcn.00431cd2
push edi
push ebx
push 0xe2
call fcn.00431d0a
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.0042ab0d
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], edi
call fcn.0042ab0d
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x421e3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44a478
cmp edx, dword [eax]
je 0x421e5f
add eax, 8
inc ecx
cmp eax, 0x44a508
jl 0x421e50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44a478]
jne 0x421f8d
mov eax, dword [0x44ebe0]
cmp eax, 1
je 0x421f67
test eax, eax
jne 0x421e90
cmp dword [0x4479b4], 1
je 0x421f67
cmp edx, 0xfc
je 0x421f8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421ec7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00421f90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041b6c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x421f0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041b6c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43e314
push edi
call fcn.00423650
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00421f90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00421fa0
lea eax, [ebp - 0xa0]
push 0x43e2f4
push eax
call fcn.00421fa0
push dword [esi + 0x44a47c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00421fa0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00424345
add esp, 0x2c
pop edi
jmp 0x421f8d
lea eax, [ebp + 8]
lea esi, [esi + 0x44a47c]
push 0
push eax
push dword [esi]
call fcn.0041b6c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x428610
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041a150
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4286db
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4286db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42868e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x428699
or bh, 8
and edi, 0x8000000
je 0x4286b4
mov eax, dword [0x45033c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4286db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x428adb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x428aff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x428b1a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42bfe6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42c008
cmp dword [edi + 0x3c], 0
jne 0x42c008
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004338c1
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042c035
pop edi
pop esi
pop ebx
ret 8

Function at 0x42d631
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42d669
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042afb4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042af8c
jmp 0x42d675
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x42eb82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42ebc4
call fcn.004338c1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42ebc4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42ebbb
xor eax, eax
jmp 0x42ebcc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042ebd2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4342a5
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 0x4342d3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4342f1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043420b
jmp 0x4342f1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4342f1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043420b
test edi, edi
mov eax, edi
jne 0x4342db
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402e63
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x476ae4]
mov ecx, dword [0x476978]
sub esp, 0x808
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402f00
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x476ae4], 0x5d
jne 0x402ef2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x402360
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push edi
call fcn.00402611
add edi, 8
dec ebx
jne 0x402e87
pop edi
pop ebx
pop esi
leave
ret