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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.00404aa0
push eax
push edx
push esi
call fcn.00d92b79
add esp, 0xc
pop esi
pop ebp
ret

Function at 0xd30e90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + edx]
mov edx, 0x1505
cmp esi, edi
jae 0xd30eb8
mov cl, byte [esi]
call fcn.00d3bf50
movsx ecx, al
inc esi
mov eax, edx
shl eax, 5
add edx, eax
xor edx, ecx
cmp esi, edi
jb 0xd30ea0
pop edi
movzx eax, dl
pop esi
ret

Function at 0xd39050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
cmp byte [esi + 0x6cb], 0
je 0xd390e0
cmp dword [esi + 0x1a4], 0
je 0xd390a0
push ebx
call fcn.00d2f0d0
mov dl, 1
mov bl, al
call fcn.00d2f0b0
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call eax
add esp, 0x14
mov dl, bl
mov ecx, esi
pop ebx
pop edi
pop esi
pop ebp
jmp fcn.00d2f0b0
mov eax, edi
sub eax, 0
je 0xd390b1
sub eax, 1
je 0xd390b1
sub eax, 1
jne 0xd390e0
push dword [esi + 0x150]
lea eax, [edi*2 + 0xda44a4]
push 1
add eax, edi
push 2
push eax
call fcn.00d84a7e
push dword [esi + 0x150]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00d84a7e
add esp, 0x20
pop edi
pop esi
pop ebp
ret

Function at 0xd3c190
Capabilities:
Generate random numbers via winapi

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
push 0
push edi
call fcn.00d74480
add esp, 0xc
push 2
push esi
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
pop edi
sbb eax, eax
and eax, 2
pop esi
ret
Function at 0xd3fa10
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0
push dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 4
mov dword [ebp + 0xc], esi
call fcn.00d74480
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd3fae1
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0xd3fac3
push 0
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0xd3fac3
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call edi
test eax, eax
je 0xd3fac3
cmp esi, dword [ebp - 0xc]
jb 0xd3fac3
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0xd3fad1
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0xd3fae1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xd3fd10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [eax], 0
mov edi, edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
test esi, esi
jne 0xd3fd3e
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0xd3fd35
sub esi, ecx
cmp esi, 0x3fffffff
ja 0xd3fe62
lea ecx, [esi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
push eax
call dword [0xddedd4]
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
je 0xd3fe62
push ebx
cmp esi, 3
jb 0xd3fdec
mov eax, 0xaaaaaaab
mul esi
mov ebx, edx
shr ebx, 1
movzx eax, byte [edi]
sub esi, 3
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx edx, byte [edi + 1]
movzx eax, byte [edi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [edi + 2]
add edi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0xd3fd85
test esi, esi
je 0xd3fe49
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [edi]
and edx, 3
shl edx, 4
cmp esi, 1
jne 0xd3fe1d
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
jmp 0xd3fe46
movzx eax, byte [edi + 1]
shr eax, 4
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov byte [ecx], 0
sub ecx, eax
pop ebx
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebp
ret
pop edi
mov eax, 0x1b
pop esi
pop ebp
ret
Function at 0xd4f7a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0xdde040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov edi, edx
push eax
mov esi, ecx
call fcn.00d39ba0
add esp, 4
mov ecx, esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18], xmm0
call fcn.00d3c390
mov ecx, edi
mov ebx, eax
call fcn.00d3c390
push 1
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0xd4f837
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
call fcn.00d39ba0
movups xmm0, xmmword [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00d39c50
add esp, 0x20
test edx, edx
ja 0xd4f864
jb 0xd4f825
cmp eax, 0x3e8
ja 0xd4f864
push 1
call edi
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0xd4f7f0
test ebx, ebx
je 0xd4f844
push ebx
call fcn.00d77c21
add esp, 4
test esi, esi
je 0xd4f851
push esi
call fcn.00d77c21
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d721af
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xd4f871
push ebx
call fcn.00d77c21
add esp, 4
test esi, esi
je 0xd4f87e
push esi
call fcn.00d77c21
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00d721af
mov esp, ebp
pop ebp
ret

Function at 0xd5c670
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
lea eax, [edx - 0xc8]
push edi
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0xd5c69e
push str.Couldnt_set_desired_mode
push esi
call fcn.00d390f0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp edx, 0xc8
je 0xd5c6b5
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00d391b0
add esp, 0xc
mov al, byte [ebp + 8]
cmp al, 0x13
jne 0xd5c6cc
mov edx, ebx
mov ecx, esi
call fcn.00d5b650
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0xd5c6de
mov ecx, esi
call fcn.00d5b6a0
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0xd5c6f0
mov ecx, esi
call fcn.00d5b7b0
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0xd5c6fd
mov ecx, esi
call fcn.00d5b7c0
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xd65660
Capabilities:
Create thread

Disassembly:
push 0
push 0
push edx
push 0xd39570
push 0
push 0
call fcn.00d89ae3
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0xd65684
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0xd6fb50
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xdde040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
push eax
mov esi, edx
mov dword [ebp - 0x20], 8
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd6fbdd
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x208
lea edx, [ebp - 0xc]
movlpd qword [ebp - 0xc], xmm0
mov ecx, ebx
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.00d6fac0
mov ecx, edx
call fcn.00d71090
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0xd6fbf0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d721af
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00d721af
mov esp, ebp
pop ebp
ret

Function at 0xd6fe20
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd6fe5f
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0xd6fe67
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x1b
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0xd70220
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd70252
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0xd70310
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
mov dword [ebp - 0xc], ebx
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + esi*2]
add eax, 0xc
push eax
call dword [0xddedd4]
mov esi, eax
add esp, 4
test esi, esi
jne 0xd70342
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0xd7038b
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 8]
mov eax, dword [edi]
push dword [ebp - 8]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xd703f1
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 8], 1
jne 0xd703b0
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
lea edi, [eax + 4]
jmp 0xd703f4
mov eax, dword [ebp - 0xc]
cmp ebx, dword [eax + 0x10]
jae 0xd70428
nop dword [eax]
mov eax, dword [edi]
push 1
push 0xda40d4
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0xda40d3
push dword [esi + 8]
call eax
mov eax, dword [ebp - 0xc]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0xd70400
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xd70f90
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push esi
push edi
push 0xf0000040
mov esi, ecx
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd70fcb
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
ret

Function at 0xd72d6c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0xd72dab
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xd72dab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xd72dab
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xd72dab
cmp dword [ecx + 0x74], 0xe
jbe 0xd72dab
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xd8efe8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00d8eca8

Function at 0xd931c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00d93041
Function at 0xd97db0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xd97ddd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xd97ddd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401990
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc74
push edi
push esi
push ebx
push 0x3dc550e
push 1
push 0
call fcn.0040883c
mov dword [0x3dcc932], eax
call fcn.0040889c
or eax, eax
jne 0x401a90
push dword [0x3dcc932]
call fcn.0040881e
push 0x12c
lea eax, [ebp - 0x384]
push eax
push dword [0x3dcc92e]
call fcn.004088a8
push 0x12c
lea eax, [ebp - 0x12c]
push eax
call fcn.004088ba
lea ecx, [ebp - 0x12c]
cmp byte [eax + ecx - 1], 0x5c
je 0x401a02
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x12c]
push eax
push 0x3dc5769
lea eax, [ebp - 0x258]
push eax
call fcn.00408812
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x384]
push eax
call fcn.00401b60
mov edi, dword [ebp - 0x388]
cmp word [edi], 0x5a4d
jne 0x401a55
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x401a55
xor word [edi + 0x16], 0x2000
push dword [ebp - 0x38c]
push dword [ebp - 0x388]
lea eax, [ebp - 0x258]
push eax
call fcn.00401ab0
cmp eax, 0xffffffff
je 0x401a7e
lea eax, [ebp - 0x258]
push eax
call fcn.00401b10
push 0x8000
push 0
push dword [ebp - 0x388]
call fcn.00408950
push dword [0x3dcc932]
call fcn.0040881e
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x401bf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb40
push edi
push esi
push ebx
push 0x3dc577a
push 0
push 4
call fcn.00408902
or eax, eax
je 0x401c68
mov dword [ebp - 0x4bc], eax
push 0
push 0
push 0
push 4
push dword [ebp - 0x4bc]
call fcn.004088fc
mov dword [ebp - 0x4c0], eax
mov ecx, dword [eax]
mov dword [ebp - 0x4b8], ecx
add eax, 4
mov edi, eax
push 0x40
push 0x1000
push dword [ebp - 0x4b8]
push 0
call fcn.0040894a
mov dword [ebp - 0x4b4], eax
push dword [ebp - 0x4b8]
push edi
push dword [ebp - 0x4b4]
call fcn.0040dcff
jmp 0x401c95
push 0x258
lea eax, [ebp - 0x4b0]
push eax
push 0
call fcn.004088a8
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b0]
push eax
call fcn.00401b60
mov edi, dword [ebp - 0x4b4]
cmp word [edi], 0x5a4d
jne 0x401cb3
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x401cb3
or word [edi + 0x16], 0x2000
mov edi, dword [ebp - 0x4b4]
mov esi, edi
add esi, dword [esi + 0x3c]
mov ebx, dword [esi + 0x34]
lea esi, [esi + 0x78]
mov eax, dword [esi]
push eax
push edi
call fcn.00401d30
add eax, edi
mov eax, dword [eax + 0xc]
push eax
push edi
call fcn.00401d30
add edi, eax
push edi
call fcn.00408986
push eax
push 0
push edi
call fcn.0040dd30
push dword [ebp + 8]
push edi
call fcn.0040897a
push dword [ebp + 0xc]
call fcn.00401da0
push dword [ebp - 0x4b8]
push dword [ebp - 0x4b4]
push dword [ebp + 0xc]
call fcn.00401ab0
push 0x8000
push 0
push dword [ebp - 0x4b4]
call fcn.00408950
pop ebx
pop esi
pop edi
leave
ret 8
Function at 0x401d30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x3c]
add esi, ecx
movzx eax, word [esi + 6]
mov dword [ebp - 8], eax
add esi, 0xf8
mov ebx, esi
add ebx, 0x28
jmp 0x401d85
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx + 0xc]
cmp edi, ecx
jb 0x401d6c
cmp edi, eax
jae 0x401d6c
sub edi, dword [esi + 0xc]
add edi, dword [esi + 0x14]
jmp 0x401d8b
cmp edi, ecx
jbe 0x401d7c
cmp edi, eax
ja 0x401d7c
sub edi, dword [ebx + 0xc]
add edi, dword [ebx + 0x14]
jmp 0x401d8b
add ebx, 0x28
add esi, 0x28
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x401d56
mov dword [ebp - 4], edi
popal
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402d52
Capabilities:
Encode data using xor

Disassembly:
pushal
mov ebp, 4
mov ecx, 0xe0000
lea eax, [esp + 0x28]
mov edx, 0x1000
sub ecx, edx
sub eax, edx
test dword [eax], ecx
cmp ecx, edx
jae 0x402d66
push edi
push eax
push ebx
mov ebx, 0x100
mov edi, eax
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [esi + 1]
idiv ecx
add edx, ecx
inc esi
mov dword [edi], edx
add edi, ebp
sub ebx, ebp
jne 0x402d7a
pop ebx
pop edi
mov esi, edi
push esi
add edi, 0x100
push ebx
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [esi + 1]
idiv ecx
add edx, ecx
inc esi
mov dword [edi], edx
add edi, ebp
sub ebx, ebp
jne 0x402d9a
pop ebx
pop esi
pop edi
mov eax, dword [ebx + esi]
xor dword [ebx + edi - 4], eax
sub ebx, ebp
jne 0x402db1
popal
ret
Function at 0x4080d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [0x3dcc92e], edi
add ebp, 4
mov ebx, 0xffffffff
push 0x400
push edi
call fcn.004088de
or eax, eax
jne 0x408119
cmp word [edi], 0x5a4d
jne 0x408119
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x408119
movzx ecx, word [edi + 0x16]
test ecx, 0x2000
je 0x408119
xor ebx, ebx
or ebx, ebx
jne 0x40813a
call fcn.00401920
cmp esi, 1
jne 0x408133
mov eax, 1
pop ebx
pop esi
pop edi
leave
ret 0xc
pop ebx
pop esi
pop edi
leave
ret 0xc
sub ebp, 4
pop ebx
pop esi
pop edi
leave
ret 0xc

Function at 0x4096d4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x40c3ec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x20], 0xfe
mov byte [ebp - 0x1f], 0xdc
mov byte [ebp - 0x1e], 0xba
mov byte [ebp - 0x1d], 0x98
mov byte [ebp - 0x1c], 0x76
mov byte [ebp - 0x1b], 0x54
mov byte [ebp - 0x1a], 0x32
mov byte [ebp - 0x19], 0x10
mov byte [ebp - 0x18], 0xa3
mov byte [ebp - 0x17], 0x9d
mov byte [ebp - 0x16], 0x4a
mov byte [ebp - 0x15], 0x18
mov byte [ebp - 0x14], 0xf8
mov byte [ebp - 0x13], 0x5b
mov byte [ebp - 0x12], 0x4a
mov byte [ebp - 0x11], 0x52
mov byte [ebp - 0x10], 0xfe
mov byte [ebp - 0xf], 0xdc
mov byte [ebp - 0xe], 0xba
mov byte [ebp - 0xd], 0x98
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x54
mov byte [ebp - 0xa], 0x32
mov byte [ebp - 9], 0x10
mov byte [ebp - 8], 0xa3
mov byte [ebp - 7], 0x3d
mov byte [ebp - 6], 0x4a
mov byte [ebp - 5], 0x18
mov byte [ebp - 4], 0xf8
mov byte [ebp - 3], 0x5b
mov byte [ebp - 2], 0x4a
mov byte [ebp - 1], 0x52
push 0
mov dl, 2
lea ecx, [ebp - 0x48]
call fcn.0040c4bc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x33], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2f], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2b], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x27], eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0xc]
shl edx, 3
push edx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.0040c53f
mov esp, ebp
pop ebp
ret 8
Function at 0x40d910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
and eax, 0xff
cmp eax, 1
je 0x40d93a
mov eax, 0xfffffff7
jmp 0x40da65
mov dword [ebp - 0xc], 0xffffffff
mov ecx, dword [ebp - 0xc]
shr ecx, 0x11
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x7fff
je 0x40d95d
mov eax, 0xfffffff5
jmp 0x40da65
mov dword [ebp - 0x10], 0
jmp 0x40d96f
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shl eax, 5
cmp eax, dword [ebp - 0x14]
jge 0x40d989
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4], 0
jmp 0x40d966
mov dword [ebp - 0x10], 0
jmp 0x40d99b
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 2
cmp ecx, dword [ebp - 0x14]
jge 0x40da63
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 8], al
cmp dword [ebp + 0xc], 0
je 0x40d9c6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 8]
mov byte [ecx], dl
movsx eax, byte [ebp - 8]
cmp eax, 0x30
jl 0x40d9e4
movsx ecx, byte [ebp - 8]
cmp ecx, 0x39
jg 0x40d9e4
movsx edx, byte [ebp - 8]
sub edx, 0x30
mov dword [ebp - 4], edx
jmp 0x40da27
movsx eax, byte [ebp - 8]
cmp eax, 0x61
jl 0x40da02
movsx ecx, byte [ebp - 8]
cmp ecx, 0x66
jg 0x40da02
movsx edx, byte [ebp - 8]
sub edx, 0x57
mov dword [ebp - 4], edx
jmp 0x40da27
movsx eax, byte [ebp - 8]
cmp eax, 0x41
jl 0x40da20
movsx ecx, byte [ebp - 8]
cmp ecx, 0x46
jg 0x40da20
movsx edx, byte [ebp - 8]
sub edx, 0x37
mov dword [ebp - 4], edx
jmp 0x40da27
mov eax, 0xfffffffe
jmp 0x40da65
mov eax, dword [ebp - 0x10]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x10]
xor ecx, 1
and ecx, 7
shl ecx, 2
mov edx, dword [ebp - 4]
shl edx, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + eax*4]
or ecx, edx
mov eax, dword [ebp - 0x10]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], ecx
jmp 0x40d992
xor eax, eax
mov esp, ebp
pop ebp
ret 8