joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ac515
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x1e25
xor ebx, ebx
mov dword [0x101c9698], 0
mov dword [0x101c969c], 0
mov dword [0x101c96a8], 0
mov dword [0x101c9690], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x101ac6a7
jmp 0x101ac594
mov eax, dword [0x101c9690]
add eax, 0xe82
mov dword [ebp - 0x2c], eax
jmp 0x101ac6a7
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
mov edi, edx
add edi, 1
add eax, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101c9698], edx
mov dword [0x101c9690], 0x3264
mov ebx, dword [ebp - 0x24]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101c969c], edx
mov ecx, dword [0x101c9694]
add ecx, 0xfffff82b
mov dword [0x101c9694], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101c96a0], cl
mov dword [0x101c9690], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101c9694], 0x112a
mov cl, byte [0x101c96a0]
mov edx, dword [0x101c969c]
mov byte [ebx + edx], cl
mov edx, dword [0x101c9698]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101c969c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101c9694], 0x55d
and ecx, 0xff
mov dword [0x101c96a8], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x101c9690], 0x65f
mov dword [0x101c9694], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x101ac582
mov eax, dword [0x101c9698]
mov ecx, dword [0x101c969c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], eax
jmp 0x101ac594
mov eax, dword [ebp - 0x2c]
mov dword [0x101c9690], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101ac6b7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x101c9690]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101c9694], esi
add edx, 0xffffe928
mov dword [0x101c9690], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101abdf3
lea ecx, [0x101abb74]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov dword [esp + 0x84], 0x142e00
mov edx, dword [0x101c967c]
mov dword [esp + 0x54], edx
mov edx, dword [0x101c9680]
mov dword [esp + 0x34], edx
mov edx, dword [0x101c9684]
mov dword [esp + 0x88], edx
mov edx, dword [0x101c9688]
mov dword [esp + 0x44], edx
mov dword [0x101c9690], 0x5bd
mov edx, dword [0x101c968c]
mov dword [esp + 0x68], edx
mov dword [0x101c9694], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101ac796
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x60], edx
mov dword [0x101c9690], 0xe1c
call fcn.101ab905
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x101ac7cd
jmp 0x101ac7f7
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x101ac7b9
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x101ac764
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101ac796
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101ac0cb
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x401240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
mov ebx, eax
mov eax, 0x40d4d8
cmove ebx, eax
mov eax, ebx
call fcn.004011b0
test eax, eax
je 0x401280
mov ebx, dword [ebp - 4]
mov eax, 1
leave
ret
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ebx, dword [ebp - 4]
sub esp, 0x10
test eax, eax
leave
sete al
movzx eax, al
add eax, eax
ret
Function at 0x401a50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x18
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], edx
test eax, eax
je 0x401b40
xor ebx, ebx
lea esi, [esi]
nop
mov eax, dword [eax]
mov esi, ebx
add ebx, 1
test eax, eax
jne 0x401a70
lea eax, [ebx*4]
mov dword [esp + 4], 0
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [edi + 4]
sub esp, 0xc
mov edx, ecx
test eax, eax
je 0x401ac1
mov dword [edx], eax
mov eax, dword [eax]
add edx, 4
test eax, eax
jne 0x401ab6
mov eax, dword [ebp - 0x10]
mov dword [esp], ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [eax*4 + 0x40d48c]
mov dword [esp + 8], 4
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.ucrtbase.dll_qsort]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, ecx
mov dword [edi + 4], edx
test esi, esi
jne 0x401b02
jmp 0x401b16
mov edx, dword [eax]
mov ebx, dword [eax + 4]
add eax, 4
mov dword [edx], ebx
sub esi, 1
jne 0x401b00
mov eax, dword [ebp - 0x14]
mov edx, dword [ecx + eax - 4]
mov dword [edx], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401b50
Capabilities:
Set application hook

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
add eax, 0x164
sub esp, 0x34
mov dword [ebp - 0x28], eax
mov eax, dword [0x417020]
mov ecx, dword [ebx + 0x14c]
mov edx, dword [ebx + 0x150]
mov dword [ebp - 0x2c], 0x40d49c
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x154]
mov dword [ebp - 0x20], ecx
sub eax, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x158]
mov dword [ebp - 0x10], 0
sub eax, edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401ce0
mov dword [esp + 0xc], eax
mov dword [esp], 5
call dword [sym.imp.user32.dll_SetWindowsHookExW]
mov dword [0x417bd8], ebx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [0x417bdc], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [0x417044]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x220
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [ebx], eax
test eax, eax
mov eax, dword [0x417bdc]
mov dword [esp], eax
je 0x401cd0
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov eax, dword [0x417060]
mov edx, 0x10
sub esp, 4
cmp eax, edx
mov dword [esp + 8], 1
cmovl eax, edx
mov dword [esp + 4], 0x1a0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
mov eax, dword [0x417060]
mov edx, 0x10
sub esp, 0x10
cmp eax, edx
mov dword [esp + 8], 1
cmovl eax, edx
mov dword [esp + 4], 0x1a0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x94]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18f
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x186
mov dword [esp], eax
call esi
mov eax, dword [ebx]
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
xor eax, eax
sub esp, 4
jmp 0x401cc9
Function at 0x401f00
Capabilities:
Get disk size

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x9a0]
push ebx
sub esp, 0x9c0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x9a8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x9b0]
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test eax, eax
jne 0x401fa8
xor eax, eax
mov edx, 0x3f
lea ebx, [ebp - 0x810]
jmp 0x401f67
movzx edx, word [eax + 0x40d4c4]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401f60
mov eax, dword [0x417048]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40b
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
lea eax, [ebp - 0x910]
mov edx, dword [ebp - 0x9ac]
mov ebx, dword [sym.imp.shlwapi.dll_StrFormatByteSizeW]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9b0]
lea esi, [ebp - 0x990]
mov dword [esp + 4], edx
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x9a4]
sub esp, 0x10
mov dword [ebp - 0x998], eax
lea eax, [ebp - 0x890]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9a8]
mov dword [esp + 4], edx
mov dword [esp + 0xc], 0x40
mov dword [esp], eax
call ebx
lea ebx, [ebp - 0x810]
mov dword [ebp - 0x994], eax
mov eax, dword [0x417020]
sub esp, 0x10
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4c3
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x998]
sub esp, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x2400
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
jmp 0x401f73
Function at 0x402080
Capabilities:
Get disk information

Disassembly:
push ebp
mov ecx, 4
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x848
mov word [ebp - 0x818], cx
mov word [ebp - 0x816], bx
lea ebx, [ebp - 0x80c]
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
mov dword [esp + 4], 0x417068
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
lea eax, [ebp - 0x820]
sub esp, 8
mov dword [esp + 0x18], eax
mov eax, dword [0x417020]
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x10], eax
mov eax, dword [0x41702c]
mov dword [esp + 0x2c], 0xd
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0xd
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x65
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x102
mov dword [esp + 4], 0x50001002
mov dword [esp], eax
call sub.comctl32.dll_CreateToolbarEx
mov dword [0x417050], eax
mov eax, dword [0x417020]
sub esp, 0x34
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4b5
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
cmp word [ebp - 0x80c], 0
je 0x4022f7
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402198
sub eax, ebx
sar eax, 1
add eax, 1
xor edx, edx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], ebx
mov edi, 0x417068
mov word [ebp + eax*2 - 0x80c], dx
mov eax, dword [0x417050]
mov ebx, 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x44d
mov dword [esp], eax
call esi
lea eax, [ebp - 0x820]
mov dword [ebp - 0x81c], 0x9001
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x417050]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x443
mov dword [esp], eax
call esi
mov eax, dword [0x417050]
add dword [ebp - 0x810], 1
sub esp, 0x10
mov dword [esp + 0xc], 0x417068
mov dword [esp + 8], 0
mov dword [esp + 4], 0x44d
mov dword [esp], eax
call esi
mov dword [ebp - 0x81c], 0x9002
sub esp, 0x10
cmp word [0x417068], 0
je 0x4022d3
lea esi, [esi]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
cmp eax, 5
je 0x4022f0
ja 0x4022e0
mov edx, 1
cmp eax, 2
je 0x402285
xor edx, edx
cmp eax, 4
sete dl
lea edx, [edx + edx + 2]
lea eax, [ebp - 0x820]
mov dword [ebp - 0x820], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x417050]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x443
mov dword [esp], eax
call esi
add dword [ebp - 0x81c], 1
add dword [ebp - 0x810], 1
sub esp, 0x10
lea esi, [esi]
add edi, 2
cmp word [edi - 2], 0
jne 0x4022c0
add ebx, 1
cmp word [edi], 0
jne 0x402258
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
cmp eax, 6
sete dl
lea edx, [edx + edx*2 + 2]
jmp 0x402285
mov edx, 3
jmp 0x402285
mov eax, 1
jmp 0x4021a8
Function at 0x4025e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x18
mov dword [ebp - 0x10], edx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18f
mov eax, dword [eax]
mov dword [esp], eax
call esi
mov ebx, eax
mov eax, dword [edi]
sub esp, 0x10
mov dword [esp + 4], 0
add ebx, 1
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_ShowWindow]
mov dword [ebp - 0x14], eax
call eax
sub esp, 8
jmp 0x402661
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x14]
cmp dword [eax + 0x14], ecx
jle 0x402687
mov eax, dword [edi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x182
mov dword [esp], eax
call esi
sub esp, 0x10
mov eax, dword [edi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x199
mov dword [esp], eax
call esi
lea ecx, [eax + 1]
sub esp, 0x10
cmp ecx, 1
ja 0x402638
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov eax, dword [edi]
mov dword [esp + 4], 5
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4026b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x1c
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_ShowWindow]
mov dword [ebp - 0x14], eax
call eax
sub esp, 8
test ebx, ebx
je 0x4027c2
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [esi + 0x84]
and eax, 0x10
test edx, edx
je 0x4027e8
test eax, eax
je 0x4027b8
cmp word [ebx + 0x44], 0x2e
je 0x402860
test edi, edi
je 0x402730
lea eax, [ebx + 0x44]
mov edx, edi
call fcn.00401650
test eax, eax
je 0x4027b8
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40273d
test byte [ebx + 0x18], 6
jne 0x4027b8
mov eax, dword [ebp + 8]
and eax, 0xe
cmp eax, 0xe
je 0x402770
lea eax, [ebx + 0x44]
call fcn.00401240
cmp eax, 1
je 0x402850
cmp eax, 2
je 0x402810
test byte [ebp + 8], 8
je 0x4027b8
lea esi, [esi]
nop
cmp dword [ebp + 0xc], 0xffffffff
mov eax, 0xffffffff
je 0x402782
add dword [ebp + 0xc], 1
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x181
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov edx, dword [esi + 0x84]
sub esp, 0x10
test edx, edx
je 0x4027b8
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x402820
lea esi, [esi]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4026f3
mov eax, dword [esi]
mov dword [esp + 4], 5
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
mov eax, dword [ebp + 0xc]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x40271a
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40271a
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4026f3
jmp 0x4027c2
test byte [ebp + 8], 4
jne 0x402770
jmp 0x4027b8
mov edx, dword [ebx + 4]
test edx, edx
je 0x4027b8
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, esi
call fcn.004026b0
mov ebx, dword [ebx]
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x4026f3
jmp 0x4027c2
test byte [ebp + 8], 2
jne 0x402770
jmp 0x4027b8
movzx eax, word [ebx + 0x46]
test ax, ax
je 0x4027b8
cmp ax, 0x2e
jne 0x40271a
cmp word [ebx + 0x48], 0
jne 0x40271a
jmp 0x4027b8
Function at 0x4031b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x620
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x618], edx
lea edx, [ebp - 0x214]
call fcn.00402fb0
lea eax, [ebp - 0x214]
mov dword [esp + 0xc], 0x402a00
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x68
mov dword [esp + 8], eax
mov eax, dword [0x417020]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
cmp eax, 1
je 0x403220
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x618]
mov edi, eax
mov eax, dword [esi + 0x90]
call fcn.00402fb0
movzx edx, word [ebp - 0x214]
cmp dx, 0x2f
je 0x40324e
cmp word [ebp - 0x212], 0x3a
jne 0x4032f0
xor eax, eax
jmp 0x403260
movzx edx, word [ebp + eax - 0x214]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x403258
lea eax, [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x40320f
test al, 0x10
je 0x40320f
lea eax, [ebp - 0x414]
lea esi, [ebp - 0x614]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x618]
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll__wsplitpath]
lea eax, [ebp - 0x414]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x214]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s_s
call dword [sym.imp.user32.dll_wsprintfW]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x90]
mov edx, ebx
mov eax, dword [eax + 8]
call fcn.00402fb0
cmp word [ebx], 0
mov eax, ebx
je 0x403361
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x403310
mov edx, eax
sub edx, ebx
lea esi, [edx - 2]
sar edx, 1
movzx esi, word [ebx + esi]
cmp si, 0x5c
je 0x40333d
cmp si, 0x2f
je 0x40333d
mov ecx, 0x2f
add edx, 1
mov word [eax], cx
lea esi, [ebx + edx*2]
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x214]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x403348
jmp 0x40326c
xor edx, edx
mov esi, 0xfffffffe
jmp 0x403322
Function at 0x407280
Capabilities:
Set current directory

Disassembly:
test edx, edx
je 0x407360
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x210
mov dword [ebx + 0x94], edx
mov word [ebp - 0x210], ax
mov eax, dword [edx + 4]
mov dword [ebx + 0x128], edx
test eax, eax
cmove eax, edx
mov dword [ebx + 0x124], eax
mov edx, dword [edx + 0x10]
test edx, edx
je 0x407328
mov eax, ebx
call fcn.00407060
mov eax, esi
lea edx, [ebp - 0x210]
call fcn.00402fb0
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebp + eax - 0x210]
mov word [ebx + eax + 0x164], dx
add eax, 2
test dx, dx
jne 0x4072e0
mov eax, dword [ebx]
test eax, eax
je 0x407314
lea ecx, [ebp - 0x210]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.user32.dll_SetWindowTextW]
sub esp, 8
cmp word [ebp - 0x210], 0
jne 0x407340
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, esi
mov dword [esp], eax
mov eax, ebx
call fcn.004070e0
jmp 0x4072c8
lea eax, [ebp - 0x210]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
je 0x40731e
call fcn.00401f00
jmp 0x40731e
ret
Function at 0x40b520
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40b590
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b61b
cmp ax, 9
je 0x40b608
cmp ax, 0x20
je 0x40b608
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x40b670
cmp ax, 0x22
je 0x40b680
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b61b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x40b5c0
test esi, 1
jne 0x40b5c0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40b608
cmp ax, 0x20
je 0x40b608
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40b698
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040afc0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40b5db
and dword [ebp - 0x54], 1
jne 0x40b5d4
xor esi, 1
jmp 0x40b5db
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40b634
Function at 0x40b590
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40b590
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b61b
cmp ax, 9
je 0x40b608
cmp ax, 0x20
je 0x40b608
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x40b670
cmp ax, 0x22
je 0x40b680
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b61b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x40b5c0
test esi, 1
jne 0x40b5c0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40b608
cmp ax, 0x20
je 0x40b608
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40b698
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040afc0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40b5db
and dword [ebp - 0x54], 1
jne 0x40b5d4
xor esi, 1
jmp 0x40b5db
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40b634