joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bcbcb
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.005f00bb
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x5bccee
push ecx
lea ecx, [esi + 0x18]
call fcn.005dc3eb
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x5bcd05
push ecx
lea ecx, [esi + 0x24]
call fcn.005dc2fb
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5c4ceb
Capabilities:
Encode data using xor

Disassembly:
out 0x88, eax
cmp esi, esp
fisub dword [esi + eax*2 - 0x7dffd88b]
xor al, 0xbf
dec ebp
fisttp qword [edi]
pop ebp
sbb eax, 0xf894606c
invalid

Function at 0x5dc3eb
Capabilities:
Encode data using xor

Disassembly:
mov ebp, 0x7c6d8e98
push edi
cmp eax, 0x3b79a28d
fucomi st(4)
wait
ret
inc ebp
add eax, dword [ebp - 0x52]
clc
stosb byte es:[edi], al
jle 0x5dc39b
and al, 0xb7
invalid
Function at 0x605ddb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47262f
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4a2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], edx
mov eax, ecx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x134], eax
mov esi, dword [ebp + 8]
mov edi, esi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x138], ecx
jb 0x605e42
mov edi, dword [esi]
cmp dword [edx + 0x14], 0x10
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], edx
jb 0x605e5f
mov ecx, dword [edx]
mov dword [ebp - 0x130], ecx
cmp dword [edx + 0x10], 0
jbe 0x605ec8
push 0x100
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0064edab
mov ecx, dword [ebp - 0x138]
add esp, 0xc
add ecx, edi
cmp edi, ecx
je 0x605e9b
nop dword [eax]
movzx eax, byte [edi]
inc edi
mov byte [ebp + eax - 0x128], 1
cmp edi, ecx
jne 0x605e8b
mov edx, dword [ebp - 0x130]
mov edi, edx
mov ecx, dword [ebp - 0x134]
add ecx, edx
cmp edx, ecx
jae 0x605ec2
movzx eax, byte [edi]
mov al, byte [ebp + eax - 0x128]
test al, al
je 0x605f1c
inc edi
cmp edi, ecx
jb 0x605eaf
mov eax, dword [ebp - 0x12c]
xorps xmm0, xmm0
mov ecx, eax
push 0
movups xmmword [eax], xmm0
push 0x491667
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.0063974b
mov dword [ebp - 4], 0
mov dword [ebp - 0x140], 1
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d627
mov esp, ebp
pop ebp
ret
sub edi, edx
cmp edi, 0xffffffff
je 0x605ec2
cmp dword [esi + 0x14], 0x10
jb 0x605f2b
mov esi, dword [esi]
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x130], ecx
cmp dword [ecx + 0x14], 0x10
jb 0x605f45
mov eax, dword [ecx]
mov dword [ebp - 0x130], eax
push 0x100
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0064edab
mov ecx, dword [ebp - 0x138]
add esp, 0xc
add ecx, esi
cmp esi, ecx
je 0x605f7b
nop dword [eax]
movzx eax, byte [esi]
inc esi
mov byte [ebp + eax - 0x128], 1
cmp esi, ecx
jne 0x605f6b
mov eax, dword [ebp - 0x134]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x130]
dec eax
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [ecx + edx]
add ecx, edx
mov al, byte [ebp + eax - 0x128]
test al, al
je 0x605fb9
cmp ecx, edx
je 0x606030
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x128]
test al, al
jne 0x605fa1
sub ecx, edx
sub ecx, edi
lea eax, [ebp - 0x28]
inc ecx
push ecx
mov ecx, dword [ebp - 0x13c]
push edi
push eax
call fcn.00624d1b
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x140], 1
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x14], 0
mov byte [ebp - 0x28], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0063987b
mov eax, esi
jmp 0x605f01
or ecx, 0xffffffff
jmp 0x605fbb
Function at 0x60625b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0063974b
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x60637e
push ecx
lea ecx, [esi + 0x18]
call fcn.00625a7b
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x606395
push ecx
lea ecx, [esi + 0x24]
call fcn.0062598b
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x630a9b
Capabilities:
Encode data using xor

Disassembly:
out dx, al
les esi, [esi + 0x73]
retf
fucomi st(6)
add ebx, edx
and dh, dl
mov ebp, 0xb9fab322
push ebp
mov dword [edi + 0x455a472], edi
mov edi, 0x455a472
mov edi, 0x455a472
out dx, al
xor esi, dword [ebx - 0x35a5eb32]
mov byte [0x16fda299], al
cmp dword [edx], esp
mov edx, 0xe42a4677
push esi
ja 0x630a8e
daa
rcr dh, 0xab
arpl word [ebx - 0x2e3387cd], bx
mov al, 0xa5
mov al, byte [0x294142ac]
dec ecx
xchg ah, dh
xor ch, cl
jecxz 0x630a80
add dword [eax + esi*8 - 0x470efedf], ecx
mov dl, 0xac
mov dh, 7
leave
or al, 0xe9
cmp edi, dword [ecx + 0x26]
sbb dword [eax + 0x7941aef7], ebx
das
sbb byte [edi], 0xc2
xor esi, dword [edi - 0x247406bd]
imul ebx, dword [edi - 0xd54460b], 0x3d
mov ecx, 0x75594b9c
xor esp, dword [edx + 0x79]
cmp bl, byte [ecx + 0x49]
ja 0x630b36
cmpsb byte [esi], byte es:[edi]
mov byte [0xa6813ff3], al
leave
aas
or dword [edi + 0x2d], esi
clc
sub dword [esp + ecx*8], edi
add dword [edi - 0x5e5d1191], ecx
inc esp
dec esi
sub eax, 0x5079b743
clc
mov dh, 0x93
jnp 0x630b1b
fld st(4)
adc byte [edi - 1], ah
xor al, 0xf2
out 0xfd, al
pop edx
bound esp, qword [eax + 0x27bd9363]
daa
xor dword [edx], esp
push ebx
mov dword [esi + 0x21], esp
salc
fstp dword [eax + 0x5c]
rol byte [ecx], 0xe2
pop ebp
cmpsb byte [esi], byte es:[edi]
test al, 0xac
dec eax
xchg ebx, ebx
inc eax
jmp 0x85d0c3c
Function at 0x64d35d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6553a8
cmp edx, dword [eax]
je 0x64d37f
add eax, 8
inc ecx
cmp eax, 0x655438
jl 0x64d370
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6553a8]
jne 0x64d4ad
mov eax, dword [0xa58d00]
cmp eax, 1
je 0x64d487
test eax, eax
jne 0x64d3b0
cmp dword [0x6552d4], 1
je 0x64d487
cmp edx, 0xfc
je 0x64d4ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64d3e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064dd40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064e1d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64d42a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064e1d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x652834
push edi
call fcn.006500a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064dd40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064dd50
lea eax, [ebp - 0xa0]
push 0x652814
push eax
call fcn.0064dd50
push dword [esi + 0x6553ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064dd50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00650014
add esp, 0x2c
pop edi
jmp 0x64d4ad
lea eax, [ebp + 8]
lea esi, [esi + 0x6553ac]
push 0
push eax
push dword [esi]
call fcn.0064e1d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402357
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4415b6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.0040fd0e
pop ecx
and dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0x10
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.0040269a
lea ecx, [esp + 8]
call fcn.00402286
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043dbf0
mov esp, ebp
pop ebp
ret

Function at 0x406557
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442961
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
and dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0xb0]
and dword [esp + 0x38], 0
push eax
push edi
mov ecx, esi
call fcn.00428f4d
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040253d
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043dbf0
mov esp, ebp
pop ebp
ret 4

Function at 0x406666
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bc3f
Function at 0x407d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2d0], 0
je 0x407ded
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x407ddd
mov ecx, esi
call fcn.00407a86
jmp 0x407def
cmp dword [esp + 0xc], 6
jb 0x407ded
mov ecx, esi
call fcn.004072c9
jmp 0x407def
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0043dbf0
mov esp, ebp
pop ebp
ret
Function at 0x40bfd3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442a09
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x40c01d
xor eax, eax
jmp 0x40c17b
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40c046
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40c046
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, ebx
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40c17b
cmp dword [edi + 0x50], 0
je 0x40c179
mov ecx, edi
call fcn.0040cfcf
cmp dword [edi + 0x40], 0
jne 0x40c076
push dword [edi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
jmp 0x40c179
push ecx
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
call fcn.0040ca66
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.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 0x40c170
cmp eax, 1
jg 0x40c155
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x40c11f
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x40c170
jmp 0x40c123
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x40c151
test ecx, ecx
jne 0x40c08a
cmp dword [esp + 0x30], 0x20
jae 0x40c170
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040caab
jmp 0x40c08a
mov esi, ebx
jmp 0x40c170
cmp eax, 3
jne 0x40c170
movsx eax, byte [esp + 0x13]
push dword [edi + 0x50]
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
lea ecx, [esp + 0x20]
call fcn.00402286
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043dbf0
mov esp, ebp
pop ebp
ret 4
Function at 0x40ce59
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4424fb
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x40cf82
cmp byte [esi + 0x45], bl
je 0x40cf82
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40ceb9
xor al, al
jmp 0x40cf84
push ecx
push ecx
lea ecx, [esp + 0x20]
call fcn.0040ca66
mov dword [esp + 0x40], ebx
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, ebx
je 0x40cf09
dec eax
je 0x40cf0c
dec eax
dec eax
jne 0x40cf75
inc eax
jmp 0x40cf73
mov byte [esi + 0x45], bl
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x10], edx
je 0x40cf50
push dword [esi + 0x50]
lea eax, [esp + 0x1c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
jne 0x40cf71
mov edi, dword [esp + 0x2c]
cmp byte [esi + 0x45], 0
je 0x40cf6f
test edx, edx
jne 0x40cecc
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0040caab
jmp 0x40cec8
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00402286
mov al, bl
jmp 0x40cf84
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043dbf0
mov esp, ebp
pop ebp
ret

Function at 0x40eb01
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40eb13
push 0xd
pop eax
jmp 0x40eb45
push ebx
mov ecx, edx
push edi
lea edi, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40eb1c
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40fbec
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.0043881a
push 1
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
ret

Function at 0x411082
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x472d14
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4110c4
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x472d18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0043dbf0
mov esp, ebp
pop ebp
ret

Function at 0x411276
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x472c8c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x4112c1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4112d7
push fcn.00403297
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
leave
ret
Function at 0x4112db
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 1
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x411335
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0043f5b0
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00410f9a
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [ebx + 8], eax
cmp dword [esi + 8], ecx
jne 0x411380
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0043f5b0
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00410f9a
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push 0x411408
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4113ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x4113c1
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x4113d0
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0043f5b0
mov edx, str.thread
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00410f9a
test edi, edi
je 0x4113ff
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8