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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x80
push 3
push 7
push SysReAllocString
mov esi, edx
xor edi, edi
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], edi
call fcn.00409ca3
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40aa1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40aa08
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40aaf3
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40aaf3
push edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40aa65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40aa50
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40aae7
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40aae7
cmp dword [ebp - 0x30], 0x24
je 0x40aa74
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40aae7
mov eax, dword [ebp - 0x28]
cmp dword [ebp + 0xc], eax
je 0x40aaa6
cmp dword [ebp + 0xc], edi
jne 0x40aa9d
cmp eax, 0xb0c50000
je 0x40aaa6
cmp eax, 0xb0c50001
je 0x40aaa6
cmp eax, 0xb0c50002
je 0x40aaa6
cmp eax, 0xb0c50003
je 0x40aaa6
mov dword [ebp - 0x2c], 0x8007000d
jmp 0x40aae7
cmp dword [ebp + 0x10], edi
je 0x40aac8
mov esi, dword [ebp + 0x10]
push 0x10
pop ecx
lea edi, [ebp - 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40aabf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40aa9d
mov esi, dword [ebp - 0x34]
xor edi, edi
cmp esi, edi
je 0x40aadf
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40aada
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
jmp 0x40aadf
cmp eax, dword [ebp - 0x14]
jne 0x40aa9d
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x40aaf3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004191d5
leave
ret 0xc
Function at 0x40ab0c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x30], esi
push dword [eax + 0xc]
push dword [eax + 8]
push dword [ebx]
call fcn.00409b6a
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x40ac51
push esi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ab86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jle 0x40ab71
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], esi
jl 0x40ac51
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ac51
cmp dword [ebp - 0x30], 0x24
je 0x40ab98
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40ac51
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
jne 0x40abbe
mov dword [ebp - 0x2c], 0x8007000e
jmp 0x40ac51
push 9
pop ecx
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push 0x24
xor edi, edi
pop esi
mov dword [ebp - 0x30], edi
push edi
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
sub eax, esi
push eax
mov eax, dword [ebp - 0x34]
add eax, esi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ac01
add esi, dword [ebp - 0x30]
cmp dword [ebp - 0x30], edi
jne 0x40abce
cmp esi, dword [ebp - 0x10]
je 0x40ac29
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40ac32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40ac1b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40ac32
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ac32
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], edi
je 0x40ac51
push dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40ac51
call fcn.00409a29
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
xor ecx, ebp
pop esi
call fcn.004191d5
leave
ret
Function at 0x40e49f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40e4a7
mov dword [ecx*4 + 0x42d300], eax
inc ecx
cmp ecx, 0x100
jb 0x40e4a2
pop esi
ret
Function at 0x411e30
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42631d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42a050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x1e8]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0x10]
add edi, 0x168
push eax
call fcn.00411c76
push 0xe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.00411d9a
push 0xf
lea ecx, [esp + 0x14]
call fcn.00411d9a
push 0x11
push esi
lea edi, [esp + 0x18]
call fcn.00411d4e
push 0x10
push esi
call fcn.00411d4e
push 9
push esi
call fcn.00411d4e
push 6
push esi
call fcn.00411d4e
push 0x12
push esi
call fcn.00411d4e
push 0x14
push esi
call fcn.00411d4e
push 0x13
push esi
call fcn.00411d4e
push 0x15
push esi
call fcn.00411d4e
push 0xa
push esi
call fcn.00411d4e
push 0x16
push esi
call fcn.00411d4e
mov eax, esi
call fcn.00411d0d
push ebx
push 0x61
call fcn.0041192f
push ebx
push 0x62
call fcn.0041192f
push ebx
push 0x63
call fcn.0041192f
push 0x14
pop edi
mov eax, esi
call fcn.00411dda
push 6
pop edi
mov eax, esi
call fcn.00411dda
push 9
pop edi
mov eax, esi
call fcn.00411dda
push 0x11
pop edi
mov eax, esi
call fcn.00411dda
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00412bd6
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4164c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x416619
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x416505
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41650a
inc edi
cmp edi, dword [ebp - 8]
jb 0x4164fc
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x4165f9
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41658c
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x416536
cmp cl, 0xff
jne 0x4165bb
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x4165cc
movzx esi, byte [edx + 0x404eb0]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x41657c
cmp bl, 0xff
jne 0x4165c9
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x416554
dec ecx
shl edx, cl
and edx, 7
je 0x416523
movzx ecx, byte [edx + 0x404eb0]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x404ea8], 0
mov cl, byte [ebx + 4]
je 0x4165b8
test cl, cl
je 0x4165b8
cmp cl, 0xff
jne 0x416523
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4164f7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4164f7
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0xc

Function at 0x417fd7
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 4]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x417ff3
push ebx
push ebx
push eax
call fcn.00417e46
cmp eax, ebx
jne 0x41804c
push edi
lea edi, [esi + 8]
cmp dword [edi], ebx
jne 0x418007
push ebx
push ebx
push edi
call fcn.00417e46
cmp eax, ebx
jne 0x41804b
lea eax, [esi + 4]
call fcn.00417f70
mov eax, edi
call fcn.00417f70
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x418022
xor eax, eax
jmp 0x41804b
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x417f90
push ebx
push ebx
call fcn.004237af
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x41801e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x41804b
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x41a1fd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00419f09
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x41a232
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00419f44
jp 0x41a2a4
setge byte [ebp - 0x17af3fbb]
invalid
cld
invalid

Function at 0x41a57f
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x41a4e9
cmp dword [eax + 0xc], ebx
mov ebp, 0xffffff78
mov eax, dword [ebp - 0x44]
jmp 0x41a4db
Function at 0x41a61c
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x41a58c
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00419f44
aad 0x3d
invalid
call fcn.00419f44
cmc
ja 0x41a5d8
movsb byte es:[edi], byte [esi]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x41a5f8
add eax, esi
cmp dword [eax], ebx
je 0x41a5f8
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x41a5f3
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov bh, 9
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x41a5dd
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x41a5e5
or byte [ecx], al
adc ebx, ebp
or byte [ebx], bh
ror dword [edi], cl
test dword [esi + 1], ecx
add byte [eax], al
cmp edx, ebx
jne 0x41a733
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x41a5b4
add eax, dword [eax + 4]
jmp 0x41a5a1
mov dword [ebp + 0xc], ebx
jmp 0x41a603
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41a61b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41a639
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41a697
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x41a67e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x41a687
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41a691
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41a673
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x41a5fd
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x41a6e4
dec eax
je 0x41a6db
sub eax, 3
je 0x41a6d2
mov dword [ebp - 4], 0x40
jmp 0x41a701
mov dword [ebp - 4], 4
jmp 0x41a6e7
mov dword [ebp - 4], 0x20
jmp 0x41a6e7
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x41a733
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x41a6b3
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00419f44
mov esp, 0xff0827e0
jne 0x41a73e
push 1
push esi
call edi
mov eax, esi
jmp 0x41a73f
rcr byte [edi + 0x5e], 0x5b
Function at 0x41d7e0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a050]
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.0041a539
and dword [ebp - 0x14], 0
cmp dword [0x42be70], 0
mov dword [ebp - 0x18], eax
jne 0x41d893
push 0x402258
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41d93b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40224c
push ebx
call edi
test eax, eax
je 0x41d93b
mov esi, dword [fcn.00402b64]
push eax
call esi
push 0x40223c
push ebx
mov dword [0x42be70], eax
call edi
push eax
call esi
push 0x402228
push ebx
mov dword [0x42be74], eax
call edi
push eax
call esi
push 0x40220c
push ebx
mov dword [0x42be78], eax
call edi
push eax
call esi
mov dword [0x42be80], eax
test eax, eax
je 0x41d893
push 0x4021f4
push ebx
call edi
push eax
call esi
mov dword [0x42be7c], eax
mov eax, dword [0x42be7c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00402b60]
cmp eax, ecx
je 0x41d8ec
cmp dword [0x42be80], ecx
je 0x41d8ec
push eax
call esi
push dword [0x42be80]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41d8ec
test ebx, ebx
je 0x41d8ec
call edi
test eax, eax
je 0x41d8e3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41d8e3
test byte [ebp - 8], 1
jne 0x41d8ec
or dword [ebp + 0x10], 0x200000
jmp 0x41d91f
mov eax, dword [0x42be74]
cmp eax, dword [ebp - 0x18]
je 0x41d91f
push eax
call esi
test eax, eax
je 0x41d91f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d91f
mov eax, dword [0x42be78]
cmp eax, dword [ebp - 0x18]
je 0x41d91f
push eax
call esi
test eax, eax
je 0x41d91f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42be70]
call esi
test eax, eax
je 0x41d93b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41d93d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004191d5
leave
ret

Function at 0x423bd0
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret 4
Function at 0x424850
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x24]
push edi
mov ecx, ebx
and ecx, 0x3f
mov edi, 0x40
sub edi, ecx
cmp edi, 8
mov dword [ebp - 0x50], eax
ja 0x424885
add edi, 0x40
lea edx, [edi - 8]
push edx
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0041de40
mov ecx, dword [esi + 0x20]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, 0x1d
or ecx, edx
add esp, 0xc
mov dword [ebp - 0x58], ecx
push 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp + edi - 0x54]
lea eax, [ebx*8]
push edx
mov byte [ebp - 0x4c], 0x80
mov dword [ebp - 0x54], eax
call fcn.00424950
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00424740
mov ecx, dword [ebp - 0x50]
push 8
push esi
push ecx
call fcn.00424950
xor eax, eax
push 0x40
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push eax
add esi, 0x28
push esi
call fcn.0041de40
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004191d5
mov esp, ebp
pop ebp
ret 8
Function at 0x402b59
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4140dc]
jne 0x402b63
repz ret
jmp fcn.00405dec

Function at 0x40a6cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404b1d
and dword [ebp - 4], 0
cmp dword [0x416438], 0
mov ebx, eax
jne 0x40a77d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a82e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a82e
push eax
call fcn.00404aab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416438], eax
call esi
push eax
call fcn.00404aab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41643c], eax
call esi
push eax
call fcn.00404aab
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x416440], eax
call esi
push eax
call fcn.00404aab
pop ecx
mov dword [0x416448], eax
test eax, eax
je 0x40a77d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404aab
pop ecx
mov dword [0x416444], eax
mov eax, dword [0x416444]
cmp eax, ebx
je 0x40a7d5
cmp dword [0x416448], ebx
je 0x40a7d5
push eax
call fcn.00404b26
push dword [0x416448]
mov esi, eax
call fcn.00404b26
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a7d5
test edi, edi
je 0x40a7d5
call esi
test eax, eax
je 0x40a7cc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a7cc
test byte [ebp - 0xc], 1
jne 0x40a7d5
or dword [ebp + 0x10], 0x200000
jmp 0x40a80e
mov eax, dword [0x41643c]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00404b26
pop ecx
test eax, eax
je 0x40a80e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a80e
mov eax, dword [0x416440]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00404b26
pop ecx
test eax, eax
je 0x40a80e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416438]
call fcn.00404b26
pop ecx
test eax, eax
je 0x40a82e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a830
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea edx, [ebp - 8]
mov eax, dword [ecx + 8]
push edx
lea edx, [ebp - 4]
push edx
push 0
push 0x20006
push 0
push dword [ebp + 8]
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401231
push dword [ebp + 0xc]
call fcn.00409bb0
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test eax, eax
sete cl
mov al, cl
leave
ret 8
Function at 0x401ace
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40f8e4
call fcn.0040a1b0
sub esp, 0x120
push esi
mov eax, dword [0x414078]
and dword [ebp - 4], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00404a20
mov esi, str.fileinfo.ini
mov eax, esi
test eax, eax
je 0x401b13
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00404bdc
push dword [ebp - 0x10]
mov esi, str.FILELIST
push 0
push str.count
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [ebp - 0x28], eax
jle 0x401c2b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
mov dword [ebp - 0x14], 1
mov eax, dword [0x414078]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push str.filename_d
push eax
call fcn.00404c83
mov eax, dword [0x414078]
add esp, 0xc
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push str.filecmd_d
push eax
call fcn.00404c83
and byte [ebp - 0x12c], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x12b]
push 0x3f
pop ecx
rep stosd dword es:[edi], eax
push dword [ebp - 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x100
lea eax, [ebp - 0x12c]
push edi
push eax
push 0
push dword [ebp - 0x18]
push esi
call ebx
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x24]
push eax
call fcn.00401320
push dword [ebp - 0x10]
lea eax, [ebp - 0x12c]
push edi
push eax
push 0
push dword [ebp - 0x1c]
push esi
call ebx
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x20]
push eax
call fcn.00401320
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ecx + 4]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402a34
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0040125f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040125f
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
dec eax
cmp eax, dword [ebp - 0x28]
jl 0x401b4d
pop edi
pop ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040125f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0040125f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040125f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040125f
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret