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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x38
push ebx
push 0x451714
push eax
call fcn.00434f31
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40a761
pop ebx
add esp, 0x38
ret
push esi
push ebx
call fcn.00435b7a
push eax
call fcn.00435a84
add esp, 8
mov esi, eax
push ebx
cmp esi, 0x36
jbe 0x40a7b9
push 1
lea ecx, [esp + 0x10]
push 0xe
push ecx
call fcn.00435dea
add esp, 0x10
cmp eax, 1
jne 0x40a7b8
mov edx, 0x4d42
push ebx
cmp word [esp + 0xc], dx
jne 0x40a7b9
push eax
lea eax, [esp + 0x20]
push 0x28
push eax
call fcn.00435dea
add esp, 0x10
cmp eax, 1
jne 0x40a7b8
cmp dword [esp + 0x18], 0x28
je 0x40a7c9
push ebx
call fcn.00434cf5
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
push edi
mov di, word [esp + 0x2a]
cmp di, 1
je 0x40a7ed
cmp di, 4
je 0x40a7ed
cmp di, 8
je 0x40a7ed
cmp di, 0x18
je 0x40a7ed
cmp di, 0x20
jne 0x40a860
mov edx, dword [esp + 0x20]
lea ecx, [edx - 8]
cmp ecx, 0x3ff8
ja 0x40a860
mov ecx, dword [esp + 0x24]
lea eax, [ecx - 8]
cmp eax, 0x3ff8
ja 0x40a860
cmp dword [esp + 0x2c], 0
jne 0x40a860
movzx eax, di
imul eax, edx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, ecx
add eax, eax
add eax, eax
sub esi, eax
sub esi, 0x36
mov ecx, esi
mov dword [esp + 0x30], eax
test cl, 3
jne 0x40a860
shr ecx, 2
cmp di, 0x18
jne 0x40a847
xor edx, edx
jmp 0x40a878
cmp di, 0x20
jne 0x40a854
mov edx, 3
jmp 0x40a878
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x40a872
cmp edx, ecx
je 0x40a87c
push ebx
call fcn.00434cf5
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
test ecx, ecx
je 0x40a87c
mov edx, ecx
mov dword [esp + 0x3c], edx
lea ecx, [eax + edx*4 + 0x28]
push 1
push ecx
call fcn.0043452e
mov esi, eax
add esp, 8
test esi, esi
je 0x40a860
mov dword [esi], 0x28
mov dx, word [esp + 0x2a]
mov word [esi + 0xe], dx
cmp word [esi + 0xe], 0x18
mov dword [esi + 0x10], 0
mov eax, 1
mov word [esi + 0xc], ax
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x24]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x30]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x20], ecx
je 0x40a904
mov edx, dword [esp + 0x3c]
push ebx
push edx
lea eax, [esi + 0x28]
push 4
push eax
call fcn.00435dea
add esp, 0x10
cmp eax, dword [esi + 0x20]
je 0x40a904
push esi
call fcn.0043456e
push ebx
call fcn.00434cf5
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
push esi
call fcn.0040a4b0
add esp, 4
cmp dword [esp + 0x16], 0
lea edi, [esi + eax*4 + 0x28]
je 0x40a939
push ebx
call fcn.00435a1f
mov ecx, dword [esp + 0x1a]
add esp, 4
cmp ecx, eax
je 0x40a939
push 0
push ecx
push ebx
call fcn.0043580f
add esp, 0xc
test eax, eax
jne 0x40a8ec
mov ecx, dword [esi + 0x14]
push ebx
push ecx
push 1
push edi
call fcn.00435dea
add esp, 0x10
cmp eax, dword [esi + 0x14]
jne 0x40a8ec
push ebx
call fcn.00434cf5
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x38
ret
Function at 0x4152b0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 0x18]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push eax
push 0x1000
push 1
push ecx
call fcn.00435dea
add esp, 0x10
test eax, eax
ja 0x415315
cmp dword [esi + 0x24], 0
je 0x4152ed
mov edx, dword [edi]
mov dword [edx + 0x14], 0x2a
mov eax, dword [edi]
mov ecx, dword [eax]
push edi
call ecx
add esp, 4
mov edx, dword [edi]
mov dword [edx + 0x14], 0x78
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push 0xffffffffffffffff
push edi
call ecx
mov edx, dword [esi + 0x20]
mov byte [edx], 0xff
mov eax, dword [esi + 0x20]
mov byte [eax + 1], 0xd9
add esp, 8
mov eax, 2
mov ecx, dword [esi + 0x20]
mov dword [esi + 4], eax
pop edi
mov dword [esi], ecx
mov dword [esi + 0x24], 0
mov eax, 1
pop esi
ret
Function at 0x41a7e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
mov edi, dword [ebx + 0x1cc]
lea esi, [edi + 0x20]
push esi
push ebx
mov dword [esp + 0x3c], edi
call fcn.0041a6b0
add esp, 8
cmp dword [ebx + 0x78], 3
mov ebp, eax
push 1
mov dword [esp + 0x30], ebp
push ebx
jne 0x41a83b
mov eax, dword [ebx]
add eax, 0x18
mov dword [eax], ebp
mov ecx, dword [esi]
mov dword [eax + 4], ecx
mov edx, dword [edi + 0x24]
mov dword [eax + 8], edx
mov ecx, dword [edi + 0x28]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x5e
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
call ecx
jmp 0x41a850
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x5f
mov eax, dword [ebx]
mov dword [eax + 0x18], ebp
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
call edx
mov ecx, dword [ebx + 0x78]
mov eax, dword [ebx + 4]
mov edx, dword [eax + 8]
add esp, 8
push ecx
push ebp
push 1
push ebx
call edx
add esp, 0x10
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], 0
jle 0x41a937
mov edi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov esi, eax
test ecx, ecx
jle 0x41a903
lea eax, [ecx - 1]
mov dword [esp + 0x28], eax
cdq
sub eax, edx
sar eax, 1
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
jmp 0x41a8b9
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add eax, ecx
cdq
idiv dword [esp + 0x28]
cmp ebx, ebp
mov edx, ebx
jge 0x41a8ee
lea ebx, [ebx]
xor ecx, ecx
test esi, esi
jle 0x41a8e6
mov ebp, dword [edi]
add ebp, ecx
inc ecx
cmp ecx, esi
mov byte [edx + ebp], al
jl 0x41a8d6
mov ebp, dword [esp + 0x2c]
add edx, dword [esp + 0x14]
cmp edx, ebp
jl 0x41a8d0
add dword [esp + 0x10], 0xff
add ebx, esi
sub dword [esp + 0x1c], 1
jne 0x41a8b5
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], 4
inc eax
add edi, 4
cmp eax, dword [ebx + 0x78]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
jl 0x41a886
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
pop edi
pop esi
mov dword [eax + 0x14], ebp
pop ebp
mov dword [eax + 0x10], edx
pop ebx
add esp, 0x28
ret
mov dword [edi + 0x14], ebp
mov dword [edi + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x41a950
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 0x1cc]
mov eax, 1
mov dword [esp + 0x18], esi
cmp dword [edi + 0x58], eax
jne 0x41a97a
mov dword [esp + 8], 0x1fe
mov dword [esi + 0x1c], eax
jmp 0x41a983
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x78]
mov ecx, dword [edi + 4]
push edx
mov edx, dword [esp + 0xc]
add edx, 0x100
push edx
push eax
mov eax, dword [ecx + 8]
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x78], ecx
mov dword [esp + 0x14], ecx
jle 0x41aa96
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x41a9c8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x41a9e9
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x41aa3f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x41aa20
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x41aa20
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x41aa06
cmp dword [esp + 0x10], 0
je 0x41aa7d
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x41aa60
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x78]
mov dword [esp + 0x1c], ecx
jl 0x41a9c0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x428f20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x428f79
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x1a4], eax
mov dword [eax], 0x418cf0
mov dword [eax + 4], 0x418e50
mov dword [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.00428b00
cmp dword [esi + 0x40], 0
je 0x428f72
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x428ff7
mov edx, dword [esi + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x428fe4
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x428f9f
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x1b4]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x428fe0
cmp eax, 2
je 0x428fe4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x428f90
cmp eax, 3
je 0x428fc7
cmp eax, 1
jne 0x428f90
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x428f90
mov edx, dword [esi + 0x140]
add dword [eax + 8], edx
jmp 0x428f90
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
call fcn.00414530
pop esi
ret
cmp eax, 0xcc
je 0x429019
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00414530
pop esi
ret

Function at 0x42a330
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x42a33d
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
not eax
test edx, edx
je 0x42a381
push edi
lea esp, [esp]
mov cl, byte [esi]
movzx ecx, cl
mov edi, ecx
xor edi, eax
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x451970]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x451970]
dec edx
inc esi
test edx, edx
jne 0x42a350
pop edi
not eax
pop esi
ret
Function at 0x42fd90
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
push ebx
xor ebx, ebx
push esi
push edi
cmp ecx, ebx
je 0x42fec0
cmp dword [ecx + 0x38], ebx
je 0x42fec0
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x10]
jae 0x42fec0
cmp dword [ecx + 0x14], 1
jne 0x42fec0
mov edx, dword [ecx + 0x38]
mov esi, dword [edx + 0x10]
mov edi, dword [esi + eax*4]
add edi, dword [edx]
cmp edi, ebx
je 0x42fec0
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x42fec0
mov dword [esi], eax
mov ecx, dword [ecx + 0x38]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax*4]
mov dword [esi + 4], eax
movzx ecx, word [edi + 4]
mov word [esi + 8], cx
mov dx, word [edi + 6]
mov word [esi + 0xa], dx
mov ax, word [edi + 8]
mov word [esi + 0xc], ax
movzx ecx, word [edi + 0xa]
mov word [esi + 0xe], cx
movzx edx, word [edi + 0xe]
movzx eax, word [edi + 0xc]
push ebp
push edx
push eax
call fcn.0042f2a0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x18], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ebx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
movzx ecx, word [edi + 0x24]
mov word [esi + 0x30], cx
mov edx, dword [edi + 0x26]
mov dword [esi + 0x34], edx
mov eax, dword [edi + 0x2a]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
movzx ebp, word [edi + 0x1c]
add esp, 8
cmp ebp, 0x103
jb 0x42fe67
mov ebp, 0x103
push ebp
lea ecx, [edi + 0x2e]
push ecx
lea edx, [esi + 0x44]
push edx
call fcn.004345b0
mov byte [esi + ebp + 0x44], bl
movzx ebp, word [edi + 0x20]
add esp, 0xc
cmp ebp, 0xff
jb 0x42fe8d
mov ebp, 0xff
mov dword [esi + 0x40], ebp
movzx eax, word [edi + 0x1e]
movzx ecx, word [edi + 0x1c]
add eax, edi
lea edx, [ecx + eax + 0x2e]
push ebp
push edx
lea eax, [esi + 0x148]
push eax
call fcn.004345b0
add esp, 0xc
mov byte [esi + ebp + 0x148], bl
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x43451f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453edc]
jne 0x434529
repz ret
jmp fcn.0043ac31

Function at 0x434bf1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x434c18
call fcn.0043abfb
mov dword [eax], esi
call fcn.0043abe8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0043ab96
mov eax, esi
jmp 0x434c6d
test dword [ebp + 0xc], 0xfffffff9
jne 0x434bfe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x434c45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ac0e
pop ecx
call fcn.0043abe8
mov eax, dword [eax]
jmp 0x434c6d
test al, 0x10
jne 0x434c6b
test al, 1
je 0x434c6b
test byte [ebp + 0xc], 2
je 0x434c6b
call fcn.0043abfb
mov dword [eax], 5
call fcn.0043abe8
mov dword [eax], 0xd
jmp 0x434c3c
xor eax, eax
pop esi
pop ebp
ret
Function at 0x445077
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x453edc]
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.0043b9c1
and dword [ebp - 0x14], 0
cmp dword [0x456644], 0
mov dword [ebp - 0x18], eax
jne 0x44512a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4451d2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4451d2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x456644], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x456648], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45664c], eax
call edi
push eax
call esi
mov dword [0x456654], eax
test eax, eax
je 0x44512a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x456650], eax
mov eax, dword [0x456650]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x445183
cmp dword [0x456654], ecx
je 0x445183
push eax
call esi
push dword [0x456654]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x445183
test ebx, ebx
je 0x445183
call edi
test eax, eax
je 0x44517a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44517a
test byte [ebp - 8], 1
jne 0x445183
or dword [ebp + 0x10], 0x200000
jmp 0x4451b6
mov eax, dword [0x456648]
cmp eax, dword [ebp - 0x18]
je 0x4451b6
push eax
call esi
test eax, eax
je 0x4451b6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4451b6
mov eax, dword [0x45664c]
cmp eax, dword [ebp - 0x18]
je 0x4451b6
push eax
call esi
test eax, eax
je 0x4451b6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x456644]
call esi
test eax, eax
je 0x4451d2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4451d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043451f
leave
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0xd
lea eax, [ebp - 0x100]
push eax
push 0x91a3f8e
push section..data
call fcn.0040110b
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x144]
push eax
push 0
push 0x20019
push 0
push 0
push 0
lea eax, [ebp - 0x100]
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
je 0x401067
xor eax, eax
dec eax
leave
ret
mov dword [ebp - 0x150], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
lea eax, [ebp - 0xd6]
push eax
push dword [ebp - 0x144]
call sub.advapi32.dll_RegQueryValueExA
push dword [ebp - 0x144]
call sub.advapi32.dll_RegCloseKey
lea eax, [ebp - 0x140]
push eax
call fcn.004010b5
xor eax, eax
leave
ret

Function at 0x40110b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push ecx
dec ecx
mov eax, dword [esi + ecx*4]
rol eax, 5
xor eax, dword [ebp + 0xc]
ror eax, 6
mov dword [edi + ecx*4], eax
pop ecx
dec ecx
or ecx, ecx
jne 0x401119
pop esi
pop edi
leave
ret 0x10
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 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x10001c00
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x4f40
call 0x100562ff
movdqa xmm0, xmmword [0x1576000]
movdqa xmm1, xmmword [0x1576010]
mov ebx, dword [edx + 4]
mov dword [esp + 0x9c], ecx
mov ecx, dword [edx]
mov edi, edx
call fcn.10001c36
Function at 0x1001ac70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
lea eax, [edx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea edi, [esi + eax]
jne 0x1001acc0
cmp edi, esi
jb 0x1001ad2b
cmp edi, dword [ebp + 0x10]
ja 0x1001ad3e
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x1001acc2
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x1001acb0
jmp 0x1001ad1f
ja 0x1001acc9
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x1001ac85
mov edi, dword [ebp + 0x18]
movzx ecx, cx
mov al, 1
add edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebx]
lea esi, [ebx + 1]
test dl, dl
js 0x1001ad00
mov ebx, esi
sub ecx, edx
jns 0x1001ad17
jmp 0x1001ad21
cmp esi, edi
je 0x1001ad52
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x1001ad21
xor al, 1
cmp ebx, edi
jne 0x1001ace0
jmp 0x1001ad21
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x1576d6c
call fcn.10019880
add esp, 4
ud2
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x1576d6c
call fcn.10018fb0
add esp, 4
ud2
mov ecx, 0x157d3e4
mov edx, 0x2b
push 0x1576d5c
call fcn.100194a0
add esp, 4
ud2
Function at 0x1002f900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
movzx esi, byte [ebp + 0x18]
mov edi, ecx
mov ecx, dword [ebp + 0x10]
or eax, dword [ebp + 8]
or esi, edx
mov edx, dword [ebp + 0xc]
and ecx, 0xfffff000
or esi, ecx
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.10034d00
add esp, 8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002f952
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], esi
jmp 0x1002fa29
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], edi
xor edi, edi
lea esi, [0x15783f5]
mov ecx, 0xfffffff9
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea eax, [0x15783f6]
nop word cs:[eax + eax]
nop
movzx ebx, byte [esi]
mov esi, eax
mov eax, ebx
add al, 0xd0
cmp al, 0xa
jb 0x1002f9a1
or bl, 0x20
mov eax, ebx
add al, 0x9f
cmp al, 6
jae 0x1002fa31
add bl, 0xa9
mov eax, ebx
mov edx, edi
movzx ebx, al
lea eax, [esi + 1]
shl edx, 4
or ebx, edx
test ecx, ecx
cmove eax, esi
je 0x1002f9c1
shld dword [ebp - 0x18], edi, 4
inc ecx
test esi, esi
mov edi, ebx
jne 0x1002f980
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1002f9e2
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
and eax, 0xfff
movzx eax, byte [ecx + eax]
mov byte [edx + 4], al
mov dword [edx], 0
jmp 0x1002fa29
mov ecx, 0x157d2c9
mov edx, 0x13
xor ebx, 0x2c7
call fcn.1001cfa0
mov ecx, 0x157d2a5
mov edx, 6
mov edi, eax
call fcn.1001cfa0
mov edx, dword [ebp - 0x10]
test eax, eax
mov ecx, 1
cmove eax, ecx
test edi, edi
cmove edi, ecx
mov dword [edx], edi
mov dword [edx + 4], eax
mov dword [edx + 8], ebx
mov dword [edx + 0xc], 0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x157beb4
mov edx, 0xe
push 0x1577700
call fcn.100194a0
add esp, 4
ud2