joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4e833c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x13c]
test edi, edi
mov dword [esp + 0x134], eax
mov ebp, ecx
jne 0x406c84
mov edi, ebp
mov esi, dword [esp + 0x140]
test esi, esi
je 0x406dfe
push ebx
mov ebx, dword [esp + 0x148]
jmp 0x406ca0
mov edx, dword [ebp + 0x34]
push 0
lea ecx, [esp + 0x20]
lea eax, [esi + ebx]
push ecx
push eax
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406ccb
call fcn.004056e0
mov edx, dword [ebp + 0x34]
push 0
lea eax, [esp + 0x14]
push eax
push 0x10
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406cf4
call fcn.004056e0
mov eax, dword [esp + 0x24]
sub eax, esi
cmp eax, 0x103
jbe 0x406d06
mov eax, 0x103
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebp + 0x34]
lea edx, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406d2e
call fcn.004056e0
movsx edx, byte [esp + 0x34]
mov ecx, dword [esp + 0x14c]
cmp edx, ecx
lea eax, [esp + 0x34]
je 0x406d4d
sub byte [eax], cl
movsx edx, byte [eax + 1]
inc eax
cmp edx, ecx
jne 0x406d42
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
call fcn.00405f60
test eax, eax
jne 0x406dc1
lea ecx, [edi + 0x24]
call fcn.004057d0
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00406bd0
mov eax, dword [edi]
cmp eax, dword [edi + 0x18]
jbe 0x406da3
mov ecx, dword [edi + 0x20]
test ecx, ecx
jne 0x406da3
push eax
mov ecx, edi
call fcn.00403c40
push eax
mov ecx, edi
call fcn.00407490
mov eax, dword [esi + 4]
xor edx, edx
div dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, dword [eax + edx*4]
mov dword [esi + 8], ecx
mov eax, dword [edi + 4]
mov dword [eax + edx*4], esi
inc dword [edi]
add esi, 0xc
jmp 0x406dc4
lea esi, [eax + 0xc]
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004066a0
test byte [esi + 0x34], 1
je 0x406df1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x406df1
mov edx, dword [esp + 0x14c]
push edx
push ebx
push eax
push esi
mov ecx, ebp
call fcn.00406c60
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x406ca0
pop ebx
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
call fcn.0040ac63
add esp, 0x12c
ret 0x10
Function at 0x40b145
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4e8f28], esi
push edi
jne 0x40b165
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 [0x4e8f24], esi
mov byte [0x4e8f20], al
jne 0x40b1cb
mov ecx, dword [0x4ea4f0]
test ecx, ecx
je 0x40b1ac
mov eax, dword [0x4ea4ec]
sub eax, 4
cmp eax, ecx
jmp 0x40b1a5
mov eax, dword [eax]
test eax, eax
je 0x40b197
call eax
mov eax, dword [0x4ea4ec]
sub eax, 4
cmp eax, dword [0x4ea4f0]
mov dword [0x4ea4ec], eax
jae 0x40b18f
mov eax, 0x4e803c
mov esi, 0x4e8044
cmp eax, esi
mov edi, eax
jae 0x40b1cb
mov eax, dword [edi]
test eax, eax
je 0x40b1c4
call eax
add edi, 4
cmp edi, esi
jb 0x40b1bc
mov eax, 0x4e8048
mov esi, 0x4e8050
cmp eax, esi
mov edi, eax
jae 0x40b1ea
mov eax, dword [edi]
test eax, eax
je 0x40b1e3
call eax
add edi, 4
cmp edi, esi
jb 0x40b1db
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40b204
push dword [ebp + 8]
mov dword [0x4e8f28], 1
call fcn.0040b0ab
pop ebp
ret

Function at 0x40b37e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040b470
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b419
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4e8ee8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b419
cmp eax, 1
je 0x40b43a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b419
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b3e6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b415
xor eax, eax
inc eax
jmp 0x40b459
cmp edi, eax
jae 0x40b41d
xor eax, eax
jmp 0x40b459
cmp eax, esi
jae 0x40b424
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4e8ee8]
jmp 0x40b43d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b964
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4e62e0
call fcn.0040bba0
mov edi, 0x94
mov eax, edi
call fcn.0040b470
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 [0x4e8ee8], ecx
mov eax, dword [esi + 4]
mov dword [0x4e8ef4], eax
mov edx, dword [esi + 8]
mov dword [0x4e8ef8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4e8eec], esi
cmp ecx, 2
je 0x40b9c4
or esi, 0x8000
mov dword [0x4e8eec], esi
shl eax, 8
add eax, edx
mov dword [0x4e8ef0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b9ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b9ff
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ba17
cmp eax, 0x20b
je 0x40ba04
mov dword [ebp - 0x1c], esi
jmp 0x40ba2b
cmp dword [ecx + 0x84], 0xe
jbe 0x40b9ff
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40ba25
cmp dword [ecx + 0x74], 0xe
jbe 0x40b9ff
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040c776
pop ecx
test eax, eax
jne 0x40ba57
cmp dword [0x4e8f34], 1
jne 0x40ba44
call fcn.0040f196
push 0x1c
call fcn.0040f01f
push 0xff
call fcn.0040b0ab
pop ecx
pop ecx
call fcn.0040e0b3
mov dword [ebp - 4], esi
call fcn.0040f794
test eax, eax
jge 0x40ba70
push 0x1b
call fcn.0040b93f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4ea4e4], eax
call fcn.0040f672
mov dword [0x4e8f2c], eax
call fcn.0040f5d0
test eax, eax
jge 0x40ba96
push 8
call fcn.0040b93f
pop ecx
call fcn.0040f39d
test eax, eax
jge 0x40baa7
push 9
call fcn.0040b93f
pop ecx
push 1
call fcn.0040b0db
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40babd
push eax
call fcn.0040b93f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040f340
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40bade
movzx eax, word [ebp - 0x40]
jmp 0x40bae1
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00403d70
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40baff
push edi
call fcn.0040b206
call fcn.0040b228
jmp 0x40bb31
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040bbdb
ret
Function at 0x40d9cd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40d9fb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40da02
cmp ebx, dword [eax + 4]
jae 0x40da02
xor eax, eax
jmp 0x40dbf2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40da13
xor eax, eax
inc eax
jmp 0x40dbf1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40da29
cmp ecx, edx
jae 0x40db6e
cmp dword [eax + 4], 0
je 0x40da32
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40da1a
cmp dword [ebp + 8], 0
je 0x40da54
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40db6e
cmp eax, esi
jae 0x40db6e
mov eax, dword [0x4e8f58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40da79
cmp dword [esi*4 + 0x4e8f60], edi
je 0x40db72
inc esi
cmp esi, eax
jl 0x40da67
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dbee
cmp dword [ebp - 8], 0x1000000
jne 0x40dbee
test byte [ebp - 0xc], 0xcc
je 0x40daf7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40dbee
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40dbee
cmp word [eax + 0x18], 0x10b
jne 0x40dbee
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40dbee
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40daf7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40daf7
test byte [ecx + 0x27], 0x80
jne 0x40db6e
push 1
push 0x4e8fa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40da0b
mov ecx, dword [0x4e8f58]
test ecx, ecx
mov edx, ecx
jle 0x40db2b
lea eax, [ecx*4 + 0x4e8f5c]
cmp dword [eax], edi
je 0x40db2b
dec edx
sub eax, 4
test edx, edx
jg 0x40db1f
test edx, edx
jne 0x40db5c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40db38
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40db50
lea eax, [edx*4 + 0x4e8f60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40db3e
cmp ecx, 0x10
jge 0x40db5c
inc ecx
mov dword [0x4e8f58], ecx
push 0
push 0x4e8fa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40da0b
xor eax, eax
jmp 0x40dbf1
test esi, esi
jle 0x40da0b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4e8fa0
call ebx
test eax, eax
jne 0x40da0b
cmp dword [esi*4 + 0x4e8f60], edi
je 0x40dbc8
mov eax, dword [0x4e8f58]
lea esi, [eax - 1]
test esi, esi
jl 0x40dbb6
cmp dword [esi*4 + 0x4e8f60], edi
je 0x40dbb2
dec esi
jns 0x40dba6
test esi, esi
jge 0x40dbc6
cmp eax, 0x10
jge 0x40dbc1
inc eax
mov dword [0x4e8f58], eax
lea esi, [eax - 1]
jmp 0x40dbc8
je 0x40dbe0
xor ecx, ecx
test esi, esi
jl 0x40dbe0
lea eax, [ecx*4 + 0x4e8f60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40dbce
push 0
push 0x4e8fa0
call ebx
jmp 0x40da0b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f01f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4e833c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4e84c0]
je 0x40f054
inc eax
cmp eax, 0x13
jb 0x40f045
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4e84c0]
jne 0x40f17a
mov eax, dword [0x4e8f34]
cmp eax, 1
je 0x40f152
cmp eax, edx
jne 0x40f084
cmp dword [0x4e8364], 1
je 0x40f152
cmp ecx, 0xfc
je 0x40f17a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f0ba
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040fde0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040d880
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f0ee
mov eax, edi
push eax
call fcn.0040d880
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4e6394
push edi
call fcn.0040fee0
add esp, 0x10
push edi
call fcn.0040d880
push dword [esi + 0x4e84c4]
mov ebx, eax
call fcn.0040d880
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040b470
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040fde0
push edi
push ebx
call fcn.0040fdf0
push 0x4e6390
push ebx
call fcn.0040fdf0
push dword [esi + 0x4e84c4]
push ebx
call fcn.0040fdf0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040fce5
add esp, 0x2c
jmp 0x40f17a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4e84c4]
push dword [esi]
call fcn.0040d880
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040ac63
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40fce5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4e90f4], ebx
push esi
push edi
jne 0x40fd65
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40fda0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4e90f4], eax
je 0x40fda0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4e90f8], eax
call esi
cmp dword [0x4e8ee8], 2
mov dword [0x4e90fc], eax
jne 0x40fd65
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4e9104], eax
je 0x40fd65
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4e9100], eax
mov eax, dword [0x4e9100]
test eax, eax
je 0x40fdaa
call eax
test eax, eax
je 0x40fd91
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4e9104]
test eax, eax
je 0x40fd91
test byte [ebp - 8], 1
jne 0x40fdaa
cmp dword [0x4e8ef4], 4
jb 0x40fda4
or byte [ebp + 0x12], 0x20
jmp 0x40fdc9
xor eax, eax
jmp 0x40fdd9
or byte [ebp + 0x12], 4
jmp 0x40fdc9
mov eax, dword [0x4e90f8]
test eax, eax
je 0x40fdc9
call eax
mov ebx, eax
test ebx, ebx
je 0x40fdc9
mov eax, dword [0x4e90fc]
test eax, eax
je 0x40fdc9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4e90f4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410bdf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4ea164]
mov eax, dword [0x4e833c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x410da5
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4ea180]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x410da5
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x410c49
xor eax, eax
jmp 0x410db9
test al, 0x20
je 0x410c5a
push 2
push edi
push edi
push ecx
call fcn.00411c51
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x410d2f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x410d76
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x410cbc
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410cad
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x410c8f
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410cfc
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x410d08
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x410c83
jmp 0x410d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x410da0
cmp dword [ebp + 0x3a4], edi
je 0x410d76
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x410d68
mov dword [0x4e8ee0], eax
jmp 0x410dac
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410d5a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x410d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x410d0a
push dword [ebp + 0x3a4]
call fcn.00411b3c
pop ecx
jmp 0x410db6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x410d8e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x410c42
mov dword [0x4e8edc], 0x1c
mov dword [0x4e8ee0], edi
jmp 0x410db6
sub eax, dword [ebp - 0x7c]
jmp 0x410db9
and dword [0x4e8ee0], 0
mov dword [0x4e8edc], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040ac63
add ebp, 0x39c
leave
ret
Function at 0x402690
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402704
lea ecx, [esp + 4]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402704
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 0x20]
push 0x80020003
or eax, 0x10
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x1c
ret

Function at 0x4036a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4036b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4036f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4036f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4036f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4036e0
cmp esi, eax
jb 0x4036fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403f40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push esi
xor esi, esi
push esi
mov dword [esp + 8], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403fdf
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [esp + 0x14]
mov eax, ebp
lea edx, [eax + 2]
jmp 0x403f70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f70
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x403fd0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x403fcf
push edi
push ebp
push ebx
call fcn.004b01d0
add esp, 0xc
xor ecx, ecx
push esi
mov word [edi + ebx], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x403fcf
mov dword [esp + 0x10], 1
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x405170
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
mov eax, dword [0x6341d4]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push ebx
mov bx, word [esp + 0x1c]
push ebp
push esi
push edi
cmp bx, 0x61
jb 0x405197
cmp bx, 0x7a
jbe 0x4051a4
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x405235
mov esi, dword [sym.imp.USER32.dll_keybd_event]
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
add eax, 0xffffffbf
mov dword [esp + 0x10], 0
cmp ax, 0x19
ja 0x4051d8
push 0
push 0
push 0
push 0x10
mov dword [esp + 0x20], 1
call edi
push eax
push 0x10
call esi
movzx edx, bx
push edx
call fcn.004b0bfc
add esp, 4
movzx ebx, ax
push 0
push 0
movzx ebp, bx
push 0
push ebp
mov dword [esp + 0x38], ebx
call edi
push eax
push ebx
call esi
push 0
push 2
push 0
push ebp
call edi
push eax
push ebx
call esi
cmp dword [esp + 0x10], 0
je 0x4052f8
push 0
push 2
push 0
push 0x10
call edi
push eax
push 0x10
call esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004af517
add esp, 0x14
ret
mov eax, 0xff
cmp bx, ax
jbe 0x405254
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x29]
mov byte [esp + 0x28], cl
mov byte [esp + 0x29], al
mov bx, word [esp + 0x28]
movzx edx, bx
push edx
lea eax, [esp + 0x18]
push 0x4f5c74
push eax
call fcn.004b0a69
lea ebp, [esp + 0x20]
add esp, 0xc
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x405271
sub ebp, ecx
mov eax, 0
je 0x405295
mov cl, byte [esp + eax + 0x14]
sub cl, 0x30
or cl, 0x60
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, ebp
jb 0x405282
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0
push 0
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
xor esi, esi
test ebp, ebp
jbe 0x4052e9
movsx edx, byte [esp + esi + 0x14]
push 0
push 0
push 0
push edx
call edi
push eax
movzx eax, byte [esp + esi + 0x20]
push eax
call ebx
movsx ecx, byte [esp + esi + 0x14]
push 0
push 2
push 0
push ecx
call edi
movzx edx, byte [esp + esi + 0x1c]
push eax
push edx
call ebx
inc esi
cmp esi, ebp
jb 0x4052b6
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call ebx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af517
add esp, 0x14
ret