joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402897
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
jmp 0x4573c0
push 0xffffffffffffffff
push 0x466f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
lea edx, [eax + 0xb]
mov eax, dword [edi]
lea esi, [ecx + 0xb]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x40]
test eax, eax
je 0x45741b
push 0x14
call ebx
push eax
push 0x10
call ebx
push eax
lea eax, [esp + 0x28]
push eax
jmp 0x457431
mov eax, dword [edi + 4]
test eax, eax
je 0x457438
push 0x10
call ebx
push eax
push 0x14
call ebx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [esi]
push 0x12
mov ebp, eax
mov dword [esp + 0x44], edx
call ebx
push eax
mov eax, dword [esp + 0x44]
mov ecx, esi
call dword [eax + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0x46c664
mov ecx, dword [esi + 8]
push 0x58
push ecx
mov dword [esp + 0x40], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x60
push 0x3c
call dword [sym.imp.KERNEL32.dll_MulDiv]
push ebx
push str.Marlett
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFont::CreatePointFont
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0x30]
push 0x479740
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [eax]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov ebx, dword [esi]
mov edi, dword [eax - 8]
add ecx, 2
push edi
add edx, 2
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x48], 1
call dword [ebx + 0x64]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x40]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x38]
mov dword [esp + 0x18], 0x46c67c
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x4028c4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x43fa30
push 0xffffffffffffffff
push 0x465460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 8]
call fcn.0045f748
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0045f748
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0045f748
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.00401fdc
mov ecx, ebp
mov byte [esp + 0x30], 3
call fcn.00401b40
mov esi, dword [ebp + 0xbeac]
mov ecx, dword [0x479cbc]
mov eax, 1
inc esi
cmp ecx, eax
mov dword [esp + 0x10], eax
jl 0x43fb44
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
push edi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push str.Channel_d
push ecx
call sub.MFC42.DLL_CString::Format
mov edi, 1
add esp, 0xc
cmp esi, edi
jl 0x43fb18
lea edx, [esp + 0x1c]
push edi
push edx
lea ecx, [esp + 0x2c]
call fcn.004011c2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 4
call fcn.0045f76c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
je 0x43fb18
inc edi
cmp edi, esi
jle 0x43fad4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call ebx
add esp, 8
test eax, eax
jne 0x43fb42
mov eax, dword [esp + 0x18]
mov ecx, dword [0x479cbc]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x43fab4
pop edi
pop ebx
lea ecx, [esp + 8]
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00401474
push esi
lea ecx, [esp + 0x20]
call fcn.00402a81
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x24]
call fcn.004011c2
mov ecx, dword [ebp + 0x9f94]
mov eax, dword [eax]
push 0xffff0002
push ecx
push 0
push 0
push 0
push 0
push 0
push eax
push 1
lea ecx, [ebp + 0x9f24]
mov byte [esp + 0x54], 5
call sub.MFC42.DLL_CTreeCtrl::InsertItem
lea ecx, [esp + 0x14]
mov dword [ebp + esi*4 + 0x7dc0], eax
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
mov ecx, ebp
call fcn.0040255e
mov ecx, ebp
call fcn.00401b54
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.004022fc
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x44ace7
Capabilities:
Read .ini file

Disassembly:
jmp 0x44ace0
mov eax, dword [esp + 4]
sub esp, 0x40
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x28]
push str.data_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [0x479cac]
add esp, 0xc
lea eax, [esp + 4]
lea ecx, [esp + 0x24]
push edx
push 0x20
push eax
push 0
push ecx
push str.FreqRange
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x44ad3d
push 8
lea edx, [esp + 8]
push 0
push edx
call fcn.00401a37
mov eax, dword [esp + 0x10]
add esp, 0xc
mov dword [esi + 0x2068], eax
mov ecx, esi
call fcn.0040137f
mov ecx, esi
call fcn.00401357
pop esi
add esp, 0x40
ret 4
Function at 0x429e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x429e70
xor eax, eax
jmp 0x42a00d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x429fce
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4e9dc0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4e9dc0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4e9dc0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4e9dc0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4e9dc0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4e9dc0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4e9dc0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4e9dc0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x429e79
cmp dword [ebp + 0x10], 0
je 0x42a007
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4e9dc0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x429fd4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x42a010
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4e9dc0]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4e9dc0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x42e7d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4e8020]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4e8020]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x470830
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x470841
xor eax, eax
jmp 0x470995
push 1
push 0x44
call fcn.00452ba0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47085d
xor eax, eax
jmp 0x470995
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 5]
mov byte [eax + 5], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00470470
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004705b0
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004702f0
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00470470
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.004702f0
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00470470
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 4]
mov byte [eax + 4], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00470830
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.004702f0
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push ecx
call fcn.004702f0
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], 0xffffffff
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 6]
mov byte [edx + 6], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 7]
mov byte [edx + 7], cl
mov edx, dword [ebp - 4]
mov byte [edx + 8], 0
mov eax, dword [ebp - 4]
mov byte [eax + 9], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], 0xffffffff
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x425d1e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418afb
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x425d56
xor eax, eax
jmp 0x425d82
cmp esi, dword [ebp - 4]
je 0x425d7f
cmp dword [ebp + 0xc], 0
je 0x425d7f
push dword [edi + 0x9c]
call fcn.0042592c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00416a15
pop ecx
pop ecx
cmp esi, eax
je 0x425d52
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x54f56b9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x29ef79b8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401c25
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.004042f0
mov dword [esp], eax
mov eax, dword [0x40b490]
push eax
push eax
call fcn.004063e2
lea ecx, [esp + 8]
pop edx
call fcn.004030f0
push dword [esp]
push 0
push 0x40a00d
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [0x40b490]
push eax
push eax
push dword [esp + 8]
call fcn.00404380
lea ecx, [0x40b1fc]
pop edx
call fcn.004030f0
push dword [esp]
call fcn.00404360
push dword [0x40b1fc]
call fcn.004063d0
push dword [0x40b1fc]
call fcn.00406443
mov eax, dword [0x40b490]
push eax
push eax
call fcn.00406305
lea ecx, [0x40b1f4]
pop edx
call fcn.004030f0
mov eax, dword [esp + 0x14]
call fcn.004043d0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x401d33
mov ebx, dword [esp + 0x18]
inc ebx
mov eax, ebx
call fcn.004043d0
mov ebx, eax
cmp ebx, 1
jne 0x401d0c
push dword [0x40b1f4]
call sub.SHLWAPI.dll_PathQuoteSpacesA
push dword [0x40b490]
mov edx, 0x40a00e
call fcn.00407a20
mov edx, dword [0x40b1f4]
call fcn.00407a20
lea ecx, [0x40b1f8]
pop edx
call fcn.004030f0
mov edx, dword [0x40b1fc]
push dword [0x40b490]
call fcn.00407a20
lea ecx, [0x40b1f4]
pop edx
call fcn.004030f0
mov dword [esp + 0xc], 2
jmp 0x401d45
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401d45
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
mov eax, ebx
call fcn.004043d0
mov dword [0x40b1ec], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
mov eax, ebx
call fcn.004043d0
mov dword [0x40b1f0], eax
mov eax, 1
jmp 0x401d78
push dword [esp + 4]
call fcn.00407a80
add esp, 0xc
pop ebx
ret 4
Function at 0x4020fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00403100
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.DLL_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40214b
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_LoadResource
mov dword [0x40b200], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x40b23c], eax
mov eax, dword [esp + 4]
jmp 0x402153
push dword [esp]
call fcn.00407a80
add esp, 8
ret 8

Function at 0x4038b5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x4038cd
push dword [esp + 4]
push 0x40384e
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x40390a
push esi
mov esi, dword [0x40b29c]
test esi, esi
je 0x403909
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403901
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x40b29c
call fcn.00406d4d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4038da
pop edi
pop ebx
pop esi
ret 4
Function at 0x404207
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push edi
push 0x64
pop edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call esi
test eax, eax
je 0x4042ab
mov eax, dword [ebp - 0xc]
dec eax
je 0x40428e
dec eax
jne 0x4042ab
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40428a
dec eax
je 0x404286
dec eax
je 0x40426c
dec eax
jne 0x4042ab
push 0x46
pop edi
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x9c
call esi
test eax, eax
je 0x4042ab
cmp byte [ebp - 0x1e], 1
je 0x4042ab
push 0x4b
jmp 0x4042aa
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x404282
dec eax
je 0x40427e
dec eax
jne 0x4042ab
push 0x41
jmp 0x4042aa
push 0x3c
jmp 0x4042aa
push 0x32
jmp 0x4042aa
push 0x14
jmp 0x4042aa
push 5
jmp 0x4042aa
cmp dword [ebp - 0x14], 0
je 0x4042a8
cmp dword [ebp - 0x14], 0xa
je 0x4042a4
cmp dword [ebp - 0x14], 0x5a
jne 0x4042ab
push 0x28
jmp 0x4042aa
push 0x1e
jmp 0x4042aa
push 0xa
pop edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x404b2c
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40b504]
call fcn.00406bc0
mov edi, eax
test edi, edi
je 0x404b8e
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404b55
push dword [esp + 0xc]
push edi
call eax
jmp 0x404b8e
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00407c80
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00407d20
pop esi
pop ebx
pop edi
ret 8
Function at 0x40626c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x4062da
push 0x11
call esi
test al, al
js 0x4062da
push 0x10
call esi
test al, al
js 0x4062da
push 0x12
call esi
test al, al
js 0x4062da
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4062da
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x4062fe
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x4062fe
dec eax
push eax
push dword [0x40b50c]
call fcn.00406bc0
mov eax, dword [eax + 8]
jmp 0x406300
xor eax, eax
pop esi
leave
ret 4

Function at 0x406443
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x4064b6
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x406498
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x20
je 0x406496
cmp dl, 0x5c
je 0x406496
cmp dl, 0x2f
jne 0x4064a2
mov eax, ecx
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x406482
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jmp 0x4064b8
xor eax, eax
leave
ret 4

Function at 0x4064c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4064f5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x406780
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
mov dword [esp + 4], eax
je 0x4067c9
cmp byte [esi], al
je 0x4067c9
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40b51c]
push eax
push ecx
call fcn.00406bc0
test eax, eax
je 0x4067f7
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x4067d0
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4067b5
sub ecx, edi
push ecx
push esi
push eax
call fcn.00406860
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4067d0
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8