joyce8/EMBER2024-capa huggingface dataset:
Function at 0x543440
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, 0x98
call fcn.00476080
mov eax, dword [0x6041fc]
xor eax, esp
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 4], edi
mov eax, dword [ecx]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x84], eax
mov dword [esp + 0x58], 0x61707865
mov dword [esp + 0x5c], 0x3320646e
mov eax, dword [ecx]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x60], 0x79622d32
mov dword [esp + 0x64], 0x6b206574
test eax, eax
je 0x54363d
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
push esi
nop
mov esi, 0x40
cmp eax, esi
cmovb esi, eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
push eax
call fcn.00543660
add esp, 8
xor eax, eax
test esi, esi
je 0x54360c
cmp esi, 0x20
jb 0x5435e4
lea edx, [edi - 1]
lea ecx, [esp + esi + 0x23]
add edx, esi
cmp edi, ecx
ja 0x54355c
lea ecx, [esp + 0x24]
cmp edx, ecx
jae 0x5435e4
lea ecx, [ebx - 1]
add ecx, esi
cmp edi, ecx
ja 0x543569
cmp edx, ebx
jae 0x5435e4
mov ebp, esi
lea edx, [edi + 0x10]
lea esi, [esp + 0x24]
mov ecx, ebx
sub ecx, esi
and ebp, 0xffffffe0
mov dword [esp + 0x14], ecx
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x14]
sub ecx, edi
mov esi, dword [esp + 0x18]
mov edi, ecx
mov dword [esp + 0x1c], ecx
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x24]
lea ecx, [ebx + eax]
movups xmm1, xmmword [esp + ecx + 0x24]
lea ecx, [esi + eax]
lea edx, [edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [esp + eax + 0x34]
add eax, 0x20
movups xmmword [esp + ecx + 0x24], xmm1
movups xmm1, xmmword [edi + edx - 0x20]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp eax, ebp
jb 0x5435a0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xb0]
cmp eax, esi
jae 0x54360c
lea ecx, [esp + 0x24]
mov ebp, edi
sub ebx, ecx
sub ebp, ecx
lea edx, [esp + 0x24]
add edx, eax
inc eax
mov cl, byte [ebx + edx]
xor cl, byte [edx]
mov byte [edx + ebp], cl
cmp eax, esi
jb 0x5435f2
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
add edi, esi
inc dword [esp + 0x94]
sub eax, esi
add ebx, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x543510
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
pop edi
xor ecx, esp
call fcn.004755fc
add esp, 0x98
ret
Function at 0x546740
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x546754
mov dword [esp + 0x18], fcn.00544f20
jmp fcn.0053ebe0
mov dword [esp + 0x18], fcn.005441c0
jmp fcn.0053e920
Function at 0x5802c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.00476080
mov eax, dword [0x6041fc]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
mov dword [esp + 0x2c], eax
push edi
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
sub eax, ebx
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc], ebx
jae 0x580320
push 0x4d4
push 0x5f63a4
push str.assertion_failed:_rec__orig_len___md_size
call fcn.004d0c00
add esp, 0xc
cmp ebx, 0x40
jbe 0x58033c
push 0x4d5
push 0x5f63a4
push str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.004d0c00
add esp, 0xc
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x34]
neg eax
mov dword [esp + 0x20], ecx
and eax, 0x3f
lea edi, [esp + 0x34]
add edi, eax
lea eax, [ebx + 0x100]
mov dword [esp + 0x2c], edi
cmp ecx, eax
jbe 0x58036a
mov ebp, ecx
sub ebp, ebx
sub ebp, 0x100
push ebx
xor esi, esi
mov dword [esp + 0x18], 0
push esi
push edi
call fcn.0048d110
add esp, 0xc
mov dword [esp + 0x18], esi
cmp ebp, dword [esp + 0x20]
jae 0x58041d
mov eax, dword [esp + 0xc0]
mov ecx, ebp
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
mov edx, ecx
xor eax, dword [esp + 0x24]
xor edx, dword [esp + 0x10]
lea edi, [eax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
mov eax, ebp
xor eax, dword [esp + 0x10]
neg edi
or edx, eax
mov eax, dword [esp + 0x28]
xor edx, ebp
shr edx, 0x1f
neg edx
mov cl, byte [eax + ebp]
mov eax, edi
or eax, dword [esp + 0x14]
inc ebp
and eax, edx
mov edx, dword [esp + 0x18]
and edi, edx
mov dword [esp + 0x14], eax
and al, cl
or esi, edi
mov edi, dword [esp + 0x2c]
or byte [edx + edi], al
inc edx
mov ecx, edx
mov eax, edx
sub ecx, ebx
xor eax, ebx
xor ecx, ebx
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
cmp ebp, dword [esp + 0x20]
jb 0x5803a5
xor edx, edx
test ebx, ebx
je 0x580451
mov ebp, dword [esp + 0x30]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + edi]
movzx eax, byte [esi + edi]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, ebx
mov eax, esi
xor ecx, ebx
xor eax, ebx
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, ebx
jb 0x580427
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004755fc
add esp, 0xa8
ret
Function at 0x580f90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.00476080
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x28]
inc edi
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x580fdd
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x580fcd
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x580fe2
cmp edi, dword [esi + 8]
ja 0x580fc4
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ebp
push dword [ebx + 0xb0]
mov al, byte [ecx + eax - 1]
movzx ebp, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebp
call fcn.004be030
push eax
call fcn.004ba560
add esp, 8
test eax, 0x200000
je 0x581028
or eax, 0xffffffff
sub eax, ebp
add dword [esi + 8], eax
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 8]
lea ecx, [edi + ebp]
mov ebx, edx
mov dword [esp + 0x10], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x5810b4
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x20]
mov edx, esi
mov ebp, dword [esp + 0x10]
shr edx, 0x1f
dec ebp
mov dword [esp + 0x18], edx
add ebp, eax
nop
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x2c]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [ebp + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x581070
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
not ebx
movzx eax, bl
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebp + 1]
neg ecx
and eax, ecx
sub edx, eax
mov eax, ecx
pop ebp
pop edi
mov dword [esi + 8], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 0xc
ret
Function at 0x585de0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 5
je 0x585dfb
push eax
push esi
call fcn.00586420
add esp, 8
test eax, eax
jle 0x585e43
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.004ba310
add esp, 8
test edi, edi
jg 0x585e40
push edi
call fcn.00502580
add esp, 4
test eax, eax
je 0x585e40
push 0xa
push esi
call fcn.004baa70
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x4868e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x63000]
push edi
jmp 0x4868fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x486901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4868f0
mov eax, 1
add ebx, ebx
jne 0x486913
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x486924
jne 0x486943
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486943
dec eax
add ebx, ebx
jne 0x486930
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x486908
add ebx, ebx
jne 0x48693f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x486995
xor ecx, ecx
sub eax, 3
jb 0x48695b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4869ca
sar eax, 1
mov ebp, eax
jmp 0x486966
add ebx, ebx
jne 0x486966
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486934
inc ecx
add ebx, ebx
jne 0x486974
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486934
add ebx, ebx
jne 0x486981
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x486976
jne 0x486992
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x486976
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4869b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4869a6
jmp 0x4868f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4869b4
add edi, ecx
jmp 0x4868f6
pop esi
mov edi, esi
mov ecx, 0x1e37
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4869d2
cmp byte [edi], 9
jne 0x4869d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4869d7
lea edi, [esi + 0x81000]
mov eax, dword [edi]
or eax, eax
je 0x486a4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa30b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa31d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x486a04
mov ecx, edi
jns 0x486a33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa31d4]
or eax, eax
je 0x486a49
mov dword [ebx], eax
add ebx, 4
jmp 0x486a21
call dword [esi + 0xa31e4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x486a80
cmp al, 0xef
ja 0x486a73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x486a55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x486a62
mov ebp, dword [esi + 0xa31d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x486ab4
sub esp, 0xffffff80
jmp 0x42d033
Function at 0x40127a
Capabilities:
Delete file

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
push edi
mov edi, dword [eax]
xor esi, esi
cmp dword [0x3259d14], 0xc1a
mov dword [esp + 0x14], edi
jne 0x4012a3
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x3259d14], 0x114e
mov dword [esp + 0x1c], 0xc6ef3720
jne 0x4012bf
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
cmp dword [0x3259d14], 0xb54
mov eax, dword [0x41ace0]
mov dword [esp + 0x30], eax
mov eax, dword [0x41ace4]
mov dword [esp + 0x34], eax
jne 0x4012e5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov eax, dword [0x41ace8]
mov dword [esp + 0x24], eax
mov eax, dword [0x41acec]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0x20
jmp 0x401305
mov edi, dword [esp + 0x14]
mov ebx, edi
shl ebx, 4
cmp dword [0x3259d14], 0x4c3
jne 0x401321
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0x3259d14]
add ebx, dword [esp + 0x24]
cmp eax, 0xfa9
jne 0x40133b
mov dword [0x3259d10], 0xedeb2e40
mov ecx, dword [esp + 0x1c]
add ecx, edi
shr edi, 5
add edi, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [0x3259d0c], 0x9150ce2e
cmp eax, 0x912
jne 0x401372
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov dword [0x41e544], esi
xor edi, dword [esp + 0x2c]
xor edi, ebx
sub ebp, edi
cmp dword [0x3259d14], 0x5b6
jne 0x40138d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x18], esi
and eax, 0x4dd0071b
sub dword [esp + 0x18], 0x2273eb88
mov ebx, 0x3a7cd587
add dword [esp + 0x18], 0x2273eb8c
mov ecx, dword [esp + 0x18]
mov eax, ebp
shl eax, cl
mov ecx, ebp
shr ecx, 5
add ecx, dword [esp + 0x34]
add eax, dword [esp + 0x30]
mov dword [0x41e540], esi
xor eax, ecx
mov ecx, dword [esp + 0x1c]
add ecx, ebp
xor eax, ecx
sub dword [esp + 0x14], eax
cmp dword [0x3259d14], 0x1d5
jne 0x401439
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
lea eax, [esp + 0x38]
push eax
push esi
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
push esi
push esi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
lea eax, [esp + 0x1c]
call fcn.00401273
dec dword [esp + 0x20]
jne 0x401301
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x48
ret 4

Function at 0x402c7d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a310]
jne 0x402c87
repz ret
jmp fcn.0040600c
Function at 0x4082b5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004035b6
and dword [ebp - 4], 0
cmp dword [0x41ccec], 0
mov ebx, eax
jne 0x408366
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408417
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408417
push eax
call fcn.00403544
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ccec], eax
call esi
push eax
call fcn.00403544
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ccf0], eax
call esi
push eax
call fcn.00403544
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41ccf4], eax
call esi
push eax
call fcn.00403544
pop ecx
mov dword [0x41ccfc], eax
test eax, eax
je 0x408366
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403544
pop ecx
mov dword [0x41ccf8], eax
mov eax, dword [0x41ccf8]
cmp eax, ebx
je 0x4083be
cmp dword [0x41ccfc], ebx
je 0x4083be
push eax
call fcn.004035bf
push dword [0x41ccfc]
mov esi, eax
call fcn.004035bf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4083be
test edi, edi
je 0x4083be
call esi
test eax, eax
je 0x4083b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4083b5
test byte [ebp - 0xc], 1
jne 0x4083be
or dword [ebp + 0x10], 0x200000
jmp 0x4083f7
mov eax, dword [0x41ccf0]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004035bf
pop ecx
test eax, eax
je 0x4083f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4083f7
mov eax, dword [0x41ccf4]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004035bf
pop ecx
test eax, eax
je 0x4083f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ccec]
call fcn.004035bf
pop ecx
test eax, eax
je 0x408417
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408419
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404500
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4045b4
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00404490
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x40458d
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4045c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x4045db
test ebp, ebp
je 0x4045db
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x4045e3
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x404623
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x40467f
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x40467a
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404665
test dl, dl
je 0x404661
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404665
add ecx, 2
add eax, 2
test dl, dl
jne 0x404645
xor eax, eax
jmp 0x40466a
sbb eax, eax
or eax, 1
test eax, eax
je 0x404689
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x404632
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x4046a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.00404500
test eax, eax
jne 0x4046b8
pop edi
pop ebx
add esp, 0x10
ret
push esi
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], 0x74726956
mov dword [esp + 0x10], 0x416c6175
mov dword [esp + 0x14], 0x636f6c6c
mov byte [esp + 0x18], 0
call fcn.004045c0
mov esi, eax
test esi, esi
jne 0x4046ee
pop esi
pop edi
pop ebx
add esp, 0x10
ret
push 0x40
push 0x3000
push edi
push ebx
call esi
test eax, eax
jne 0x404708
push 0x40
push 0x3000
push edi
push eax
call esi
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x404800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x44
push esi
push edi
mov dword [esp + 0x1c], edx
mov edi, ecx
call fcn.00404500
mov esi, eax
test esi, esi
jne 0x40481e
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x64616f4c
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x41797261
mov byte [esp + 0x44], 0
call fcn.004045c0
mov dword [esp + 0x18], eax
test eax, eax
je 0x404816
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x65657246
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x797261
call fcn.004045c0
mov dword [esp + 0x34], eax
test eax, eax
je 0x404816
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x50746547
mov dword [esp + 0x3c], 0x41636f72
mov dword [esp + 0x40], 0x65726464
mov word [esp + 0x44], 0x7373
mov byte [esp + 0x46], 0
call fcn.004045c0
mov dword [esp + 0x28], eax
test eax, eax
je 0x404816
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x4d746547
mov dword [esp + 0x3c], 0x6c75646f
mov dword [esp + 0x40], 0x6e614865
mov dword [esp + 0x44], 0x41656c64
mov byte [esp + 0x48], 0
call fcn.004045c0
mov dword [esp + 0x30], eax
test eax, eax
je 0x404816
mov eax, dword [edi + 0x3c]
push ebx
cmp dword [eax + edi + 0x84], 0
push ebp
je 0x4049e5
mov ecx, dword [eax + edi + 0x80]
add ecx, edi
xor esi, esi
lea ebx, [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], esi
cmp dword [ebx], esi
je 0x4049e5
mov eax, ebx
mov ebp, ecx
mov eax, dword [eax]
add eax, edi
push eax
mov dword [esp + 0x2c], eax
call dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x404948
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
add eax, edi
mov dword [esp + 0x14], 0
cmp dword [eax], 0
je 0x4049c9
mov dword [esp + 0x18], 0
nop
mov eax, dword [eax]
test eax, eax
jns 0x40496b
movzx esi, ax
jmp 0x404970
lea esi, [edi + 2]
add esi, eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40498f
push dword [esp + 0x58]
and eax, 0x80000000
push eax
push esi
push dword [esp + 0x34]
call ecx
mov ecx, eax
test ecx, ecx
jne 0x40499e
push esi
push dword [esp + 0x30]
call dword [esp + 0x38]
mov ecx, eax
test ecx, ecx
je 0x4049f2
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x18]
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x14], ecx
shl ecx, 2
add eax, ecx
add eax, edi
mov dword [esp + 0x18], ecx
cmp dword [eax], 0
jne 0x404960
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc esi
mov dword [esp + 0x10], esi
lea eax, [esi + esi*4]
lea ebp, [ecx + eax*4]
cmp dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
jne 0x404925
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret
cmp dword [ebx], 0
je 0x404a1b
mov esi, dword [esp + 0x10]
xor ebp, ebp
lea ecx, [ecx]
cmp ebp, esi
ja 0x404a1b
mov eax, dword [ebx]
add eax, edi
push eax
call dword [esp + 0x3c]
push eax
call dword [esp + 0x40]
add ebx, 0x14
inc ebp
cmp dword [ebx], 0
jne 0x404a00
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret