joyce8/EMBER2024-capa huggingface dataset:
Function at 0x601720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6018c8
sub esp, 0x48
movzx eax, word [esp + 0x78]
cmp ax, 0x303
jb 0x60174c
movzx ecx, byte [esp + 0x80]
jmp 0x601759
movzx ecx, byte [esp + 0x80]
cmp cl, 0xe4
jne 0x601791
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x6018af
cmp cl, 0xe4
je 0x601770
cmp ax, 0x303
jmp 0x601795
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x48
ret
cmp ax, 0x303
jae 0x601823
cmp cl, 0xe3
jne 0x6017ed
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov eax, dword [eax + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
add esp, 0x48
ret
lea edi, [esp]
lea esi, [esp + 0x4c]
call fcn.0047786e
call fcn.00601400
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
add esp, 0x48
ret
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.0052eb20
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0x1c]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
call edx
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
add esp, 0x48
ret
lea eax, [0x6c0080]
mov dword [esp], eax
lea eax, [0x733d78]
mov dword [esp + 4], eax
call fcn.00470a40
nop
call fcn.00475ee0
jmp fcn.00601720
Function at 0x60ef80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x60efff
sub esp, 0xc
lea eax, [0x6c42e0]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0060eed0
mov eax, dword [esp + 8]
xor ecx, ecx
jmp 0x60efc2
inc ecx
cmp ecx, 0x100
jge 0x60efd4
mov edx, dword [eax + ecx*4]
mov ebx, 1
jmp 0x60eff8
mov dword [esp + 0x14], eax
add esp, 0xc
ret
mov ebp, edx
and ebp, 0xff
shr edx, 8
xor edx, dword [eax + ebp*4]
mov ebp, ebx
shl ebx, 0xa
lea esi, [eax + ebx]
mov dword [esi + ecx*4], edx
lea ebx, [ebp + 1]
cmp ebx, 8
jl 0x60efdc
jmp 0x60efc1
call fcn.00475ee0
jmp fcn.0060ef80
Function at 0x61c050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x61c200
sub esp, 0x70
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x38]
mov ebx, dword [eax + 0x3c]
mov byte [esp], 7
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.0061c900
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test eax, eax
jne 0x61c1f0
mov dword [esp + 0x34], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.004773db
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0061ba30
movzx ecx, byte [esp + 0x20]
mov byte [esp + 0x2f], cl
lea edi, [esp + 0x5c]
lea esi, [esp + 0xc]
call fcn.004778be
lea edi, [esp + 0x3c]
lea esi, [esp + 0x5c]
call fcn.004778be
movzx ecx, byte [esp + 0x2f]
test cl, cl
je 0x61c196
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
mov dword [edx + 0x38], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 0x3c], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x61c12e
mov ecx, dword [esp + 0x50]
jmp 0x61c13f
call fcn.004772f0
mov ecx, dword [esp + 0x50]
mov dword [edi], ecx
mov ebx, dword [edx + 0x34]
mov dword [edi + 4], ebx
mov dword [edx + 0x34], ecx
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.004773db
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ebx
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebx
mov dword [esp], edx
lea edi, [esp + 4]
lea esi, [esp + 0x5c]
call fcn.004778be
call fcn.0061c6d0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
add esp, 0x70
ret
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.0040b400
mov eax, dword [esp + 4]
lea ecx, [0x734a70]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x6d6000]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.0040b2d0
mov eax, dword [esp + 8]
lea ecx, [0x734a60]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x70
ret
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x70
ret
call fcn.00475ee0
jmp fcn.0061c050
Function at 0x632b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x632cf5
sub esp, 0x58
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
test ecx, ecx
jne 0x632b25
xor eax, eax
jmp 0x632b44
mov eax, dword [eax + 4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x58
ret
mov eax, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
test edx, edx
setne dl
test ecx, ecx
setne cl
or edx, ecx
test dl, dl
je 0x632bc8
call fcn.004bc310
lea edi, [esp + 0x44]
lea esi, [esp]
call fcn.004778be
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x38], ecx
lea edi, [esp]
lea esi, [esp + 0x44]
call fcn.004778be
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
call fcn.004b6af0
lea edi, [esp + 0x44]
lea esi, [esp + 0x1c]
call fcn.004778be
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov eax, dword [eax + 0x24]
mov dword [esp], ecx
lea edi, [esp + 4]
lea esi, [esp + 0x44]
call fcn.004778be
call eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ecx, dword [ecx + 0x28]
mov dword [esp], edx
mov edx, dword [esp + 0x78]
sub edx, eax
mov ebp, dword [esp + 0x74]
sub ebp, eax
mov edi, edx
neg edx
sar edx, 0x1f
and edx, eax
mov ebx, dword [esp + 0x70]
add edx, ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
call ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x74]
cmp ebp, ecx
jle 0x632c64
test eax, eax
jg 0x632c2d
xor eax, eax
jmp 0x632c66
mov eax, dword [0x8a71e8]
mov ecx, dword [0x8a71ec]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.00480aa0
movzx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x74]
jmp 0x632c66
xor eax, eax
test al, al
jne 0x632b42
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
test esi, esi
xchg esi, ebx
setne bl
xchg esi, ebx
test ebp, ebp
xchg ebp, ebx
setne bl
xchg ebp, ebx
or esi, ebp
xchg esi, eax
test al, al
xchg esi, eax
je 0x632cbf
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x34], ecx
mov dword [esp], edx
lea edi, [esp + 4]
xor eax, eax
call fcn.004773db
mov ecx, dword [esp + 0x34]
call ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x6c]
mov dword [eax], edx
mov ebp, dword [0x8c88d8]
test ebp, ebp
je 0x632cdc
call fcn.004772f0
mov dword [edi], ebx
mov ebp, dword [eax + 4]
mov dword [edi + 4], ebp
mov dword [eax + 4], ebx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebx
add esp, 0x58
ret
call fcn.00475ee0
jmp fcn.00632b00
Function at 0x467900
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
jmp 0x46791a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x467921
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467910
mov eax, 1
add ebx, ebx
jne 0x467933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x467944
jne 0x467963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467963
dec eax
add ebx, ebx
jne 0x467950
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x467928
add ebx, ebx
jne 0x46795f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4679b5
xor ecx, ecx
sub eax, 3
jb 0x46797b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4679ea
sar eax, 1
mov ebp, eax
jmp 0x467986
add ebx, ebx
jne 0x467986
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467954
inc ecx
add ebx, ebx
jne 0x467994
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467954
add ebx, ebx
jne 0x4679a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x467996
jne 0x4679b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x467996
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4679d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4679c6
jmp 0x467916
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4679d4
add edi, ecx
jmp 0x467916
pop esi
mov edi, esi
mov ecx, 0x764
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4679f2
cmp byte [edi], 5
jne 0x4679f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4679f7
lea edi, [esi + 0x65000]
mov eax, dword [edi]
or eax, eax
je 0x467a6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6ab50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6abb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x467a24
mov ecx, edi
jns 0x467a53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6abb8]
or eax, eax
je 0x467a69
mov dword [ebx], eax
add ebx, 4
jmp 0x467a41
call dword [esi + 0x6abc8]
mov ebp, dword [esi + 0x6abbc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x467aa3
sub esp, 0xffffff80
jmp 0x40ccef
Function at 0x100026f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push str.VirtualAlloc
mov edi, esp
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.1001fd40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1001fd40
mov dword [0x101eb85c], eax
pop edi
pop esi
pop ebx
add esp, 0x40
cmp ebp, esp
call fcn.1001fd40
mov esp, ebp
pop ebp
ret

Function at 0x10002850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push str.VirtualProtect
mov edi, esp
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.1001fd40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1001fd40
mov dword [0x101eb854], eax
pop edi
pop esi
pop ebx
add esp, 0x40
cmp ebp, esp
call fcn.1001fd40
mov esp, ebp
pop ebp
ret
Function at 0x10004d14
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 0x10004e13
call fcn.100d9f32
mov dword [ebp - 0x10], eax
push 0xf0
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 0x10004dbb
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 0x10004d8c
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x101d9158
call fcn.10053295
add esp, 8
xor eax, eax
jmp 0x10004e5c
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 0x10004db3
push 0x146
push str.occmgr.cpp
call fcn.100d7130
test eax, eax
je 0x10004db3
int3
xor edx, edx
test edx, edx
jne 0x10004d99
jmp 0x10004e13
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x10004dde
push 0x14e
push str.occmgr.cpp
call fcn.100d7130
test eax, eax
je 0x10004dde
int3
xor edx, edx
test edx, edx
jne 0x10004dc4
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x10004e13
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x10004e08
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x101d9198
call fcn.10053295
add esp, 8
jmp 0x10004e13
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x10004de4
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x10004e3a
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 0x10004e59
cmp dword [ebp - 8], 0
je 0x10004e59
mov eax, dword [ebp - 8]
push eax
call fcn.10004640
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 0x100422d0
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.10024850
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x1004239b
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 0x1004239b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x1004234e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x10042359
or bh, 8
and edi, 0x8000000
je 0x10042374
mov eax, dword [0x101ef7fc]
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 0x1004239b
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 0x10042770
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 0x1004279b
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 0x100427bf
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 0x100427da
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 0x10053733
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10138a49
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.100eb770
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 [0x101ed774], eax
push str.AFX.INI
push 0
push str.TraceFlags
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x101ed770], eax
cmp dword [0x101ed780], 0
je 0x100537bc
push 0x77
push 0x101db918
call fcn.100d7130
test eax, eax
je 0x100537bc
int3
xor ecx, ecx
test ecx, ecx
jne 0x100537a2
push 0x10053564
call fcn.10022390
add esp, 4
mov dword [0x101ed780], eax
cmp dword [0x101ed784], 0
je 0x100537ee
push 0x7a
push 0x101db928
call fcn.100d7130
test eax, eax
je 0x100537ee
int3
xor edx, edx
test edx, edx
jne 0x100537d4
push 0x100536d6
call fcn.10023f40
add esp, 4
mov dword [0x101ed784], eax
push 4
push 2
call fcn.10023e60
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 0x1007c435
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x1007c4a0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x70
jne 0x1007c4a0
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 0x1007c4a0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x1007c4a0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jl 0x1007c4a0
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x1007c4a0
mov dword [ebp - 4], 1
jmp 0x1007c4a7
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x1007e49d
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.100d9f32
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 0x1007e4f6
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 0x1007e510
push 0xeb
push str.dlgcore.cpp
call fcn.100d7130
test eax, eax
je 0x1007e510
int3
xor edx, edx
test edx, edx
jne 0x1007e4f6
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.1007e56b
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.10004640
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