joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov eax, dword [ebx + 0x10]
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 0xc]
mov edx, 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], 0x20000000
mov dword [esp + 0x14], edx
xor eax, eax
movzx bp, byte [ecx]
mov ah, byte [ecx + 1]
or eax, ebp
test al, 1
mov word [esi + 0x54], ax
je 0x4024de
mov edx, 6
mov dword [esp + 0x14], edx
test byte [esi + 0x54], 4
je 0x4024fc
lea ecx, [esp + 0x30]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.0041aeb0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test byte [esi + 0x54], 2
je 0x402519
lea ebp, [edx + ecx]
add edx, 2
xor eax, eax
mov dword [esp + 0x14], edx
mov ah, byte [ebp + 1]
mov al, byte [ebp]
mov dword [esi + 0x58], eax
jmp 0x40251c
mov dword [esi + 0x58], edi
test byte [esi + 0x55], 0x20
je 0x402542
mov cl, byte [edx + ecx]
inc edx
mov byte [esp + 0x30], cl
mov eax, dword [esp + 0x30]
and eax, 0xff
add edx, 8
mov dword [esi + 0x80], eax
mov dword [esp + 0x14], edx
jmp 0x402548
mov dword [esi + 0x80], edi
lea ecx, [esp + 0x10]
call fcn.0041b100
mov dword [esi + 8], eax
mov al, byte [esi + 0x54]
test al, 0x80
je 0x402569
lea ecx, [esp + 0x10]
call fcn.0041b100
mov dword [esi + 0xc], eax
jmp 0x40256c
mov dword [esi + 0xc], edi
mov dword [esi + 0x6c], ebx
mov ecx, dword [ebx + 0x10]
push 2
mov dword [esi + 0x70], ecx
mov dword [esi + 0x44], edi
mov dword [esi + 0x50], edi
call fcn.00406d10
lea edx, [esi + 0x84]
mov dword [esi + 4], eax
mov word [eax], di
push edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x7c], 0xffffffff
mov dword [esi + 0x9c], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x94], edi
call fcn.00405da0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x4034b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
mov ebx, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40357b
mov eax, dword [ebx + 0x14]
push ebp
push esi
mov esi, dword [ebx + 0x18]
cmp eax, esi
push edi
jge 0x4034d4
mov edi, eax
jmp 0x4034d8
mov edi, esi
mov esi, eax
sub esi, edi
lea eax, [esi + esi + 1]
push eax
call fcn.00406d10
mov ecx, dword [ebx + 4]
add esp, 4
mov edx, esi
dec esi
test edx, edx
mov ebp, eax
lea edi, [ecx + edi*2]
je 0x403528
inc esi
mov cx, word [edi]
cmp cx, 0xd
jne 0x403508
mov byte [eax], cl
inc eax
mov byte [eax], 0xa
jmp 0x403521
cmp cx, 0xff
jbe 0x40351d
xor edx, edx
inc eax
mov dl, ch
mov byte [eax - 1], dl
mov cl, byte [edi]
mov byte [eax], cl
jmp 0x403521
mov dl, byte [edi]
mov byte [eax], dl
inc eax
add edi, 2
dec esi
jne 0x4034f7
mov byte [eax], 0
sub eax, ebp
inc eax
mov esi, eax
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov edi, eax
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebp
call fcn.00406d20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x403580
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
mov ebx, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403603
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4035f5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.0041ed00
mov esi, eax
add esp, 4
test esi, esi
je 0x4035ed
mov cl, byte [esi]
mov edx, esi
test cl, cl
je 0x4035d9
mov cl, byte [edx]
cmp cl, 0xd
je 0x4035d1
cmp cl, 0xa
jne 0x4035ce
mov byte [eax], 0xd
jmp 0x4035d0
mov byte [eax], cl
inc eax
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x4035bd
sub eax, esi
mov ecx, ebx
push eax
push esi
call fcn.00403610
push esi
call fcn.0041ecf0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebx + 0x68], 0
pop edi
pop ebx
ret
Function at 0x403f20
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x20]
push esi
cmp word [ebx + 0x62], 0
je 0x403f32
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
lea ecx, [eax + 0x504]
call fcn.00406c60
mov esi, eax
test esi, esi
jne 0x403f48
pop esi
pop ebx
ret
mov eax, dword [ebx]
push edi
add eax, 0x158
mov ecx, esi
push eax
call fcn.0040c590
mov ecx, dword [ebx + 0x80]
mov edx, dword [esp + 0x20]
mov ax, word [esp + 0x1c]
mov dword [esi + 8], ecx
mov cx, word [esp + 0x10]
mov dword [ebx + 0x80], esi
mov word [esi + 0x24], cx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0xc], edx
mov dx, word [esp + 0x14]
mov word [esi + 0x26], ax
mov ax, word [esp + 0x18]
lea edi, [esi + 0x20]
add ecx, 0x18
mov word [esi + 0x22], dx
mov word [edi], ax
mov eax, dword [ecx]
test eax, eax
je 0x403fa9
push 1
push edi
call fcn.00413110
xor eax, eax
mov ax, word [edi + 6]
cmp eax, 0xff
jge 0x403fec
xor edx, edx
inc eax
mov dx, word [edi + 4]
xor ecx, ecx
imul edx, eax
mov cx, word [edi + 2]
sar edx, 8
imul ecx, eax
mov word [edi + 4], dx
xor edx, edx
mov dx, word [edi]
imul edx, eax
sar ecx, 8
sar edx, 8
mov word [edi + 2], cx
mov word [edi], dx
mov eax, 1
jmp 0x403fee
xor eax, eax
mov byte [esi + 0x14], al
mov eax, dword [ebx]
pop edi
mov ecx, dword [eax + 0x174]
test ecx, ecx
je 0x404005
mov ecx, esi
call fcn.0040ca60
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4052f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
test byte [ecx + 0x55], 0x10
push esi
je 0x405305
mov eax, dword [esp + 8]
pop esi
mov dword [eax], 0
ret 4
mov esi, dword [esp + 8]
push edi
xor eax, eax
mov dword [esi], 0x10
mov edx, dword [ecx + 0x14]
mov edi, dword [ecx + 0x18]
cmp edx, edi
pop edi
setne al
mov edx, eax
test edx, edx
je 0x405330
test byte [ecx + 0x54], 0x10
jne 0x405330
mov dword [esi], 0x12
test byte [ecx + 0x54], 8
jne 0x40536e
mov eax, dword [esi]
test al, 2
je 0x405340
or al, 1
mov dword [esi], eax
test edx, edx
je 0x40534a
mov eax, dword [esi]
or al, 8
mov dword [esi], eax
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40536e
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x405368
mov eax, dword [esi]
or al, 4
mov dword [esi], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret 4

Function at 0x408190
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xd58087fd
mov cl, 0x4c
imul edi, edx, 0x914a8923
or ch, bh
dec ebp
sub bh, 0xe3
push 0
pop edx
dec eax
mov bh, cl
imul ebp, ecx
mov ah, 0x43
mov ebx, 0x9e994750
xchg ah, bl
movzx eax, cl
mov ecx, 0x15b65
sbb bh, 0x88
test ah, dl
xor ecx, 0x4abc
dec al
imul ebp, ebp
test ah, bl
add ecx, 0x16fd
movsx eax, ah
movzx ebp, ah
xchg ecx, edi
sbb al, 0xaa
xchg bl, al
add edi, 0xaa47
cmp edx, 0xd623
js 0x4081f6
movsx ebp, ch
xadd edx, edi
sub edx, 0x1d31c
mov esi, esi
xchg ebp, ecx
sub ch, cl
cmp edx, 0x2da
jl 0x4081a8
cmp al, 0x16
mov edi, 0x737a3957
mov bh, ah
movzx ebx, dx
call 0x408291
jbe 0x408228
movsx ebp, ch
xor edx, edx
js 0x40822e
mov dh, ah
add eax, 0x97cd
and dl, cl
sub eax, 0x943
push 0
pop ebx
mov ecx, ebp
movsx edx, dh
movzx eax, di
test esi, 0xf9ffe1d9
imul edx, esi
mov ecx, eax
mov edx, 0x3df37bd9
mov eax, 0x240
inc esi
imul edx, edx, 0x4156ba91
sub eax, 0xf5
lea esi, [0x5ab7b1d1]
add ebx, eax
xor edx, eax
sub ebx, 0x14a
and dh, ah
or ch, 0x99
inc edx
lea ecx, [0x50caf55e]
xchg edx, edx
cmp ebx, 0x669
jl 0x40823d
imul edx, ebp, 0x1381611b
adc bh, 0xb0
jo 0x40829e
inc esi
push 0xba0a
jmp 0x4082ac
pop ebp
lea ecx, [0x2948c3ed]
sub ah, 0x23
dec ebx
pop edx
add ah, ch
imul edi, edi
bnd jmp 0x4082c7
add edx, 0x3f856
imul esi, edi
sbb al, 0x7a
add edx, 0x58f
and ah, 0xe2
dec edi
and eax, 0x845f9f8a
push 0x66a288
push 0x633a05
movzx eax, di
xchg bh, al
mov ebp, 0xb0dffba9
test bh, dh
cmp al, 7
imul ebp, ecx
sub ecx, ecx
jbe 0x408309
or bh, 0x90
imul eax, ebx
xchg edi, ebp
lea eax, [0x39f753a4]
and ebx, edx
and al, 0xe3
sub ecx, ebx
mov bh, 0x88
push 0xb142ad
push edi
mov al, 0x7c
or eax, 0x29e3d8d6
mov ah, 0xdf
push edx
cmp ecx, esi
mov eax, edx
mov edi, ebp
mov ah, dh
test edi, esi
cmp ebx, 0x5942
mov ecx, 0x745c126b
or ch, 0x80
mov bl, 0xc8
ret
Function at 0x408c70
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x114
push esi
push edi
lea eax, [esp + 0x18]
push 0x104
push eax
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [esp + 0x120]
push 0
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x408db0
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408db0
push ebx
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 0
push 0
lea edx, [ebx - 8]
push edx
push esi
call ebp
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 8
jne 0x408d91
cmp dword [esp + 0x18], 0xfa123456
jne 0x408d2e
mov ecx, dword [esp + 0x1c]
mov edx, 0xfffffff8
sub edx, ecx
add ebx, edx
push 0
push 0
push ebx
push esi
call ebp
mov ecx, dword [edi + 0x98]
mov edx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
push esi
call ebx
mov eax, dword [edi + 0x98]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x408d91
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x2c], 0xfa123456
call ebx
cmp dword [esp + 0x10], 8
jne 0x408d91
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
pop ebx
jne 0x408db0
mov edx, dword [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x114
ret 4
Function at 0x409490
Capabilities:
Create process on windows

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push str.FSCommand:
push edi
call fcn.0041ec50
mov esi, eax
add esp, 8
test esi, esi
je 0x409643
push str.quit
push esi
call fcn.0041ec90
add esp, 8
test eax, eax
je 0x4094d7
mov eax, dword [0x43cb50]
mov ecx, dword [eax + 0x15d4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebp
ret
push str.fullscreen
push esi
call fcn.0041ec90
add esp, 8
test eax, eax
je 0x409506
mov edx, dword [esp + 0x18]
push edx
call fcn.00409670
mov ecx, dword [0x43cb50]
add esp, 4
push eax
call fcn.00408dc0
pop edi
pop esi
pop ebp
ret
push str.allowscale
push esi
call fcn.0041ec90
add esp, 8
test eax, eax
je 0x409543
mov eax, dword [esp + 0x18]
push eax
call fcn.00409670
mov ecx, dword [esp + 0x14]
add esp, 4
neg eax
sbb eax, eax
push 2
and al, 0xfd
add eax, 3
mov dword [ecx + 0x14b4], eax
call fcn.0041ff40
pop edi
pop esi
pop ebp
ret
push str.exec
push esi
call fcn.0041ec90
add esp, 8
test eax, eax
je 0x4095b3
mov ebp, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.00406d10
mov edi, eax
add esp, 4
test edi, edi
je 0x40966a
push ebx
xor ebx, ebx
test esi, esi
jle 0x40959c
mov edx, ebp
sub edx, edi
mov cl, byte [edx + eax]
cmp cl, 0x20
mov byte [eax], cl
je 0x409598
inc ebx
inc eax
cmp ebx, esi
jl 0x409586
jmp 0x40959c
mov byte [ebx + edi], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push edi
call fcn.00406d20
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret
push str.showmenu
push esi
call fcn.0041ec90
add esp, 8
test eax, eax
je 0x40966a
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push ecx
call fcn.00409670
mov dword [esi + 0x14a0], eax
mov edx, dword [0x43cb50]
add esp, 4
mov eax, dword [edx + 0x15e4]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [esi + 0x14a0]
test ecx, ecx
jne 0x409626
test eax, eax
je 0x40966a
mov ecx, dword [0x43cb50]
push 0
mov dword [ecx + 0x1618], eax
mov edx, dword [0x43cb50]
mov eax, dword [edx + 0x15e4]
push eax
call dword [sym.imp.USER32.dll_SetMenu]
pop edi
pop esi
pop ebp
ret
mov eax, dword [0x43cb50]
mov ecx, dword [eax + 0x1618]
mov edx, dword [eax + 0x15e4]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetMenu]
pop edi
pop esi
pop ebp
ret
mov eax, dword [esp + 0x10]
push edi
mov ecx, dword [eax + 0x15cc]
push ecx
call fcn.0040b590
mov edx, dword [esp + 0x24]
mov esi, eax
push edx
push esi
call fcn.0040a540
push esi
call fcn.0041ecf0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x40a2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push edi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a311
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
push ecx
call edi
test eax, eax
jne 0x40a311
mov edx, dword [esp + 0x14]
push edx
call fcn.00406d10
mov ecx, dword [esp + 0xc]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
push ecx
call edi
test eax, eax
je 0x40a311
push esi
call fcn.00406d20
add esp, 4
xor esi, esi
mov eax, dword [esp + 8]
test eax, eax
je 0x40a320
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x40a440
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6c]
xor esi, esi
push 0x3a
push edi
mov dword [esp + 0x18], esi
call fcn.0042e490
mov ebx, eax
or ecx, 0xffffffff
sub ebx, edi
mov edi, str._shellopencommand
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ebx + 1]
push eax
call fcn.00406d10
mov ebp, eax
add esp, 0xc
cmp ebp, esi
je 0x40a516
mov esi, dword [esp + 0x6c]
mov ecx, ebx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
lea edx, [ebx + ebp]
rep movsb byte es:[edi], byte [esi]
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80000000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040a2a0
mov esi, eax
add esp, 8
test esi, esi
je 0x40a516
mov ecx, dword [esp + 0x6c]
push ecx
push esi
call fcn.0040a330
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x40a516
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebp
call fcn.00406d20
push esi
call fcn.00406d20
mov eax, dword [esp + 0x18]
push eax
call fcn.00406d20
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x425c20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xcc
je 0x425c48
mov eax, dword [esi + 0x17c]
push esi
call dword [eax]
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x10], 0xcc
mov ecx, dword [esi + 0x17c]
mov al, byte [ecx + 8]
test al, al
je 0x425c73
mov edx, dword [esi]
push esi
mov dword [edx + 0x14], 0x2d
mov eax, dword [esi]
call dword [eax]
mov ecx, dword [esi + 0x17c]
add esp, 4
mov al, byte [ecx + 8]
test al, al
jne 0x425c55
mov cl, byte [esi + 0x41]
xor edx, edx
test cl, cl
setne dl
add edx, 0xcd
mov al, 1
mov dword [esi + 0x10], edx
pop esi
ret
Function at 0x42ea70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov eax, ecx
mov ebx, dword [esp + 0x10]
cdq
and edx, 7
push ebp
add eax, edx
and ecx, 7
sar eax, 3
push esi
mov esi, dword [esp + 0x10]
test eax, eax
mov ebp, ecx
jle 0x42eabb
push edi
mov edi, eax
push 8
mov ecx, esi
call fcn.0042e6e0
xor ecx, ecx
and eax, 0xff
mov cl, bh
xor edx, edx
xor eax, ecx
mov dh, bl
mov ebx, dword [eax*4 + 0x435750]
xor ebx, edx
dec edi
jne 0x42ea96
pop edi
test ebp, ebp
jle 0x42eae7
push 1
mov ecx, esi
call fcn.0042e6e0
mov ecx, ebx
and ebx, 0x7fff
shr ecx, 0xf
and ecx, 1
xor eax, ecx
shl ebx, 1
test eax, eax
je 0x42eae4
xor ebx, 0x8005
dec ebp
jne 0x42eabf
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x401a66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42914c]
jne 0x401a70
repz ret
jmp fcn.0040251b

Function at 0x40b0ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42914c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404134
and dword [ebp - 0x14], 0
cmp dword [0x42b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x40b161
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b209
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b209
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42b7e0], eax
call edi
push eax
call esi
mov dword [0x42b7e8], eax
test eax, eax
je 0x40b161
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42b7e4], eax
mov eax, dword [0x42b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b1ba
cmp dword [0x42b7e8], ecx
je 0x40b1ba
push eax
call esi
push dword [0x42b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b1ba
test ebx, ebx
je 0x40b1ba
call edi
test eax, eax
je 0x40b1b1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b1b1
test byte [ebp - 8], 1
jne 0x40b1ba
or dword [ebp + 0x10], 0x200000
jmp 0x40b1ed
mov eax, dword [0x42b7dc]
cmp eax, dword [ebp - 0x18]
je 0x40b1ed
push eax
call esi
test eax, eax
je 0x40b1ed
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b1ed
mov eax, dword [0x42b7e0]
cmp eax, dword [ebp - 0x18]
je 0x40b1ed
push eax
call esi
test eax, eax
je 0x40b1ed
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42b7d8]
call esi
test eax, eax
je 0x40b209
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b20b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a66
leave
ret
Function at 0x421960
Capabilities:
Get geographical location

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x4219ee
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
cmp dword [esp + 0x18], 0x2d
jne 0x4219ac
push 0
push str.vepamanal_tulesizoxe_yabadodopa_zokorubonoxesiticohub_foyidufumobowebacaxosububonobo
call edi
push str.wuviyakox
push str.yekukefocudovizene
push str.kaluravujokiziduyux
push str.vixuboxituja
call ebx
push 0
call ebp
call fcn.004218b0
mov ecx, dword [esp + 0x14]
xor byte [esi + ecx], al
cmp dword [esp + 0x18], 0xf
jne 0x4219e4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push str.tigegisipawupesavumefozoj
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
inc esi
cmp esi, dword [esp + 0x18]
jl 0x421982
pop edi
pop ebp
pop ebx
cmp dword [esp + 0xc], 0x2d
pop esi
jne 0x421a0a
mov dword [0x42c8d0], 0xa62e7790
mov dword [0x42c8d4], 0xffffffff
ret
Function at 0x421db0
Capabilities:
Access the windows event log
Set file attributes

Disassembly:
mov eax, dword [0x42c8c4]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov ebp, 0x1519a5
lea esp, [esp]
mov dword [0x42c52c], 0x8e46a7b8
cmp eax, 0x3dc
jne 0x421dfa
push 0
push 0x426f78
call esi
push str.rusokuj
push 0
push 0
call edi
mov eax, dword [0x42c8c4]
dec ebp
jne 0x421dd0
mov edi, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
xor esi, esi
mov ebp, 0xec58acac
lea ebx, [ebx]
cmp eax, 0x997
jne 0x421e22
push 0
push 0
call edi
mov eax, dword [0x42c8c4]
cmp esi, 0x846373
jne 0x421e39
mov eax, dword [0x42aad0]
add eax, 0xa231
mov dword [0x42c8c4], eax
cmp eax, 0x141
jne 0x421e50
mov dword [0x42bd18], ebp
mov dword [0x42bd1c], 0xffffffff
inc esi
cmp esi, 0x123c962
jl 0x421e10
call fcn.00421a50
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10