joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b7da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101214c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x66796a6e
push eax
push 0x10131894
mov dword [ebp - 0xc], 0x66715073
mov word [ebp - 8], 0x6f
call fcn.100bcbb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x10131894
call fcn.1007f181
mov esp, ebp
pop ebp
ret

Function at 0x100b7ea0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101214c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xd
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x666e6a75
push eax
push 0x101318d4
mov dword [ebp - 0x10], 0x46756654
mov dword [ebp - 0xc], 0x756f6677
mov byte [ebp - 8], 0
call fcn.100bcbb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x101318d4
call fcn.1007f181
mov esp, ebp
pop ebp
ret

Function at 0x100b7f40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101214c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xb
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x66776278
push eax
push 0x10131888
mov dword [ebp - 0xc], 0x71506f4a
mov word [ebp - 8], 0x6f66
mov byte [ebp - 6], 0
call fcn.100bcbb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x10131888
call fcn.1007f181
mov esp, ebp
pop ebp
ret

Function at 0x100b7ff0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101214c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xb
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x71746f78
push eax
push 0x10131770
mov dword [ebp - 0xc], 0x756f6a73
mov word [ebp - 8], 0x4267
mov byte [ebp - 6], 0
call fcn.100bcbb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x10131770
call fcn.1007f181
mov esp, ebp
pop ebp
ret

Function at 0x100b8040
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101214c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xb
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x71746f78
push eax
push 0x1013177c
mov dword [ebp - 0xc], 0x756f6a73
mov word [ebp - 8], 0x5867
mov byte [ebp - 6], 0
call fcn.100bcbb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x1013177c
call fcn.1007f181
mov esp, ebp
pop ebp
ret

Function at 0x100b8090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101214c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x73717478
push eax
push 0x1013293c
mov dword [ebp - 0xc], 0x67756f6a
mov word [ebp - 8], 0x42
call fcn.100bcbb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x1013293c
call fcn.1007f181
mov esp, ebp
pop ebp
ret
Function at 0x100b80e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101214c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x73717478
push eax
push 0x10132924
mov dword [ebp - 0xc], 0x67756f6a
mov word [ebp - 8], 0x58
call fcn.100bcbb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x10132924
call fcn.1007f181
mov esp, ebp
pop ebp
ret
Function at 0x100b9080
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eb11f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101214c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x58
call fcn.1007ede0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x100b90d7
push 0x58
push 0
push esi
call fcn.100bd130
add esp, 0xc
mov ecx, esi
call fcn.100b8440
mov esi, eax
jmp 0x100b90d9
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x14], 8
jb 0x100b90eb
mov edi, dword [edi]
test edi, edi
je 0x100b9188
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100b9188
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100b9188
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x16
jb 0x100b9188
push 0
push 0
push 0
push 2
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [esi + 4], 0
mov dword [esi + 8], eax
je 0x100b9188
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x100b9188
push dword [esi + 0x14]
mov ecx, esi
push eax
call fcn.100b8900
test eax, eax
je 0x100b9188
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100b919e
mov ecx, esi
call fcn.100b85c0
push 0x58
push esi
call fcn.1007ee10
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100b99d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
test edx, edx
je 0x100b9acf
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100b9acf
or eax, 0xffffffff
cmp esi, 8
jb 0x100b9aa7
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102e80]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102e80]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102e80]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102e80]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102e80]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102e80]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102e80]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102e80]
sub edi, 1
jne 0x100b9a00
pop edi
test esi, esi
je 0x100b9aca
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10102e80]
sub esi, 1
jne 0x100b9ab0
not eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100dcb1f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100dc7df
Function at 0x401434
Capabilities:
Copy file
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [0x42a248]
push 7
pop ecx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov edi, section..ndata
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
shl ecx, 0xb
add ecx, edi
mov esi, eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x2c]
shl esi, 0xb
mov dword [0x40cdd8], ecx
lea ecx, [edx - 2]
add esi, edi
cmp ecx, 0x43
mov dword [ebp - 4], ebx
ja case.0x40148a.65
jmp dword [ecx*4 + 0x402a5e]
push ebx
push eax
call fcn.004052dd
jmp 0x402288
inc dword [0x42920c]
cmp dword [ebp - 0xc], ebx
je 0x402288
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x402288
push eax
call fcn.0040136d
dec eax
push ebx
push eax
invalid

Function at 0x402bff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
invalid

Function at 0x4030e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403112
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004031ef
cmp eax, esi
jl 0x4031e9
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405dd6
test eax, eax
je 0x4031d9
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.004031ef
mov ebx, eax
cmp ebx, esi
jl 0x4031e7
cmp dword [ebp + 0x10], esi
jne 0x4031b5
cmp dword [ebp + 8], esi
jle 0x4031e7
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403177
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405dd6
test eax, eax
je 0x4031d9
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405e05
test eax, eax
je 0x4031b1
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403166
jmp 0x4031e7
push 0xfffffffffffffffe
jmp 0x4031db
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031c0
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4031de
push 0xfffffffffffffffd
pop eax
jmp 0x4031e9
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
invalid
Function at 0x40604b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060bf
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4060ac
cmp dword [ebp + 0x14], 1
je 0x4060af
cmp dword [ebp + 0x14], 2
je 0x4060af
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x4061a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x4061be
mov ecx, dword [0x42921c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x42a278]
push ebx
push esi
push edi
lea ecx, [ecx + eax*2]
mov eax, 0x4281e0
cmp dword [ebp + 8], eax
mov esi, eax
jb 0x4063ec
mov edx, dword [ebp + 8]
sub edx, eax
sar edx, 1
cmp edx, 0x800
jae 0x4063ec
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x4063ec
mov edx, esi
sub edx, eax
and edx, 0xfffffffe
cmp edx, 0x800
jge 0x4063f8
push 2
pop edx
add ecx, edx
cmp di, 4
mov dword [ebp - 4], ecx
jae 0x4063d9
mov al, byte [ecx + 1]
mov cl, byte [ecx]
mov dl, al
mov bl, cl
and edx, 0x7f
and ebx, 0x7f
shl edx, 7
add dword [ebp - 4], 2
or edx, ebx
movzx ebx, cl
movzx eax, al
mov dword [ebp + 0xc], edx
mov edx, ebx
mov ecx, 0x8000
mov dword [ebp - 0xc], eax
or edx, ecx
or eax, ecx
cmp di, 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jne 0x40637a
push 2
pop edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x406285
cmp ax, 0x5a04
je 0x406285
cmp dword [ebp - 0xc], 0x23
je 0x406285
cmp dword [ebp - 0xc], 0x2e
je 0x406285
and dword [ebp + 0xc], 0
jmp 0x40628c
mov dword [ebp + 0xc], 1
cmp dword [0x42a2c4], 0
je 0x406298
push 4
pop edi
test bl, bl
jns 0x4062d6
invalid

Function at 0x4064e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40650c
xor eax, eax
test eax, eax
je 0x40651f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40651f
xor ecx, ecx
jmp 0x406522
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4
Function at 0x406609
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x406640
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40661a
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406615
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406671
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x406653
pop edi
not eax
pop esi
ret 0xc
Function at 0x401b10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b5b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b54
test esi, esi
je 0x401b54
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b30
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d40
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e64
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401dce
cmp eax, 4
jne 0x401df0
test esi, esi
je 0x401de2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401dd4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401e2f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401e21
cmp ecx, 0x40
je 0x401de2
cmp ecx, 4
je 0x401de2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d40
lea esi, [esi]
Function at 0x402987
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4810e9
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4a3034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi], vtable.acu::error::Exception.0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
lea eax, [esi + 0x34]
mov dword [esi + 0x2c], ecx
push 2
push eax
mov dword [esi + 0x30], 0xf
call fcn.0041de1c
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret 0x10

Function at 0x406f82
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x4070e0
mov eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov edi, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x4070e0
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp + 0x23], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x407000
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x4070ef
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp + 0x23]
cmp ebx, 0x80
jae 0x40701d
mov dl, bl
xor edi, edi
jmp 0x40704d
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x406fef
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp + 0x23], cl
jmp 0x406ff2
mov edx, ebx
cmp ebx, 0x800
jae 0x407032
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x40704d
cmp ebx, 0x10000
jae 0x407044
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x40704c
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 4]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 8], eax
inc eax
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp + 0x18]
jl 0x4070e0
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp + 0x23], 0
mov dword [ecx], eax
jne 0x407084
cmp edi, 3
jae 0x40708f
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 8]
jmp 0x407092
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4070b7
imul ecx, edi, 6
sub ecx, 6
mov edx, ebx
dec eax
shr edx, cl
mov dword [ebp + 0x18], eax
and dl, 0x3f
mov eax, dword [esi]
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp + 0x18]
test eax, eax
jg 0x407099
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp + 0x23], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 4], eax
cmp ecx, dword [ebp + 0x10]
jne 0x406faa
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x4070e8
Function at 0x40e50c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4828bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a3034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
cmp eax, dword [ecx + 4]
jl 0x40e566
cmp dword [ecx + 8], 0
je 0x40e566
push dword [ebp + 0x1c]
add ecx, 0x10
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e9dc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x40e589
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4828d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a3034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
cmp eax, dword [ecx + 4]
jl 0x40e5e3
cmp dword [ecx + 8], 0
je 0x40e5e3
push dword [ebp + 0x1c]
add ecx, 0x10
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ec23
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x413090
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x150
mov eax, 0x483267
call fcn.00435fcc
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x41321d
jmp 0x4130f4
xor eax, eax
cmp dword [edx + 0x14], 8
push 4
pop edi
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edi
jb 0x413113
mov edx, dword [edx]
lea esi, [ebp - 0x150]
push esi
lea esi, [ebp - 0x14c]
push esi
lea esi, [ebp - 0x148]
push esi
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4131a2
push 0xca
push 0x488988
push eax
push edi
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 2
call fcn.00402987
push 0x49b444
lea eax, [ebp - 0xdc]
jmp 0x41323d
cmp dword [ebp - 0x148], edi
je 0x41320f
push 0xcb
push 0x488988
push edi
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], edi
call fcn.00402964
push 0x49b444
lea eax, [ebp - 0x140]
jmp 0x41323d
mov eax, dword [ebp - 0x14c]
call fcn.00435f1e
ret 4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x78]
push 0xbd
push 0x488988
push 4
call fcn.00402964
push 0x49b444
lea eax, [ebp - 0x78]
push eax
call fcn.004381d1
int3