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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x57cfd8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x513de2
cmp byte [edx], 0xa
jne 0x513de2
or byte [eax + edi + 0x28], 4
jmp 0x513de7
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x513ed8
mov al, byte [ebx]
cmp al, 0x1a
je 0x513eb9
cmp al, 0xd
je 0x513e10
mov byte [esi], al
inc esi
inc ebx
jmp 0x513eae
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x513e30
cmp byte [eax], 0xa
jne 0x513e25
push 2
mov byte [esi], 0xa
pop eax
jmp 0x513e2b
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x513eae
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x513ea7
cmp dword [ebp - 0x14], 0
je 0x513ea7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x57cfd8]
test byte [eax + edi + 0x28], 0x48
je 0x513e7e
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x513e6e
mov byte [esi], dl
jmp 0x513eaa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x57cfd8]
mov byte [eax + edi + 0x2a], dl
jmp 0x513eaa
cmp byte [ebp - 1], 0xa
jne 0x513e90
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x513e90
mov byte [esi], 0xa
jmp 0x513e2d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00509f40
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x513eab
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x513df9
jmp 0x513ed8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x57cfd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x513ed3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x513ed8
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x513ee3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x57cfd8]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x513f27
cmp word [edx], bx
jne 0x513f27
or byte [edi + eax + 0x28], 4
jmp 0x513f2c
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x514080
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x514060
cmp ax, word [ebp - 0x10]
je 0x513f65
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x514055
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x513f8b
push 0xa
pop ecx
cmp word [eax], cx
jne 0x513f7b
push ecx
pop eax
push 4
jmp 0x513f80
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x51404f
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x514046
cmp dword [ebp - 0x18], 0
je 0x514046
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x57cfd8]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x514012
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x513fd6
mov word [esi], ax
jmp 0x51400a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x57cfd8]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x57cfd8]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x57cfd8]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x514055
cmp word [ebp - 4], ax
jne 0x514027
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x514027
mov word [esi], ax
add esi, 2
jmp 0x514055
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00509f40
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x514052
jmp 0x514049
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x513f45
jmp 0x514080
mov ecx, dword [ecx*4 + 0x57cfd8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x514077
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x514080
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51a032
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00519cd4
Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8

Function at 0x433876
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x433885
pop dword [ebp - 0x30]
mov eax, 0x2f7537c9
sub eax, 0x2f31ff44
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xe340d0f8
sub dword [ebp - 0x40], 0x94ee8bad
mov dword [ebp - 0x3c], 0x5c86c66
sub dword [ebp - 0x3c], 0xd3952021
mov dword [ebp - 0x38], 0x8b3767a6
add dword [ebp - 0x38], 0xc114dc88
mov dword [ebp - 0x34], 0x4e39583d
add dword [ebp - 0x34], 0xb1c6a7c3
lea eax, [ebp - 0x40]
push eax
mov eax, 0x9a64b985
add eax, 0x65df08a7
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x50382cef
add dword [ebp - 0x40], 0x243a3c67
mov dword [ebp - 0x3c], 0xa6c6ff34
add dword [ebp - 0x3c], 0x9aa56241
mov dword [ebp - 0x38], 0xe0efe57a
sub dword [ebp - 0x38], 0x7d80790e
mov dword [ebp - 0x34], 0x2c87ec49
sub dword [ebp - 0x34], 0x2c87ec49
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xa40885b7
sub eax, 0xa3c4c2c7
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x4391b
push 0
call eax
mov ecx, 0xcc65c22d
sub ecx, 0xcc65838e
xor edi, edi
add edi, eax
mov ebx, 0x475600
add ebx, dword [ebp - 0x30]
mov edx, 0xd1b5eb7e
sub edx, 0x32c3fbcb
xor dword [ebp - 0x24], eax
mov esi, dword [ebx]
sub dword [ebp - 0x10], 0xd31eef0d
add esi, edx
sub dword [ebp - 0x20], eax
mov dword [edi], esi
add edi, 0x90b3f21f
add edi, 0x6f4c0de5
add ebx, 4
loop 0x4339a3
add eax, 0x5295fd57
add eax, 0xad6aeff8
xor ebx, ebx
add ebx, eax
add eax, 0xf6fb0139
sub eax, 0xf6fb0134
mov ecx, 0xf91b9dee
sub ecx, 0xf8db9dee
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x402eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f28
xor eax, eax
push ebp
push 0x402f21
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 0x402f64
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 0x402f28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40389c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x4038fd
cmp word [0x40a218], 0xd7b2
jne 0x4038c5
cmp dword [0x40a220], 0
jbe 0x4038c5
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
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 0x403924
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x403919
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404714
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40477a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c68
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402aa4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404764
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404781
lea eax, [ebp - 0x10]
call fcn.00403a20
ret

Function at 0x406684
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 0x4066bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b10
jmp 0x4066c6
mov eax, ebx
mov edx, esi
call fcn.00403a74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4066d0
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 0x4066f1
mov al, byte [esp]
jmp 0x4066f3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406d88
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406bf0
mov eax, dword [0x4093c0]
cmp byte [eax], 0
je 0x406e04
mov eax, dword [0x40931c]
call fcn.00402a40
call fcn.00402968
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.00405b58
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 0x406e4c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406e3a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.004040e4
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 0x407828
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40788c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403c68
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405a20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407893
lea eax, [ebp - 0xc]
call fcn.00403a20
ret

Function at 0x4084e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4085a8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx], eax
lea eax, [ebx + 4]
call fcn.00403a20
lea eax, [ebx + 8]
call fcn.00403a20
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
push dword [ebp - 4]
push dword [ebp - 8]
call sub.user32.dll_WindowFromPoint
mov esi, eax
push 2
push esi
call sub.user32.dll_GetAncestor
mov esi, eax
mov dword [ebx], esi
push 0xff
lea eax, [ebp - 0x108]
push eax
push esi
call sub.user32.dll_GetWindowTextA
lea eax, [ebx + 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00403c68
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
push esi
call sub.user32.dll_GetClassNameA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x108]
call fcn.004084cc
mov edx, dword [ebp - 0x10c]
lea eax, [ebx + 8]
call fcn.00403a74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4085af
lea eax, [ebp - 0x10c]
call fcn.00403a20
ret

Function at 0x408dfc
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [0x40a660]
push eax
mov eax, 0x408a24
push eax
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov edx, dword [0x4092e0]
mov edx, dword [edx]
mov dword [edx + 8], eax
mov eax, dword [0x4092e0]
mov eax, dword [eax]
mov dword [eax], ebx
mov eax, dword [0x4092e0]
mov eax, dword [eax]
cmp dword [eax + 8], 0
setne al
pop ebx
ret
Function at 0x4017b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4087dc]
push esi
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x401856
push ebx
xor ebx, ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40183e
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4017e0
sub eax, edx
push edi
sar eax, 1
lea edi, [eax + eax + 2]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40183d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
je 0x40183d
mov ecx, dword [ebp + 8]
push ecx
shr edi, 1
push edi
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
test ebx, ebx
jne 0x401853
test esi, esi
je 0x401853
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4018a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
mov esi, dword [0x4087dc]
mov ecx, 0x58a840
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4018fa
push edi
push 0xd
xor edi, edi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4018f1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4018f1
push eax
mov ecx, 0x58a840
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
cmp eax, dword [0x58a808]
je 0x401c76
push esi
mov esi, dword [sym.imp.USER32.dll_SendInput]
push 0x1c
mov eax, 0x14
lea edx, [ebp - 0x1c]
mov word [ebp - 0x18], ax
xor eax, eax
push edx
mov ecx, 0x3a
push 1
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x16], cx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call esi
or dword [ebp - 0x14], 2
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
mov eax, 0xba
push 1
mov word [ebp - 0x16], ax
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402a00
Capabilities:
Acquire debug privileges
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404d42
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x408028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call sub.mfc90u.dll_Ordinal_6865
mov dword [ebp - 4], 0
lea ecx, [esi + 0x2a38]
mov dword [esi], vtable.CMainFrame.0
call sub.mfc90u.dll_Ordinal_6932
lea ecx, [esi + 0x368c]
mov byte [ebp - 4], 1
call sub.mfc90u.dll_Ordinal_7047
lea ecx, [esi + 0x4290]
mov byte [ebp - 4], 2
call sub.mfc90u.dll_Ordinal_7065
push 0
push 0
push 0
push 0
push 0x405ab4
mov byte [ebp - 4], 3
call sub.mfc90u.dll_AfxBeginThread
push 0x4087e0
mov dword [0x58a7f4], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x10]
push eax
push 0x28
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402af0
lea ecx, [ebp - 0x18]
push ecx
push 0x405b94
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x402af0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x10]
push 0
push edx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0xd6
push str.ApplicationLook
mov ecx, 0x58a848
call sub.mfc90u.dll_Ordinal_8812
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0
push 0
push 0x402500
push 0xd
mov dword [0x58c938], eax
call edi
push 0
push 0
push 0x402460
push 0xe
mov dword [0x4087d8], eax
call edi
mov dword [0x4087d4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40444a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408028]
jne 0x404454
repz ret
jmp fcn.0040496e
Function at 0x401710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str.55222
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x40178a
cmp dword [ebp - 0x118], 0
je 0x40178a
jmp 0x4017ec
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x4017ec
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4360b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4360d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4360cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401a60
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x40178a
mov esp, ebp
pop ebp
ret

Function at 0x401aa0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4360c0], 0x24e1
mov eax, dword [0x4360c0]
sub eax, 0x24e1
mov dword [0x4360c0], eax
mov ecx, 1
test ecx, ecx
je 0x401b4b
mov edx, dword [0x4360c0]
cmp edx, dword [ebp + 0xc]
jb 0x401ad7
jmp 0x401b4b
cmp dword [0x4360c0], 0
jne 0x401af5
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401af5
xor eax, eax
jmp 0x401b4b
mov eax, dword [ebp + 8]
add eax, dword [0x4360c0]
mov ecx, dword [eax]
add ecx, dword [0x4360c0]
mov edx, dword [ebp + 8]
add edx, dword [0x4360c0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x1a79
mov eax, dword [0x4360c0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4360c0]
push eax
call fcn.004011d0
add esp, 8
mov ecx, dword [0x4360c0]
add ecx, 4
mov dword [0x4360c0], ecx
jmp 0x401abd
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x89cc40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3f0000]
push edi
or ebp, 0xffffffff
jmp 0x89cc62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x89cc69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89cc58
mov eax, 1
add ebx, ebx
jne 0x89cc7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x89cc8c
jne 0x89ccab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89ccab
dec eax
add ebx, ebx
jne 0x89cc98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x89cc70
add ebx, ebx
jne 0x89cca7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x89ccfd
xor ecx, ecx
sub eax, 3
jb 0x89ccc3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x89cd32
sar eax, 1
mov ebp, eax
jmp 0x89ccce
add ebx, ebx
jne 0x89ccce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89cc9c
inc ecx
add ebx, ebx
jne 0x89ccdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89cc9c
add ebx, ebx
jne 0x89cce9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x89ccde
jne 0x89ccfa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x89ccde
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x89cd1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x89cd0e
jmp 0x89cc5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x89cd1c
add edi, ecx
jmp 0x89cc5e
pop esi
mov edi, esi
mov ecx, 0x2b54
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x89cd3a
cmp byte [edi], 0xc
jne 0x89cd3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x89cd3f
lea edi, [esi + 0x49a000]
mov eax, dword [edi]
or eax, eax
je 0x89cdb7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x49d160]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x49d19c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x89cd6c
mov ecx, edi
jns 0x89cd9b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x49d1a0]
or eax, eax
je 0x89cdb1
mov dword [ebx], eax
add ebx, 4
jmp 0x89cd89
call dword [esi + 0x49d1b0]
mov ebp, dword [esi + 0x49d1a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x89cdeb
sub esp, 0xffffff80
jmp 0x40d7e8