joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

Function at 0x10018b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10018b6f
pop dword [ebp - 0x14]
mov eax, 0x759b4552
sub eax, 0x6599b9e3
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3726c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x7b0064e5
sub ecx, 0x7b001bbc
xor esi, esi
add esi, eax
mov edi, 0x10024000
add edi, dword [ebp - 0x14]
mov ebx, 0x370f6b17
sub dword [ebp - 8], esi
mov edx, dword [edi]
xor dword [ebp - 4], 0xf9b2c3fc
add edx, ebx
mov dword [esi], edx
add esi, 0xcdf10115
sub esi, 0xcdf10111
add edi, 0x3dfad2fd
add edi, 0xc2052d07
loop 0x10018bbf
add eax, 0x11777
xor ebx, ebx
add ebx, eax
add eax, 0xa640d68
sub eax, 0xa640d63
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4062c0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2028
call fcn.0040a290
mov eax, dword [0x434008]
xor eax, esp
mov dword [esp + 0x2024], eax
mov eax, dword [esp + 0x202c]
push ebx
push ebp
mov ebp, dword [esp + 0x2038]
xor ebx, ebx
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x406341
push 0x428794
call fcn.00406490
push ebp
mov ebx, eax
call fcn.00405fc0
mov edi, eax
add esp, 8
test edi, edi
je 0x4063fb
push edi
push 0x428798
call fcn.00413c9f
push edi
mov esi, eax
call fcn.00411b2e
add esp, 0xc
test esi, esi
je 0x406341
push str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.00402380
add esp, 4
xor eax, eax
jmp 0x406475
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.004163db
push eax
push str._MEI_d
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.004021f0
add esp, 0x10
xor esi, esi
nop dword [eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00414811
mov edi, eax
push edi
call fcn.00407190
add esp, 0xc
test eax, eax
je 0x4063ff
push edi
call fcn.00411b2e
inc esi
add esp, 4
cmp esi, 5
jl 0x406370
test ebp, ebp
je 0x4063fb
push 0
push 0x428794
push 0
call fcn.004072f0
test ebx, ebx
je 0x4063e4
push 0
push ebx
push 0
mov edi, eax
call fcn.004072f0
mov esi, eax
push esi
push edi
call fcn.00413c9f
push edi
call fcn.00411b2e
push esi
call fcn.00411b2e
push ebx
call fcn.00411b2e
add esp, 0x2c
xor eax, eax
jmp 0x406475
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00411b2e
add esp, 4
xor eax, eax
jmp 0x406475
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00407390
push edi
call fcn.00411b2e
add esp, 0x10
test ebp, ebp
je 0x406470
push 0
push 0x428794
push 0
call fcn.004072f0
test ebx, ebx
je 0x406459
push 0
push ebx
push 0
mov edi, eax
call fcn.004072f0
mov esi, eax
push esi
push edi
call fcn.00413c9f
push edi
call fcn.00411b2e
push esi
call fcn.00411b2e
push ebx
call fcn.00411b2e
add esp, 0x2c
jmp 0x406470
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00411b2e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a277
add esp, 0x2028
ret

Function at 0x406490
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.0040a290
mov eax, dword [0x434008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.004072f0
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x406520
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00407390
add esp, 0xc
test eax, eax
je 0x406520
cmp byte [eax], 0
je 0x406520
push eax
call fcn.004163e1
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040a277
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.0040a277
add esp, 0x4004
ret
Function at 0x4127c1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42cdc0
push esi
call fcn.0041ac1e
pop ecx
pop ecx
test eax, eax
jne 0x4127ef
xor al, al
jmp 0x41286c
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00412502
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x412829
push dword [ebp - 0x210]
call fcn.00411b2e
xor al, al
jmp 0x41286a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41282f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x41284f
push edx
call fcn.004126f8
pop ecx
test al, al
je 0x41281a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41285d
mov bl, 1
push dword [ebp - 0x210]
call fcn.00411b2e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a277
leave
ret

Function at 0x4150d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
clc
div ecx
test edx, edx
je 0x4150d6
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
invalid
inc ebp

Function at 0x415d3b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
Function at 0x402d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x402d5c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x402d84
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x402d8a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x402df2
jg 0x402da1
test esi, esi
je 0x402df2
test ecx, ecx
jl 0x402ded
jg 0x402dab
test eax, eax
je 0x402ded
cmp edi, ecx
jg 0x402dbf
jl 0x402db5
cmp esi, eax
jae 0x402dbf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x402df5
mov ecx, dword [ebp + 8]
jmp 0x402dff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x402e19
jg 0x402dff
test esi, esi
je 0x402e19
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x402e19
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x402e5c
jl 0x402e50
test ecx, ecx
jne 0x402e5c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402e75
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x402ec3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x402ec9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x402ec9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x402f36
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x402ef2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x402f24
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x402f36
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x402f00
test edi, edi
je 0x402f36
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4032b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x46c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4032e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40331c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40331c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4033f3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403344
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403350
movsx eax, bl
jmp 0x403388
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4033b2
sub eax, 1
je 0x4033b2
sub eax, 2
jne 0x4033f3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4033d0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4033f3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a66e
mov esp, ebp
pop ebp
ret 4
Function at 0x403940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4039fc
cmp byte [esi + 0x3d], 0
je 0x4039fc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4039ea
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4039b1
sub eax, 1
je 0x4039b5
sub eax, 2
jne 0x4039ea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4039d3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4039ea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0045a66e
mov esp, ebp
pop ebp
ret
Function at 0x4057d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x45d480
push 0x64
mov esi, edx
call fcn.0045a6dd
mov edi, eax
add esp, 8
test edi, edi
je 0x405990
push 0x63
lea ecx, [edi + 1]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [edi], 1
lea eax, [edi + 4]
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 0xc
mov dword [0x49f2a8], edi
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push str.1103757788338995252
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.00404870
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x46dd44
mov dword [0x49f2ac], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x40587f
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
test esi, esi
je 0x405894
movups xmm0, xmmword [esi]
movups xmmword [0x49f190], xmm0
movq xmm0, qword [esi + 0x10]
jmp 0x40589e
xorps xmm0, xmm0
movups xmmword [0x49f190], xmm0
movq qword [0x49f1a0], xmm0
xorps xmm0, xmm0
push 0x46dd44
movups xmmword [0x49f3b0], xmm0
movq qword [0x49f3c0], xmm0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp dword [0x4a34d0], 0
jne 0x40599a
mov eax, str.1103757788338995252
mov dword [0x48edf0], 0x46c040
mov esi, 1
mov edx, 0x48ee00
sub esi, eax
nop
lea ecx, [eax + esi]
cmp ecx, 0x40
jae 0x405903
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp byte [eax], 0
jne 0x4058f0
mov esi, dword [0x49f2a8]
mov al, 1
mov byte [edx], 0
mov dword [0x4a34d0], 0x48edf0
mov dword [0x48edf8], 0x405cc0
mov dword [0x48edfc], 0x405cd0
xchg byte [esi], al
push 4
call fcn.0045a67c
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x406190
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x405981
cmp dword [esi + 0x60], 0
je 0x405968
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x4c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [0x49f2a8], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045a66e
mov esp, ebp
pop ebp
ret
Function at 0x406880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x4a34d0]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x406952
mov eax, dword [edi]
test eax, eax
je 0x406901
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x406901
test ebx, ebx
je 0x406901
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x406901
cmp dword [ebp - 8], esi
je 0x406952
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x406921
mov eax, dword [edi + 4]
cmp eax, 3
je 0x406915
cmp eax, 1
jne 0x406921
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a66e
mov esp, ebp
pop ebp
ret 8
Function at 0x40b190
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
mov esi, ecx
mov dword [0x46dcc8], 0x30
mov dword [0x46dccc], 0x40
mov dword [0x46dcd0], 0x40afb0
mov dword [0x46dcd4], 0
mov dword [0x46dcd8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x46dcdc], eax
push 0x46dcc8
movups xmmword [0x46dce0], xmm0
mov dword [0x46dcf0], 0x45e6e0
mov dword [0x46dcf4], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x46dcdc]
push 0
push 0
push 0x190
push 0x280
push 0x64
push 0x64
push 0x80000000
push esi
push str.class001
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x46dcc0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x46dcc0]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
ret
Function at 0x410320
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c497
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13b0
call fcn.0045ba30
mov eax, dword [0x46c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13bc], esi
mov dword [ebp - 0x13a8], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c0], esi
mov dword [ebp - 0x13b0], 0
mov edi, dword [0x46c030]
mov dword [ebp - 0x13ac], edi
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x139c], edx
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x139c], edx
inc ecx
cmp ecx, 0x270
jb 0x4103b0
mov eax, dword [0x49ef78]
xorps xmm0, xmm0
sub eax, dword [0x49ef74]
movups xmmword [esi], xmm0
dec eax
mov dword [esi + 0x10], 0
mov dword [ebp - 0x13a4], eax
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x13a0], 0x270
mov word [esi], ax
mov dword [ebp - 4], eax
mov ecx, esi
push edi
mov dword [ebp - 0x13b0], 1
call fcn.00418700
test edi, edi
jle 0x410505
mov eax, dword [ebp - 0x13a4]
cmp eax, 0x80000000
cmovae eax, eax
mov dword [ebp - 0x13a4], eax
lea ecx, [ebp - 0x13a0]
cmp eax, 0xffffffff
jne 0x410457
call fcn.00419bc0
mov ecx, eax
jmp 0x4104a9
lea edi, [eax + 1]
call fcn.00419bc0
mul edi
mov dword [ebp - 0x13b4], eax
mov ecx, edx
cmp eax, edi
jae 0x4104a9
mov eax, edi
xor edx, edx
neg eax
div edi
mov eax, edx
mov dword [ebp - 0x13b8], eax
cmp dword [ebp - 0x13b4], eax
jae 0x4104a9
mov esi, edx
nop word [eax + eax]
lea ecx, [ebp - 0x13a0]
call fcn.00419bc0
mul edi
mov ecx, edx
cmp eax, esi
jb 0x410490
mov esi, dword [ebp - 0x13bc]
mov eax, dword [0x49ef74]
mov edi, dword [esi + 0x14]
movsx ax, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
movzx edx, ax
cmp ecx, edi
jae 0x4104dc
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edi, 8
jb 0x4104cf
mov eax, dword [esi]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x4104f2
push edx
mov byte [ebp - 0x13a8], 0
push dword [ebp - 0x13a8]
push ecx
mov ecx, esi
call fcn.00419290
sub dword [ebp - 0x13ac], 1
mov eax, dword [ebp - 0x13a4]
jne 0x410443
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045a66e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x410610
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x410623
xor al, al
pop esi
ret
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x410653
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
xor al, al
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
jne 0x410673
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
xor al, al
pop esi
ret
cmp dword [esi + 0x14], 8
jb 0x41067b
mov esi, dword [esi]
mov eax, dword [ebx]
push esi
inc eax
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov al, 1
pop esi
ret