joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xdef098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xdef090]
sub esp, 4
test ebx, ebx
je 0x4207c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4207be
test esi, esi
je 0x4207be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4207a0
mov dword [esp], 0xdef098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x420af0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x420b15
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x420b20
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x420b15
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x420b68
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x420b5e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x420b6a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x420b50
xor eax, eax
pop ebx
pop esi
ret
Function at 0x43152e
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.004314ef
lea ecx, [eax + 0x94]
call fcn.0042f29a
call fcn.004314ef
mov ecx, eax
pop ebp
jmp fcn.0042f82c
Function at 0x402587
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
xor edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov ecx, edi
and eax, 0xfffffffc
mov esi, edi
add eax, 4
and cl, 3
cmovne esi, eax
mov ecx, esi
call fcn.00402f3b
mov dword [ebp - 4], eax
test eax, eax
je 0x402601
shr esi, 2
lea edx, [ebx + 8]
xor ebx, ebx
and dword [ebp - 8], ebx
lea ecx, [edx + esi*4]
mov esi, ecx
sub esi, edx
add esi, 3
shr esi, 2
cmp edx, ecx
cmova esi, dword [ebp - 8]
test esi, esi
je 0x4025f5
mov ecx, eax
sub ecx, edx
mov eax, dword [edx]
xor eax, dword [ebp - 0xc]
inc ebx
mov dword [ecx + edx], eax
lea edx, [edx + 4]
cmp ebx, esi
jb 0x4025e5
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4025fe
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40260d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 1]
mov eax, esi
mov edx, esi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne esi, eax
lea ecx, [esi + esi]
call fcn.00402f3b
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4026b8
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
add eax, 8
shr esi, 2
lea ecx, [eax + esi*4]
mov esi, edi
mov edx, ecx
sub edx, eax
add edx, 3
shr edx, 2
cmp eax, ecx
cmova edx, dword [ebp - 4]
test edx, edx
je 0x4026b2
mov ebx, eax
xor edi, edi
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 0xc]
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc edi
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp edi, edx
jb 0x402676
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 1]
mov eax, edi
mov edx, edi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne edi, eax
mov ecx, edi
call fcn.00402f3b
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x402753
and dword [ebp - 4], 0
add ebx, 8
shr edi, 2
xor eax, eax
mov edx, esi
lea ecx, [ebx + edi*4]
mov edi, ecx
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, ecx
cmova edi, eax
test edi, edi
je 0x40274c
mov esi, dword [ebp - 4]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 8]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc esi
mov byte [edx - 1], cl
cmp esi, edi
jb 0x402723
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402a7a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push 0x30
lea eax, [ebp - 0x38]
mov dword [ebp - 0x40], 0x73096717
push 0
push eax
mov ebx, ecx
mov dword [ebp - 0x3c], 0xe1e7e512
call fcn.00407950
mov dword [ebp - 8], 0x36c2
add esp, 0xc
xor dword [ebp - 8], 0x948d9d64
xor edx, edx
shr dword [ebp - 8], 9
mov eax, dword [ebp - 8]
push 0x4b
pop ecx
div ecx
push 0x1e
mov dword [ebp - 8], eax
xor edx, edx
or dword [ebp - 8], 0x3c14d500
shr dword [ebp - 8], 7
mov eax, dword [ebp - 8]
pop ecx
div ecx
push 0x73
mov dword [ebp - 8], eax
xor edx, edx
xor dword [ebp - 8], 0x40166
mov dword [ebp - 4], 0xe287
shl dword [ebp - 4], 0xf
shr dword [ebp - 4], 5
add dword [ebp - 4], 0xffffa286
xor dword [ebp - 4], 0x389be80
mov dword [ebp - 4], 0xc614
add dword [ebp - 4], 0xffff24be
mov eax, dword [ebp - 4]
pop ecx
div ecx
mov dword [ebp - 4], eax
add dword [ebp - 4], 0xffff9a12
shr dword [ebp - 4], 0xf
or dword [ebp - 4], 0x45725541
add dword [ebp - 4], 0xffff9179
shr dword [ebp - 4], 0xf
xor dword [ebp - 4], 0x8af3
cmp byte [ebx], 0
je 0x402bd0
push esi
push edi
mov edi, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 4], 0xe287
shl dword [ebp - 4], 0xf
shr dword [ebp - 4], 5
add dword [ebp - 4], 0xffffa286
xor dword [ebp - 4], 0x389be80
mov cl, byte [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], 0xc614
add dword [ebp - 4], 0xffff24be
mov eax, dword [ebp - 4]
shl esi, cl
push 0x73
pop ecx
div ecx
mov dword [ebp - 4], eax
add dword [ebp - 4], 0xffff9a12
shr dword [ebp - 4], 0xf
or dword [ebp - 4], 0x45725541
add dword [ebp - 4], 0xffff9179
shr dword [ebp - 4], 0xf
xor dword [ebp - 4], 0x8af3
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 8]
movsx eax, byte [ebx]
mov dword [ebp - 8], eax
add dword [ebp - 8], esi
shl edx, cl
add dword [ebp - 8], edx
sub dword [ebp - 8], edi
inc ebx
cmp byte [ebx], 0
jne 0x402b46
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402d2a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [edi + 0x18], esi
jbe 0x402db6
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.00402a7a
xor eax, 0x7d2c689b
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
je 0x402d8d
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x18]
jb 0x402d68
jmp 0x402db6
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x402db6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x402db6
mov ecx, esi
call fcn.00402df6
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402dbf
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x402de7
mov ecx, dword [esi + 0x30]
call fcn.00402bd8
xor eax, 0x4c32f59
cmp eax, ebx
je 0x402df1
mov esi, dword [esi]
cmp esi, edi
jne 0x402dd4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x402ded

Function at 0x402f93
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 4], eax
push edi
cmp edx, 0x40
jb 0x40308d
call fcn.00403094
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40308d
push esi
push 0x40
push 0x3000
push dword [edi + 0x50]
mov edx, 0x44fdced1
mov ecx, 0x8bbdc92b
push 0
push 0xc8
call fcn.00402e82
pop ecx
call eax
mov esi, eax
test esi, esi
je 0x403088
movzx ecx, word [edi + 0x14]
lea eax, [edi + 0x18]
mov edx, dword [ebp - 4]
add eax, ecx
movzx ecx, word [edi + 6]
push ebx
push dword [edi + 0x54]
imul ebx, ecx, 0x28
mov ecx, esi
mov dword [ebp - 8], eax
add ebx, eax
call fcn.00402f17
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jae 0x403054
sub ebx, ecx
mov edi, dword [ebp - 4]
lea eax, [ecx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
push 0x28
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebx]
cmp dword [ebx - 8], ecx
mov edx, dword [ebx + 4]
cmovb ecx, dword [ebx - 8]
add edx, edi
push ecx
mov ecx, dword [ebx - 4]
add ecx, esi
call fcn.00402f17
dec dword [ebp - 8]
lea ebx, [ebx + 0x28]
pop ecx
jne 0x40302f
mov edi, dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.0040316b
mov edx, edi
mov ecx, esi
call fcn.004030bd
pop ebx
test eax, eax
jne 0x403088
push 0x8000
push eax
push esi
push 0x5c
mov edx, 0x87deb7cc
mov ecx, 0x8bbdc92b
call fcn.00402e82
pop ecx
call eax
xor esi, esi
mov eax, esi
pop esi
jmp 0x40308f
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403094
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4030a1
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40309e
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
cmovne eax, ecx
ret
Function at 0x4017b0
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 0x401890
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401890
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4017fa
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x401801
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4017e0
jmp 0x401803
mov esi, 0x1505
jmp 0x401803
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x20]
mov ebx, edi
sub ebx, 1
jb 0x401890
and ebx, esi
mov eax, edi
xor eax, 1
mov edx, edi
and edx, 0xfffffffe
add edx, edx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401834
inc ebx
dec edi
je 0x40188e
mov eax, ebx
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40188e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401830
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.004082d0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401830
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.004082f0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401830
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x401890
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d00
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x401e04
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401e04
cmp dword [esp + 0x2c], 0
je 0x401e04
push esi
call fcn.004082d0
add esp, 4
test eax, eax
je 0x401d6a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401d71
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401d50
jmp 0x401d73
mov ebx, 0x1505
jmp 0x401d73
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
mov esi, edi
sub esi, 1
jae 0x401e0c
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x401dc9
call fcn.00401f20
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x401e04
push ecx
call fcn.004082d0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
mov esi, edi
sub esi, 1
jae 0x401e90
mov ebp, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and esi, ebx
mov eax, edi
xor eax, 1
mov edx, edi
and edx, 0xfffffffe
add edx, edx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401e38
inc esi
dec edi
je 0x401d85
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401d8a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401e30
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.004082d0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401e30
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.004082f0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401e30
mov eax, 0xffffffff
jmp 0x401e04
and esi, ebx
mov eax, edi
xor eax, 1
mov edx, edi
and edx, 0xfffffffe
add edx, edx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401eb8
inc esi
dec edi
je 0x401dc4
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401dc9
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401eb0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.004082d0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401eb0
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.004082f0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401eb0
jmp 0x401dc9
Function at 0x402640
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x402816
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x40280f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x4026d5
mov eax, dword [esp]
sub eax, dword [esp + 4]
add ebp, eax
mov esi, dword [esp + 8]
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 0x40280f
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 8], esi
jb 0x40277a
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
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]
mov edi, esi
and edi, eax
xor esi, eax
lea eax, [esi + edi*2]
mov esi, eax
and esi, ecx
xor ecx, eax
lea ecx, [ecx + esi*2]
movzx esi, byte [ebp + edx + 3]
mov edi, eax
and edi, esi
xor eax, esi
lea eax, [eax + edi*2]
add ecx, eax
movzx esi, byte [ebp + edx + 4]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 5]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 6]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 7]
mov edi, esi
and edi, eax
xor esi, eax
lea edi, [esi + edi*2]
add ecx, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x402700
add ebp, eax
mov esi, dword [esp + 8]
mov eax, ebx
sub eax, edx
jae 0x40269d
mov dword [esp + 0xc], eax
mov eax, edx
and eax, 3
mov dword [esp + 4], ebx
je 0x4027c0
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x4027a0
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402690
jmp 0x4027cf
mov eax, ebx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402690
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
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 0x4027e0
jmp 0x402690
shl ecx, 0x10
or ecx, edi
jmp 0x40281b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408860
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, dword [esp + 8]
mov dword [0x4469f0], edx
mov eax, 0xfffffd91
mov ecx, edx
shr ecx, 0x1e
mov esi, ecx
and esi, edx
add esi, esi
sub ecx, esi
add ecx, edx
mov edx, ecx
and edx, 0x6c078965
mov esi, ecx
or ecx, 0x6c078965
imul ecx, edx
xor edx, 0x6c078965
and esi, 0x93f8769a
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x270
mov dword [eax*4 + 0x4473b0], edx
inc eax
jne 0x408870
mov dword [0x4469ec], 0x270
pop esi
ret
Function at 0x408bd0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
push ebx
push edi
push esi
mov edx, dword [ecx]
cmp edx, 0x270
jne 0x408c55
mov edx, 0x4e0
mov edi, 0x270
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, edi
xor ebx, 0x270
mov ebp, edx
and ebp, 0xb1e
sub ebp, ebx
mov eax, dword [ecx + ebp*4 + 4]
mov esi, SysReAllocString
and eax, esi
mov ebx, dword [ecx + ebp*4 + 8]
mov esi, ebx
and esi, 0x7ffffffe
or esi, eax
shr esi, 1
and ebx, 1
neg ebx
and ebx, 0x9908b0df
xor ebx, esi
mov eax, dword [ecx + ebp*4 + 0x638]
mov esi, ebx
and esi, eax
add ebx, eax
add esi, esi
sub ebx, esi
mov dword [ecx + edx*2 + 4], ebx
inc edi
add edx, 2
cmp edx, 0x9c0
jne 0x408bf0
mov edx, 0x270
jmp 0x408d2f
cmp edx, 0x4e0
jb 0x408d2f
mov esi, dword [ecx + 0x9c4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 0xff8]
xor edi, edx
mov dword [ecx + eax*4 + 4], edi
inc eax
cmp eax, 0xe3
jne 0x408c70
mov esi, dword [ecx + 0xd50]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0xd54]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 4]
xor edi, edx
mov dword [ecx + eax*4 + 0x390], edi
inc eax
cmp eax, 0x18c
jne 0x408cc0
mov esi, SysReAllocString
and esi, dword [ecx + 0x1380]
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0x7ffffffe
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
xor edx, edx
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ecx + edx*4 + 4]
mov edx, eax
shr edx, 0xb
and edx, dword [ecx + 0x1384]
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c0
push eax
sub esp, 0x18
mov esi, esp
sub esp, 0x80
mov dword [ebp - 0x24], esp
sub esp, 0x100
mov edi, esp
mov dword [ebp - 0x2c], edi
push eax
mov dword [ebp - 0x1c], esp
push eax
mov dword [ebp - 0x28], esp
sub esp, 0x70
mov dword [ebp - 0x3c], esp
sub esp, 0x28
mov dword [ebp - 0x14], esp
sub esp, 0xc
mov dword [ebp - 0x18], esp
sub esp, 0x40
mov dword [ebp - 0x20], esp
sub esp, 0x80
mov dword [ebp - 0x38], esp
mov eax, dword [0x447dcc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0x13120910
mov word [ebp - 0x30], 0
mov ecx, 0x31b73a7c
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp + ecx - 0x31b73ab0]
xor edx, ecx
mov ebx, edx
not ebx
and ebx, 0x6d
and edx, 0x92
sub edx, ebx
inc dl
mov byte [ebp + ecx - 0x31b73ab0], dl
inc ecx
cmp ecx, 0x31b73a82
jne 0x409d40
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1cc], 0x9361911f
mov dword [ebp - 0x1c8], 0xaf49ad9e
mov dword [ebp - 0x1c4], 0xab98a99b
mov dword [ebp - 0x1c0], 0xa75aa592
mov dword [ebp - 0x1bc], 0xa356a154
mov word [ebp - 0x1b8], 0xbdbc
mov dword [ebp - 0x1b6], 0
mov byte [ebp - 0x1b2], 0
mov eax, 0x8c3a995c
nop
movzx ebx, byte [ebp + eax + 0x73c564d8]
mov edx, eax
and edx, ebx
add edx, edx
sub ebx, edx
lea edx, [eax + ebx]
not edx
add ebx, eax
add ebx, 0x42db0133
or edx, ebx
and edx, 1
xor ebx, 1
lea edx, [ebx + edx*2]
mov byte [ebp + eax + 0x73c564d8], dl
inc eax
cmp eax, 0x8c3a9977
jne 0x409dc0
lea eax, [ebp - 0x1cc]
push ecx
push 0
push eax
call dword [ebp - 0x10]
mov ecx, 0x447dd0
push eax
call fcn.004378b0
movzx eax, al
mov eax, dword [eax*4 + 0x441a80]
mov ecx, dword [0x441a88]
mov edx, ecx
and edx, 0x309eeb0c
add edx, edx
sub edx, ecx
add eax, edx
add eax, 0xcf6114f4
xor ebx, ebx
jmp eax

Function at 0x40b0e0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x150
mov esi, esp
mov eax, dword [ebp + 8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0x3c
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
mov edx, 0xfffffffe
mov ecx, dword [0x447da8]
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + edx + 2], 0
lea edx, [edx + 2]
jne case.default.0x40b18e
sar edx, 1
lea edi, [esi + 0x20]
push edi
push 0
push edx
push eax
call ecx
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x441ea0]
mov eax, dword [0x441eb0]
nop
nop
nop
nop
nop
nop
jmp eax