joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a3c0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5738fc]
sub esp, 0x1c
push ebx
push esi
push edi
test eax, eax
jne 0x44a4b8
mov eax, dword fs:[0x30]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, 0x694a8c81
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x30]
test ebx, ebx
je 0x44a42a
add eax, 0xfffffff8
mov edx, 0x811c9dc5
movzx eax, ax
shr eax, 1
lea esi, [ecx + eax*2]
cmp ecx, esi
je 0x44a426
movsx eax, byte [ecx]
add ecx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jne 0x44a414
cmp edx, ebx
jne 0x44a498
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
mov dword [ebp - 0x18], eax
lea eax, [ecx + edx]
mov dword [ebp - 0x14], eax
cmp eax, edx
je 0x44a498
mov esi, dword [eax + 0x18]
test esi, esi
je 0x44a498
mov eax, dword [eax + 0x20]
lea ebx, [eax + esi*4]
add ebx, edx
nop word [eax + eax]
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec esi
mov edx, 0x811c9dc5
mov al, byte [ecx]
inc ecx
test al, al
je 0x44a48a
movsx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx - 1]
test al, al
jne 0x44a475
cmp edx, edi
mov edx, dword [ebp - 0xc]
je 0x44a4c1
test esi, esi
jne 0x44a460
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x10]
je 0x44a4b1
cmp dword [ecx + 0x18], 0
jne 0x44a3f6
xor eax, eax
mov dword [0x5738fc], eax
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
cmp eax, edi
jbe 0x44a4b3
mov ecx, dword [ebp - 0x18]
add ecx, edi
cmp eax, ecx
jae 0x44a4b3
mov cl, byte [eax]
mov ebx, 0x811c9dc5
mov dword [ebp - 8], ebx
mov edi, ebx
cmp cl, 0x2e
je 0x44a50d
movsx ecx, cl
inc eax
xor ecx, ebx
imul ebx, ecx, 0x1000193
mov cl, byte [eax]
cmp cl, 0x2e
jne 0x44a4f7
mov dword [ebp - 8], ebx
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x44a529
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edi
imul edi, ecx, 0x1000193
mov cl, byte [eax]
test cl, cl
jne 0x44a515
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
jmp 0x44a49b
Function at 0x45219f
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x401b5a
pop dword [ebp - 0x3c]
mov eax, 0x609719e4
add eax, 0x9fa90176
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x7a0b7bcf
sub dword [ebp - 0x4c], 0x2bb93684
mov dword [ebp - 0x48], 0xff335d07
add dword [ebp - 0x48], 0x32ffef3e
mov dword [ebp - 0x44], 0x7fa3b9cc
add dword [ebp - 0x44], 0xcca88a62
mov dword [ebp - 0x40], 0x58bb41a5
add dword [ebp - 0x40], 0xa744be5b
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x24364465
add eax, 0xdc0a8bef
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xb4565133
add dword [ebp - 0x4c], 0xc01c1823
mov dword [ebp - 0x48], 0xe3888e85
add dword [ebp - 0x48], 0x5de3d2f0
mov dword [ebp - 0x44], 0xa5645765
add dword [ebp - 0x44], 0xbe0b1507
mov dword [ebp - 0x40], 0x54db2d8c
add dword [ebp - 0x40], 0xab24d274
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xd392a4d5
add eax, 0x2cae2b77
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e861
push 0
call eax
mov ecx, 0x5b4a
mov edx, eax
mov ebx, 0x5c52f5c0
sub ebx, 0x5c1145c0
add ebx, dword [ebp - 0x3c]
mov edi, 0x28f5dbbe
sub edi, 0xb5270f37
sub dword [ebp - 0x24], 0xc19e31c3
mov esi, dword [ebx]
sub dword [ebp - 8], esi
xor esi, edi
mov dword [edx], esi
sub dword [ebp - 0x28], esi
add edx, 4
add ebx, 0x43f6c27f
sub ebx, 0x43f6c27b
loop 0x401c76
add eax, 0x15ffb
xor ebx, ebx
add ebx, eax
add eax, 0x89746dba
add eax, 0x768b924b
mov ecx, 0xbb9b7117
sub ecx, 0xbb5b7117
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0xbeb580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x908015
lea edi, [esi - 0x507015]
push edi
or ebp, 0xffffffff
jmp 0xbeb5a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xbeb5a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbeb598
mov eax, 1
add ebx, ebx
jne 0xbeb5bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xbeb5cc
jne 0xbeb5eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbeb5eb
dec eax
add ebx, ebx
jne 0xbeb5d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xbeb5b0
add ebx, ebx
jne 0xbeb5e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xbeb63d
xor ecx, ecx
sub eax, 3
jb 0xbeb603
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xbeb672
sar eax, 1
mov ebp, eax
jmp 0xbeb60e
add ebx, ebx
jne 0xbeb60e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbeb5dc
inc ecx
add ebx, ebx
jne 0xbeb61c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbeb5dc
add ebx, ebx
jne 0xbeb629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xbeb61e
jne 0xbeb63a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbeb61e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xbeb65c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xbeb64e
jmp 0xbeb59e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xbeb65c
add edi, ecx
jmp 0xbeb59e
pop esi
mov edi, esi
mov ecx, 0xe1a0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xbeb67a
cmp byte [edi], 0x3c
jne 0xbeb67a
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 0xbeb67f
lea edi, [esi + 0x7da000]
mov eax, dword [edi]
or eax, eax
je 0xbeb6ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7eb000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7eb028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xbeb6ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7eb030]
or eax, eax
je 0xbeb6e8
mov dword [ebx], eax
add ebx, 4
jmp 0xbeb6c9
call dword [esi + 0x7eb02c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xbeb728
cmp al, 0xef
ja 0xbeb712
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xbeb6f4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0xbeb701
mov eax, dword [edi]
add edi, 4
jmp 0xbeb701
mov ebp, dword [esi + 0x7eb034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0xbeb75c
sub esp, 0xffffff80
jmp 0x464020
Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x8766a4
xchg word [eax], ax
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xeb
jp 0x40109d
mov byte [eax - 0x47], dh
jg 0x401033
in al, 0xd4
jmp 0x4010af
test eax, 0xcf33638c
adc ch, bl
js 0x400fd0
sbb ch, ah
daa
stosd dword es:[edi], eax
mov dword [0x540fb128], eax
xchg edi, eax
inc ecx
and dword [esi + esi*8 - 0x78], ebp
rcr byte [eax - 0x2e], 0xa4
sti
push ss
scasd eax, dword es:[edi]
jne 0x40108b
jl 0x40102c
salc
pushal
jbe 0x401085
daa
xchg esp, eax
lcall 0xa4e8, 0x1020bb2d
push eax
in eax, dx
xor bl, ah
sti
bnd jg 0x401002
popal
lea ebp, [edx - 0x70bb56c6]
push ds
pop ss
cmp dword [eax + ebx*8 + 0x46], eax
and byte [eax - 0x702274c0], al
pop eax
test al, 0xc5
fisttp qword [edi + 0x3dc5a858]
lahf
mov ah, 0xc2
sub ecx, dword [0x6e1df55c]
cmp eax, 0x2bc2b49f
or eax, 0x6e1df55c
pop esp
cmc
sbb eax, 0x97530b6e
or edx, dword [ebx - 0x69]
in al, 0x34
sub dword [ebx], esp
jge 0x401055
ja 0x4010fe
fld xword [esi - 7]
or al, 0xb7
dec edx
mov ch, 0xfc
outsd dx, dword [esi]
jns 0x4010cd
fcom qword [eax - 0x69d98623]
retf 0x41f8
and ecx, eax
hlt
int1
push 0xffffffffffffffc2
cmp dh, byte [edx + 0xc64b3b4]
inc edx
stosd dword es:[edi], eax
adc eax, 0xa48720e9
jl 0x40108d
hlt
push 0xffffffffffffff9c
pushfd
retf
Function at 0x29801a89
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x298601b4]
jne 0x29801a93
repz ret
jmp fcn.2983e792

Function at 0x298050c5
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x2983eb59
call fcn.29801f91
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x298050e5
xor eax, eax
call fcn.298029c6
ret 4
call dword [sym.imp.MSVCP100.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x29805113
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
mov edi, dword [eax]
add edi, dword [ecx]
mov ecx, esi
call dword [sym.imp.MSVCP100.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, edi
jae 0x29805113
mov ecx, esi
call dword [sym.imp.MSVCP100.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x298050dd
xor edi, edi
cmp dword [esi + 0x54], edi
jne 0x2980511f
or eax, 0xffffffff
jmp 0x298050dd
mov ecx, esi
call fcn.29803ec2
cmp dword [esi + 0x44], edi
jne 0x2980513c
push dword [esi + 0x54]
push ebx
call fcn.29837ba9
pop ecx
pop ecx
test al, al
je 0x2980511a
jmp 0x2980510f
push edi
push 8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x30], bl
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.29837ba9
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x298051f1
lea eax, [ebp - 0x2c]
mov ecx, eax
add eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x44]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2f]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x2980520f
cmp eax, 1
jg 0x298051f9
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x298051a4
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x298051cb
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x298051b7
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x2980520f
lea eax, [ebp - 0x30]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x29805229
test edi, edi
jne 0x2980515b
cmp dword [ebp - 0x1c], 0x20
jae 0x2980520f
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.29837ba9
jmp 0x2980515b
mov ecx, dword [ebp - 0x2c]
jmp 0x2980516d
cmp eax, 3
jne 0x2980520f
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.29837ba9
pop ecx
pop ecx
test al, al
jne 0x29805229
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.29837ba9
mov eax, esi
jmp 0x298050dd
mov esi, ebx
jmp 0x29805212
Function at 0x2980522d
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x2983fd5f
call fcn.29801f91
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x44], edi
je 0x29805323
cmp byte [esi + 0x49], 0
je 0x29805323
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x29805263
xor al, al
jmp 0x29805325
push edi
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.29837ba9
mov dword [ebp - 4], edi
lea ebx, [esi + 0x4c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x298052c5
lea eax, [ebp - 0x2c]
mov ecx, eax
add eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x44]
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x298052ca
dec eax
je 0x298052ce
dec eax
dec eax
je 0x2980531f
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.29837ba9
mov al, bl
jmp 0x29805325
mov ecx, dword [ebp - 0x2c]
jmp 0x29805290
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x298052da
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x29805301
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x298052ed
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x298052af
cmp byte [esi + 0x49], 0
je 0x2980531f
test edi, edi
jne 0x29805282
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.29837ba9
jmp 0x29805282
mov bl, 1
jmp 0x298052b1
mov al, 1
call fcn.298029c6
ret
Function at 0x2982092f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x29840d8f
call fcn.2983e23c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x298209dd
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.29837ba9
add esp, 0xc
test eax, eax
js 0x298209dd
mov edi, dword [ebp - 0x41c]
cmp edi, 0x400
jg 0x298209c3
push edi
call fcn.2981d496
pop ecx
test al, al
je 0x298209c3
mov eax, edi
call fcn.2983e480
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x298209cf
push edi
lea ecx, [ebp - 0x428]
call fcn.29837ba9
push 3
push edi
push esi
push eax
call fcn.29837ba9
cmp eax, ebx
jne 0x29820a1a
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x298209f6
lea ecx, [ebp - 0x418]
call fcn.2981cb8c
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.2981cb0e
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.2983e275
ret 0x10
push 2
push ebx
push eax
call fcn.2981d73e
mov edi, eax
mov dword [ebp - 0x41c], edi
cmp edi, ebx
jne 0x29820a3b
call fcn.2981c3ab
mov esi, eax
jmp 0x29820b05
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x29820a5e
call fcn.2981c3ab
jmp 0x29820af7
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x29820a54
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x424], esi
cmp eax, esi
jae 0x29820a8e
mov esi, 0x8007000e
jmp 0x29820af9
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.29837ba9
mov dword [ebp - 4], 1
jmp 0x29820abc
cmp dword [ebp - 0x418], ebx
je 0x29820a87
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.29837ba9
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.29837ba9
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x298209fb
lea ecx, [ebp - 0x418]
call fcn.2981cb8c
jmp 0x298209fb
Function at 0x29837ba9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x29837bb8
pop dword [ebp - 0x44]
mov eax, 0xe60c10a4
sub eax, 0xbc8894ec
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xbc2d3d4c
add dword [ebp - 0x54], 0x922507ff
mov dword [ebp - 0x50], 0x67ace71e
sub dword [ebp - 0x50], 0x35799ad9
mov dword [ebp - 0x4c], 0xcd843e45
add dword [ebp - 0x4c], 0x7ec805e9
mov dword [ebp - 0x48], 0xb65843da
add dword [ebp - 0x48], 0x49a7bc26
lea eax, [ebp - 0x54]
push eax
mov eax, 0xc26cd934
add eax, 0x671767c4
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x2b568490
add dword [ebp - 0x54], 0x491be4c6
mov dword [ebp - 0x50], 0x9d454ff5
add dword [ebp - 0x50], 0xa4271180
mov dword [ebp - 0x4c], 0xe08f5956
sub dword [ebp - 0x4c], 0x7d1fecea
mov dword [ebp - 0x48], 0x3e4dea1d
sub dword [ebp - 0x48], 0x3e4dea1d
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x2de3d049
add eax, 0xfba070a7
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x475a8
push 0
call eax
mov ecx, 0xcc50430c
add ecx, 0x33b010fc
xor esi, esi
add esi, eax
mov edi, 0x2987c000
add edi, dword [ebp - 0x44]
mov ebx, 0xc055e339
add ebx, 0x16993693
xor dword [ebp - 0x24], esi
mov edx, dword [edi]
add dword [ebp - 0x30], 0x852323e7
xor edx, ebx
sub dword [ebp - 0x14], 0x2a11fa4a
mov dword [esi], edx
xor dword [ebp - 0xc], 0xb522a830
add esi, 0xd5d7c850
sub esi, 0xd5d7c84c
add edi, 0x24345a46
add edi, 0xdbcba5be
loop 0x29837cd6
add eax, 0x142f3
xor ebx, ebx
add ebx, eax
add eax, 0xfc9c9613
sub eax, 0xfc9c960e
mov ecx, 0xd0ed88cd
sub ecx, 0xa76d88cd
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x46b28a
Capabilities:
Packed with generic packer

Disassembly:
pushal
cmp dword [0x4012dc], 0
je 0x46b36a
cmp dword [0x401528], 0
je 0x46b2de
cmp dword [0x40158c], 5
jle 0x46b2de
push 0x401712
push 0
push dword [0x4012dc]
call dword [0x401530]
add word [0x4016c4], 1
add word [0x4016c6], 1
push 0x4016b2
push dword [0x4012dc]
call dword [0x401538]
movzx eax, word [0x4016a4]
push eax
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_SetConsoleTextAttribute]
mov dword [0x401766], 0x19
push 0x401766
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_SetConsoleCursorInfo]
movzx eax, word [0x4016aa]
movzx ecx, word [0x4016a6]
sub eax, ecx
add eax, 1
movzx edx, word [0x4016ac]
movzx ecx, word [0x4016a8]
sub edx, ecx
add edx, 1
movzx esi, word [0x40169c]
movzx edi, word [0x40169e]
push edi
push esi
push edx
push eax
call fcn.0046bcea
push 5
push 0
push 0
push dword [0x401570]
push dword [0x40156c]
push 0
push dword [0x4012e8]
call dword [sym.imp.user32.dll_SetWindowPos]
cmp dword [0x401300], 0
je 0x46b38b
push dword [0x401300]
call dword [sym.imp.kernel32.dll_SetConsoleCP]
push dword [0x401304]
call dword [sym.imp.kernel32.dll_SetConsoleOutputCP]
cmp dword [0x4012d8], 0
je 0x46b3b2
push dword [0x4012d8]
call dword [sym.imp.kernel32.dll_FlushConsoleInputBuffer]
push dword [0x4012f4]
push dword [0x4012d8]
call dword [sym.imp.kernel32.dll_SetConsoleMode]
cmp dword [0x401308], 0
je 0x46b3cf
push dword [0x401308]
push 0
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [0x40131c], 0
je 0x46b3e4
push dword [0x40131c]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [0x4012f8]
push 0xfffffffffffffff0
push dword [0x4012e8]
call dword [sym.imp.user32.dll_SetWindowLongW]
push 0
push 0
push 0
call dword [sym.imp.winmm_PlaySoundW]
cmp dword [0x40153c], 0
je 0x46b413
call dword [0x401540]
popal
ret

Function at 0x46b8db
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
lea edx, [ebp - 0x18]
push edx
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
xor ecx, ecx
mov cx, word [ebp - 0x14]
mov dword [0x401298], ecx
xor ebx, ebx
mov bx, word [ebp - 0x12]
mov dword [0x40129c], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jg 0x46b91a
cmp edi, 0xffffffff
jle 0x46b952
cmp esi, 0xffffffff
jle 0x46b92d
mov eax, esi
mov ecx, dword [0x4012b4]
xor edx, edx
div ecx
mov ecx, edx
cmp edi, 0xffffffff
jle 0x46b940
mov eax, edi
mov ebx, dword [0x4012bc]
xor edx, edx
div ebx
mov ebx, edx
shl ebx, 0x10
or ebx, ecx
push ebx
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
popal
leave
ret 8
Function at 0x46b9f1
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push ecx
push edx
push esi
push edi
push 0x2104
push 8
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
lea edx, [ebp + 0x14]
push edx
push dword [ebp + 0x10]
push 0x1000
push eax
call dword [sym.imp.msvcrt.dll__vsnwprintf]
add esp, 0x10
and eax, 0xfff
je 0x46bb0e
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, 0xffffffff
jle 0x46baf6
cmp edx, 0xffffffff
jle 0x46baf6
mov cx, dx
shl ecx, 0x10
or cx, bx
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x18]
push edx
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_WriteConsoleOutputCharacterW]
cmp dword [0x401310], 0
jne 0x46ba9b
mov ax, word [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
rep stosw word es:[edi], ax
jmp 0x46badb
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
mov dword [0x401310], 0
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov ax, word [ebp - 0x10]
and ax, 0xf
and word [edi], 0xfff0
or word [edi], ax
add edi, 2
sub ecx, 1
jne 0x46bacc
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_WriteConsoleOutputAttribute]
jmp 0x46bb0e
push 0
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_WriteConsoleW]
push dword [ebp - 0x28]
push 0
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret

Function at 0x46bb29
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp esi, 0
jle 0x46bb72
mov ecx, esi
add ecx, 1
add ecx, ecx
push ecx
push 8
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
mov cx, word [ebp + 0xc]
shl ecx, 0x10
or cx, word [ebp + 8]
push 0x4012ec
push ecx
push esi
push edi
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterW]
mov eax, edi
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0xc