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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
xor eax, eax
lea ecx, [ecx]
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x4038f0
mov edi, dword [ebp + 0x10]
mov word [esi + 0x100], cx
xor bl, bl
mov eax, ecx
cdq
idiv edi
mov eax, dword [ebp + 0xc]
inc ecx
movzx edx, byte [edx + eax]
add dl, byte [ecx + esi - 1]
add bl, dl
movzx edx, byte [ecx + esi - 1]
movzx eax, bl
mov byte [ebp + 0xb], dl
movzx edx, byte [eax + esi]
mov byte [ecx + esi - 1], dl
movzx edx, byte [ebp + 0xb]
mov byte [eax + esi], dl
cmp ecx, 0x100
jl 0x403907
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403950
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
test edx, edx
jle 0x4039dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
sub ecx, edi
mov dword [ebp - 4], ecx
mov dword [ebp + 0x14], edx
mov ecx, 1
jmp 0x403980
add byte [eax + 0x100], cl
movzx esi, byte [eax + 0x100]
movzx edx, byte [esi + eax]
add byte [eax + 0x101], dl
movzx ecx, byte [eax + 0x101]
mov bl, byte [ecx + eax]
mov dl, byte [esi + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx ecx, byte [eax + 0x101]
movzx ecx, byte [ecx + eax]
movzx edx, byte [eax + 0x100]
add cl, byte [edx + eax]
movzx edx, cl
movzx ecx, byte [edx + eax]
mov edx, dword [ebp - 4]
xor cl, byte [edx + edi]
mov byte [edi], cl
mov ecx, 1
add edi, ecx
sub dword [ebp + 0x14], ecx
jne 0x403980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403aab
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403ae2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403ade
jmp 0x403ad0
cmp esi, eax
jae 0x403ae2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403ad0
cmp esi, eax
jb 0x403ae9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404660
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x40468e
mov ecx, esi
call fcn.00403ec0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
jns 0x40469a
push 0x80070057
call fcn.00403a50
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, edi
or ecx, edx
jge 0x4046b5
push edi
mov ecx, esi
call fcn.004041d0
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4046da
push ecx
push eax
call fcn.00405ddf
add esp, 8
test eax, eax
js 0x404690
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x404690
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
pop edi
xor ecx, ecx
mov ebx, 1
mov word [edx + eax*2], cx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x405c8a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b650]
jne 0x405c94
repz ret
jmp fcn.00407757

Function at 0x408a2c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47b650]
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.00406e6a
and dword [ebp - 0x14], 0
cmp dword [0x47d1f4], 0
mov dword [ebp - 0x18], eax
jne 0x408adf
push 0x401ee0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408b87
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401ed4
push ebx
call edi
test eax, eax
je 0x408b87
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401ec4
push ebx
mov dword [0x47d1f4], eax
call edi
push eax
call esi
push 0x401eb0
push ebx
mov dword [0x47d1f8], eax
call edi
push eax
call esi
push 0x401e94
push ebx
mov dword [0x47d1fc], eax
call edi
push eax
call esi
mov dword [0x47d204], eax
test eax, eax
je 0x408adf
push 0x401e7c
push ebx
call edi
push eax
call esi
mov dword [0x47d200], eax
mov eax, dword [0x47d200]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408b38
cmp dword [0x47d204], ecx
je 0x408b38
push eax
call esi
push dword [0x47d204]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408b38
test ebx, ebx
je 0x408b38
call edi
test eax, eax
je 0x408b2f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408b2f
test byte [ebp - 8], 1
jne 0x408b38
or dword [ebp + 0x10], 0x200000
jmp 0x408b6b
mov eax, dword [0x47d1f8]
cmp eax, dword [ebp - 0x18]
je 0x408b6b
push eax
call esi
test eax, eax
je 0x408b6b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408b6b
mov eax, dword [0x47d1fc]
cmp eax, dword [ebp - 0x18]
je 0x408b6b
push eax
call esi
test eax, eax
je 0x408b6b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47d1f4]
call esi
test eax, eax
je 0x408b87
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408b89
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c8a
leave
ret
Function at 0x40a12a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00415e50
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0xffffffffffffffff
push 0x1000
push eax
call fcn.0040a0d0
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.ucrtbase_clr0400.dll___stdio_common_vsnwprintf_s]
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
lea eax, [ebp - 0x2004]
push eax
je 0x40a184
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40a1aa
push 0x4013b0
push 1
call dword [sym.imp.ucrtbase_clr0400.dll___acrt_iob_func]
pop ecx
push eax
call fcn.0040a0d6
push 1
call dword [sym.imp.ucrtbase_clr0400.dll___acrt_iob_func]
push eax
call dword [sym.imp.ucrtbase_clr0400.dll_fflush]
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004152d0
mov esp, ebp
pop ebp
ret
Function at 0x40c66c
Capabilities:
Print debug messages

Disassembly:
push 0x218
mov eax, 0x4168d8
call fcn.00415da4
cmp byte [0x41aa50], 0
jne 0x40c6a3
lea eax, [ebp - 0x221]
mov ecx, 0x40293c
push eax
call fcn.0040e11e
mov dword [0x41aa4c], eax
mov byte [0x41aa50], 1
jmp 0x40c6a8
mov eax, dword [0x41aa4c]
test eax, eax
je 0x40c730
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], ecx
push 2
pop edx
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x214]
mov word [eax], cx
mov dword [ebp - 4], edx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x220]
call fcn.00411663
lea ecx, [ebp - 0x220]
call fcn.00410e2d
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040a5fa
call fcn.00415d4e
ret
Function at 0x40d0dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x218
mov eax, 0x416a7d
call fcn.00415da4
xor ebx, ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], ebx
push 2
pop edx
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x214]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x220]
call fcn.0040aaa1
push 0x40206c
lea ecx, [ebp - 0x220]
call fcn.0040a5b9
lea ecx, [ebp - 0x220]
call fcn.00410e2d
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d199
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], ebx
push eax
push 0x402088
mov edx, 0x4020a0
call fcn.00412f88
test eax, eax
je 0x40d197
cmp dword [ebp - 0x224], 1
je 0x40d199
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040a5fa
mov al, bl
call fcn.00415d4e
ret
Function at 0x40d89b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_WerSetFlags]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.00410bf6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 4]
mov ecx, eax
call fcn.0040e8e4
mov esi, dword [ebp - 4]
mov edi, eax
sub esi, 1
je 0x40d8ef
cmp esi, 1
jne 0x40d8f9
push 0x4019cc
push dword [edi + 4]
call dword [sym.imp.ucrtbase_clr0400.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40d8f9
test esi, esi
setg cl
call fcn.0040d536
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea edx, [edi + 4]
mov ecx, esi
call fcn.0040c208
test al, al
je 0x40d913
mov eax, dword [ebp - 4]
jmp 0x40d91d
lea edx, [edi + 4]
mov ecx, esi
call fcn.0040c4ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x412634
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x412653
sub esi, ecx
xor eax, eax
sar esi, 1
test edx, edx
sete al
lea eax, [eax*8 + 0x37]
cmp esi, eax
jbe 0x41267b
xor eax, eax
jmp 0x412729
test edx, edx
je 0x4126ca
cmp dword [0x41a5d8], ebx
je 0x4126b1
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
push eax
push ecx
push edi
call fcn.00412d62
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
test dword [eax*4 + 0x41a934], ecx
je 0x412674
push 0x4088d4
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.ucrtbase_clr0400.dll_wcscpy_s]
add esp, 0xc
jmp 0x4126d3
xor eax, eax
mov word [ebp - 0x84], ax
push edi
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.ucrtbase_clr0400.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x84]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x412674
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0040e65d
mov esi, eax
test esi, esi
je 0x412727
push edi
push esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004152d0
mov esp, ebp
pop ebp
ret
Function at 0x412760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], edi
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 4
test bl, 1
je 0x4127f1
mov edx, dword [ebp + 0x18]
call fcn.00412634
mov edi, eax
test edi, edi
je 0x4127ee
call dword [sym.imp.ucrtbase_clr0400.dll__errno]
push 0x10
and dword [eax], 0
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ucrtbase_clr0400.dll_wcstoul]
add esp, 0xc
mov dword [ebp - 0x20], eax
call dword [sym.imp.ucrtbase_clr0400.dll__errno]
cmp dword [eax], 0x22
je 0x4127cd
cmp dword [ebp - 0x1c], edi
je 0x4127cd
mov dword [ebp - 0x14], 1
jmp 0x4127d1
and dword [ebp - 0x14], 0
mov edx, edi
call fcn.0040e617
cmp dword [ebp - 0x14], 0
je 0x4127ee
mov eax, dword [ebp - 0x20]
and dword [esi + 4], 0
mov dword [esi], eax
xor eax, eax
jmp 0x41291b
mov edi, dword [ebp - 4]
test bl, 0xe
je 0x41290b
mov ecx, edi
call fcn.00412da9
test eax, eax
je 0x41290b
test bl, 2
je 0x412899
mov eax, dword [0x41a04c]
and dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x41284c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x4088e8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], 1
test eax, eax
jne 0x412899
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 0
cdq
mov edi, eax
mov eax, edx
mov dword [ebp - 0x20], eax
je 0x41287c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
or edi, eax
jne 0x412896
cmp dword [ebp - 8], 4
jne 0x412896
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
jmp 0x4127e7
mov edi, dword [ebp - 4]
test bl, 4
je 0x41290b
mov eax, dword [0x41a050]
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4128cf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push 0x4088e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc ebx
test eax, eax
jne 0x41290b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
mov edi, eax
mov eax, edx
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x4128fd
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
or edi, eax
jne 0x41290b
cmp dword [ebp - 8], 4
je 0x412886
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x412d62
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x412d83
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x412d7b
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x412d70
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
and ecx, 0x1f
shr edx, 5
mov dword [eax], edx
xor edx, edx
mov eax, dword [ebp + 0x14]
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x402f20
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x407590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
push 0x40aabc
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x1c]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x402fe8
mov edx, dword [edi + 0xb8]
push eax
push edx
push str.uid:_s_fe_fec:_d
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, edi
push 0x40aab0
call fcn.00405830
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.004069cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.004069cc
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov edi, 0x20
jmp 0x403001
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.004069cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004069cc
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4033b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4075f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
push 0x40a4bc
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, 4
mov byte [esp + 0x3c], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x20], 0
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403459
mov ecx, dword [esi + 0xb8]
push ecx
push str.uid:_s_no_internet_settings_key
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0x40aab0
call fcn.00405830
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.EnableAutodial
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4034a4
push eax
mov eax, dword [esi + 0xb8]
push eax
push str.uid:_s_no_isv:_d
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40aab0
call fcn.00405830
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4034f9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push 0
push str.EnableAutodial
push ecx
call edi
test eax, eax
je 0x4034f9
mov edx, dword [esi + 0xb8]
push eax
push edx
push str.uid:_s_ftc_is:_d
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40aab0
call fcn.00405830
push 0x40aabc
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x30]
push 1
lea ecx, [esi + 0xbc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
mov ecx, esi
mov byte [esp + 0x50], 3
call fcn.004035e0
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
setne bl
call fcn.004069cc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40358d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push 0
push str.EnableAutodial
push ecx
call edi
test eax, eax
je 0x40358d
mov edx, dword [esi + 0xb8]
push eax
push edx
push str.uid:_s_fl_cls_a_d:_d
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40aab0
call fcn.00405830
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004069cc
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0
call fcn.004069cc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004069cc
mov ecx, dword [esp + 0x34]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x403ad0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push pe_nt_image_headers32
push eax
push ecx
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x120]
push pe_nt_image_headers32
push ecx
push 0x40a590
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp]
mov edx, eax
mov ecx, eax
and edx, 0xff
push edx
xor edx, edx
shr ecx, 4
mov dl, ah
and ecx, 0xff
shr eax, 0xc
push ecx
and eax, 0xff
push edx
push eax
mov eax, dword [esp + 0x220]
push str._02.2X___02.2X___02.2X___02.2X_
push eax
call sub.MFC42.DLL_CString::Format
mov al, 1
add esp, 0x224
ret 4