joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bed0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49efe3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048f883
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00494ffb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00496596
test eax, eax
je 0x44bfec
mov ecx, dword [esp + 0x3c]
call fcn.00495028
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44bfb0
push edi
mov ecx, esi
call fcn.004925e1
mov ecx, esi
call fcn.0044c150
cmp dword [esp + 0x38], 1
jne 0x44bfe5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049274b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44ea10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44ea43
push esi
call fcn.00451b20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44ea3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44eac9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44eab2
mov eax, dword [esi + 8]
test eax, eax
je 0x44ea67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44eaae
cmp eax, 2
je 0x44eab2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44ea5a
cmp eax, 3
je 0x44ea8d
cmp eax, 1
jne 0x44ea5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44ea5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44ea5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044eaf0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44ead8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044eaf0
add esp, 4
pop esi
ret

Function at 0x45cdf0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45ce93
test eax, eax
jbe 0x45ce93
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45ce93
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45ce3e
xor esi, esi
jmp 0x45ce44
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45ce6f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00461750
add esi, eax
push esi
mov ebx, esi
call fcn.00461750
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45ce50
pop ebp
test edi, edi
pop edi
jne 0x45ce93
test ebx, ebx
je 0x45ce93
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047d6d0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45d235
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45d34d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45d34d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048fcd5
mov esi, eax
test esi, esi
je 0x45d34d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45d34d
mov ecx, esi
call fcn.0045d0d0
cmp edi, eax
jge 0x45d34d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45d2d3
mov dword [esp + 0x34], 1
jmp 0x45d32e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45d34d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045a650
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46a420
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x46a46c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x46a46c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x46a456
push eax
call ebp
test ax, ax
jl 0x46a464
inc esi
add edi, 4
cmp esi, 6
jb 0x46a448
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0046a120
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46e180
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x46e1e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x46e1e0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x46e1e0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x46e1e0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x46e1f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x46eec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46ef26
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46ef26
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46ef07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x46f2b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46f2e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x46ff10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46ff59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4703d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046ff80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00470000
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00470000
lea ecx, [esi + 0xc]
call fcn.0048e213
lea ecx, [esi + 0x10]
call fcn.0048e213
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00471560
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00471560
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00471560
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048e288
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048e288
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x490678
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4906b0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048e72f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e707
jmp 0x4906bc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x491d6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x491dac
call fcn.00497ede
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x491dac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x491da3
xor eax, eax
jmp 0x491db4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00491dba
pop edi
pop esi
pop ebx
ret 4

Function at 0x49840e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49843c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49845a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00498374
jmp 0x49845a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49845a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00498374
test edi, edi
mov eax, edi
jne 0x498444
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40eca0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x5d5470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x5d546c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5d5470], edx
cmp eax, 0x26f
jl 0x40eca8
mov dword [0x566fa0], 0x270
ret

Function at 0x40ece0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x5d5474]
mov ebx, dword [eax*4 + 0x5d5470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5d5aa4]
mov dword [eax*4 + 0x5d5470], edx
cmp eax, 0xe2
jl 0x40ece8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x5d5474]
mov ebx, dword [eax*4 + 0x5d5470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5d50e4]
mov dword [eax*4 + 0x5d5470], edx
cmp eax, 0x26e
jl 0x40ed38
mov edx, dword [0x5d5470]
mov ecx, dword [0x5d5e2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x5d5aa0]
mov dword [0x5d5e2c], eax
mov dword [0x566fa0], 0
pop ebx
ret

Function at 0x40edc0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x566fa0]
add dword [0x566fa0], 1
mov eax, dword [0x5d4020]
cmp eax, dword [0x5666f0]
jne 0x40ede3
cmp ebx, 0x271
jb 0x40ee04
mov eax, dword [0x5d4020]
call fcn.0040eca0
not dword [0x5d4020]
mov eax, dword [0x5d4020]
mov dword [0x5666f0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40ee20
call fcn.0040ece0
xor ebx, ebx
mov dword [0x566fa0], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x5d5470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x410970
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x566440]
cmp ax, 0xcb
je 0x410a7c
cmp ax, 0xcc
je 0x410a7c
lea esi, [esi]
mov edx, dword [0x5d6070]
test edx, edx
je 0x4109a5
mov eax, dword [0x5d5f20]
call edx
mov ebx, eax
jmp 0x4109aa
mov ebx, 0x5d5f24
cmp word [0x5d5f10], 0
jle 0x4109d0
mov eax, 0x5d5ef0
call fcn.00410be0
mov eax, ebx
call fcn.00410530
mov eax, ebx
call fcn.004105a0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x4109f2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x4109ed
mov edx, edi
mov eax, ebx
call fcn.0040f9a0
jmp 0x4109f0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x4109d8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x5d5f10], 0
jle 0x410a7c
mov edx, 0x5d5e30
mov eax, ebx
call fcn.0040fae0
mov edi, eax
test edi, edi
je 0x410a4c
mov eax, dword [0x5d5ec4]
mov dword [edi + 0xc], eax
cmp dword [0x5d5ec4], 0
je 0x410a40
mov eax, dword [0x5d5ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x5d5ec4], eax
nop
sub word [0x5d5f10], 1
cmp word [0x5d5f10], 0
sete bl
mov eax, 0x5d5ef0
call fcn.00410c00
test bl, bl
je 0x410a7c
mov eax, 0x5d5ef0
call fcn.00410bd0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x412c20
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00412c10
push ebp
push 0x414260
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, esi
test esi, esi
jne 0x412c59
mov eax, 0x5d52f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0040b570
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412c7c
mov eax, 0x5d52f0
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x412c89
mov eax, 0x5d52f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x412d4e
jmp 0x412ca3
sub edx, 1
cmp edx, 3
jbe 0x412cb4
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x412ca0
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
xor ebx, ebx
cmp edi, ebx
jne 0x412ccd
cmp eax, ecx
je 0x412cd8
lea eax, [ebp - 0xc]
call fcn.0040b570
lea esi, [esi]
mov eax, 0x4011e0
mov edx, dword [ebp - 0xc]
call fcn.00412b90
mov edx, dword [0x5d6070]
test edx, edx
je 0x412cf8
mov eax, dword [0x5d5160]
call edx
jmp 0x412cfd
mov eax, 0x5d5164
cmp word [eax], 0
jne 0x412d5a
mov eax, esi
test esi, esi
je 0x412d0d
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x412d5a
cmp word [esi + 2], 0x3a
jne 0x412d5a
mov word [ebp - 8], 0x3d
mov ax, word [esi]
mov word [ebp - 6], ax
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412d3f
mov eax, 0x5d52f0
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
lea esi, [esi]
jmp 0x412d5a
mov eax, 0x4011e0
mov edx, esi
call fcn.00412b90
mov edx, dword [0x5d6070]
test edx, edx
je 0x412d6d
mov eax, dword [0x5d5160]
call edx
jmp 0x412d72
mov eax, 0x5d5164
cmp word [eax], 2
jne 0x412d98
mov edx, dword [0x5d6070]
test edx, edx
je 0x412d8c
mov eax, dword [0x5d5160]
call edx
jmp 0x412d91
mov eax, 0x5d5164
mov word [eax], 3
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00412c10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00412db0
push ebp
push 0x414260
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x412efa
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b570
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x412e5f
mov edx, 0x5d52f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x412eb1
call sub.kernel32.dll_GetLastError
call fcn.00404070
lea eax, [ebp - 0x10]
call fcn.0040a150
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a5f0
mov edx, dword [ebp - 0x14]
mov ecx, 0x582324
lea eax, [ebp - 0x10]
call fcn.0040a480
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040ae40
jmp 0x412f48
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x412eca
cmp eax, ecx
je 0x412ed4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b570
cmp byte [0x5666c0], 0
jne 0x412f48
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bb10
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040aed0
lea esi, [esi]
jmp 0x412f48
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b570
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x412f1e
mov eax, 0x5d52f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5666c0], 0
jne 0x412f48
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bb10
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040aed0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00412db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4133e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x5d5260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.004135c0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x5d5260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004035e0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5664c0], eax
mov ebx, eax
jmp 0x413583
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x413468
cmp byte [ebx], 0
je 0x41358c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x4134e3
mov al, byte [ebx]
cmp al, 1
jb 0x4134d8
sub al, 0x20
jbe 0x4134a8
sub al, 2
je 0x4134bc
jmp 0x4134d8
mov al, byte [ebp - 0x114]
test al, al
je 0x4134e8
add dword [ebp - 0x110], 1
jmp 0x4134e0
cmp byte [ebx + 1], 0x22
je 0x4134d3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4134e0
add ebx, 1
jmp 0x4134e0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413498
test dword [ebp - 0x10c], 0xffffffff
je 0x41357c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004135c0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x5d5260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x413573
mov al, byte [ebx]
cmp al, 1
jb 0x413568
sub al, 0x20
jbe 0x413538
sub al, 2
je 0x41354c
jmp 0x413568
mov al, byte [ebp - 0x114]
test al, al
je 0x413578
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x413570
cmp byte [ebx + 1], 0x22
je 0x413563
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413570
add ebx, 1
jmp 0x413570
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413528
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41346b
mov ebx, dword [ebp - 0x10c]
mov dword [0x5d5250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x5d5260
call fcn.004107b0
mov eax, dword [0x5d5260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
xor eax, eax
push fcn.00426cc0
push ebp
push 0x414260
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
xor cx, cx
mov edx, 0xff
call fcn.00409370
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00445960
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00426cc0
mov esp, ebp
pop ebp
ret
Function at 0x426d80
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov edx, 0x587078
lea eax, [ebp - 0xc]
call fcn.0040e590
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00426d60
push ebp
push 0x414260
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, str.Parametr
call fcn.00408980
push 0
lea eax, [ebp - 0x10]
call fcn.00426cd0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, str.DirectYdirecty.exe
call fcn.00408a80
mov edx, 1
mov eax, 0x5d295c
call fcn.00562990
mov dword [ebp - 4], eax
xor eax, eax
push fcn.00426d50
push ebp
push 0x414260
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x80000001
call fcn.00562950
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00562bc0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.00562da0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00409540
test eax, eax
je 0x426e44
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00562f60
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00426d50
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00426d60
mov esp, ebp
pop ebp
ret