joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8ad007
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f8ad060
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f8ad007
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f8ad016
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x4fcb2cb9
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f8ad067
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.4f893edd
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f8ad106
add edi, 4
add eax, 2
dec ecx
jne 0x4f8ad04c
call 0x4f8ad0b3
loope 0x4f8ad0a9
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f8ad103
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f8ad114
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f8ad0c7
cmp eax, ecx
ja 0x4f8ad0c7
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f8ad151
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f8ad147
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.4f8943bc
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4f8ad016
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f8ad060
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f8ad007
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f8ad016
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x4fcb2cb9
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f8ad067
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.4f893edd
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f8ad106
add edi, 4
add eax, 2
dec ecx
jne 0x4f8ad04c
call 0x4f8ad0b3
loope 0x4f8ad0a9
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f8ad103
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f8ad114
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f8ad0c7
cmp eax, ecx
ja 0x4f8ad0c7
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f8ad151
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f8ad147
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.4f8943bc
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
movaps xmm2, xmmword [0x10011ce0]
xor eax, eax
push esi
mov esi, ecx
test edx, edx
je 0x1000106a
cmp edx, 0x40
jb 0x10001061
push edi
mov edi, edx
lea ecx, [esi + 0x20]
and edi, 0xffffffc0
nop
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
xorps xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
cmp eax, edi
jb 0x10001020
pop edi
cmp eax, edx
jae 0x1000106a
xor byte [esi + eax], 0x9b
inc eax
cmp eax, edx
jb 0x10001061
pop esi
ret

Function at 0x10001070
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
test eax, eax
jle 0x100010b9
nop
cmp byte [ebp + eax - 0x118], 0x5c
je 0x100010b1
dec eax
test eax, eax
jg 0x100010a0
jmp 0x100010b9
mov byte [ebp + eax - 0x117], 0
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x64616572
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 8], 0x742e656d
push eax
mov word [ebp - 4], 0x7478
mov byte [ebp - 2], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100011a3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000119a
push 4
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x1000119a
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000118c
cmp dword [ebp - 0x10], ebx
jne 0x1000118c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov edx, ebx
mov ecx, esi
call section..text
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x20
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10001175
call esi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10004517
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000727c
push ebx
push esi
call fcn.100071a8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000713c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007229
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000727b
push edi
push eax
call fcn.1000819a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007249
call fcn.10005c84
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000727a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000713c
add esp, 0x20
test eax, eax
jne 0x10007268
push edi
call fcn.10005c84
jmp 0x10007270
push ebx
call fcn.10005c84
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100074e9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e508
push 0x1000e500
push str.FlsAlloc
push 0x1f
call fcn.10007405
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000751d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d12c]
call esi
jmp 0x10007523
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007567
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e518
push 0x1000e510
push str.FlsGetValue
push 0x21
call fcn.10007405
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000759e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d12c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100075a6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e520
push 0x1000e518
push str.FlsSetValue
push 0x22
call fcn.10007405
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100075e0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000d12c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000cc70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cc9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cc9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0xa594b9e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x403165e6
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1005e05a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1005e070
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1005e081
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1005e0c2
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1006042e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x10060377
add ebx, 0
push ecx
call 0x1006038c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c1392bb
sub ebx, dword [0x6c158afa]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c158aea
call fcn.1005be56
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1005b364
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100604ea
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100604ea
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100604a1
mov eax, 1
lock xchg dword [0x6c158af6], eax
push 0x3dd1fc71
call 0x1006042e
push esi
add esp, 8
cmp eax, 0
jne 0x10060417
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1006043d
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10060452
cmp ecx, edx
cmp eax, 0
je 0x10060477
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10060461
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10060490
dec eax
loope 0x10060493
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c158af6], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100604c7
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100604dc
jmp 0x100604e7
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100603d5
Function at 0x1006754f
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x10067825
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c14576e
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c13c734
push 0xffffffffffffffff
call fcn.1005e74f
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x100675b9
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100675d1
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10067819
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100677ed
Function at 0x401085
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x4406a0]
xor eax, ebp
mov dword [ebp + 0x798], eax
mov eax, dword [ebp + 0x7ac]
push ebx
mov ebx, dword [ebp + 0x7a8]
push esi
mov esi, dword [ebp + 0x7a4]
push edi
xor edi, edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x6c], edi
push ebx
mov dword [ebp + edi*4 + 0x398], edi
call fcn.00415c96
pop ecx
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
inc edi
movzx eax, byte [edx + ebx]
mov dword [ebp + edi*4 - 0x6c], eax
cmp edi, 0x100
jl 0x4010c0
xor edx, edx
mov ecx, dword [ebp + edx - 0x68]
lea eax, [ebp + edx + 0x398]
mov edi, dword [eax]
add ecx, edi
add ecx, dword [ebp - 0x6c]
and ecx, 0x800000ff
jns 0x40110b
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp + ecx*4 + 0x398]
mov ebx, dword [ecx]
add edx, 4
mov dword [eax], ebx
mov dword [ecx], edi
cmp edx, 0x400
jl 0x4010e9
push esi
call fcn.00415c96
inc eax
push eax
call fcn.0041d44e
mov ebx, eax
xor edi, edi
push esi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], edi
call fcn.00415c96
add esp, 0xc
test eax, eax
jle 0x4011e3
mov dword [ebp - 0x74], ebx
sub dword [ebp - 0x74], esi
inc edi
and edi, 0x800000ff
jns 0x401168
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp - 0x6c]
lea eax, [ebp + edi*4 + 0x398]
mov ecx, dword [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x401186
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x6c], edx
lea edx, [ebp + edx*4 + 0x398]
mov ebx, dword [edx]
mov dword [eax], ebx
mov dword [edx], ecx
mov eax, dword [eax]
add eax, ecx
and eax, 0x800000ff
jns 0x4011a8
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [esi]
movzx edx, cl
lea eax, [ebp + eax*4 + 0x398]
cmp dword [eax], edx
jne 0x4011c0
mov eax, dword [ebp - 0x74]
mov byte [eax + esi], cl
jmp 0x4011ca
mov al, byte [eax]
xor al, cl
mov ecx, dword [ebp - 0x74]
mov byte [ecx + esi], al
push dword [ebp - 0x78]
inc dword [ebp - 0x70]
inc esi
call fcn.00415c96
pop ecx
cmp dword [ebp - 0x70], eax
jl 0x401157
mov ebx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x798]
mov byte [ebx + eax], 0
mov eax, dword [ebp - 0x80]
pop edi
pop esi
mov dword [eax], ebx
xor ecx, ebp
pop ebx
call fcn.0041e03a
add ebp, 0x79c
leave
ret
Function at 0x401207
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e28
call fcn.0041e050
mov eax, dword [0x4406a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x4e1f
lea eax, [ebp - 0x4e23]
push ebx
push eax
mov byte [ebp - 0x4e24], bl
call fcn.0041dfc0
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x4e28]
push eax
push ebx
push 1
push edi
mov dword [ebp - 0x4e28], ebx
call fcn.00415c96
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
pop ecx
push eax
push edi
call esi
push ebx
push ebx
lea eax, [ebp - 0x4e28]
push eax
lea eax, [ebp - 0x4e24]
push eax
push 1
push edi
call fcn.00415c96
pop ecx
push eax
push edi
call esi
pop edi
pop esi
test eax, eax
pop ebx
lea eax, [ebp - 0x4e24]
jne 0x401293
mov eax, 0x4331c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e03a
leave
ret

Function at 0x4035fb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x403619
xor eax, eax
inc eax
jmp 0x4036a4
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4036a1
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4036a1
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x403611
cmp dword [edi], 0x4550
jne 0x4036a1
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x4036a1
movzx eax, word [esi + 0x46]
test ax, ax
je 0x4036a1
mov edi, eax
imul edi, edi, 0x28
push edi
mov dword [esi + 0x140], edi
call fcn.0041e07b
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x40367d
push 3
jmp 0x4036a3
movzx ecx, word [esi + 0x54]
push dword [ebp + 0xc]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x4036a4
push 2
pop eax
pop edi
pop ebp
ret
Function at 0x40502f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x40503a
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4050f7
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x437e80]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x437e80]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x437e80]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x437e80]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x437e80]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x437e80]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x437e80]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x437e80]
add edx, 8
sub edi, 8
dec esi
jne 0x40505a
pop ebx
test edi, edi
je 0x405110
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x437e80]
inc edx
dec edi
jne 0x4050fb
pop edi
not eax
pop esi
ret

Function at 0x405115
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
movsx edx, byte [esp + 8]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x437e80]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x437e80]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x418bb6
Capabilities:
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x432c3d
call fcn.0041f0aa
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], edi
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x48]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004184a3
cmp dword [eax + 0x14], 8
jb 0x418bf1
mov eax, dword [eax]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
call fcn.0040880f
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.0041540a
mov byte [ebp - 4], 2
jmp 0x418c65
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.0041540a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00418b4e
push edi
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040880f
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418c42
push edi
push ebx
lea ecx, [ebp + 0xc]
call fcn.00403de3
mov eax, esi
call fcn.0041f0f4
ret 0x20
Function at 0x41aed9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x41aee4
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x41afa1
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4396f0]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4396f0]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4396f0]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4396f0]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4396f0]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4396f0]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4396f0]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4396f0]
add edx, 8
sub edi, 8
dec esi
jne 0x41af04
pop ebx
test edi, edi
je 0x41afba
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4396f0]
inc edx
dec edi
jne 0x41afa5
pop edi
not eax
pop esi
ret

Function at 0x41afbf
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
movsx edx, byte [esp + 8]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4396f0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4396f0]
pop esi
mov dword [ecx + 8], eax
ret