joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5a3c
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4d9434]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4b5a85
call ebp
mov esi, eax
cmp esi, ebx
je 0x4b5a6b
mov dword [0x4d9434], 1
jmp 0x4b5a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b5a80
push 2
pop eax
mov dword [0x4d9434], eax
jmp 0x4b5a85
mov eax, dword [0x4d9434]
cmp eax, 1
jne 0x4b5ae2
cmp esi, ebx
jne 0x4b5a9d
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4b5a9d
xor eax, eax
jmp 0x4b5b89
cmp word [esi], bx
mov eax, esi
je 0x4b5ab2
inc eax
inc eax
cmp word [eax], bx
jne 0x4b5aa4
inc eax
inc eax
cmp word [eax], bx
jne 0x4b5aa4
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004ab554
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4b5ad5
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4b5b89
push ebp
push esi
push edi
call fcn.004aa6d0
add esp, 0xc
jmp 0x4b5ac7
cmp eax, 2
je 0x4b5aeb
cmp eax, ebx
jne 0x4b5a96
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4b5a96
cmp byte [ebp], bl
mov esi, ebp
je 0x4b5b21
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4b5a96
push esi
add edi, eax
call fcn.004ae430
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4b5afe
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004ab554
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4b5b9a
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4b5b7b
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4b5b90
push edi
call fcn.004ae430
push esi
lea edi, [edi + eax + 1]
call fcn.004ab0d9
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4b5b41
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004ab0ef
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4b5a96
Function at 0x4b5ba6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4d9438]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4b5be6
call esi
test eax, eax
je 0x4b5bcb
mov dword [0x4d9438], 1
jmp 0x4b5beb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b5be2
mov dword [0x4d9438], 2
jmp 0x4b5bf4
xor eax, eax
jmp 0x4b5c42
cmp eax, 1
jne 0x4b5bef
call esi
jmp 0x4b5c42
cmp eax, 2
jne 0x4b5be2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x4b5c3a
lea eax, [esi + esi]
push eax
call fcn.004ab554
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4b5c3a
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4b5c3e
push ebp
call fcn.004ab0ef
pop ecx
xor eax, eax
jmp 0x4b5c40
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4b9023
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4d94c4], ebx
push esi
push edi
jne 0x4b90a3
push 0x4bcf50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b90de
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d22c8
push edi
call esi
test eax, eax
mov dword [0x4d94c4], eax
je 0x4b90de
push 0x4d22b8
push edi
call esi
push 0x4d22a4
push edi
mov dword [0x4d94c8], eax
call esi
cmp dword [0x4d8f30], 2
mov dword [0x4d94cc], eax
jne 0x4b90a3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4d94d4], eax
je 0x4b90a3
push 0x4d2270
push edi
call esi
mov dword [0x4d94d0], eax
mov eax, dword [0x4d94d0]
test eax, eax
je 0x4b90e8
call eax
test eax, eax
je 0x4b90cf
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4d94d4]
test eax, eax
je 0x4b90cf
test byte [ebp - 8], 1
jne 0x4b90e8
cmp dword [0x4d8f3c], 4
jb 0x4b90e2
or byte [ebp + 0x12], 0x20
jmp 0x4b9107
xor eax, eax
jmp 0x4b9117
or byte [ebp + 0x12], 4
jmp 0x4b9107
mov eax, dword [0x4d94c8]
test eax, eax
je 0x4b9107
call eax
mov ebx, eax
test ebx, ebx
je 0x4b9107
mov eax, dword [0x4d94cc]
test eax, eax
je 0x4b9107
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4d94c4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ba59c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4ba772
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4d97a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4ba772
test cl, 0x48
je 0x4ba607
cmp byte [eax + 5], 0xa
je 0x4ba607
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ba659
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4ba641
call fcn.004ae137
mov dword [eax], 9
call fcn.004ae140
mov dword [eax], esi
jmp 0x4ba651
cmp eax, 0x6d
je 0x4ba772
push eax
call fcn.004ae149
pop ecx
or eax, 0xffffffff
jmp 0x4ba774
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4ba76d
test eax, eax
je 0x4ba680
cmp byte [ebx], 0xa
jne 0x4ba680
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4ba689
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4ba767
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4ba757
cmp al, 0xd
je 0x4ba6bb
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4ba749
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4ba6d5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4ba6d0
add dword [ebp + 0x10], 2
jmp 0x4ba729
mov dword [ebp + 0x10], eax
jmp 0x4ba745
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ba6fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4ba745
cmp dword [ebp - 0xc], 0
je 0x4ba745
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4ba71e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4ba729
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4ba748
cmp ebx, dword [ebp + 0xc]
jne 0x4ba72e
cmp byte [ebp - 1], 0xa
jne 0x4ba72e
mov byte [ebx], 0xa
jmp 0x4ba748
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b62f7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ba749
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4ba69f
jmp 0x4ba767
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4ba767
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4ba774
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bb0f5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4bb10e
or eax, 0xffffffff
jmp 0x4bb16f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4bb16b
push 0x3d
push esi
call fcn.004bb2f6
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4bb16b
cmp esi, eax
je 0x4bb16b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4d8f50]
sete cl
cmp eax, dword [0x4d8f54]
mov dword [ebp - 4], ecx
jne 0x4bb151
mov edi, eax
call fcn.004bb094
mov dword [0x4d8f50], eax
cmp eax, ebx
jne 0x4bb1aa
cmp dword [ebp + 0xc], ebx
je 0x4bb173
cmp dword [0x4d8f58], ebx
je 0x4bb173
call fcn.004ba50c
test eax, eax
je 0x4bb1aa
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4bb17c
xor eax, eax
jmp 0x4bb16e
push 4
call fcn.004ab554
cmp eax, ebx
pop ecx
mov dword [0x4d8f50], eax
je 0x4bb16b
mov dword [eax], ebx
cmp dword [0x4d8f58], ebx
jne 0x4bb1aa
push 4
call fcn.004ab554
cmp eax, ebx
pop ecx
mov dword [0x4d8f58], eax
je 0x4bb16b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4d8f50]
sub edi, esi
push esi
call fcn.004bb047
mov edi, eax
test edi, edi
pop ecx
jl 0x4bb211
cmp dword [ebx], 0
je 0x4bb211
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004ab0ef
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4bb1f1
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4bb252
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4bb1e8
mov eax, edi
shl eax, 2
push eax
push dword [0x4d8f50]
call fcn.004ad23a
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4bb252
jmp 0x4bb24d
cmp dword [ebp - 4], 0
jne 0x4bb2b9
test edi, edi
jge 0x4bb221
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4d8f50]
call fcn.004ad23a
test eax, eax
pop ecx
pop ecx
je 0x4bb16b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4d8f50], eax
cmp dword [ebp + 0xc], 0
je 0x4bb2a4
push esi
call fcn.004ae430
inc eax
inc eax
push eax
call fcn.004ab554
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4bb2a4
push esi
push edi
call fcn.004aa170
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4bb29d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004ab0ef
pop ecx
cmp dword [ebp - 4], 0
je 0x4bb2b1
push esi
call fcn.004ab0ef
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4bb16e
push esi
call fcn.004ab0ef
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4bb178
Function at 0x402b40
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, esi
cmp dword [esi], 0
jge 0x402b9b
mov edx, 0x8b1f
call fcn.00403580
mov edx, 0x808
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00403580
mov edx, 0xb02
mov ecx, esi
call fcn.00403580
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.00403700
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.00403580
mov edx, 0x403
mov ecx, esi
call fcn.00403580
mov edx, 0x2d
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.00403580
or edx, 0xffffffff
mov ecx, esi
call fcn.00403580
or edx, 0xffffffff
mov ecx, esi
call fcn.00403580
or edx, 0xffffffff
mov ecx, esi
call fcn.00403580
or edx, 0xffffffff
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.00403580
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.00403700
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.00403580
mov edx, 0x10
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.00403580
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.0041bdc0
mov edx, eax
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.00403580
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.00403580
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.0041bdc0
mov edx, eax
mov ecx, esi
call fcn.00403580
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.00403580
mov eax, dword [edi + 0x24]
test eax, eax
je 0x402cf1
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.00403700
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x403480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40348b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x403547
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x421d28]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x421d28]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x421d28]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x421d28]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x421d28]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x421d28]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x421d28]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x421d28]
sub edi, 1
jne 0x4034a0
pop edi
test esi, esi
je 0x40356a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x421d28]
sub esi, 1
jne 0x403550
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x403580
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
cmp dword [esi + 0x20], 0
jne 0x4036f5
mov eax, edx
mov byte [ebp - 4], dl
shr eax, 8
mov dword [ebp - 8], eax
mov byte [ebp - 3], al
mov eax, dword [esi]
push edi
test al, 0x10
je 0x403660
mov edi, dword [esi + 0x40]
mov ecx, edi
push ebx
mov ebx, dword [esi + 0x38]
and ecx, 0xfffd
movsx eax, dl
or ecx, 2
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x421d28]
movzx eax, bl
add eax, dword [esi + 0x3c]
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x421d28]
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, edi
and ecx, 0xfffd
or ecx, 2
shr eax, 8
xor al, byte [ebp - 0xc]
mov byte [ebp - 4], al
mov eax, dword [ebp - 8]
movsx eax, al
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x421d28]
movzx eax, bl
add eax, edx
mov dword [esi + 0x38], ebx
imul eax, eax, 0x8088405
pop ebx
inc eax
mov dword [esi + 0x3c], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x421d28]
mov eax, ecx
xor eax, 1
mov dword [esi + 0x40], edi
imul eax, ecx
shr eax, 8
xor al, byte [ebp - 8]
mov byte [ebp - 3], al
mov eax, dword [esi]
test al, 1
je 0x4036b6
mov edi, dword [esi + 0x28]
mov ecx, edi
mov eax, dword [esi + 0x2c]
add ecx, 2
adc eax, 0
cmp eax, dword [esi + 0x34]
jb 0x40368b
ja 0x40367e
cmp ecx, dword [esi + 0x30]
jb 0x40368b
pop edi
mov dword [esi + 0x20], 0xb
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
lea edx, [ebp - 4]
add ecx, edi
mov edi, 2
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub edi, 1
jne 0x403698
mov ecx, dword [esi + 0x2c]
add dword [esi + 0x28], 2
adc ecx, edi
mov dword [esi + 0x2c], ecx
jmp 0x4036e5
push 0
lea eax, [ebp - 0xc]
mov edx, 0x8a
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
lea ecx, [edx - 0x56]
call fcn.00410740
call eax
test eax, eax
je 0x4036de
cmp dword [ebp - 0xc], 2
je 0x4036e5
mov dword [esi + 0x20], 3
test dword [esi], 0x40000000
je 0x4036f4
mov dword [esi + 0x20], 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403700
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
test ebx, ebx
je 0x40388a
cmp dword [edi + 0x20], 0
jne 0x40388a
test byte [edi], 0x10
je 0x403805
mov ecx, dword [edi + 0x44]
mov edx, ecx
test ecx, ecx
je 0x403745
cmp dword [edi + 0x48], ebx
jae 0x403745
call fcn.00404850
mov dword [edi + 0x44], 0
jmp 0x403749
test edx, edx
jne 0x403769
lea ecx, [ebx + ebx]
mov dword [edi + 0x48], ecx
call fcn.004047a0
mov edx, eax
mov dword [edi + 0x44], edx
test edx, edx
jne 0x403769
mov dword [edi + 0x20], 2
jmp 0x40387b
mov ecx, ebx
sub edx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], al
sub ecx, 1
jne 0x403770
mov esi, dword [edi + 0x44]
xor edx, edx
mov dword [ebp - 4], edx
test ebx, ebx
je 0x403805
nop word [eax + eax]
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x38]
mov bl, byte [edx + eax]
mov edx, dword [edi + 0x40]
mov esi, edx
movsx eax, bl
and esi, 0xfffd
xor eax, ecx
or esi, 2
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x421d28]
movzx eax, cl
add eax, dword [edi + 0x3c]
imul eax, eax, 0x8088405
mov dword [edi + 0x38], ecx
mov ecx, esi
xor ecx, 1
imul ecx, esi
inc eax
mov dword [edi + 0x3c], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
mov ebx, dword [ebp + 8]
shr edx, 8
xor edx, dword [eax*4 + 0x421d28]
mov dword [edi + 0x40], edx
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x44]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 4], edx
cmp edx, ebx
jb 0x403790
mov esi, dword [edi + 0x44]
test byte [edi], 1
je 0x403851
mov ecx, ebx
mov eax, 0
add ecx, dword [edi + 0x28]
adc eax, dword [edi + 0x2c]
cmp eax, dword [edi + 0x34]
jb 0x40382c
ja 0x403823
cmp ecx, dword [edi + 0x30]
jb 0x40382c
mov dword [edi + 0x20], 0xb
jmp 0x40387b
mov ecx, dword [edi + 4]
mov edx, ebx
add ecx, dword [edi + 0x28]
mov al, byte [esi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea esi, [esi + 1]
sub edx, 1
jne 0x403834
add dword [edi + 0x28], ebx
mov eax, edx
adc eax, dword [edi + 0x2c]
mov dword [edi + 0x2c], eax
jmp 0x40387b
push 0
lea eax, [ebp + 8]
mov edx, 0x8a
push eax
push ebx
push esi
push dword [edi + 4]
lea ecx, [edx - 0x56]
call fcn.00410740
call eax
test eax, eax
je 0x403874
cmp dword [ebp + 8], ebx
je 0x40387b
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x40388a
mov dword [edi + 0x20], 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410630
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
xor eax, eax
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x108], ecx
nop word [eax + eax]
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x410660
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
nop word [eax + eax]
mov eax, esi
mov bl, byte [ebp + esi - 0x104]
xor edx, edx
div dword [ebp - 0x110]
movzx eax, byte [edx + ecx]
add eax, edi
movzx ecx, bl
add ecx, eax
movzx edi, cl
mov ecx, dword [ebp - 0x108]
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], bl
cmp esi, 0x100
jb 0x410680
mov esi, dword [ebp - 0x10c]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
xor eax, eax
inc eax
lea esi, [esi + 1]
movzx edx, al
mov dword [ebp - 0x108], edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add eax, ebx
movzx ebx, al
mov al, byte [ebp + ebx - 0x104]
mov byte [ebp + edx - 0x104], al
mov eax, dword [ebp - 0x108]
movzx edx, cl
mov byte [ebp + ebx - 0x104], cl
movzx ecx, byte [ebp + eax - 0x104]
add edx, ecx
movzx ecx, dl
movzx ecx, byte [ebp + ecx - 0x104]
xor byte [esi - 1], cl
sub edi, 1
jne 0x4106d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041084f
mov esp, ebp
pop ebp
ret
Function at 0x40c770
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x10], al
mov esi, dword [edi]
cmp esi, dword [esp + 0x18]
je 0x40c8f3
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x24]
nop word [eax + eax]
mov cl, byte [esi + 5]
test cl, 0x18
je 0x40c8a8
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x40c7c7.11
movzx eax, byte [eax + 0x40c920]
jmp dword [eax*4 + 0x40c8f8]
push esi
push ebx
call fcn.0040a0d0
add esp, 8
jmp case.0x40c7c7.11
lea eax, [esi + 0x10]
cmp dword [esi + 8], eax
je 0x40c7ee
push esi
call fcn.0040a3c0
add esp, 4
push 0x20
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
movzx eax, byte [esi + 6]
lea eax, [eax*4 + 0x10]
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
push esi
push ebx
call fcn.00415130
add esp, 8
jmp case.0x40c7c7.11
push esi
push ebx
call fcn.00413f00
add esp, 8
jmp case.0x40c7c7.11
movzx eax, word [esi + 6]
test ax, ax
jne 0x40c860
mov ecx, 0x10
jmp 0x40c868
mov ecx, eax
shl ecx, 4
add ecx, 0x18
mov eax, dword [esi + 8]
add eax, ecx
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
push esi
push ebx
call fcn.00414c00
movzx eax, byte [esi + 7]
add eax, 0x11
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0x14
jmp case.0x40c7c7.11
mov eax, dword [esi + 0xc]
add eax, 0x11
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
test cl, 7
jne 0x40c8bc
and cl, 0xc1
and al, 0x18
or cl, al
or cl, 1
mov byte [esi + 5], cl
jmp 0x40c8df
movzx eax, cl
and cl, 0xf8
and eax, 7
or cl, byte [eax + 0x44ee60]
mov byte [esi + 5], cl
and cl, 7
cmp cl, 3
jne 0x40c8df
cmp dword [ebp], 0
jne 0x40c8df
mov dword [ebp], esi
mov edi, esi
mov esi, dword [edi]
mov al, byte [esp + 0x18]
cmp esi, dword [esp + 0x20]
jne 0x40c7a0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
ret