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

Disassembly:
sub esp, 0xc
push ebx
push esi
mov ebx, eax
push ebx
lea ecx, [esp + 0x10]
xor esi, esi
call fcn.00406750
add esp, 4
test eax, eax
je 0x4069d5
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
sub eax, dword [esp + 0x14]
cmp eax, 0x210
jbe 0x4069dd
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x4069dd
lea edx, [esp + 0xc]
test edx, edx
je 0x4069dd
push ebp
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4069cb
push esi
push esi
push esi
push 2
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4069c4
push edi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4069bd
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
lea esi, [ecx + eax]
mov ecx, 0x83
rep movsd dword es:[edi], dword [esi]
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4069f0
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ebx
or esi, 0xffffffff
call fcn.00406750
add esp, 4
test eax, eax
je 0x406b51
push ebp
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, dword [esp + 0x24]
cmp eax, 0x210
jbe 0x406b5a
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x406b5a
lea edx, [esp + 0x14]
test edx, edx
je 0x406b5a
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, esi
je 0x406b5a
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, esi
je 0x406b34
push ebp
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406b25
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + edi + 0x20c]
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
push ecx
lea ebx, [eax + 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406af2
mov edx, dword [esp + 0x2c]
push edx
push str._SHIELDEX__FILENM__s___
call fcn.00411140
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00411050
jmp 0x406b1a
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
sub ebp, ebx
sub ebp, eax
add ebx, eax
push ebp
add ebx, edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406b1a
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov edi, dword [esp + 0x18]
jmp 0x406b3a
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
cmp esi, 0xffffffff
je 0x406b45
push esi
call ebx
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x18
ret
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x18
ret
Function at 0x406b70
Capabilities:
Delete file

Disassembly:
sub esp, 0xe4c
mov eax, dword [0x431300]
xor eax, esp
mov dword [esp + 0xe48], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor edi, edi
nop
lea eax, [esp + 0xa44]
push eax
lea ecx, [esp + 0x430]
push ecx
lea edx, [esp + 0x63c]
push edx
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00413e4a
lea ecx, [esp + 0x440]
push ecx
push 0x104
push 0x433b98
call fcn.0041405f
lea edx, [esp + 0x85c]
push edx
lea eax, [esp + 0xc70]
push eax
lea ecx, [esp + 0x24c]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
call fcn.00413e4a
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x44]
push ecx
push str._s_s
mov ecx, 0x104
mov ebx, 0x433990
call fcn.00410690
add esp, 0x40
push 0x433b98
push ebx
push str._s_s.bak
mov ecx, 0x104
lea ebx, [esp + 0x28]
call fcn.00410690
mov edx, ebx
push edx
push esi
call fcn.004133b4
add esp, 0x14
test eax, eax
je 0x406c65
push 0x3e8
call ebp
inc edi
cmp edi, 0x64
jl 0x406b90
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe48]
xor ecx, esp
call fcn.004122ac
add esp, 0xe4c
ret
push esi
lea eax, [esp + 0x20]
call fcn.004069f0
add esp, 4
test eax, eax
je 0x406c4b
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0xe54]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004122ac
add esp, 0xe4c
ret

Function at 0x406ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x43294c]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov ecx, 0x43294c
xor ebx, ebx
call edx
mov edi, eax
add edi, 0x10
xor esi, esi
cmp dword [0x432bcc], ebx
jle 0x406d20
mov eax, dword [0x432bd4]
mov ecx, dword [eax + esi*4]
push ecx
push str._restore_shieldex
call fcn.00413230
add esp, 8
test eax, eax
je 0x406ce8
inc esi
cmp esi, dword [0x432bcc]
jl 0x406cc3
jmp 0x406d20
lea edx, [esi + 1]
cmp edx, dword [0x432bcc]
jge 0x406d1b
mov eax, dword [0x432bd4]
mov eax, dword [eax + esi*4 + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406d1b
test al, 0x10
jne 0x406d1b
mov ecx, dword [0x432bd4]
mov esi, dword [ecx + esi*4 + 4]
call fcn.00406b70
mov ebx, 1
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x406d50
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
sub esp, 0x620
mov eax, dword [0x431300]
xor eax, esp
mov dword [esp + 0x61c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push 0x433788
push 0
call esi
lea eax, [esp + 4]
push eax
mov eax, 0x433788
call fcn.00406910
add esp, 4
test eax, eax
je 0x406e9c
mov ecx, dword [esp + 0x108]
and ecx, 1
cmp cl, 1
jne 0x406e9c
mov edx, dword [str.SHIELDEX__]
mov eax, dword [0x432874]
push 0x31
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x406eb3
push ebx
lea ecx, [esp + 0x214]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x800
push 0x433788
push 0
call esi
push 0x433788
call fcn.004111c0
push eax
lea edx, [esp + 0x21c]
push edx
push str._s_s
mov ecx, 0x104
mov ebx, edx
call fcn.00410690
add esp, 0x10
push 0x800
push 0x433788
push 0
call esi
push 0x433788
push str._restore_shieldex___s_
mov ecx, 0x104
lea ebx, [esp + 0x424]
call fcn.00410690
add esp, 8
push 0x800
push 0x433788
push 0
call esi
push 0
lea eax, [esp + 0x218]
push eax
push 0x433788
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebx
test eax, eax
je 0x406eb3
push 0
push 0
lea ecx, [esp + 0x420]
push ecx
lea edx, [esp + 0x21c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.004122ac
add esp, 0x620
ret
mov eax, dword [str.SHIELDEX__]
mov ecx, dword [str.SHIELDEX_____.________.]
push 0x10
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x620]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004122ac
add esp, 0x620
ret
Function at 0x40aa20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4288bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x431300]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00411732
push 4
mov dword [esp + 0x20], 0
call fcn.004122d6
mov edi, eax
add esp, 4
test edi, edi
je 0x40aa9e
call fcn.00411a82
mov dword [edi], eax
call fcn.004118b0
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004117d4
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40aa93
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004117fc
jmp 0x40aaa0
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
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], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40fb80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40fb97
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40fbc8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40fbc4
cmp esi, eax
jae 0x40fbc8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40fbb4
cmp esi, eax
jb 0x40fbce
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x411050
Capabilities:
Print debug messages

Disassembly:
push ecx
push edi
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0x400
push ecx
push 0
push 0x1300
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x411129
mov eax, dword [esp + 4]
xor edx, edx
cmp edx, str._SHIELDEX___s
push ebx
lea edx, [eax + 2]
je 0x4110e1
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411096
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, str._SHIELDEX___s
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4110b0
sub eax, esi
sar eax, 1
add eax, edx
lea eax, [eax + eax + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
pop esi
test ebx, ebx
je 0x411128
mov edx, dword [esp + 8]
push edx
push str._SHIELDEX___s
jmp 0x41110d
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4110e1
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x411128
mov eax, dword [esp + 8]
push eax
push 0x42d410
push ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, eax
call fcn.00410690
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call edi
pop ebx
mov eax, dword [esp + 4]
test eax, eax
je 0x411134
push eax
call edi
pop edi
pop ecx
ret

Function at 0x411140
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x804
mov eax, dword [0x431300]
xor eax, esp
mov dword [esp + 0x800], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00414280
mov eax, dword [esp + 0x814]
lea edx, [esp + 0x818]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x400
push ecx
call fcn.00413b95
push 0x42d418
lea edx, [esp + 0x20]
push 0x400
push edx
call fcn.00413bb2
add esp, 0x28
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004122ac
add esp, 0x804
ret

Function at 0x4122ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431300]
jne 0x4122b6
repz ret
jmp fcn.00417a2f
Function at 0x423df8
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.0041ad13
and dword [ebp - 4], 0
cmp dword [0x433660], 0
mov ebx, eax
jne 0x423ea9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423f5a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x423f5a
push eax
call fcn.0041aca1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433660], eax
call esi
push eax
call fcn.0041aca1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433664], eax
call esi
push eax
call fcn.0041aca1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433668], eax
call esi
push eax
call fcn.0041aca1
pop ecx
mov dword [0x433670], eax
test eax, eax
je 0x423ea9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041aca1
pop ecx
mov dword [0x43366c], eax
mov eax, dword [0x43366c]
cmp eax, ebx
je 0x423f01
cmp dword [0x433670], ebx
je 0x423f01
push eax
call fcn.0041ad1c
push dword [0x433670]
mov esi, eax
call fcn.0041ad1c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423f01
test edi, edi
je 0x423f01
call esi
test eax, eax
je 0x423ef8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423ef8
test byte [ebp - 0xc], 1
jne 0x423f01
or dword [ebp + 0x10], 0x200000
jmp 0x423f3a
mov eax, dword [0x433664]
cmp eax, ebx
je 0x423f3a
push eax
call fcn.0041ad1c
pop ecx
test eax, eax
je 0x423f3a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423f3a
mov eax, dword [0x433668]
cmp eax, ebx
je 0x423f3a
push eax
call fcn.0041ad1c
pop ecx
test eax, eax
je 0x423f3a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433660]
call fcn.0041ad1c
pop ecx
test eax, eax
je 0x423f5a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423f5c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405fa7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x406090
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f35
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4060ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405fa7
xor eax, eax
push ebp
push 0x405fa0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00405d2c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f89
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fa7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406088
cmp byte [ebp - 0xd], 0
jne 0x405fe9
cmp byte [ebp - 0x12], 0
je 0x406088
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406002
dec ebx
cmp byte [ebx], 0x2e
je 0x406011
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406001
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406088
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40603e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406088
cmp byte [ebp - 0xd], 0
je 0x406088
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406088
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4425c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ba7e0
cmp dword [edi], 0
jne 0x442644
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ba7dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b89e4
mov ecx, 2
call fcn.00402834
mov edx, 0x4425a0
lea eax, [esi + 5]
call fcn.004425c0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004425c0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x442619
mov dword [0x4ba7dc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x442760
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4427b0]
test si, 4
je 0x442774
or bl, 1
test si, 8
je 0x44277e
or bl, 4
test si, 1
je 0x442788
or bl, 8
test si, 2
je 0x442792
or bl, 0x10
test si, 0x10
je 0x44279c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4427ab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4427b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4427ec]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4427cd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4427dc
or bl, 4
test esi, 0x20000000
je 0x4427e7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4470f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [esi + 8]
dec eax
je 0x447107
sub eax, 2
je 0x44714e
jmp 0x44717e
mov eax, ebx
call fcn.00433244
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x447121
mov byte [ebx + 0x214], 2
jmp 0x447142
mov eax, ebx
call fcn.00433244
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x44713b
mov byte [ebx + 0x214], 3
jmp 0x447142
mov byte [ebx + 0x214], 1
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
pop esi
pop ebx
ret
cmp byte [ebx + 0x214], 0
je 0x447187
xor eax, eax
mov al, byte [ebx + 0x214]
mov eax, dword [eax*4 + 0x4b8a64]
push eax
mov eax, ebx
call fcn.00433244
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x214], 0
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
pop esi
pop ebx
ret
Function at 0x4474bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x44754a
mov ax, word [esi + 4]
sub ax, 9
je 0x4474e3
add eax, 0xffffffe4
sub ax, 4
jb 0x447515
jmp 0x44754a
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x44754a
push 1
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
setge cl
mov edx, dword [ebx + 0x208]
mov eax, ebx
call fcn.00433768
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov eax, dword [ebx + 0x208]
test eax, eax
je 0x447553
push 0
mov dx, word [esi + 4]
cmp dx, 0x27
je 0x447535
cmp dx, 0x28
je 0x447535
xor ecx, ecx
jmp 0x447537
mov cl, 1
mov edx, dword [eax + 0x24]
xchg edx, eax
call fcn.00433768
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
call fcn.00432764
pop esi
pop ebx
ret
Function at 0x46d868
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x46d8b4
cmp dword [ebp - 0x84], 2
jne 0x46d8b4
cmp dword [ebp - 0x90], 5
ja 0x46d8b2
cmp dword [ebp - 0x90], 5
jne 0x46d8b4
cmp dword [ebp - 0x8c], 1
jb 0x46d8b4
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471a00
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov byte [0x4ba990], 0
mov eax, dword [0x4b9ae0]
cmp dword [eax], 2
jne 0x471a34
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x471a34
cmp dword [esp + 4], 5
setae byte [0x4ba990]
add esp, 0x94
ret

Function at 0x473198
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4ba9e4
mov eax, esi
mov edx, 8
test al, 1
je 0x4731b4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4731b6
shr eax, 1
dec edx
jne 0x4731a7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4731a0
pop esi
ret

Function at 0x4731cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4ba9e0], 0
jne 0x4731ef
call fcn.00473198
push 1
push 0x4ba9e0
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x47321b
mov edx, ebx
and edx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4ba9e4]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4731f5
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4740e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00403efc
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jle 0x474182
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x47417b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x474165
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4741a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x474165
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474199
mov eax, dword [ebp - 0x10]
call fcn.00402734
ret
mov eax, dword [0x4b9ae0]
cmp dword [eax], 1
je 0x474199
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00473f04
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret