joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ea00
Capabilities:
Enumerate pe sections

Disassembly:
push eax
pop eax
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
or esi, esi
je 0x42ea3d
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x42ea35
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x42ea3f
inc edx
add eax, 0x28
cmp edx, esi
jb 0x42ea25
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42f231
Capabilities:
Packed with generic packer

Disassembly:
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
sub ebx, ebx
cmp esi, ebx
je 0x42f259
cmp dword [ebp + 0x10], ebx
je 0x42f259
cmp byte [esi], bl
jne 0x42f25f
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x42f259
xor ecx, ecx
mov word [eax], cx
xor eax, eax
pop esi
pop ebx
leave
ret
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.00420f0b
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], ebx
jne 0x42f290
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x42f27f
movzx ecx, byte [esi]
mov word [eax], cx
cmp byte [ebp - 4], bl
je 0x42f28b
mov eax, dword [ebp - 8]
and dword [eax + 0x70], 0xfffffffd
xor eax, eax
inc eax
jmp 0x42f25b
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [esi]
push eax
call fcn.0042f361
pop ecx
pop ecx
or eax, eax
je 0x42f320
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xac]
cmp ecx, 1
jle 0x42f2d6
cmp dword [ebp + 0x10], ecx
jl 0x42f2d6
xor edx, edx
cmp dword [ebp + 8], ebx
setne dl
push edx
push dword [ebp + 8]
push ecx
push esi
push 9
push dword [eax + 4]
call dword [0x433138]
or eax, eax
mov eax, dword [ebp - 0x10]
jne 0x42f2e6
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0xac]
jb 0x42f301
cmp byte [esi + 1], bl
je 0x42f301
mov eax, dword [eax + 0xac]
cmp byte [ebp - 4], bl
je 0x42f25b
mov ecx, dword [ebp - 8]
and dword [ecx + 0x70], 0xfffffffd
jmp 0x42f25b
call fcn.00423e0e
mov dword [eax], 0x2a
cmp byte [ebp - 4], bl
je 0x42f318
mov eax, dword [ebp - 8]
and dword [eax + 0x70], 0xfffffffd
or eax, 0xffffffff
jmp 0x42f25b
xor eax, eax
cmp dword [ebp + 8], ebx
setne al
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push 1
push esi
push 9
push dword [eax + 4]
call dword [0x433138]
or eax, eax
jne 0x42f27f
jmp 0x42f301
Function at 0x402130
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
lea edi, [ebp - 0x78]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x10], 0x4b
mov byte [ebp - 0xf], 0x45
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xd], 0x4e
mov byte [ebp - 0xc], 0x45
mov byte [ebp - 0xb], 0x4c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0
mov byte [ebp - 0x20], 0x56
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x74
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x41
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x63
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
call fcn.004012f3
add esp, 0xc
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
xor eax, eax
mov ax, word [ecx + 0x14]
lea ecx, [edx + eax + 0x18]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], 0
jmp 0x402200
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x38]
add eax, 0x28
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x28], eax
jge 0x4022e6
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x10], 0
jne 0x402282
add ebx, 0
add ebx, 0
add esp, 0xa
sub esp, 0xa
add ebx, 0
add ebx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x40227d
mov esi, esp
push 4
push 0x1000
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0xc]
push eax
call dword [ebp - 0x24]
cmp esi, esp
call fcn.0042d450
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0042d820
add esp, 0xc
jmp 0x4021ee
add ebx, 0
add ebx, 0
add esp, 0xa
sub esp, 0xa
add ebx, 0
add ebx, 0
mov esi, esp
push 4
push 0x1000
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx + 0xc]
push edx
call dword [ebp - 0x24]
cmp esi, esp
call fcn.0042d450
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0042d4e0
add esp, 0xc
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [edx + 8], eax
jmp 0x4021ee
pop edi
pop esi
pop ebx
add esp, 0x78
cmp ebp, esp
call fcn.0042d450
mov esp, ebp
pop ebp
ret
Function at 0x410340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea edi, [ebp - 0x54]
mov ecx, 0x15
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp esi, esp
call fcn.0042d450
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xffff
and eax, 0xffff
and eax, 0xff
and eax, 0xff
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
and ecx, 0xffff
and ecx, 0xffff
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 8], 0x80000000
jae 0x4103cf
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xffff
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 5
jne 0x4103c6
mov dword [ebp - 4], 2
jmp 0x4103cd
mov dword [ebp - 4], 1
jmp 0x4103fd
cmp dword [ebp - 0xc], 4
jae 0x4103ef
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
and ah, 0x7f
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
jmp 0x4103fd
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x54
cmp ebp, esp
call fcn.0042d450
mov esp, ebp
pop ebp
ret
Function at 0x4105c0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5469a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
push edi
lea edi, [ebp - 0xa0]
mov ecx, 0x25
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00412970
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0049532a
mov byte [ebp - 4], 2
push 0x5cdaf8
push 1
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00461adb
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004e1a26
mov byte [ebp - 0x34], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004956fc
mov ecx, dword [ebp - 0x34]
and ecx, 0xff
test ecx, ecx
je 0x410668
push 0x5cdaf8
lea ecx, [ebp - 0x2c]
call fcn.00495e05
push 0x5cdafc
lea ecx, [ebp - 0x2c]
call fcn.00495e05
push 0
lea ecx, [ebp - 0x2c]
call fcn.004e177a
push eax
lea ecx, [ebp - 0x28]
call fcn.00412ae8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x410777
lea ecx, [ebp - 0x28]
call fcn.0041307c
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x28]
call fcn.00412fd6
test eax, eax
jne 0x4106f7
lea ecx, [ebp - 0x28]
call fcn.004e15d8
test eax, eax
jne 0x4106f7
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041326f
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x54]
call fcn.004e177a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.0042d450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.004956fc
jmp 0x410772
lea ecx, [ebp - 0x28]
call fcn.004e15d8
test eax, eax
je 0x410772
lea ecx, [ebp - 0x28]
call fcn.00412fd6
test eax, eax
jne 0x410772
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041326f
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004958f6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004956fc
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.0049532a
mov dword [ebp - 0x60], eax
call fcn.00401276
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.004e177a
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp esi, esp
call fcn.0042d450
jmp 0x41068b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004956fc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004129ec
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004956fc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xa0
cmp ebp, esp
call fcn.0042d450
mov esp, ebp
pop ebp
ret
Function at 0x411084
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x411183
call fcn.004ee482
mov dword [ebp - 0x10], eax
push pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41112b
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4110fc
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x5fda58
call fcn.00462db5
add esp, 8
xor eax, eax
jmp 0x4111cc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x411123
push 0x146
push str.occmgr.cpp
call fcn.004e5150
test eax, eax
je 0x411123
int3
xor edx, edx
test edx, edx
jne 0x411109
jmp 0x411183
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x41114e
push 0x14e
push str.occmgr.cpp
call fcn.004e5150
test eax, eax
je 0x41114e
int3
xor edx, edx
test edx, edx
jne 0x411134
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x411183
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x411178
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x5fda98
call fcn.00462db5
add esp, 8
jmp 0x411183
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x411154
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x4111aa
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
call dword [edx + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x4111c9
cmp dword [ebp - 8], 0
je 0x4111c9
mov eax, dword [ebp - 8]
push eax
call fcn.004011d1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44fc40
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.00431b60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x44fd0b
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 0x44fd0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x44fcbe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x44fcc9
or bh, 8
and edi, 0x8000000
je 0x44fce4
mov eax, dword [0x61431c]
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 0x44fd0b
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 0x4500e0
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 0x45010b
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 0x45012f
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 0x45014a
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 0x463253
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5478d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004f9790
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable._AFX_DEBUG_STATE.0
push str.AFX.INI
push 1
push str.TraceEnabled
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x6122a4], eax
push str.AFX.INI
push 0
push str.TraceFlags
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x6122a0], eax
cmp dword [0x6122b0], 0
je 0x4632dc
push 0x77
push 0x6007c0
call fcn.004e5150
test eax, eax
je 0x4632dc
int3
xor ecx, ecx
test ecx, ecx
jne 0x4632c2
push 0x463084
call fcn.0042fdc0
add esp, 4
mov dword [0x6122b0], eax
cmp dword [0x6122b4], 0
je 0x46330e
push 0x7a
push 0x6007d0
call fcn.004e5150
test eax, eax
je 0x46330e
int3
xor edx, edx
test edx, edx
jne 0x4632f4
push 0x4631f6
call fcn.004314a0
add esp, 4
mov dword [0x6122b4], eax
push 4
push 2
call fcn.004313c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a2e5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x48a350
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x70
jne 0x48a350
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
and eax, 0x4000
test eax, eax
jne 0x48a350
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x48a350
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jl 0x48a350
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x48a350
mov dword [ebp - 4], 1
jmp 0x48a357
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x48c34d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
call fcn.004ee482
mov dword [ebp - 4], eax
push 5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48c3a6
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x48c3c0
push 0xeb
push str.dlgcore.cpp
call fcn.004e5150
test eax, eax
je 0x48c3c0
int3
xor edx, edx
test edx, edx
jne 0x48c3a6
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0048c41b
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004011d1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48d16e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x40], 0
je 0x48d1c1
call fcn.004ee482
mov dword [ebp - 0x10], eax
push 5
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48d1d4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x48d268
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x48d21f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0x12]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + 0x14]
mov word [ebp - 0x1c], dx
jmp 0x48d235
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0xa]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0xc]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x20]
and ecx, 0x1801
test ecx, ecx
jne 0x48d25b
movsx edx, word [ebp - 0x18]
test edx, edx
jne 0x48d25b
movsx eax, word [ebp - 0x1c]
test eax, eax
jne 0x48d25b
mov dword [ebp - 0x28], 1
jmp 0x48d262
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
jne 0x48d27a
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x44], 0
je 0x48d283
mov ecx, dword [ebp - 4]
push ecx
call fcn.004011d1
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
je 0x48d296
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x48d42f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x48d452
push 0x33c
push str.dlgcore.cpp
call fcn.004e5150
test eax, eax
je 0x48d452
int3
xor eax, eax
test eax, eax
jne 0x48d438
call fcn.004ee482
mov dword [ebp - 8], eax
push 5
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x48d4be
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x48d4a0
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Cannot_find_dialog_template_named__s._n
call fcn.00462db5
add esp, 8
jmp 0x48d4b7
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
call fcn.00462db5
add esp, 8
xor eax, eax
jmp 0x48d5e8
cmp dword [ebp + 0xc], 0
jne 0x48d4ce
mov eax, 1
jmp 0x48d5e8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48d501
push str.Warning:_LoadResource_failed_for_dialog_template._n
push 0x5fd92c
call fcn.00462db5
add esp, 8
mov eax, 1
jmp 0x48d5e8
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0xffff
jne 0x48d52a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x48d532
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004011d1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x14]
and edx, 0x10000000
test edx, edx
je 0x48d594
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x48d579
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Dialog_named__s_must_be_invisible._n
call fcn.00462db5
add esp, 8
jmp 0x48d590
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
call fcn.00462db5
add esp, 8
xor eax, eax
jmp 0x48d5e8
mov eax, dword [ebp - 0x14]
and eax, 0x40000000
test eax, eax
jne 0x48d5e3
mov ecx, dword [ebp + 8]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
test ecx, ecx
je 0x48d5c9
mov edx, dword [ebp + 8]
push edx
push str.ERROR:_Dialog_named__s_must_have_the_child_style._n
call fcn.00462db5
add esp, 8
jmp 0x48d5df
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
push str.ERROR:_Dialog_with_IDD_0x_04X_must_have_the_child_style._n
call fcn.00462db5
add esp, 8
xor eax, eax
jmp 0x48d5e8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8