joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026a50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x14]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push ebp
push esi
mov esi, 1
mov dword [esp + 0x18], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x10026bea
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x28], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10025d30
mov ecx, dword [esp + 0x24]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x10026bc0
cmp dword [edi + 0x1c], 8
lea ebp, [edi + 8]
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
jb 0x10026ad4
mov edx, dword [ebp]
mov dword [esp + 0x14], edx
xor edx, edx
mov ebx, 0x811c9dc5
add esi, esi
mov dword [esp + 0x18], esi
je 0x10026b08
mov ecx, dword [esp + 0x14]
mov ebp, esi
nop dword [eax]
movzx esi, byte [edx + ecx]
inc edx
xor esi, ebx
imul ebx, esi, 0x1000193
cmp edx, ebp
jb 0x10026af0
mov ecx, dword [esp + 0x24]
lea ebp, [edi + 8]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x18]
mov edx, dword [edx + 0xc]
and esi, ebx
lea ebx, [edx + esi*8]
mov dword [esp + 0x14], ebx
cmp dword [ebx], ecx
jne 0x10026b29
mov dword [ebx], edi
mov dword [ebx + 4], edi
jmp 0x10026bb1
mov esi, dword [ebx + 4]
mov ecx, ebp
lea edx, [esi + 8]
call fcn.1001fac0
test al, al
je 0x10026b61
mov ebp, dword [esi]
mov eax, dword [esp + 0x10]
cmp ebp, edi
je 0x10026b5c
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebp
mov ecx, dword [ebp + 4]
mov dword [ecx], edi
mov dword [ebp + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov dword [ebx + 4], edi
jmp 0x10026bad
mov eax, dword [esp + 0x14]
mov ebx, esi
cmp dword [eax], esi
je 0x10026b8b
nop dword [eax + eax]
mov esi, dword [esi + 4]
mov ecx, ebp
mov ebx, esi
lea edx, [ebx + 8]
call fcn.1001fac0
test al, al
jne 0x10026bca
mov eax, dword [esp + 0x14]
cmp dword [eax], esi
jne 0x10026b70
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx], edi
mov ecx, dword [esp + 0x24]
mov edi, eax
cmp eax, ecx
jne 0x10026ab7
nop dword [eax + eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x10026bad
push str.invalid_hash_bucket_count
call fcn.100474bf
int3
Function at 0x1002f230
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov esi, 0x1505
test ebx, ebx
jne 0x1002f246
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov dl, byte [ebx]
test dl, dl
je 0x1002f270
nop dword [eax]
mov eax, esi
lea ebx, [ebx + 1]
mov ecx, edi
shld edi, esi, 5
shl esi, 5
add esi, eax
movzx eax, dl
cdq
adc edi, ecx
add esi, eax
adc edi, edx
mov dl, byte [ebx]
test dl, dl
jne 0x1002f250
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x10035700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
xor edi, edi
bts edi, eax
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae edx, edi
test eax, eax
js 0x10035752
lea ebx, [ebp + 0xc]
nop dword [eax]
xor ecx, ecx
lea ebx, [ebx + 4]
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
mov eax, dword [ebx]
cmovae esi, ecx
or edi, ecx
or edx, esi
test eax, eax
jns 0x10035730
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100364d0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x50
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp byte [edi + 0x28], 0
jne 0x10036510
lea ecx, [esp + 0x18]
call fcn.1002e160
mov ecx, dword [edi]
test ecx, ecx
je 0x1003652a
lea edx, [esp + 0x18]
call fcn.10035910
test eax, eax
jns 0x1003652a
mov ecx, dword [edi]
lea edx, [edi + 0xc]
test edx, edx
je 0x10036510
mov eax, dword [ecx + 0xc]
mov dword [edx], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 4], eax
add esi, 0x18
je 0x10036520
mov eax, dword [edi + 0xc]
mov dword [esi], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 4], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x50
ret
push 3
push 0
push 0x40
lea edx, [esp + 0x24]
mov ecx, edi
call fcn.1002f150
add esp, 0xc
test edx, edx
jl 0x10036510
jg 0x10036548
test eax, eax
jb 0x10036510
push dword [esp + 0x44]
lea edx, [esp + 0x14]
push dword [esp + 0x44]
lea ecx, [esp + 0x1c]
call fcn.10034030
mov ebx, dword [sym.imp.msvcrt.dll_malloc]
push 0xc
call ebx
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10036585
push 0x18
call ebx
add esp, 4
test eax, eax
jne 0x100365a8
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov dword [esi + 0x10], 0
add esi, 0x18
je 0x10036520
mov dword [esi], 0xe
or eax, 0xffffffff
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
add esp, 0x50
ret
push 2
push 0xb
push edi
push 0
mov word [eax], 0x101
mov dword [eax + 4], edi
mov dword [eax + 8], 0xc
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [esi + 0x10], eax
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jns 0x10036626
lea eax, [esi + 0x18]
test eax, eax
je 0x100365f4
mov dword [eax], 0x14
mov dword [eax + 4], 0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10036615
cmp byte [edi + 1], 0
mov ebx, dword [sym.imp.msvcrt.dll_free]
je 0x1003660f
push dword [edi + 4]
call ebx
add esp, 4
push edi
call ebx
add esp, 4
mov dword [esi + 0x10], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x14]
lea ecx, [esi + 4]
push 0
shr eax, 8
mov edx, edi
push 0xc
push edi
mov byte [edi + 0xb], al
call fcn.1003d0b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x50
ret
Function at 0x1003d0b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x24], 0
mov eax, edx
push ebx
push ebp
push esi
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
push edi
mov edi, ecx
movlpd qword [esp + 0x20], xmm0
jb 0x1003d1be
mov ebx, dword [esp + 0x30]
ja 0x1003d0e1
test ebx, ebx
je 0x1003d1be
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
nop dword [eax]
mov ecx, dword [esp + 0x2c]
push 1
mov dl, byte [esi + ecx]
mov ecx, dword [edi]
mov byte [esp + 0x1f], dl
not ecx
mov byte [esp + 0x18], dl
lea edx, [esp + 0x18]
test eax, eax
je 0x1003d168
movzx eax, word [edi + 8]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
call fcn.10035d90
mov ecx, dword [edi + 8]
lea edx, [esp + 0x18]
not eax
not ecx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x1c], al
call fcn.10035d90
not eax
add esp, 8
xor bl, byte [esp + 0x1b]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
mov byte [esi + eax], bl
mov ebx, dword [esp + 0x30]
jmp 0x1003d1a4
call fcn.10035d90
mov ecx, dword [edi + 8]
lea edx, [esp + 0x18]
not eax
not ecx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x1c], al
call fcn.10035d90
not eax
add esp, 8
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
add esi, 1
adc ebp, 0
cmp ebp, dword [esp + 0x34]
jb 0x1003d0f0
ja 0x1003d1be
cmp esi, ebx
jb 0x1003d0f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x1003d1d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x1c], 0
xorps xmm0, xmm0
push ebx
push ebp
push esi
push edi
mov edi, edx
movlpd qword [esp + 0x18], xmm0
mov ebx, ecx
jb 0x1003d298
mov ebp, dword [esp + 0x28]
ja 0x1003d1fd
test ebp, ebp
je 0x1003d298
mov eax, dword [esp + 0x1c]
movzx ecx, word [ebx + 8]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
nop dword [eax]
mov eax, dword [esp + 0x24]
mov al, byte [esi + eax]
test edi, edi
je 0x1003d231
movzx edx, cx
or edx, 2
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor al, cl
mov byte [esi + edi], al
mov ecx, dword [ebx]
lea edx, [esp + 0x10]
not ecx
mov byte [esp + 0x10], al
push 1
call fcn.10035d90
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x14]
not eax
not ecx
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
mov byte [esp + 0x18], al
call fcn.10035d90
mov edx, dword [esp + 0x1c]
add esp, 8
add esi, 1
not eax
mov dword [ebx + 8], eax
adc edx, 0
movzx ecx, ax
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x2c]
jb 0x1003d210
ja 0x1003d298
cmp esi, ebp
jb 0x1003d210
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1003d5e0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x24], 0
xorps xmm0, xmm0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], edx
mov esi, ecx
movlpd qword [esp + 0x18], xmm0
jb 0x1003d69e
mov ebp, dword [esp + 0x30]
ja 0x1003d60f
test ebp, ebp
je 0x1003d69e
mov eax, dword [esi + 0x28]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
nop word [eax + eax]
cmp eax, 0x10
jne 0x1003d67f
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add byte [eax + esi + 8], 1
jne 0x1003d64a
add eax, 1
adc ecx, 0
jne 0x1003d64a
cmp eax, 8
jb 0x1003d636
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push 0
push eax
push 0x10
lea eax, [esi + 0x18]
push eax
push 0
push 0
push 0
push 0x10
lea eax, [esi + 8]
push eax
push dword [ecx + 4]
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
js 0x1003d6a8
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esi + 0x28], 0
mov al, byte [eax + esi + 0x18]
xor byte [edi + edx], al
inc dword [esi + 0x28]
add edi, 1
mov eax, dword [esi + 0x28]
adc ebx, 0
cmp ebx, dword [esp + 0x34]
ja 0x1003d69e
jb 0x1003d620
cmp edi, ebp
jb 0x1003d620
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
Function at 0x1005e030
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x10088064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1005e12b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x1005e12b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x1005e08a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x1005e068
jmp 0x1005e12b
cmp edx, 0x200
jae 0x1005e191
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x1005e12b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x1005e12a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x1005e12a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x1005e173
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x1005e110
pop edi
mov eax, dword [0x1008a3e8]
test eax, eax
jne 0x1005e151
push str.setlocale
call fcn.10068260
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1005e14c
or eax, 0xffffffff
mov dword [0x1008a3e8], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x1005e17f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c833
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x1005e12a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c833
mov esp, ebp
pop ebp
ret
call fcn.1005d5d3
int3
Function at 0x10061c10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x10088064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x10061c37
mov ecx, 5
int 0x29
push 2
call fcn.1005d9d0
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x10061d42
test esi, esi
jne 0x10061d42
push 2
call fcn.1005d9d0
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005c833
mov esp, ebp
pop ebp
ret
Function at 0x10067bb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.10023ce0
mov esi, dword [ebp + 8]
test al, al
je 0x10067bce
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.10067be0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41dcb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004012f0
add esp, 0xc
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0xffffffff
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx edx, word [ebp - 0x210]
sub edx, 0x41
mov dword [ebp - 0x218], edx
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.0041a060
add esp, 8
mov edx, dword [ebp - 0x21c]
push edx
call fcn.0041a180
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x41dd5a
xor eax, eax
jmp 0x41dd6d
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0041db30
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x40d268
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x80000005
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40d286
mov eax, 0x5109f6
push eax
push 1
mov ebx, 0x4446c0
call fcn.00444086
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40d2b0
mov eax, 0
jmp 0x40d324
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x40d311
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40d2fa
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40d2e9
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40d2da
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4
Function at 0x41ecad
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
jmp 0x41eccf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
mov dword [ebp - 4], 0
nop
push eax
push ecx
push edx
push ebx
push esi
push edi
nop
nop
nop
push ebx
push ecx
push edx
mov eax, 0x80000006
cpuid
shr ecx, 0x10
mov esi, ecx
nop
pop edx
pop ecx
pop ebx
nop
push ebx
push ecx
push edx
mov eax, 0x80000005
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
add esi, edx
nop
pop edx
pop ecx
pop ebx
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x64]
add esi, eax
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, al
add esi, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 1
cpuid
xor ebx, ebx
mov bl, dl
add esi, ebx
nop
nop
imul esi, esi, 0x88
nop
nop
push ebx
push ecx
push edx
mov eax, 0x80000005
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
imul edx, edx, 6
add esi, edx
nop
nop
nop
pop edx
pop ecx
pop ebx
nop
nop
nop
push ebx
push ecx
push edx
mov eax, 0x80000006
cpuid
shr ecx, 0x10
imul ecx, ecx, 9
add esi, ecx
pop edx
pop ecx
pop ebx
nop
nop
nop
xor esi, 0x124254
mov dword [ebp - 4], esi
pop edi
pop esi
pop ebx
pop edx
pop ecx
pop eax
nop
nop
nop
mov eax, dword [ebp - 4]
jmp 0x41ee0a
mov esp, ebp
pop ebp
ret

Function at 0x420b85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
jmp 0x420ba7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
mov dword [ebp - 4], 0x2b7e9735
push edx
push ecx
push esi
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, ds:[esi*4]
mov ecx, dword [eax + ecx]
xor ecx, dword [ebp - 4]
lea edx, ds:[esi*4]
mov dword [eax + edx], ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jne 0x420c20
pop esi
pop ecx
pop edx
nop
push ecx
push eax
mov eax, 1
mov ecx, 2
mov eax, 4
mov ecx, 2
pop eax
pop ecx
nop
jmp 0x420c6e
nop
nop
nop
nop
nop
nop
mov esp, ebp
pop ebp
ret 8
Function at 0x423b29
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
jmp 0x423b3e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push ebx
mov ebx, 1
mov ebx, 2
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 5
pop ebx
push esi
xor esi, esi
nop
mov eax, 0x80000006
cpuid
shr ecx, 0x10
add esi, ecx
nop
nop
mov eax, 0x80000005
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
add esi, edx
nop
mov eax, 1
xor edx, edx
cpuid
add esi, edx
xor esi, eax
rdtsc
add esi, edx
xor esi, 0x354e7978
mov eax, 0x80000006
cpuid
shr ecx, 0x10
add esi, ecx
nop
nop
mov eax, 0x80000005
cpuid
shr edx, 0x18
shr ecx, 0x18
add edx, ecx
add esi, edx
nop
mov eax, 1
xor edx, edx
cpuid
add esi, edx
xor esi, eax
rdtsc
add esi, edx
xor esi, 0x836bd0f7
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4254a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
jmp 0x4254cb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push ebx
mov ebx, 1
mov ebx, 2
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 4
mov ebx, 2
mov ebx, 5
mov ebx, 5
pop ebx
mov dword [ebp - 4], 0x2ec3d7e5
push edx
push ecx
push esi
xor esi, esi
mov eax, dword [ebp + 8]
lea ecx, ds:[esi*4]
mov ecx, dword [eax + ecx]
xor ecx, dword [ebp - 4]
lea edx, ds:[esi*4]
mov dword [eax + edx], ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jne 0x425544
pop esi
pop ecx
pop edx
nop
push ecx
push eax
mov eax, 1
mov ecx, 2
mov eax, 4
mov ecx, 2
pop eax
pop ecx
nop
jmp 0x425592
nop
nop
nop
nop
nop
nop
mov esp, ebp
pop ebp
ret 8
Function at 0x42903c
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x98]
push esi
xor ecx, ecx
xor esi, esi
xor edx, edx
push edi
mov dword [esp + 0xc], 0x7f7f7f7f
mov dword [esp + 0x10], 0x7f7f7f7f
mov dword [esp + 0x14], 0x7f7f7f7f
mov dword [esp + 0x18], 0x7f7f7f7f
mov dword [esp + 0x1c], 0x7f7f7f7f
mov dword [esp + 0x20], 0x7f7f7f7f
mov dword [esp + 0x24], 0x7f7f7f7f
mov dword [esp + 0x28], 0x7f7f7f7f
mov dword [esp + 0x2c], 0x7f7f7f7f
mov dword [esp + 0x30], 0x7f7f7f7f
mov dword [esp + 0x34], 0x3e7f7f7f
mov dword [esp + 0x38], 0x3f7f7f7f
mov dword [esp + 0x3c], 0x37363534
mov dword [esp + 0x40], 0x3b3a3938
mov dword [esp + 0x44], 0x7f7f3d3c
mov dword [esp + 0x48], 0x7f7f407f
mov dword [esp + 0x4c], 0x201007f
mov dword [esp + 0x50], 0x6050403
mov dword [esp + 0x54], 0xa090807
mov dword [esp + 0x58], 0xe0d0c0b
mov dword [esp + 0x5c], 0x1211100f
mov dword [esp + 0x60], 0x16151413
mov dword [esp + 0x64], 0x7f191817
mov dword [esp + 0x68], 0x7f7f7f7f
mov dword [esp + 0x6c], 0x1c1b1a7f
mov dword [esp + 0x70], 0x201f1e1d
mov dword [esp + 0x74], 0x24232221
mov dword [esp + 0x78], 0x28272625
mov dword [esp + 0x7c], 0x2c2b2a29
mov dword [esp + 0x80], 0x302f2e2d
mov dword [esp + 0x84], 0x7f333231
mov dword [esp + 0x88], 0x7f7f7f7f
test ebx, ebx
je 0x429289
mov edi, dword [esp + 0x9c]
mov edi, edi
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x429186
cmp byte [edx + edi], 0xd
jne 0x429186
cmp byte [edx + edi + 1], 0xa
je 0x4291bf
mov al, byte [edx + edi]
cmp al, 0xa
je 0x4291bf
cmp al, 0x3d
jne 0x42919b
inc ecx
cmp ecx, 2
ja 0x429297
cmp al, 0x7f
ja 0x429297
movzx eax, al
mov al, byte [esp + eax + 0xc]
cmp al, 0x7f
je 0x429297
cmp al, 0x40
jae 0x4291be
test ecx, ecx
jne 0x429297
inc esi
inc edx
cmp edx, ebx
jb 0x429170
test esi, esi
je 0x429289
mov ecx, dword [esp + 0x98]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x94]
lea eax, [eax*2 + 7]
shr eax, 3
test esi, esi
je 0x4292a8
cmp dword [ecx], eax
jb 0x4292a8
xor eax, eax
xor ebx, ebx
push ebp
mov ebp, 3
mov dword [esp + 0x90], eax
test edx, edx
je 0x429278
lea esp, [esp]
mov al, byte [edi]
cmp al, 0xd
je 0x429274
cmp al, 0xa
je 0x429274
movzx eax, al
mov cl, byte [esp + eax + 0x10]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub ebp, eax
movzx eax, cl
mov ecx, dword [esp + 0x90]
and eax, 0x3f
inc ecx
or ebx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 4
jne 0x429274
xor eax, eax
mov dword [esp + 0x90], eax
test ebp, ebp
je 0x42925f
mov eax, ebx
shr eax, 0x10
mov byte [esi], al
inc esi
cmp ebp, 1
jbe 0x42926c
mov eax, ebx
shr eax, 8
mov byte [esi], al
inc esi
cmp ebp, 2
jbe 0x429274
mov byte [esi], bl
inc esi
inc edi
dec edx
jne 0x429210
sub esi, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
pop ebp
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov dword [ecx], eax
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x10