joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406612
xor eax, eax
test eax, eax
je 0x406625
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406625
xor ecx, ecx
jmp 0x406628
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x406788
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406762
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x40675d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x40679b
pop edi
not eax
pop esi
ret 0xc

Function at 0x401385
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4013ba
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4013b7
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4013c3
add edx, 0x28
cmp edx, esi
jne 0x4013a5
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4013c0

Function at 0x401805
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10031633
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1003f6ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x1003f6ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 4
push str.ATH_r
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.10001f80
push 0x20
mov dword [esp + 0x3c], 0
call fcn.10015ad8
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x10004f2e
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.10001710
mov esi, eax
jmp 0x10004f30
xor esi, esi
push esi
mov ecx, edi
mov byte [esp + 0x3c], 0
call fcn.10004380
test al, al
jne 0x10004f55
test esi, esi
je 0x10004f4e
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
mov esi, 0x14010025
jmp 0x10004f57
xor esi, esi
cmp dword [esp + 0x24], 0x10
jb 0x10004f6a
push dword [esp + 0x10]
call fcn.10015a88
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100152c3
mov esp, ebp
pop ebp
ret

Function at 0x10004f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10031633
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1003f6ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x1003f6ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 4
push str.ATA_r
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.10001f80
push 0x20
mov dword [esp + 0x3c], 0
call fcn.10015ad8
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x1000501e
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.10001710
mov esi, eax
jmp 0x10005020
xor esi, esi
push esi
mov ecx, edi
mov byte [esp + 0x3c], 0
call fcn.10004380
test al, al
jne 0x10005045
test esi, esi
je 0x1000503e
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
mov esi, 0x14010025
jmp 0x10005047
xor esi, esi
cmp dword [esp + 0x24], 0x10
jb 0x1000505a
push dword [esp + 0x10]
call fcn.10015a88
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100152c3
mov esp, ebp
pop ebp
ret
Function at 0x10009ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10031e6a
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1003f6ec]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x1003f6ec]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x88]
mov dword [esp + 0x18], edi
cmp eax, 9
ja case.0x10009efc.0
movzx eax, byte [eax + 0x1000a0b4]
jmp dword [eax*4 + 0x1000a0a0]
push 0x20
call fcn.10015ad8
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x78], 0
test edi, edi
je 0x10009f4d
push str.ATE0
lea ecx, [esp + 0x54]
call fcn.10001810
push 0xffffffffffffffff
lea eax, [esp + 0x54]
mov byte [esp + 0x7c], 1
mov ebx, 1
push eax
mov ecx, edi
mov dword [esp + 0x24], ebx
call fcn.10001710
mov ecx, eax
jmp 0x10009f4f
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
test bl, 1
je 0x10009f63
lea ecx, [esp + 0x50]
call fcn.100018e0
mov dword [esi + 0x88], 2
jmp case.0x10009efc.0
push str.ATCMGS
lea ecx, [esp + 0x3c]
call fcn.10001810
push 0x22
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x80], 3
call fcn.10001ac0
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x58]
push eax
lea ecx, [esp + 0x44]
call fcn.10001d50
push 0x22
push 1
lea ecx, [esp + 0x40]
call fcn.10001ac0
push 0x20
call fcn.10015ad8
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x78], 4
test eax, eax
je 0x10009fdd
push 0xffffffffffffffff
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.10001710
jmp 0x10009fdf
xor eax, eax
cmp dword [esp + 0x4c], 0x10
mov dword [edi], eax
mov dword [esi + 0x88], 8
jb case.0x10009efc.0
push dword [esp + 0x38]
jmp 0x1000a078
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.10001b70
push 1
push 0x10038050
lea ecx, [esp + 0x28]
mov dword [esp + 0x80], 5
call fcn.10001e50
push 0x20
call fcn.10015ad8
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x78], 6
test eax, eax
je 0x1000a05f
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.10001710
jmp 0x1000a061
xor eax, eax
cmp dword [esp + 0x34], 0x10
mov dword [edi], eax
mov dword [esi + 0x88], 0xa
jb case.0x10009efc.0
push dword [esp + 0x20]
call fcn.10015a88
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100152c3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000d1d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032152
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1003f6ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x100382a4
mov dword [edi + 0x10], 0x1003825c
mov dword [edi + 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push ecx
lea esi, [edi + 0x18]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.1000df30
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.1000e5a0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x10056b94]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
push ecx
push 0x22
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.1000dfe0
test eax, eax
jne 0x1000d304
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x1000d2fc
or eax, 4
push 0
push eax
call fcn.1000c670
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000e1f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10032a18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1003f6ec]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x1003f6ec]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x1000e344
cmp byte [ebx + 0x45], 0
je 0x1000e344
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1000e250
xor al, al
jmp 0x1000e346
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x1000e290
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000e2d1
dec eax
je 0x1000e2d5
sub eax, 2
je 0x1000e32b
xor bl, bl
jmp 0x1000e32d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x1000e30c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.10017814
add esp, 0x10
cmp esi, eax
jne 0x1000e2cd
cmp byte [ebx + 0x45], 0
je 0x1000e32b
test esi, esi
jne 0x1000e290
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.10001ac0
jmp 0x1000e290
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x1000e340
push dword [esp + 0x18]
call fcn.10015a88
add esp, 4
mov al, bl
jmp 0x1000e346
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100152c3
mov esp, ebp
pop ebp
ret

Function at 0x10011270
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esi + 0xc4]
call dword [eax + 0x30]
test eax, eax
jne 0x1001128c
mov ecx, esi
pop esi
jmp fcn.100036f0
pop esi
ret

Function at 0x10011620
Capabilities:
Create thread

Disassembly:
push ebx
push edi
mov ebx, ecx
push 0
mov eax, dword [ebx]
push dword [ebx + 0xc4]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x10011676
mov ecx, ebx
call fcn.100036f0
mov edi, eax
test edi, edi
jne 0x10011676
cmp byte [ebx + 0xd8], al
jne 0x10011676
push esi
push eax
push eax
lea esi, [ebx + 0xd0]
push esi
push 0x10010060
push eax
push eax
mov dword [esi + 0xd], 0x10011700
mov dword [esi + 9], ebx
mov byte [esi + 8], al
call fcn.10017c53
add esp, 0x18
mov dword [esi + 4], eax
pop esi
mov eax, edi
pop edi
pop ebx
ret
Function at 0x10014500
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032b02
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1003f6ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x100389c8
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
push esi
add ecx, edi
call fcn.1000de40
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.1000e5a0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x10056b94]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
push ecx
push 0x25
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.1000dfe0
test eax, eax
jne 0x1001465a
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x10014652
or eax, 4
push 0
push eax
call fcn.1000c670
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100279d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003f6ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10023b6f
mov dword [ebp - 0x14], eax
cmp dword [0x10056b34], edi
jne 0x10027ac9
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10027a56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10027ba9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10027ba9
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10027ba9
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10056b34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10056b38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10056b3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10056b44], eax
test eax, eax
je 0x10027ac6
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10056b40], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10027aee
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10027ae1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10027b03
push 4
pop eax
jmp 0x10027bab
cmp dword [ebp - 0x14], edi
je 0x10027b03
push dword [0x10056b34]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10027ae8
mov eax, dword [0x10056b40]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10027b61
cmp dword [0x10056b44], esi
je 0x10027b61
push eax
call ebx
push dword [0x10056b44]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10027b61
test eax, eax
je 0x10027b61
call ecx
test eax, eax
je 0x10027b56
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10027b56
test byte [ebp - 8], 1
jne 0x10027b61
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10027b91
mov eax, dword [0x10056b38]
cmp eax, esi
je 0x10027b8e
push eax
call ebx
test eax, eax
je 0x10027b8e
call eax
mov edi, eax
test edi, edi
je 0x10027b8e
mov eax, dword [0x10056b3c]
cmp eax, esi
je 0x10027b8e
push eax
call ebx
test eax, eax
je 0x10027b8e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10056b34]
call ebx
test eax, eax
je 0x10027ba9
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10027bab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100152c3
leave
ret
Function at 0x402e90
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x402eca
mov edx, dword [esp + 0x10]
mov edi, 0x1505
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + esi]
test ebx, ebx
je 0x402ed1
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp ecx, esi
jne 0x402eb0
jmp 0x402ed3
mov eax, 0x1505
jmp 0x402ed3
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x403600
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 0x403796
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x40378f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x403695
mov eax, dword [esp]
sub eax, dword [esp + 0xc]
add ebp, eax
mov esi, dword [esp + 4]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov edx, 0x15b0
je 0x40378f
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 4], esi
jb 0x403715
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
mov edx, eax
movzx eax, byte [ebp + eax]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + edx + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 3]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 4]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 5]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 6]
add eax, esi
mov esi, ecx
xor esi, eax
and ecx, eax
movzx edi, byte [ebp + edx + 7]
add edi, eax
add esi, edi
lea ecx, [esi + ecx*2]
lea eax, [edx + 8]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x4036b0
add ebp, eax
mov esi, dword [esp + 4]
mov eax, ebx
sub eax, edx
jae 0x40365d
mov dword [esp + 8], eax
mov esi, edx
and esi, 3
mov dword [esp + 0xc], ebx
mov eax, ebx
mov edx, ebp
je 0x40374c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
movzx ebx, byte [edx]
add edi, ebx
add ecx, edi
inc edx
dec esi
jne 0x403740
cmp dword [esp + 8], 0xfffffffc
ja 0x403650
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x403760
jmp 0x403650
shl ecx, 0x10
or ecx, edi
jmp 0x40379b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4037b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x403808
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x40380a
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x43f80c]
mov eax, ebx
shr eax, 4
mov ebp, ebx
and ebp, 0xf
shr edi, 4
and ebx, edi
or edi, ebp
xor edi, ebx
xor eax, dword [edi*4 + 0x43f80c]
inc esi
cmp edx, esi
jne 0x4037d0
not eax
jmp 0x40380a
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret