joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40384c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403880
mov edx, dword [eax + 8]
test edx, edx
jne 0x40386f
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x40387c
add edx, esi
cmp ebx, edx
jb 0x40388d
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403865
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x4038c8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x4038e2
xor eax, eax
jmp 0x403a62
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x4038f6
xor eax, eax
jmp 0x403a62
cmp word [ebx + 0x14], 0xe0
jne 0x403906
cmp word [ebx + 0x18], 0x10b
je 0x40390d
xor eax, eax
jmp 0x403a62
mov dword [0x46f37c], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040384c
add esp, 8
test eax, eax
jne 0x403938
xor eax, eax
jmp 0x403a62
mov edx, dword [0x46f37c]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403894
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x40396a
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x403a62
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x403a34
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403a26
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403a21
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403a18
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403a0d
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403a0d
test cl, cl
je 0x403a02
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403a0d
add eax, 2
add edx, 2
test cl, cl
jne 0x4039e6
jne 0x403a0d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x403a62
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x4039cc
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4039a4
jmp 0x403a60
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403a58
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x403a54
cmp dword [eax], 0
je 0x403a54
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x403a62
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403a3b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c20
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401aa8
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403cd3
mov eax, fcn.0040170c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403cd3
mov eax, fcn.00403e40
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403cd3
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403cd3
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403c9b
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403cf0
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401aa8
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403da6
mov eax, fcn.0040170c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403da6
mov eax, fcn.00403cf0
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403da6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403da6
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403d6e
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e90
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401aa8
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403f46
mov eax, fcn.0040170c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403f46
mov eax, fcn.00403e40
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403f46
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403f46
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403f0e
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4056f4
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x40a290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x40a2f2
call fcn.0040a240
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00405e00
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00405e00
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40a350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x46c8b4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40a42a
cmp dword [0x46c8b0], 0
jne 0x40a42a
cmp dword [0x46caa4], 0
je 0x40a3e4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0040a140
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40a3ca
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0040a140
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40a3ca
lea ebx, [ebp - 0x84]
jmp 0x40a3cb
inc ebx
call fcn.0040a30c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x40a465
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x46c8b8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00405e00
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x46c8bb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x40a465
cmp dword [0x46c8b0], 0
je 0x40a444
cmp dword [0x46c8b0], 0xffffffff
je 0x40a465
push esi
call dword [0x46c8b0]
pop ecx
mov eax, dword [0x46c8b4]
test eax, eax
je 0x40a465
cmp dword [0x46c8b4], 0xffffffff
je 0x40a465
cmp byte [eax], 0
je 0x40a465
push esi
push eax
call fcn.0040a290
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aca8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x46fe10], 0
jne 0x40ad29
cmp dword [0x46fe30], 0
jne 0x40acd8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46fe30], eax
test eax, eax
jne 0x40acd8
push str.GetEnvironmentStrings_failed
call fcn.0040a47c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x46fe30]
jmp 0x40acec
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00405e00
pop ecx
mov edi, eax
test eax, eax
jne 0x40ace4
lea edi, [ebp + 1]
push edi
call fcn.00404cac
pop ecx
mov ebx, eax
mov dword [0x46fe14], ebx
test ebx, ebx
jne 0x40ad16
xor eax, eax
jmp 0x40adec
push edi
mov edx, dword [0x46fe30]
push edx
push ebx
call fcn.00405cb0
add esp, 0xc
jmp 0x40ad49
xor esi, esi
mov ebx, dword [0x46fe10]
jmp 0x40ad43
push eax
call fcn.00405e00
pop ecx
test eax, eax
jne 0x40ad3f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40ad33
lea ebx, [esi + 4]
push 4
mov dword [0x46fe18], ebx
inc ebx
push ebx
call fcn.00404810
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40ad6c
xor eax, eax
jmp 0x40adec
cmp dword [0x46fe10], 0
jne 0x40ad9d
xor esi, esi
mov ebx, dword [0x46fe14]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40ad8e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00405e00
pop ecx
mov edi, eax
test eax, eax
jne 0x40ad84
jmp 0x40adce
xor esi, esi
mov ebx, dword [0x46fe10]
mov eax, dword [esp]
mov edi, eax
jmp 0x40adc8
push eax
call fcn.00405e00
pop ecx
test eax, eax
je 0x40adbd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40adc1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40adac
mov eax, dword [0x46fe10]
test eax, eax
je 0x40adde
push eax
call fcn.00404cbc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x46fe10], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d56c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x46d514
sub eax, eax
test esi, esi
je 0x40d64c
sub eax, 1
test ecx, ecx
je 0x40d64a
test esi, 3
je 0x40d5aa
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40d58f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40d631
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40d5b8
mov ecx, edx
test ecx, ecx
je 0x40d64a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40d637
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40d930
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040d9b3
jae 0x40d93e
xor ecx, ecx
call fcn.0040d9b3
jae 0x40d96d
xor eax, eax
call fcn.0040d9b3
jae 0x40d97d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040d9b3
adc al, al
jae 0x40d95f
jne 0x40d9a9
stosb byte es:[edi], al
jmp 0x40d941
call fcn.0040d9bf
sub ecx, ebx
jne 0x40d986
call fcn.0040d9bd
jmp 0x40d9a5
lodsb al, byte [esi]
shr eax, 1
je 0x40d9cf
adc ecx, ecx
jmp 0x40d9a2
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040d9bd
cmp eax, 0x7d00
jae 0x40d9a2
cmp ah, 5
jae 0x40d9a3
cmp eax, 0x7f
ja 0x40d9a4
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40d941
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40dcfc
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40dd6b
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40dd33
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40e760
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x40e7ff
mov dword [ebp - 0xc], 0xc8
push str.HIDVid_3689Pid_8762
call fcn.00405e00
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push 0x46de02
call fcn.00405f6c
add esp, 0xc
test eax, eax
jne 0x40e7ff
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x40e7fc
mov ecx, dword [ebp + 0x10]
mov esi, 0x46de2e
mov edi, ecx
lea edx, [ebp - 0x110]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00405dc4
add esp, 8
mov eax, 1
jmp 0x40e80a
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x40e77f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x466ad3
Capabilities:
Check for software breakpoints

Disassembly:
nop
loop 0x466a93
shl dword [esi - 0x578acccc], 1
sbb edx, dword [esi + 0x4a]
inc ebp
nop
pop ebp
cmpsb byte [esi], byte es:[edi]
invalid
Function at 0x4017d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4018b4
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4018b4
mov ebp, dword [esp + 0x28]
mov esi, 0x1505
test ebp, ebp
je 0x401827
xor edi, edi
nop
movzx ecx, byte [ebx + edi]
test ecx, ecx
je 0x401827
mov edx, esi
shl edx, 5
add edx, esi
mov esi, edx
and esi, ecx
xor edx, ecx
lea esi, [edx + esi*2]
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jb 0x401800
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x4018b4
mov dword [esp + 4], esi
and edi, esi
mov eax, dword [ecx + 4]
lea ebp, [eax + edi*4]
add ebp, 4
not edi
jmp 0x401857
add ebp, 4
dec edi
dec ebx
je 0x4018b2
mov eax, dword [esp + 8]
or eax, edi
mov esi, dword [ebp + eax*4]
cmp esi, 0xffffffff
je 0x4018b2
mov eax, dword [ecx + 8]
mov edx, dword [esp + 4]
cmp dword [eax + esi*4], edx
jne 0x401850
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp], eax
push eax
call fcn.004083f0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401850
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00408410
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401850
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
jmp 0x4018b4
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402680
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x402836
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
movzx edi, si
shr esi, 0x10
test ebx, ebx
je 0x40282f
mov ecx, 0x5e6ea9af
mov eax, ebx
mul ecx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ecx, ebx
sub ecx, eax
jmp 0x402716
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, dword [esp]
add ebp, eax
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, esi
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
mov ebx, dword [esp + 0xc]
sub ebx, ecx
mov ecx, 0x15b0
je 0x40282f
xor edx, edx
cmp ecx, 8
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
jb 0x402796
and ecx, 0x1ff8
mov dword [esp], ecx
xor eax, eax
mov edx, eax
movzx ebx, byte [ebp + eax]
add ebx, edi
movzx eax, byte [ebp + eax + 1]
add eax, ebx
movzx ecx, byte [ebp + edx + 2]
mov edi, eax
xor edi, ecx
and ecx, eax
lea edi, [edi + ecx*2]
add ebx, esi
add ebx, eax
movzx eax, byte [ebp + edx + 3]
add eax, edi
add ebx, edi
movzx ecx, byte [ebp + edx + 4]
add ecx, eax
add ebx, eax
movzx eax, byte [ebp + edx + 5]
add eax, ecx
add ebx, ecx
movzx ecx, byte [ebp + edx + 6]
add ecx, eax
add ebx, eax
add ebx, ecx
movzx edi, byte [ebp + edx + 7]
add edi, ecx
mov ecx, dword [esp + 4]
mov esi, ebx
add esi, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, ecx
jb 0x402730
add ebp, eax
mov edx, dword [esp]
mov ebx, edx
sub ebx, ecx
jae 0x4026db
mov eax, ecx
and eax, 3
mov dword [esp], edx
je 0x4027e1
mov dword [esp + 8], ebx
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx]
inc edx
add edi, ecx
add esi, edi
dec ebx
cmp eax, ebx
jne 0x4027c0
mov eax, dword [esp]
sub eax, ebx
mov ebx, dword [esp + 8]
cmp ebx, 0xfffffffc
ja 0x4026d0
jmp 0x4027ee
mov eax, edx
mov edx, ebp
cmp ebx, 0xfffffffc
ja 0x4026d0
mov ebx, dword [esp + 4]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx + eax]
add ecx, edi
add esi, ecx
movzx edi, byte [edx + eax + 1]
add edi, ecx
add esi, edi
movzx ecx, byte [edx + eax + 2]
add ecx, edi
add esi, ecx
movzx edi, byte [edx + eax + 3]
add edi, ecx
add esi, edi
add eax, 4
cmp ebx, eax
jne 0x402800
jmp 0x4026d0
shl esi, 0x10
or esi, edi
jmp 0x40283b
mov esi, 1
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402850
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4028be
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x4028c0
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
and eax, 0xf
mov ebp, edi
not ebp
or ebp, 0xf
mov ecx, edx
lea edx, [edi + ebp]
add ebp, edi
inc ebp
and ebp, eax
add eax, edx
inc eax
mov edx, ecx
mov ecx, dword [esp + 0x18]
add ebp, ebp
sub eax, ebp
shr ebx, 4
xor ebx, dword [eax*4 + 0x44180c]
mov eax, ebx
and ebx, 0xf
shr edi, 4
xor edi, ebx
shr eax, 4
xor eax, dword [edi*4 + 0x44180c]
inc esi
cmp edx, esi
jne 0x402870
not eax
jmp 0x4028c0
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408070
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov ebx, dword [edx + 8]
mov esi, 1
cmp ebx, eax
jae 0x4080dc
mov edi, edx
cmp dword [esp + 0x18], 0
je 0x4080be
cmp ebx, 1
adc ebx, 0
cmp ebx, eax
jae 0x4080c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
and edx, 0xfffffffd
mov ebp, ebx
and ebp, 2
or ebx, 2
imul ebx, ebp
xor ebp, 2
imul ebp, edx
add ebx, ebp
cmp ebx, eax
jb 0x4080a0
jmp 0x4080c0
mov ebx, eax
push ebx
push dword [edi + 0xc]
push dword [edi]
push dword [ecx + 0x34]
call dword [ecx + 0x30]
add esp, 0x10
test eax, eax
je 0x4080da
mov dword [edi], eax
mov dword [edi + 8], ebx
jmp 0x4080dc
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret