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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x431024]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor eax, eax
lea ebx, [eax + 4]
lea esi, [esp + 0x64]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.00403070
mov eax, dword [ebp + 8]
push 0x5c
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov dword [esp + 0x8c], ebx
call fcn.00417ce0
push 0x2a
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x8c], 1
call fcn.00417ce0
lea ecx, [esp + 0x2c]
push ecx
mov edi, eax
mov byte [esp + 0x84], 2
call fcn.00416950
mov byte [esp + 0x80], 4
mov edx, dword [esp + 0x20]
push edx
call fcn.0040c4b0
add esp, 4
lea esi, [esp + 0x3c]
lea edi, [esp + 0x2c]
call fcn.0040d2a0
test al, al
jne 0x4173e2
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x30]
push eax
call fcn.0040c4b0
add esp, 4
lea esi, [esp + 0x2c]
call fcn.0040cf70
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
xor edi, edi
call fcn.00416b20
test al, al
je 0x4174b1
mov eax, dword [esi]
push eax
call fcn.00416bf0
mov bl, al
mov eax, dword [esp + 0x14]
push eax
call fcn.0040c4b0
mov ecx, dword [esp + 0x68]
add esp, 4
push ecx
call fcn.0040c4b0
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
lea eax, [esp + 0x3c]
push eax
sub esp, 0xc
mov esi, esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x28]
add ebx, 1
mov dword [esp + 0x20], esp
je 0x417459
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or eax, ecx
call fcn.0040c480
cmp dword [esi + 8], 0
mov edi, eax
jle 0x41744b
xor eax, eax
cmp dword [esi + 4], eax
jle 0x417440
jmp 0x417430
mov ecx, dword [esi]
mov dx, word [ecx + eax*2]
mov word [edi + eax*2], dx
inc eax
cmp eax, dword [esi + 4]
jl 0x417430
mov eax, dword [esi]
push eax
call fcn.0040c4b0
add esp, 4
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esi], edi
mov word [edi + eax*2], cx
mov dword [esi + 8], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esi]
nop
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x417460
mov edx, dword [esp + 0x28]
mov dword [esi + 4], edx
call fcn.00417210
test al, al
je 0x41749b
lea esi, [esp + 0x3c]
lea edi, [esp + 0x2c]
call fcn.0040d2a0
test al, al
jne 0x4173e0
jmp 0x417372
mov eax, dword [esp + 0x30]
push eax
call fcn.0040c4b0
add esp, 4
lea esi, [esp + 0x2c]
call fcn.0040cf70
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040c4b0
mov edx, dword [esp + 0x68]
add esp, 4
push edx
call fcn.0040c4b0
add esp, 4
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4178c0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 8]
cmp eax, 0x105
push edi
jg 0x4178e1
cmp eax, 0x106
je 0x4178e1
push ebx
mov ebx, 0x106
call fcn.00403070
pop ebx
mov eax, dword [esi]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x41790a
mov edx, edi
lea ebx, [ebx]
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x417900
xor edx, edx
mov word [edi + ecx*2], dx
mov dword [esi + 4], ecx
dec eax
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
pop edi
inc eax
pop esi
ret

Function at 0x417930
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 8]
cmp eax, 0x105
jg 0x417950
cmp eax, 0x106
je 0x417950
push ebx
mov ebx, 0x106
call fcn.00403070
pop ebx
mov eax, dword [esi]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [esi]
xor eax, eax
cmp word [edx], ax
je 0x41797a
mov ecx, edx
lea esp, [esp]
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x417970
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [esi + 4], eax
mov al, 1
pop esi
ret

Function at 0x417990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [esi + 8]
cmp eax, 0x105
push edi
jg 0x4179b4
cmp eax, 0x106
je 0x4179b4
push ebx
mov ebx, 0x106
call fcn.00403070
pop ebx
mov eax, dword [esi]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x42a7cc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x4179dd
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x4179d3
xor edx, edx
mov word [edi + ecx*2], dx
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebp
ret 4
Function at 0x41b050
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42609e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x431024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
lea esi, [edi + 4]
lea ebx, [eax + 4]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.00403070
xor eax, eax
lea esi, [edi + 0x10]
mov dword [ebp - 4], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.00403070
xor eax, eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], ebx
mov dword [edi + 0x28], vtable.CObjectVector_struct_CArc_.0
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x3c], vtable.CObjectVector_class_CStringBase_wchar_t__.0
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov byte [edi + 0x58], al
lea esi, [edi + 0x64]
mov byte [ebp - 4], 3
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.00403070
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41b6b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00423ac0
mov eax, dword [0x431024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004216f0
add esp, 0xc
push 0x2000
lea ecx, [ebp - 0x2004]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea edx, [ebp - 0x2008]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocStringLen
mov dword [ebp - 0x2008], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x2008]
push 4
lea eax, [ebp - 0x200c]
push eax
push 4
push 0
lea ecx, [ebp - 0x2004]
push ecx
push edx
mov dword [ebp - 0x200c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2008]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d4c2
mov esp, ebp
pop ebp
ret
Function at 0x41b770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x431024]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.004216f0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004216f0
push str.Applications_
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0041df70
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.0041dfdf
add eax, 2
push eax
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0041e06c
add esp, 0x2c
push 0
lea edx, [ebp - 0x418]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocStringLen
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x418]
push 2
lea edx, [ebp - 0x41c]
push edx
push 1
xor ecx, ecx
push ecx
push str.IsHostApp
push eax
mov word [ebp - 0x41c], cx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d4c2
mov esp, ebp
pop ebp
ret
Function at 0x41d4c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431024]
jne 0x41d4cc
repz ret
jmp fcn.0041e29a

Function at 0x42197c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041ea4f
and dword [ebp - 4], 0
cmp dword [0x4338d4], 0
mov ebx, eax
jne 0x421a2d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421ade
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x421ade
push eax
call fcn.0041e9dd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4338d4], eax
call esi
push eax
call fcn.0041e9dd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4338d8], eax
call esi
push eax
call fcn.0041e9dd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4338dc], eax
call esi
push eax
call fcn.0041e9dd
pop ecx
mov dword [0x4338e4], eax
test eax, eax
je 0x421a2d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e9dd
pop ecx
mov dword [0x4338e0], eax
mov eax, dword [0x4338e0]
cmp eax, ebx
je 0x421a85
cmp dword [0x4338e4], ebx
je 0x421a85
push eax
call fcn.0041ea58
push dword [0x4338e4]
mov esi, eax
call fcn.0041ea58
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421a85
test edi, edi
je 0x421a85
call esi
test eax, eax
je 0x421a7c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421a7c
test byte [ebp - 0xc], 1
jne 0x421a85
or dword [ebp + 0x10], 0x200000
jmp 0x421abe
mov eax, dword [0x4338d8]
cmp eax, ebx
je 0x421abe
push eax
call fcn.0041ea58
pop ecx
test eax, eax
je 0x421abe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x421abe
mov eax, dword [0x4338dc]
cmp eax, ebx
je 0x421abe
push eax
call fcn.0041ea58
pop ecx
test eax, eax
je 0x421abe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4338d4]
call fcn.0041ea58
pop ecx
test eax, eax
je 0x421ade
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421ae0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409e10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x10]
call fcn.0041a510
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.004097e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409e70
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x10]
call fcn.00409870
mov eax, dword [ebp - 0x21c]
jmp 0x409f01
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x409ed6
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x10]
call fcn.00409e10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409ecd
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x10]
call fcn.00409870
mov eax, dword [ebp - 0x220]
jmp 0x409f01
mov dword [ebp - 4], 0x100
jmp 0x409e77
lea ecx, [ebp - 0x10]
call fcn.00409830
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x228]
call fcn.00409d10
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x10]
call fcn.00409870
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret 4
Function at 0x411540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x411549
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setne cl
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x411569
push 0x80004005
call fcn.00402090
xor edx, edx
jne 0x41154d
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x41157a
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x41c510
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c8b2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4c1600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00401080
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00401080
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00401080
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00401080
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00401080
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00401080
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
push 0x4b25cc
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00401160
push 0x4b25cc
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00401160
push 0x4b25cc
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00401160
push 0x4b25cc
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00401160
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x41c630
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c852
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4c1600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x20], 0
je 0x41c69d
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41c68c
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0041c710
mov dword [ebp - 0x1c], eax
jmp 0x41c693
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x20], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x30
call fcn.0040a1f0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call fcn.0040a1f0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
call fcn.0040a1f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
call fcn.0040a1f0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
call fcn.0040a1f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 8
call fcn.0040a1f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x41d710
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c277
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4c1600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
add eax, 8
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004010a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004010a0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004010a0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004010a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x18
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004010a0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp + 8]
add edx, 0x30
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004010a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x42e7f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
sar eax, 8
and eax, 0xff
xor ecx, ecx
cmp eax, 0xff
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x42f720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49dc70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4c1600]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00409aa0
xor ebx, ebx
mov dword [esp + 0x30], ebx
lea eax, [esp + 0xc]
push eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.0049a030
add esp, 4
push eax
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00402650
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.00409a80
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x42faf7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49daa8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4c1600]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x42fb8a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x42fb9d
mov dword [esp + 0x14], vtable.CxMemFile.0
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x20], bl
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
lea edi, [esp + 0x18]
mov dword [esp + 0x3c], ebx
call fcn.0042fbb4
mov esi, edi
mov bl, al
call fcn.0043499e
mov al, bl
jmp 0x42fb9f
mov eax, dword [ebp + 8]
add eax, 0x44
push str.Unable_to_load_resource_
push eax
call fcn.00457d10
pop ecx
pop ecx
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x439020
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x43906f
mov eax, dword [esi + 4]
push 0x1c
push 1
push esi
call dword [eax]
mov dword [esi + 0x180], eax
mov dword [eax], 0x437da0
mov dword [eax + 4], 0x437ecc
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.00437bc5
cmp byte [esi + 0x40], 0
je 0x439068
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4390dc
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x4390d1
mov eax, dword [esi + 8]
test eax, eax
je 0x439090
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x4390cd
cmp eax, 2
je 0x4390d1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x439085
cmp eax, 3
je 0x4390b4
cmp eax, 1
jne 0x439085
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x439085
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x439085
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x4390fa
cmp eax, 0xcc
je 0x4390fa
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.00439101
pop esi
ret
Function at 0x44c15b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x44c1e8
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00452520
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x44c1a8
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x44c1ca
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x44c2a5
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x44c210
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x44c21b
xor eax, eax
jmp 0x44c266
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x44c238
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.0044de7e
jmp 0x44c249
cmp ecx, 2
jne 0x44c250
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.0044ca78
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00452520
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x44c291
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x44c2a5
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x44c166
pop edi
pop ebx
leave
ret