joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446e70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor ecx, ecx
mov edi, 0x53a6de
mov dword [esp + 0x10], ecx
mov ebx, 0x278
mov dword [esp + 0x14], edi
mov edx, 0x190
test ecx, ecx
je 0x447088
cmp ecx, 1
je 0x447088
cmp ecx, 2
jne 0x446ec9
push dword [0x54e460]
call dword [sym.imp.SDL2.dll_SDL_GetWindowFlags]
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, 0x200
je 0x447088
mov edx, 0x190
movzx esi, word [edi - 4]
movzx eax, word [edi - 2]
mov word [edi], si
mov word [edi + 2], ax
cmp si, bx
jge 0x447088
cmp ax, dx
jge 0x447088
movzx ebx, word [edi + 4]
movzx ebp, word [edi + 6]
movsx edi, ax
mov eax, dword [esp + 0x14]
movsx ecx, si
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebp
mov eax, dword [eax - 0xa]
mov edx, eax
sub edx, ecx
test si, si
cmovns edx, eax
xor eax, eax
test si, si
cmovns eax, ecx
add ebx, ecx
mov ecx, dword [esp + 0x18]
test si, si
mov dword [esp + 0x1c], eax
cmovns ebx, ecx
mov dword [esp + 0x24], ebx
test edi, edi
jns 0x446f44
mov eax, ecx
add ebp, edi
imul eax, edi
mov dword [esp + 0x20], ebp
sub edx, eax
mov eax, dword [esp + 0x1c]
xor edi, edi
test ebx, ebx
jle 0x44707b
test ebp, ebp
jle 0x44707b
mov esi, dword [esp + 0x14]
imul ecx, edi, 0x278
mov esi, dword [esi - 0xe]
add ecx, eax
mov eax, dword [0x54e3ac]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
add ecx, ebx
mov ebx, 0x278
sub ebx, dword [esp + 0x1c]
cmp ecx, 0x278
lea ecx, [edi + ebp]
mov ebp, 0x190
cmovl ebx, dword [esp + 0x24]
sub ebp, edi
cmp ecx, 0x190
mov ecx, dword [esp + 0x18]
cmovl ebp, dword [esp + 0x20]
sub ecx, ebx
cmp byte [0x550b66], 0
mov dword [esp + 0x18], ecx
je 0x447021
cmp dword [esp + 0x10], 3
jne 0x447021
test ebp, ebp
jle 0x44707b
shl ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, 0x278
sub ecx, ebx
shl ecx, 2
mov dword [esp + 0x24], ecx
xor edi, edi
test ebx, ebx
jle 0x447010
mov ecx, dword [eax]
mov dword [esi], ecx
add esi, 4
cmp byte [edx], 0x7f
je 0x447003
mov ecx, dword [eax]
test ecx, 0xffffff
je 0x446ffd
cmp ecx, dword [0x54e3f4]
je 0x446ffd
mov dword [eax], 0x4ece
jmp 0x447003
mov dword [eax], 0xb3dbf6
inc edi
add eax, 4
inc edx
cmp edi, ebx
jl 0x446fd7
mov ecx, dword [esp + 0x24]
add esi, dword [esp + 0x20]
add eax, ecx
add edx, dword [esp + 0x18]
sub ebp, 1
jne 0x446fd1
jmp 0x44707b
test ebp, ebp
jle 0x44707b
mov ecx, 0x278
sub ecx, ebx
shl ecx, 2
mov dword [esp + 0x24], ecx
xor edi, edi
test ebx, ebx
jle 0x447063
nop dword [eax]
mov ecx, dword [eax]
mov dword [esi], ecx
add esi, 4
mov cl, byte [edx]
cmp cl, 0x7f
je 0x44705a
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x54e3b0]
mov dword [eax], ecx
inc edi
add eax, 4
inc edx
cmp edi, ebx
jl 0x447040
mov ecx, dword [esp + 0x18]
add edx, ecx
add eax, dword [esp + 0x24]
lea edi, [ecx*4]
add esi, edi
sub ebp, 1
jne 0x447033
mov edi, dword [esp + 0x14]
mov ebx, 0x278
mov ecx, dword [esp + 0x10]
inc ecx
add edi, 0x18
mov dword [esp + 0x10], ecx
mov edx, 0x190
mov dword [esp + 0x14], edi
cmp ecx, 4
jl 0x446e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4483f0
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x53a738]
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, edx
push edi
mov edi, ecx
test eax, eax
je 0x44841d
push eax
call fcn.00488f53
add esp, 4
mov dword [0x53a738], 0
xor ebx, ebx
cmp byte [0x4ecb29], 0x10
push edi
setne bl
lea ebx, [ebx*2 + 2]
imul ebx, esi
call fcn.00489c23
add esp, 4
lea esi, [eax - 8]
push edi
call fcn.00489f20
mov cl, byte [0x4ecb29]
add esp, 4
mov dword [esp + 0x14], 0x46464952
mov ebp, 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x45564157
mov dword [esp + 0x20], 0x20746d66
mov dword [esp + 0x24], 0x10
cmp cl, 0x10
jne 0x448483
mov word [esp + 0x28], bp
jmp 0x44848d
mov eax, 3
mov word [esp + 0x28], ax
movzx edx, cl
mov eax, 2
mov word [esp + 0x2a], ax
mov ecx, edx
mov eax, dword [0x4ecb4c]
imul ecx, eax
mov dword [esp + 0x2c], eax
lea eax, [edx + edx]
cdq
and edx, 7
mov dword [esp + 0x38], 0x61746164
add eax, edx
mov dword [esp + 0x3c], ebx
sar eax, 3
add ecx, ecx
mov word [esp + 0x34], ax
mov al, byte [0x4ecb29]
push edi
movzx eax, al
push 0x2c
mov word [esp + 0x3e], ax
lea eax, [esp + 0x1c]
shr ecx, 3
push 1
push eax
mov dword [esp + 0x40], ecx
call fcn.0048a20c
push edi
call fcn.00489118
add esp, 0x14
call fcn.004362c0
cmp word [0x54fc24], 0
jne 0x44850d
mov eax, 6
mov word [0x54fc24], ax
mov ecx, dword [0x4f3e7c]
cmp dword [0x789f80], ecx
mov dword [0x789f80], ecx
setne al
test al, al
je 0x44852b
call fcn.00432d10
movzx ecx, word [0x54fc22]
lea eax, [ecx - 0x20]
cmp eax, 0xdf
ja 0x448584
mov eax, dword [ecx*4 + 0x789f0c]
mov dword [0x789f88], eax
mov eax, dword [ecx*8 + 0x78a220]
mov dword [0x78a318], eax
mov eax, dword [ecx*8 + 0x78a224]
mov dword [0x78a31c], eax
mov eax, dword [ecx*4 + 0x78a9a4]
mov dword [0x4f6090], eax
mov eax, dword [ecx*8 + 0x78acb0]
mov dword [0x4f4288], eax
mov eax, dword [ecx*8 + 0x78acb4]
mov dword [0x4f428c], eax
movzx edx, word [0x552867]
movzx esi, word [0x5524eb]
cmp dx, 0x20
jle 0x44859f
mov edx, 0x20
jmp 0x4485a6
cmp dx, 1
cmovl edx, ebp
mov eax, 0x100
cmp si, ax
jg 0x4485bd
xor ecx, ecx
mov eax, esi
test si, si
cmovns ecx, eax
movzx eax, cx
movsx ecx, dx
cwde
imul ecx, eax
test byte [0x55259e], 4
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x4e2a80]
jne 0x4485e5
mulsd xmm0, qword [0x4e2bf0]
cvtpd2ps xmm0, xmm0
pop edi
pop esi
movss dword [0x4ee0ac], xmm0
mov byte [0x54e4dc], 0
mov byte [0x54e620], 0
mov byte [0x54e621], 1
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449020
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov ecx, dword [esi + 0x1c]
mov ebp, ecx
mov edi, dword [esi + 0x10]
cmp edi, ecx
jbe 0x449090
mov edx, dword [esi + 0x20]
test edx, edx
je 0x449090
mov eax, dword [esi]
lea ebp, [ecx + 1]
mov ebx, dword [esi + 0x18]
mov eax, dword [eax + ecx*4]
mov dword [esi + 0x1c], ebp
cmp edx, 0x20
jae 0x449086
mov esi, eax
mov ecx, 0x18
mov eax, esi
sub ecx, edx
add edx, 8
shr eax, cl
movzx ecx, al
mov eax, ebx
shr eax, 8
xor ecx, eax
movzx ebx, bl
shl ebx, 8
movzx ecx, word [ecx*2 + 0x4dc690]
xor ebx, ecx
cmp edx, 0x20
jb 0x449055
mov esi, dword [esp + 0x14]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], 0
mov eax, dword [esi]
sub edi, ebp
movzx edx, word [esi + 0x18]
lea ebp, [eax + ebp*4]
mov dword [esp + 0x10], ebp
cmp edi, 2
jb 0x449148
mov esi, dword [esp + 0x10]
mov ebp, edi
shr ebp, 1
mov ebx, dword [esi]
sub edi, 2
movzx eax, dx
mov edx, dword [esi + 4]
shr ebx, 0x10
xor ebx, eax
mov eax, dword [esi]
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov cx, word [ecx*2 + 0x4dd090]
xor cx, word [eax*2 + 0x4dca90]
mov eax, edx
shr eax, 8
movzx eax, al
xor cx, word [eax*2 + 0x4dc890]
mov eax, ebx
shr eax, 8
xor cx, word [eax*2 + 0x4dd490]
mov eax, edx
shr eax, 0x18
xor cx, word [eax*2 + 0x4dcc90]
movzx eax, bl
xor cx, word [eax*2 + 0x4dd290]
movzx eax, dl
xor cx, word [eax*2 + 0x4dc690]
mov eax, dword [esi]
add esi, 8
movzx eax, al
xor cx, word [eax*2 + 0x4dce90]
movzx edx, cx
sub ebp, 1
jne 0x4490b0
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
test edi, edi
je 0x449191
mov ebx, dword [ebp]
movzx eax, dx
shr ebx, 0x10
xor ebx, eax
mov eax, dword [ebp]
shr eax, 8
mov ecx, ebx
movzx eax, al
shr ecx, 8
mov dx, word [eax*2 + 0x4dc890]
xor dx, word [ecx*2 + 0x4dcc90]
movzx eax, bl
xor dx, word [eax*2 + 0x4dca90]
mov eax, dword [ebp]
movzx eax, al
xor dx, word [eax*2 + 0x4dc690]
movzx edx, dx
pop edi
movzx eax, dx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x44c1e0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax], 9
je 0x44c1f1
mov eax, 5
pop esi
ret
mov eax, dword [esi + 4]
push edi
push 0x2000
mov dword [eax + 0x24], 0x449ce0
mov eax, dword [esi + 4]
mov dword [eax + 0x28], 0x44a460
mov eax, dword [esi + 4]
mov dword [eax + 0x2c], 0x449ce0
mov eax, dword [esi + 4]
mov edi, dword [eax + 0x38]
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 4], 0x800
call fcn.00489595
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x44c466
mov dword [edi + 0x24], 0x44f400
mov dword [edi + 0x28], esi
mov eax, dword [esi + 4]
mov dword [eax + 4], 0x47e9c0
mov eax, dword [esi + 4]
mov dword [eax + 8], 0x47ea00
mov eax, dword [esi + 4]
mov dword [eax + 0xc], 0x47ea30
mov eax, dword [esi + 4]
mov dword [eax + 0x10], 0x47ea60
mov eax, dword [esi + 4]
mov dword [eax + 0x14], 0x47eaa0
mov eax, dword [esi + 4]
mov dword [eax + 0x18], 0x47edd0
mov eax, dword [esi + 4]
mov dword [eax + 0x1c], 0x47eac0
mov eax, dword [esi + 4]
mov dword [eax + 0x20], fcn.0042cf50
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 4]
mov dword [eax + 0xe8], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xe4], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xf8], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xdc0], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0xde8], eax
mov ecx, esi
mov eax, dword [esi + 4]
mov dword [eax + 0xdf0], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xdec], 1
call fcn.0044c750
test eax, eax
je 0x44c46e
mov eax, dword [esi + 4]
cmp dword [eax + 0xdec], 0
jne 0x44c378
push 0
mov edi, eax
call fcn.004901b4
add esp, 4
cmp dword [edi + 0x34], eax
je 0x44c46e
mov eax, dword [edi + 8]
test eax, eax
je 0x44c382
push dword [edi + 0x30]
push 0
push 0
push esi
call eax
add esp, 0x10
cmp eax, 1
jne 0x44c382
pop edi
mov eax, 3
pop esi
ret
mov dword [eax + 0xdec], 0
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xf8], 0
mov eax, dword [esi + 4]
push dword [eax + 0x1c4]
call fcn.00488f53
mov eax, dword [esi + 4]
add esp, 4
mov dword [eax + 0x1c4], 0
mov eax, dword [esi + 4]
pop edi
mov dword [eax + 0xfc], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0xde8], eax
mov eax, dword [esi + 4]
mov dword [eax + 0xe8], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xe4], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xe34], 0x67452301
mov dword [eax + 0xe38], 0xefcdab89
mov dword [eax + 0xe3c], 0x98badcfe
mov dword [eax + 0xe40], 0x10325476
mov dword [eax + 0xe44], 0
mov dword [eax + 0xe48], 0
mov dword [eax + 0xe4c], 0
mov dword [eax + 0xe50], 0
mov eax, dword [esi + 4]
mov dword [eax + 0x17b8], 0
mov dword [eax + 0x17bc], 0
mov eax, dword [esi + 4]
pop esi
mov dword [eax + 0x17c8], 0
xor eax, eax
ret
mov eax, dword [esi]
mov dword [eax], 8
pop edi
mov eax, 3
pop esi
ret
Function at 0x470de0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push ecx
push 4
lea eax, [esp + 0x10]
mov edi, edx
push 1
push eax
call fcn.0048a645
mov eax, dword [esp + 0x18]
add esp, 0x10
mov cl, al
and cl, 0xf
movzx edx, cl
shl dx, 8
movzx ecx, ah
or dx, cx
xor cl, cl
movzx esi, dx
movzx edx, cl
cmp si, word [edx*2 + 0x4c21d0]
jae 0x470e28
inc cl
cmp cl, 0x24
jb 0x470e12
jmp 0x470e2d
add cl, 0x25
mov byte [edi], cl
mov dl, byte [esp + 0xa]
and al, 0xf0
mov cl, dl
shr cl, 4
or al, cl
and dl, 0xf
mov byte [edi + 1], al
mov al, byte [esp + 0xb]
mov byte [edi + 3], dl
mov byte [edi + 4], al
pop edi
pop esi
pop ecx
ret
Function at 0x473120
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
lea eax, [esp + 8]
push edi
push 1
push 2
push eax
call fcn.0048a645
movzx eax, word [esp + 0x18]
inc eax
push eax
call fcn.00489595
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x47314d
pop edi
pop esi
pop ecx
ret
movzx eax, word [esp + 8]
push edi
push eax
push 1
push esi
call fcn.0048a645
movzx eax, word [esp + 0x18]
add esp, 0x10
mov byte [eax + esi], 0
mov eax, esi
pop edi
pop esi
pop ecx
ret
Function at 0x474900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8cca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00481bbe
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x47498d
push eax
push esi
call fcn.00481f1c
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.004748a0
push 0x4e6b48
lea eax, [ebp - 0x1c]
push eax
call fcn.00484407
int3
Function at 0x476150
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8e57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
mov dword [ebx + 4], 0
mov byte [ebx + 8], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0xf
mov byte [ebx + 0xc], 0
mov dword [ebx + 0x24], 0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
lea edi, [ebx + 0x30]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], edi
lea esi, [edi + 0x10]
mov dword [ebx], 0x4e25a4
sub esp, 8
mov ecx, esi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 0x14], esi
call fcn.00476cf0
xorps xmm0, xmm0
movsd qword [esi + 0x10], xmm0
mov word [edi + 0x28], 7
mov byte [edi + 0x2a], 1
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov byte [edi + 0x3c], 0
mov byte [ebp - 4], 1
push 0x964
mov dword [ebx + 0x38], 0x64
mov dword [ebp - 0x14], 0x64
call fcn.00480dda
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x476258
push 0x4755c0
push 0x4755a0
push 0x64
lea esi, [eax + 4]
mov dword [eax], 0x64
push 0x18
push esi
call fcn.00480e06
jmp 0x47625a
xor esi, esi
mov dword [ebx + 0x3c], esi
mov dword [ebp - 4], 3
mov dword [ebx], 0x4e25d0
call dword [sym.imp.WINMM.dll_midiInGetNumDevs]
test eax, eax
jne 0x476299
push 0x43
lea esi, [ebx + 0xc]
push str.MidiInWinMM::initialize:_no_MIDI_input_devices_currently_available.
mov ecx, esi
call fcn.00478c50
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00477230
push 0
mov ecx, ebx
call fcn.00475a50
push 0x50
call fcn.00480c9e
mov edi, eax
mov dword [ebp - 0x18], edi
lea esi, [edi + 0x10]
mov byte [ebp - 4], 4
push ecx
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00476cf0
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movsd qword [esi + 0x10], xmm0
mov dword [ebx + 4], edi
mov dword [ebx + 0x5c], edi
mov eax, dword [esi]
mov dword [esi + 4], eax
lea eax, [edi + 0x38]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x476306
push 0x46
lea esi, [ebx + 0xc]
push str.MidiInWinMM::initialize:_InitializeCriticalSectionAndSpinCount_failed.
mov ecx, esi
call fcn.00478c50
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00477230
push 0
mov ecx, ebx
call fcn.00475a50
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4773a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8f37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
push esi
mov dword [ebx], 0x4e2660
push edi
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00475250
push 8
call fcn.00480c9e
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.00481e15
add esp, 8
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
lea eax, [ebx + 4]
mov ecx, edi
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
push 0x20
mov dword [edi + 0x3c], 0
call fcn.00479eb0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x4774a8
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.00475250
mov dword [ebp - 4], 3
lea edi, [ebx + 4]
mov eax, dword [ebx]
push 8
mov dword [ebp - 0x18], edi
mov eax, dword [eax + 4]
mov dword [ebx + eax], 0x4e25a0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00480c9e
mov esi, eax
push 1
mov byte [ebp - 4], 4
call fcn.00481e15
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
mov dword [edi], 0x4e25fc
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x479d10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a90b0
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00480c9e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00481e15
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47cad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov dl, byte [0x550b61]
mov al, byte [0x550b62]
push ebx
mov ebx, dword [0x54fc2c]
push ebp
mov ebp, ecx
push esi
push edi
test dl, dl
je 0x47cb0f
test al, al
jne 0x47cb0f
mov cl, 1
mov al, byte [ebp + 0x54e4f1]
xor ah, ah
test cl, cl
je 0x47cc05
cmp al, 1
setne al
mov byte [ebp + 0x54e4f1], al
jmp 0x47cb6c
xor cl, cl
test al, al
je 0x47caf2
test dl, dl
je 0x47caf2
xor eax, eax
mov byte [esp + 0x13], 1
test ebx, ebx
jle 0x47cbe6
lea edx, [eax + 1]
nop dword [eax + eax]
cmp eax, ebp
je 0x47cb41
cmp byte [eax + 0x54e4f1], 0
movzx ecx, cl
cmove ecx, edx
inc eax
cmp eax, ebx
jl 0x47cb30
test cl, cl
je 0x47cbe6
mov ecx, ebx
mov eax, 0x1010101
mov edx, ecx
mov edi, 0x54e4f1
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ah, byte [esp + 0x13]
xor esi, esi
test ebx, ebx
jle 0x47cbc2
mov edi, 0x54dbcc
mov edx, 0x54fc4b
nop dword [eax]
mov cl, byte [esi + 0x54e4f1]
test cl, cl
sete al
mov byte [edx - 0xa], al
test cl, cl
jne 0x47cbb4
mov word [edx - 1], 0
mov dword [edx + 0x21], 0x80000000
mov dword [edx + 0x51], 0
mov word [edx + 0x25], 0x8080
mov byte [edx - 7], 1
mov byte [edx - 0xb], 1
mov byte [edi], 0
inc esi
add edx, 0x78
add edi, 0x38
cmp esi, ebx
jl 0x47cb80
test ah, ah
je 0x47cc28
xor esi, esi
test ebx, ebx
jle 0x47cbe0
nop dword [eax]
mov ecx, esi
call fcn.0047c840
inc esi
cmp esi, dword [0x54fc2c]
jl 0x47cbd0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor ecx, ecx
test ebx, ebx
jle 0x47cb68
cmp ecx, ebp
sete al
mov byte [ecx + 0x54e4f1], al
inc ecx
cmp ecx, ebx
jl 0x47cbf0
jmp 0x47cb68
test al, al
je 0x47cc15
xor byte [ebp + 0x55256b], 1
jmp 0x47cb6c
mov byte [ebp + 0x55256b], 1
mov byte [ebp + 0x54e4f1], 1
jmp 0x47cb6c
pop edi
pop esi
mov ecx, ebp
pop ebp
pop ebx
add esp, 4
jmp fcn.0047c840
Function at 0x47e7f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
call fcn.00489c23
push 2
push 0
push esi
mov dword [esp + 0x30], eax
call fcn.00489f05
push esi
call fcn.00489c23
mov edi, eax
add esp, 0x14
cmp edi, 0xc
jl 0x47e999
push 0
push 0xc
push esi
call fcn.00489f05
xor eax, eax
xor ebp, ebp
push esi
mov dword [esp + 0x2c], eax
xor ebx, ebx
call fcn.00490094
add esp, 0x10
test eax, eax
jne 0x47e999
lea eax, [edi - 0xc]
mov dword [esp + 0x24], eax
nop dword [eax]
cmp ebx, eax
jge 0x47e944
push esi
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.0048a645
mov ecx, dword [esp + 0x24]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
push esi
mov dword [esp + 0x28], edx
call fcn.00490094
add esp, 0x14
test eax, eax
jne 0x47e944
push esi
push 1
lea eax, [esp + 0x18]
push 4
push eax
call fcn.0048a645
mov ecx, dword [esp + 0x20]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
push esi
mov dword [esp + 0x24], edx
call fcn.00490094
add esp, 0x14
test eax, eax
jne 0x47e944
push esi
call fcn.00489c23
mov edx, dword [esp + 0x14]
add esp, 4
mov edi, edx
add eax, edx
and edi, 1
add edi, eax
cmp dword [esp + 0x14], 0x434f4d4d
jne 0x47e91d
push esi
call fcn.00489c23
mov edx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], edx
mov ecx, edx
push 0
and ecx, 1
add ecx, edx
push edi
push esi
add ebx, ecx
call fcn.00489f05
push esi
call fcn.00490094
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x24]
je 0x47e850
test ebp, ebp
je 0x47e999
mov eax, dword [esp + 0x1c]
cmp eax, 2
jb 0x47e999
push 0
push ebp
push esi
call fcn.00489f05
push esi
push 1
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.0048a645
mov ax, word [esp + 0x34]
push 0
push dword [esp + 0x40]
rol ax, 8
movzx eax, ax
push esi
mov dword [esp + 0x40], eax
call fcn.00489f05
add esp, 0x28
cmp word [esp + 0x18], 2
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0
push dword [esp + 0x24]
push esi
call fcn.00489f05
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret