joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5815e8
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x5a0798
call fcn.0058394c
mov edi, 0x94
mov eax, edi
call fcn.005817c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x677ae0], ecx
mov eax, dword [esi + 4]
mov dword [0x677aec], eax
mov edx, dword [esi + 8]
mov dword [0x677af0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x677ae4], esi
cmp ecx, 2
je 0x581648
or esi, 0x8000
mov dword [0x677ae4], esi
shl eax, 8
add eax, edx
mov dword [0x677ae8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x581683
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x581683
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x58169b
cmp eax, 0x20b
je 0x581688
mov dword [ebp - 0x1c], esi
jmp 0x5816af
cmp dword [ecx + 0x84], 0xe
jbe 0x581683
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x5816a9
cmp dword [ecx + 0x74], 0xe
jbe 0x581683
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00585324
pop ecx
test eax, eax
jne 0x5816c3
push 0x1c
call fcn.005815c4
pop ecx
call fcn.00582c23
test eax, eax
jne 0x5816d4
push 0x10
call fcn.005815c4
pop ecx
call fcn.00588853
mov dword [ebp - 4], esi
call fcn.00586f2a
test eax, eax
jge 0x5816ed
push 0x1b
call fcn.0058159f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1070ef4], eax
call fcn.00588731
mov dword [0x677ad0], eax
call fcn.0058868f
test eax, eax
jge 0x581713
push 8
call fcn.0058159f
pop ecx
call fcn.0058845c
test eax, eax
jge 0x581724
push 9
call fcn.0058159f
pop ecx
call fcn.00581b5a
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x581737
push eax
call fcn.0058159f
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.005883f3
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x581758
movzx eax, word [ebp - 0x34]
jmp 0x58175b
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00530c70
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x581779
push edi
call fcn.00581c92
call fcn.00581cb4
jmp 0x5817ab
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00583987
ret
Function at 0x58195e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x58197b
call fcn.00583f67
mov dword [eax], 0x16
xor eax, eax
jmp 0x5819e5
push esi
push 0x88
push 1
call fcn.005824b9
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x5819d0
push esi
call fcn.00582a34
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x5819ae
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x5818ba
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x5819e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00580342
test ebx, ebx
pop ecx
je 0x5819e2
push ebx
call fcn.00583f79
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x581bbf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.005852d9
xor esi, esi
inc esi
cmp dword [0x677b20], esi
pop ecx
jne 0x581be7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x677b1c], esi
mov byte [0x677b18], al
jne 0x581c4d
mov ecx, dword [0x1070eec]
test ecx, ecx
je 0x581c2e
mov eax, dword [0x1070ee8]
sub eax, 4
cmp eax, ecx
jmp 0x581c27
mov eax, dword [eax]
test eax, eax
je 0x581c19
call eax
mov eax, dword [0x1070ee8]
sub eax, 4
cmp eax, dword [0x1070eec]
mov dword [0x1070ee8], eax
jae 0x581c11
mov eax, 0x5c1f14
mov esi, 0x5c1f1c
cmp eax, esi
mov edi, eax
jae 0x581c4d
mov eax, dword [edi]
test eax, eax
je 0x581c46
call eax
add edi, 4
cmp edi, esi
jb 0x581c3e
mov eax, 0x5c1f20
mov esi, 0x5c1f28
cmp eax, esi
mov edi, eax
jae 0x581c6c
mov eax, dword [edi]
test eax, eax
je 0x581c65
call eax
add edi, 4
cmp edi, esi
jb 0x581c5d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x581c7d
push 8
call fcn.00585245
jmp 0x581c8f
push dword [ebp + 8]
mov dword [0x677b20], 1
call fcn.00581b18
pop ecx
pop ebp
ret
Function at 0x586cd0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005817c0
mov eax, dword [0x5ca59c]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00586e0b
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x586dfa
push 2
push esi
push dword [ebp + 8]
call fcn.00586e0b
add esp, 0xc
cmp eax, ebx
je 0x586dfa
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x586d9d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0058abd0
push 0x8000
push dword [ebp + 8]
call fcn.0058c3de
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x586d56
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.005809bc
add esp, 0xc
cmp eax, 0xffffffff
je 0x586d76
sub edi, eax
test edi, edi
jg 0x586d4e
jmp 0x586d8e
call fcn.00583f70
cmp dword [eax], 5
jne 0x586d8b
call fcn.00583f67
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0058c3de
pop ecx
pop ecx
jmp 0x586de5
jge 0x586de5
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00586e0b
push dword [ebp + 8]
call fcn.00587223
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x586de5
call fcn.00583f67
mov dword [eax], 0xd
call fcn.00583f70
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00586e0b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x586dfc
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.005824ab
leave
ret
Function at 0x588243
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5ca59c]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x5caf60]
je 0x588270
inc eax
cmp eax, 0x12
jb 0x588261
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x5caf60]
jne 0x5883a4
mov eax, dword [0x677ad8]
cmp eax, 1
je 0x58837f
cmp eax, edx
jne 0x5882a0
cmp dword [0x5ca554], 1
je 0x58837f
cmp ecx, 0xfc
je 0x5883a4
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5882d9
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0058ac30
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00582d70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x58831b
lea eax, [ebp - 0x10c]
push eax
call fcn.00582d70
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x5a1368
push edi
call fcn.0057efe0
add esp, 0x10
push edi
call fcn.00582d70
push dword [esi + 0x5caf64]
mov ebx, eax
call fcn.00582d70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005817c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0058ac30
push edi
push ebx
call fcn.0058ac40
push 0x5a1348
push ebx
call fcn.0058ac40
push dword [esi + 0x5caf64]
push ebx
call fcn.0058ac40
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0058c58d
add esp, 0x2c
jmp 0x5883a4
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x5caf64]
push dword [esi]
call fcn.00582d70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.005824ab
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58c0f1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.005817c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x58c186
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x677ae0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x58c186
cmp eax, 1
je 0x58c19e
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x58c186
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x58c15b
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x58c182
xor eax, eax
inc eax
jmp 0x58c1ba
cmp esi, ebx
jae 0x58c18a
xor eax, eax
jmp 0x58c1ba
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x677ae0]
jmp 0x58c1a0
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x58c58d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x677e44], ebx
push esi
push edi
jne 0x58c60d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x58c648
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x677e44], eax
je 0x58c648
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x677e48], eax
call esi
cmp dword [0x677ae0], 2
mov dword [0x677e4c], eax
jne 0x58c60d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x677e54], eax
je 0x58c60d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x677e50], eax
mov eax, dword [0x677e50]
test eax, eax
je 0x58c652
call eax
test eax, eax
je 0x58c639
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x677e54]
test eax, eax
je 0x58c639
test byte [ebp - 8], 1
jne 0x58c652
cmp dword [0x677aec], 4
jb 0x58c64c
or byte [ebp + 0x12], 0x20
jmp 0x58c671
xor eax, eax
jmp 0x58c681
or byte [ebp + 0x12], 4
jmp 0x58c671
mov eax, dword [0x677e48]
test eax, eax
je 0x58c671
call eax
mov ebx, eax
test ebx, ebx
je 0x58c671
mov eax, dword [0x677e4c]
test eax, eax
je 0x58c671
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x677e44]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58cb1c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x58cb87
push 0x3d
push dword [ebp + 8]
call fcn.0058e572
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x58cb87
cmp dword [ebp + 8], esi
je 0x58cb87
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x677b00]
cmp eax, dword [0x677b04]
jne 0x58cb6d
mov edi, eax
call fcn.0058cabb
mov dword [0x677b00], eax
cmp eax, ebx
jne 0x58cbc6
cmp dword [ebp + 0xc], ebx
je 0x58cb8f
cmp dword [0x677b08], ebx
je 0x58cb8f
call fcn.00588929
test eax, eax
je 0x58cbc6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x58ccca
push 4
call fcn.0057ff9d
cmp eax, ebx
pop ecx
mov dword [0x677b00], eax
je 0x58cb87
mov dword [eax], ebx
cmp dword [0x677b08], ebx
jne 0x58cbc6
push 4
call fcn.0057ff9d
cmp eax, ebx
pop ecx
mov dword [0x677b08], eax
je 0x58cb87
mov dword [eax], ebx
mov ebx, dword [0x677b00]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0058ca6e
mov edi, eax
test edi, edi
pop ecx
jl 0x58cc1f
cmp dword [ebx], 0
je 0x58cc1f
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00580342
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x58cc07
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x58cc55
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x58cbfe
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0057ffaf
test eax, eax
pop ecx
pop ecx
je 0x58cc55
jmp 0x58cc50
cmp dword [ebp - 4], 0
jne 0x58ccc3
test edi, edi
jge 0x58cc2f
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0057ffaf
test eax, eax
pop ecx
pop ecx
je 0x58cb87
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x677b00], eax
cmp dword [ebp + 0xc], 0
je 0x58ccac
push dword [ebp + 8]
call fcn.00582d70
inc eax
inc eax
push eax
call fcn.0057ff9d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x58ccac
push dword [ebp + 8]
push esi
call fcn.0058ac30
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x58cca5
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00580342
pop ecx
cmp dword [ebp - 4], 0
je 0x58ccbb
push dword [ebp + 8]
call fcn.00580342
pop ecx
mov eax, dword [ebp - 8]
jmp 0x58cb8a
push esi
call fcn.00580342
pop ecx
xor eax, eax
jmp 0x58cb8a
Function at 0x1009c8d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, edi
call sub.MFC42u.DLL_CDataExchange::PrepareEditCtrl
cmp dword [edi], 0
mov esi, eax
je 0x1009d13
lea eax, [ebp - 0x80]
push 0x40
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x80], 0
je 0x1009d08
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x80]
mov esi, 0x1022710
push ebx
push eax
mov ecx, esi
call fcn.010126a0
test eax, eax
jne 0x1009ceb
push 0xffffffffffffffff
push 0x40
push 0x67
call sub.MFC42u.DLL_AfxMessageBox
mov ecx, edi
call sub.MFC42u.DLL_CDataExchange::Fail
push 2
lea eax, [ebp - 0x80]
push dword [ebx]
mov ecx, esi
push eax
call fcn.0101278f
lea eax, [ebp - 0x80]
push ebx
push eax
mov ecx, esi
call fcn.010126a0
jmp 0x1009d3b
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x7fffffff
jmp 0x1009d3b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 0x7fffffff
je 0x1009d3b
push 2
push eax
lea eax, [ebp - 0x80]
mov ecx, 0x1022710
push eax
call fcn.0101278f
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100a35d
Capabilities:
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
xor ebx, ebx
cmp dword [0x10226ec], ebx
jne 0x100a445
push edi
push esi
mov edi, 0x1021d14
cmp dword [edi - 4], ebx
jne 0x100a42a
mov eax, dword [edi]
mov dword [ebp - 8], 0x208
cmp eax, ebx
je 0x100a42a
lea ecx, [ebp - 4]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
cmp esi, ebx
jne 0x100a428
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x418]
push eax
push ebx
push ebx
push 0x10037ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x100a428
lea eax, [ebp - 0x210]
push 0x104
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100a3fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x100a428
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
and esi, 0x10
cmp esi, ebx
jne 0x100a428
lea eax, [ebp - 0x210]
push eax
push dword [edi]
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
jmp 0x100a42a
mov dword [edi], ebx
add edi, 0x18
cmp edi, 0x1021e34
jl 0x100a37c
pop esi
mov dword [0x10226ec], 1
pop edi
pop ebx
leave
ret

Function at 0x100d9d3
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
pop esi
inc eax
ret 8
Function at 0x1012204
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x101225c
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MFC42u.DLL_AfxFullPath
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
test ax, ax
mov dword [ebp + 8], eax
je 0x101225c
lea eax, [ebp + 8]
push eax
push 0x1012262
call dword [sym.imp.USER32.dll_EnumWindows]
cmp word [ebp + 8], 0
jne 0x1012253
push 1
pop eax
jmp 0x101225e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
xor eax, eax
leave
ret 4
Function at 0x1013873
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 4], esi
je 0x10138a3
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10138a7
xor eax, eax
jmp 0x10138df
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp + 8]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x10138d6
cmp dword [ebp - 4], 2
jne 0x10138d6
cmp word [ebp + 8], 0xfeff
je 0x10138d3
cmp word [ebp + 8], 0xfffe
jne 0x10138d6
push 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x1015c56
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
mov ebx, dword [sym.imp.SHELL32.dll_DragQueryFileW]
xor esi, esi
push edi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov edi, ecx
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x434
push dword [edi + 0x20]
call esi
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jbe 0x1015cec
lea eax, [ebp - 0x21c]
push 0x104
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x1015ce1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x437
push dword [edi + 0x20]
call esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.01019f08
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x1015c97
lea eax, [ebp - 0x10]
push eax
push 0
push 0x437
push dword [edi + 0x20]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x10178a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bd8
push 0x1017da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
or ebx, 0xffffffff
mov dword [0x1023008], ebx
mov dword [0x102300c], ebx
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x1022fe0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x1022fdc]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x1023004], ecx
call fcn.01017d90
mov eax, dword [0x10225d0]
test eax, eax
jne 0x101792c
push 0x1017d80
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.01017d60
push 0x1021054
push 0x1021050
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x1022fd8]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x1022fd4]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
add esp, 0x14
push 0x102104c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__wcmdln]
mov esi, dword [edx]
test esi, esi
jne 0x101799e
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x74], esi
cmp word [esi], 0x22
jne 0x1017a77
add esi, 2
mov dword [ebp - 0x74], esi
mov ax, word [esi]
test ax, ax
je 0x10179bf
cmp ax, 0x22
jne 0x10179ab
cmp word [esi], 0x22
jne 0x10179cb
add esi, 2
mov dword [ebp - 0x74], esi
mov ax, word [esi]
test ax, ax
je 0x10179e1
cmp ax, 0x20
ja 0x10179e1
add esi, 2
mov dword [ebp - 0x74], esi
jmp 0x10179cb
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x30], 1
je 0x1017a02
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x1017a07
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi], 0x20
jbe 0x10179cb
add esi, 2
mov dword [ebp - 0x74], esi
jmp 0x1017a77

Function at 0x1017e6f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1006c30
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1017ec7
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x1004e28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1017eba
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1017ec9
xor eax, eax
pop esi
leave
ret 4
Function at 0x1019ab9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0x79
push esi
mov esi, ecx
jne 0x1019b19
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x1019b19
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add eax, ecx
mov esi, dword [esi + 0x20]
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp - 4]
add eax, edx
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
movzx eax, ax
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push esi
push 0x7b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1019b20
mov ecx, esi
call sub.MFC42u.DLL_CWnd::Default
pop esi
leave
ret 0xc
Function at 0x5d8adc
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d87dc
dec ebx
call fcn.005d8b25
add eax, 1
mov eax, 0x1d484e0e
sub eax, 0x19608a28
xor dword [ecx], edx
mov ebx, eax
add ecx, 2
dec ebx
and eax, ebx
cmp ecx, edi
jl fcn.005d8adc
add ebx, ebx
mov ebx, 0x8cc4e66b
sub eax, 0x27dbd1d8
ret

Function at 0x43cf4e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43ccda
pop ecx
push ebx
mov ebx, dword [esp]
add esp, 4
call fcn.0043cf92
sub ebx, 0x8c4fffbf
xor dword [esi], ecx
sub eax, 0xafcfcf93
add ebx, ebx
add esi, 1
or eax, eax
add ebx, 0x28f19b31
cmp esi, edi
jne fcn.0043cf4e
mov ebx, eax
add ebx, 0x2cf784e8
ret