joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e2b0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5427d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call fcn.00423fe7
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
call fcn.0040a380
push 4
push str..
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call fcn.004098a0
mov ecx, dword [esp + 0xc]
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00424062
test eax, eax
je 0x40e3bb
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
call fcn.00423e39
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0x18]
inc esi
call fcn.00423fa8
test eax, eax
jne 0x40e3b3
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x1c]
call eax
test eax, eax
je 0x40e380
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004242a5
mov byte [esp + 0x3c], 2
mov eax, dword [eax]
push eax
call fcn.0040e2b0
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x40e397
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004242a5
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e3b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40e327
lea ecx, [esp + 0x18]
call fcn.00423d53
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [esp + 0x3c], 0
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x40e41d
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e3f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00424010
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e439
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00424010
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret
Function at 0x40e470
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x54278b
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x599980]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x80c]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x12]
mov dword [esp + 0xc], 0
push ecx
mov word [esp + 0x14], ax
call fcn.00515e10
add esp, 0xc
push 0
push 0x1a
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00414031
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e4f4
push 0x80004005
call fcn.0040a200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 4], eax
lea eax, [esp + 8]
mov dword [esp + 0x814], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e516
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040a250
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0040a380
mov dword [esp + 0x814], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e56b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00512dac
add esp, 0x814
ret

Function at 0x40e5a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x54278b
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x599980]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x80c]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x12]
mov dword [esp + 0xc], 0
push ecx
mov word [esp + 0x14], ax
call fcn.00515e10
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00414031
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e624
push 0x80004005
call fcn.0040a200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 4], eax
lea eax, [esp + 8]
mov dword [esp + 0x814], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e646
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040a250
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0040a380
mov dword [esp + 0x814], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e69b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00512dac
add esp, 0x814
ret
Function at 0x40e7d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x542b19
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.installDir
call fcn.0040a380
push ecx
mov dword [esp + 0x2c], 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.SOFTWAREHewlett_PackardHP_Quick_PrintLauncher
call fcn.0040a380
mov esi, edi
mov byte [esp + 0x2c], bl
call fcn.0040dc60
mov dword [esp + 0x2c], ebx
mov eax, dword [edi]
push 0x5c
push eax
mov dword [esp + 0x20], 1
call fcn.00514a64
add esp, 0x10
cmp eax, ebx
je 0x40e89e
sub eax, dword [edi]
sar eax, 1
js 0x40e89e
inc eax
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0040ef10
push eax
mov ecx, edi
mov dword [esp + 0x28], 2
call fcn.00409990
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e89e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e925
lea esi, [esp + 0x18]
call fcn.0040e5a0
push str.Hewlett_PackardSmartPrint_
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x30], 3
call fcn.00409c60
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x28], 4
call fcn.00409990
mov byte [esp + 0x24], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e901
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e925
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x40e940
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e9b4
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40e9b4
mov eax, dword [ebx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, 0x20
jae 0x40e96f
xor eax, eax
pop edi
ret
push esi
push str.DllUnregisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
test eax, eax
je 0x40e9a8
call eax
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
test eax, eax
jge 0x40e9a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push eax
push edx
push str.unregistry__s_failed__error_code:x_08x_r_n
call fcn.00514886
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [ebx]
push eax
push str.unregistry__s_failed_the_file_is_not_exist_r_n
call fcn.00514886
add esp, 8
xor eax, eax
ret

Function at 0x40fc90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x542502
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], 0x5761c0
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x34], 1
call fcn.0040fe60
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.004079c0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x5a15f4]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov ecx, dword [esp + 0x28]
or ebp, 2
push ebp
mov byte [esp + 0x20], 2
call fcn.00406f80
test eax, eax
jne 0x40fd8c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40fd85
or eax, 4
push ebx
push eax
call fcn.00401990
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x412f70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x542728
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], 2
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor esi, esi
add esi, 0x800
test edi, edi
je 0x412fbd
push edi
call fcn.0041342a
add esp, 4
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413435
mov edi, eax
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00515e10
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
add esp, 0x10
push eax
mov eax, dword [esp + 0x2c]
push esi
push edi
push ecx
push edx
push eax
call ebp
lea ecx, [esi - 2]
cmp eax, ecx
je 0x412faa
mov esi, dword [esp + 0x24]
push edi
mov ecx, esi
call fcn.0040a380
push edi
call fcn.0041342a
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41303e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413063
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41308b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0x10
Function at 0x4130b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x542ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push ecx
mov ebx, 1
mov dword [esp + 0x28], ebx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x575324
call fcn.0040a380
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x38]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00409bd0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00409bd0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x18]
mov byte [esp + 0x30], bl
mov ebx, dword [esp + 0x38]
push eax
call fcn.00412f70
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x4131d0
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41316c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413190
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4131b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 0x10
push ecx
call fcn.0051487b
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4131fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41321f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413247
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x416b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x416b98
call fcn.0041a0ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x416b98
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x416bdb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x416bc4
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x416bc4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x416bd8
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x417fab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041a0ed
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417fe4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00417bf7
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x418042
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x418066
cmp dword [edi + 0x54], 0
jne 0x418066
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041a0ed
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00418003
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41a9b0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53f01b
call fcn.005159a8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41a9d5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41aa1b
lea ecx, [ebp - 0x10]
call fcn.00409a30
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00456da7
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040a090
mov eax, esi
call fcn.00515a80
ret 8

Function at 0x420f7a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x420fc1
call fcn.0041a0ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x420fc1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x420fdd
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00420af2
mov esi, eax
test edi, edi
je 0x420fdb
test ebx, ebx
je 0x420fdb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4231bd
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4231e8
call fcn.0041a0ed
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x42320b
push eax
push dword [esi + 4]
call fcn.00423143
push esi
push eax
mov ecx, 0x59d310
call fcn.00422dca
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x423b0b
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x534eeb
call fcn.005159a8
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00423acb
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00409a30
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x423b71
push eax
push dword [esi + 8]
call fcn.00423143
push dword [esi + 0xc]
mov ecx, 0x59d310
push eax
call fcn.00422dca
mov eax, esi
call fcn.00515a80
ret 0x18
Function at 0x42a163
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x599980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x42a19c
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x42a1c3
cmp dword [0x59d870], 0
jne 0x42a1c3
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x42a1b6
push 0x12
call esi
test bx, ax
je 0x42a1ba
mov eax, edi
jmp 0x42a232
push edi
call fcn.00518cab
pop ecx
jmp 0x42a232
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00515e10
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x42a1ec
call fcn.00413e2a
call fcn.004187d7
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00512dac
leave
ret 4