joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101f98b
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x28
push 0x1047c80
call fcn.01010c14
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
cmp dword [ebp + 8], esi
je 0x101fb1e
cmp dword [ebp + 0xc], 0xffffffff
je 0x101fb1e
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x101f9d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x101fb21
cmp dword [ebp - 0x34], esi
je 0x101f9df
push 0xd
jmp 0x101fb20
push esi
push dword [ebp - 0x38]
push esi
push 2
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, esi
je 0x101f9c6
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, esi
jne 0x101fa22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x101fb21
mov dword [ebp - 4], esi
push dword [ebp + 8]
push ebx
call fcn.0101f01b
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x101fa88
push 0x78
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x101fa88
push 0x78
push esi
mov edi, eax
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [edi + 0x10], 0x10
push edi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call fcn.0101f135
cmp eax, esi
jne 0x101faf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push edi
call fcn.0101ef07
mov dword [ebp - 0x1c], esi
jmp 0x101faf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x101faf2
mov dword [ebp - 4], 0xfffffffe
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], esi
je 0x101fb19
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
jmp 0x101fb2a
push 0x57
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
call fcn.01010c59
ret 8
Function at 0x1020e9e
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 8], 0xffffffff
push ebx
xor ebx, ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], ebx
je 0x102105a
cmp dword [ebp + 0xc], ebx
je 0x102105a
cmp dword [ebp + 0x10], 0xffffffff
je 0x102105a
cmp dword [ebp + 0x14], ebx
je 0x102105a
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x102105a
cmp dword [esi + 4], ebx
jl 0x1021010
jg 0x1020f05
cmp dword [esi], 0x40
jbe 0x1021010
push dword [ebp + 0x10]
call fcn.010244d8
test eax, eax
je 0x1020f19
mov dword [ebp - 4], ebx
jmp 0x1021010
push dword [ebp + 8]
call fcn.0101a106
push eax
call fcn.0101fcf0
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1020f11
cmp word [eax], bx
je 0x1020f11
push ebx
push 0x4c000100
push 2
push ebx
push 7
push 0xc0010000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x1021010
push dword [ebp + 8]
call fcn.01019bcc
mov edi, eax
cmp edi, ebx
jne 0x1020f8f
mov eax, dword [ebp + 0x1c]
dec eax
je 0x1020f77
dec eax
jne 0x1020f7e
call fcn.0102068a
jmp 0x1020f7c
call fcn.0102095c
mov edi, eax
push edi
push dword [ebp + 8]
call fcn.01019be9
cmp edi, ebx
je 0x1021010
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.010209ec
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1021010
mov edi, dword [esi + 4]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
mov ebx, dword [esi]
jg 0x1020fdd
jl 0x1020fbd
cmp dword [ebp - 0x18], ebx
jae 0x1020fdd
mov eax, ebx
sub eax, dword [ebp - 0x18]
push 0
mov ecx, edi
sbb ecx, dword [ebp - 0x14]
push 0x64
push ecx
push eax
call fcn.010110b0
push edi
push ebx
push edx
push eax
call fcn.0102aef0
jmp 0x1020fe1
xor eax, eax
xor edx, edx
mov ecx, dword [ebp + 0x20]
xor edi, edi
cmp edx, edi
jl 0x102100e
jg 0x1020ff0
cmp eax, ecx
jb 0x102100e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov dword [ebp - 4], 1
xor ebx, ebx
jmp 0x1021036
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], eax
je 0x1021028
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x1021047
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x10], ebx
je 0x1021055
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
jmp 0x1021064
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x1022240
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1049ac0], 0
push ebx
jne 0x10222bd
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x10222b1
cmp dword [ebp - 8], 0x660
jae 0x10222b1
xor eax, eax
mov eax, dword [eax*4 + 0x1049358]
mov dword [0x1049ac0], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1022780
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esi - 0x10]
mov eax, dword [esi - 0x14]
push edi
sub ecx, 2
xor edi, edi
cmp eax, ecx
jae 0x10227d3
push ebx
movzx edx, byte [eax + 2]
movzx ebx, byte [eax]
movzx ebx, word [ebx*2 + 0x1049ac8]
movzx edx, word [edx*2 + 0x1049ec8]
xor edx, ebx
movzx ebx, byte [eax + 1]
movzx ebx, word [ebx*2 + 0x1049cc8]
xor edx, ebx
mov bx, word [esi + edx*2 - 0x15a5c]
mov word [esi + edi*2], bx
mov word [esi + edx*2 - 0x15a5c], di
inc eax
inc edi
cmp eax, ecx
jb 0x1022791
pop ebx
add ecx, 2
cmp eax, ecx
jae 0x10227f4
sub ecx, eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
lea edi, [esi + edi*2]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
ret
Function at 0x102b542
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x102b5b3
xor ecx, ecx
cmp cx, word [eax]
je 0x102b5b3
push edi
push esi
push eax
call fcn.0102b929
mov edi, eax
cmp edi, esi
je 0x102b5ae
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102b57c
test al, 0x10
je 0x102b57c
inc ebx
jmp 0x102b597
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x102b58f
mov esi, 0x10b
cmp esi, 2
jne 0x102b597
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x102b5bd
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0x102bb2b
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x102bb58
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0x10
cmp dword [ebp + 0xc], edi
je 0x102bb8a
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x102bb7d
cmp dword [ebp - 0xc], edi
jne 0x102bb8d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x102bb53
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x102bcde
cmp dword [ebp - 8], 1
je 0x102bbc9
cmp dword [ebp - 8], 2
je 0x102bbc9
mov dword [ebp + 8], 0xd
jmp 0x102bcde
push esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x102bcd4
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x102bc12
cmp dword [ebp - 8], 1
je 0x102bc27
cmp dword [ebp - 8], 2
je 0x102bc27
mov dword [ebp + 8], 0xd
push dword [ebp - 4]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], edi
jmp 0x102bcdd
cmp dword [ebp + 0x14], 1
jne 0x102bcdd
cmp dword [ebp - 8], 2
jne 0x102bcdd
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
push edi
push dword [ebp - 4]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x102bcb5
add eax, eax
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x102bc86
push dword [ebp - 0x10]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x102bc86
push dword [ebp - 4]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x102bcdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp + 8], eax
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
cmp dword [ebp + 0x10], edi
je 0x102bc1f
push dword [ebp + 0x10]
push edi
call esi
push eax
call ebx
jmp 0x102bc1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp + 8], eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x102bcdd
jmp 0x102bc1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
pop esi
pop ebx
cmp dword [ebp + 0xc], edi
je 0x102bced
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 4]
jmp 0x102bb7d
Function at 0x102bd18
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
cmp eax, esi
jne 0x102bd46
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x102bdb3
cmp dword [ebp + 0xc], esi
je 0x102bd6b
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x102bd68
cmp dword [ebp - 4], esi
jne 0x102bd6e
push eax
jmp 0x102bd3c
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x102bd97
cmp dword [ebp - 0xc], 4
je 0x102bd9a
push 0xd
pop edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x102bda8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0xc
Function at 0x10455f2
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x14]
xor eax, eax
push edi
mov edi, edx
mov edx, dword [esi + 0x10]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x14]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], edx
cmp dword [esi + 0x14], eax
jb 0x1045636
mov dword [edi + 4], eax
mov dword [edi], 3
jmp 0x10456bd
mov ecx, ebx
jmp 0x10456d2
cmp eax, 0x61
jb 0x1045647
cmp eax, 0x7a
jbe 0x10456c4
lea edx, [eax - 0x41]
cmp edx, 0x19
jbe 0x10456c4
lea edx, [eax - 0x30]
cmp edx, 9
jbe 0x10456c4
cmp eax, 0x2f
ja 0x104568d
cmp eax, 0x28
jae 0x10456ca
cmp eax, 0xa
je 0x10456ca
cmp eax, 0xd
je 0x10456ca
cmp eax, 0x1f
jbe 0x10456ab
cmp eax, 0x21
jbe 0x10456ca
cmp eax, 0x22
jbe 0x10456ab
cmp eax, 0x25
jbe 0x10456ca
cmp eax, 0x27
jne 0x10456ab
cmp dword [esi + 0x24], 0xa
sete al
jmp 0x10456c6
cmp eax, 0x3a
jb 0x10456ab
cmp eax, 0x3b
jbe 0x10456ca
cmp eax, 0x3d
je 0x10456ca
cmp eax, 0x3e
jbe 0x10456ab
cmp eax, 0x40
jbe 0x10456ca
cmp eax, 0x5f
je 0x10456ca
mov eax, dword [ebp - 4]
mov dword [edi], 0xc
sub ebx, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 8], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
test al, al
je 0x10456ab
inc dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ebx, ecx
call dword [esi + 0x18]
mov ecx, edx
cmp eax, 0xffffffff
jne 0x104563d
mov eax, ecx
jmp 0x10456bf
Function at 0x403144
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 0x403243
call fcn.004fe862
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_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4031eb
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 0x4031bc
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x6087c4
call fcn.00472d55
add esp, 8
xor eax, eax
jmp 0x40328c
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 0x4031e3
push 0x146
push str.occmgr.cpp
call fcn.004f5580
test eax, eax
je 0x4031e3
int3
xor edx, edx
test edx, edx
jne 0x4031c9
jmp 0x403243
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x40320e
push 0x14e
push str.occmgr.cpp
call fcn.004f5580
test eax, eax
je 0x40320e
int3
xor edx, edx
test edx, edx
jne 0x4031f4
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x403243
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x403238
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x608844
call fcn.00472d55
add esp, 8
jmp 0x403243
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x403214
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x40326a
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 0x403289
cmp dword [ebp - 8], 0
je 0x403289
mov eax, dword [ebp - 8]
push eax
call fcn.00402a70
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 0x43eaa0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x43ead0
push esi
call fcn.00443620
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x43eac9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x43eb50
mov eax, dword [esi + 0x1a8]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x43eb3c
mov eax, dword [esi + 8]
test eax, eax
je 0x43eaf5
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43eb38
cmp eax, 2
je 0x43eb3c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43eae8
cmp eax, 3
je 0x43eb1b
cmp eax, 1
jne 0x43eae8
mov eax, dword [ecx + 4]
inc eax
mov edx, eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 8]
cmp edx, eax
jl 0x43eae8
mov edx, dword [esi + 0x128]
add edx, eax
mov dword [ecx + 8], edx
jmp 0x43eae8
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0043eb80
add esp, 4
pop esi
ret
cmp ecx, 0xcc
je 0x43eb6a
mov eax, dword [esi]
mov dword [eax + 0x14], 0x15
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
add esp, 4
push esi
call fcn.0043eb80
add esp, 4
pop esi
ret
Function at 0x458960
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.004218d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x458a2b
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 0x458a2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4589de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4589e9
or bh, 8
and edi, 0x8000000
je 0x458a04
mov eax, dword [0x624a3c]
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 0x458a2b
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 0x458e00
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 0x458e2b
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 0x458e4f
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 0x458e6a
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 0x4731f3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559489
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.00509c40
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_GetPrivateProfileIntW]
mov dword [0x6227d4], eax
push str.AFX.INI
push 0
push str.TraceFlags
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x6227d0], eax
cmp dword [0x6227e0], 0
je 0x47327c
push 0x77
push 0x60ca9c
call fcn.004f5580
test eax, eax
je 0x47327c
int3
xor ecx, ecx
test ecx, ecx
jne 0x473262
push 0x473024
call fcn.00420c20
add esp, 4
mov dword [0x6227e0], eax
cmp dword [0x6227e4], 0
je 0x4732ae
push 0x7a
push 0x60caac
call fcn.004f5580
test eax, eax
je 0x4732ae
int3
xor edx, edx
test edx, edx
jne 0x473294
push 0x473196
call fcn.004219f0
add esp, 4
mov dword [0x6227e4], eax
push 4
push 2
call fcn.00421910
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