joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b110
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
movdqa xmm0, xmmword [eax]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movdqa xmm1, xmmword [edi]
lea edx, [esi - 1]
pxor xmm0, xmm1
movdqa xmmword [eax], xmm0
cmp edx, 1
jbe 0x1004b167
add edx, 0xfffffffe
shr edx, 1
lea ecx, [edi + 0x10]
inc edx
movdqa xmm1, xmmword [ecx]
movdqa xmm0, xmmword [eax]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
movdqa xmm1, xmmword [ecx + 0x10]
add ecx, 0x20
dec edx
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
jne 0x1004b142
movdqa xmm0, xmmword [eax]
add esi, esi
movdqa xmm1, xmmword [edi + esi*8 - 0x10]
lea ecx, [edi + esi*8]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
movdqa xmm1, xmmword [ecx]
pop edi
aesenclast xmm0, xmm1
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004b1a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
movdqa xmm1, xmmword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
movdqa xmm0, xmmword [edi]
pxor xmm1, xmm0
movdqa xmmword [eax], xmm1
movdqa xmm1, xmmword [ecx]
pxor xmm1, xmm0
movdqa xmmword [ecx], xmm1
movdqa xmm1, xmmword [edx]
pxor xmm1, xmm0
movdqa xmmword [edx], xmm1
movdqa xmm1, xmmword [esi]
pxor xmm1, xmm0
movdqa xmmword [esi], xmm1
cmp ebx, 1
jbe 0x1004b244
add edi, 0x10
dec ebx
lea esp, [esp]
movdqa xmm0, xmmword [edi]
movdqa xmm1, xmmword [eax]
aesenc xmm1, xmm0
movdqa xmmword [eax], xmm1
movdqa xmm1, xmmword [ecx]
aesenc xmm1, xmm0
movdqa xmmword [ecx], xmm1
movdqa xmm1, xmmword [edx]
aesenc xmm1, xmm0
movdqa xmmword [edx], xmm1
movdqa xmm1, xmmword [esi]
add edi, 0x10
dec ebx
aesenc xmm1, xmm0
movdqa xmmword [esi], xmm1
jne 0x1004b200
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
movdqa xmm1, xmmword [eax]
add ebx, ebx
movdqa xmm0, xmmword [edi + ebx*8]
aesenclast xmm1, xmm0
movdqa xmmword [eax], xmm1
movdqa xmm1, xmmword [ecx]
aesenclast xmm1, xmm0
movdqa xmmword [ecx], xmm1
movdqa xmm1, xmmword [edx]
aesenclast xmm1, xmm0
movdqa xmmword [edx], xmm1
movdqa xmm1, xmmword [esi]
pop edi
aesenclast xmm1, xmm0
movdqa xmmword [esi], xmm1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004bac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10072814
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1008d200]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
lea edi, [esp + 0x28]
call fcn.1004bff0
mov dword [esp + 0x90], 0
mov bl, byte [esp + 0x18]
xor ecx, ecx
lea esi, [esp + 0x50]
call fcn.100505f0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x50], vtable.CryptoPP::DERGeneralEncoder.1.0
mov dword [esp + 0x54], vtable.CryptoPP::DERGeneralEncoder.0
mov dword [esp + 0x78], ecx
mov byte [esp + 0x7c], 0
mov byte [esp + 0x7d], bl
mov ebx, 1
mov byte [esp + 0x90], bl
cmp byte [esp + 0x3d], 0
je 0x1004bbc5
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
push ebx
push 0x10093b98
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov edx, esi
push edx
mov edx, dword [eax + 0x7c]
mov ecx, edi
call edx
mov eax, dword [esp + 0x44]
cmp byte [esp + 0x3d], 0
mov byte [esp + 0x3c], bl
je 0x1004bc10
or eax, dword [esp + 0x48]
je 0x1004bc2f
call fcn.100306e0
nop
cmp byte [esp + 0x3d], 0
je 0x1004bbc5
mov eax, dword [esp + 0x44]
mov ecx, eax
or ecx, dword [esp + 0x48]
je 0x1004bb95
jmp 0x1004bbfc
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx + 0x4c]
push 2
lea eax, [esp + 0x18]
push eax
mov word [esp + 0x1c], 0
call edx
movzx ecx, byte [esp + 0x14]
movzx edx, byte [esp + 0x15]
shl cx, 8
or cx, dx
movzx ecx, cx
cmp eax, 2
jne 0x1004bbfc
test cx, cx
je 0x1004bb91
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.1004bac0
add esp, 8
jmp 0x1004bbb0
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
call fcn.1002d2f0
cmp eax, 2
jne 0x1004bbaa
cmp word [esp + 0x14], 0
jne 0x1004bbaa
lea edi, [esp + 0x50]
call fcn.1004c2d0
mov eax, edi
push eax
mov byte [esp + 0x94], 0
call fcn.1004c240
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x94], 0xffffffff
call fcn.1004c0d0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1005c755
mov esp, ebp
pop ebp
ret
Function at 0x1004d250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100726e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.100308c0
push 0x1bb8d
push eax
mov dword [esp + 0x30], 0
call fcn.10030790
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x1004d2ae
push eax
call fcn.1005ce05
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret

Function at 0x1004d2d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100726e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.1004d250
push 1
push eax
mov dword [esp + 0x30], 0
call fcn.10030790
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x1004d32b
push eax
call fcn.1005ce05
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret

Function at 0x1004d340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100726e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.1004d2d0
push 1
push eax
mov dword [esp + 0x30], 0
call fcn.10030790
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x1004d39b
push eax
call fcn.1005ce05
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret

Function at 0x1004d3b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10072ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.1004d340
push 1
push eax
mov dword [esp + 0x30], 0
call fcn.10030790
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x1004d411
push eax
call fcn.1005ce05
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10050700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10072146
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
mov edi, ecx
xor ebp, ebp
mov dword [ebx + 0x20], ebp
mov al, byte [edi + 0xc]
mov byte [ebx + 0xc], al
mov ecx, dword [edi + 0x10]
push 0x18
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov dword [ebx + 0x10], ecx
call fcn.1005ce85
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], ebp
cmp esi, ebp
je 0x100507b0
mov ebp, dword [edi + 0x14]
mov edx, dword [ebp]
mov dword [esi], edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jbe 0x1005077e
call fcn.100042d0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1005078d
mov edi, eax
call fcn.1002e1d0
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 8]
push ecx
mov dword [esi + 0xc], eax
mov edx, dword [ebp + 0xc]
push edx
push ecx
push eax
call fcn.1005ce10
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x14]
add esp, 0x10
mov dword [esi + 0x14], ecx
jmp 0x100507b2
xor esi, esi
mov dword [esp + 0x38], 0xffffffff
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], esi
mov edx, dword [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x10050887
push 0x18
call fcn.1005ce85
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], 1
test edi, edi
je 0x10050862
mov eax, dword [esi]
mov dword [edi], eax
mov ebp, dword [esi + 8]
mov dword [edi + 8], ebp
cmp ebp, 0xffffffff
jbe 0x100507fd
call fcn.100042d0
test ebp, ebp
jne 0x10050805
xor eax, eax
jmp 0x1005083f
push ebp
call fcn.1005d036
add esp, 4
test eax, eax
jne 0x1005083f
push 0
call fcn.1005c4c4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100508bb
push ebx
call fcn.1005c4c4
call ebx
push ebp
call fcn.1005d036
add esp, 8
test eax, eax
je 0x10050812
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
push ecx
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0xc]
push edx
push ecx
push eax
call fcn.1005ce10
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x14]
add esp, 0x10
mov dword [edi + 0x14], ecx
jmp 0x10050864
xor edi, edi
mov dword [esp + 0x38], 0xffffffff
mov edx, dword [ebx + 0x18]
mov dword [edx], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
mov dword [ebx + 0x18], ecx
mov esi, dword [esi]
test esi, esi
jne 0x100507cd
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x18]
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
push 1
push 0
push eax
push ecx
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
push 1
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], str.bad_allocation
call fcn.1005c775
push 0x1008692c
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.std::bad_alloc.0
call fcn.1005dc27
int3
Function at 0x10050d60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10072a50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1008d200]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx]
push 1
push 0x10093b98
mov dword [esp + 0x28], edx
xor edx, edx
push edx
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
push eax
mov eax, dword [esi + 0x80]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.1.0
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1005c755
mov esp, ebp
pop ebp
ret 8

Function at 0x10051850
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0xffffffffffffffff
push 0x10072688
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1008d200]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
call fcn.10051b40
mov ecx, dword [esp + 0x68]
mov eax, dword [eax]
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x100518dd
push 0xe
push 0x1007e560
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
call fcn.10003c60
lea ecx, [esp + 8]
lea esi, [esp + 0x24]
mov dword [esp + 0x5c], 0
call fcn.10051550
push 0x10086b58
mov edx, esi
push edx
call fcn.1005dc27
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1005c755
add esp, 0x58
ret 8
Function at 0x10054700
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007261b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x1008d200]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edi, [esp + 0x7c]
neg edi
mov ebx, ecx
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, 0x10
and edi, 0xf
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea edi, [esp + edi + 0x7c]
mov dword [esp + 0x74], ecx
mov al, 1
mov dword [esp + 0xcc], ecx
lea edx, [esp + 0x2c]
mov ecx, 8
mov esi, 0x1007e5ac
mov byte [esp + 0x6d], al
mov dword [esp + 0x78], edx
mov byte [esp + 0xc5], al
mov dword [esp + 0x14], edi
mov dword [esp + 0xd0], edi
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], vtable.CryptoPP::SHA256.0
mov dword [esp + 0xe8], 2
mov eax, dword [ebx + 0x34]
push 0x20
push eax
lea ecx, [esp + 0x24]
call fcn.100376c0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.100376c0
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x34]
lea edi, [eax + 0x38]
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x1c]
call eax
mov edx, dword [edi]
push eax
push esi
lea ecx, [esp + 0x24]
call edx
mov edi, dword [esp + 0xd0]
mov byte [ebx + 0x5c], 0
cmp edi, dword [esp + 0x14]
jne 0x10054809
mov ecx, dword [esp + 0xcc]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x2c]
cmp edi, eax
jne 0x1005481d
mov ecx, dword [esp + 0x74]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.1005c755
mov esp, ebp
pop ebp
ret 8
Function at 0x1005c755
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008d200]
jne 0x1005c75f
repz ret
jmp fcn.1005f634

Function at 0x10066727
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x1006671a
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x10066714
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10066705
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.100664c0
dec ebx
and al, 0x4e
jp 0x100666f6
inc ebp
test al, 0x50
call fcn.100664d0
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10066485
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x100667ae
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
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.100664c0
shr byte [ebx + 0x5a], cl
cmp dword [ebp - 0x17af3fbb], ecx
invalid
Function at 0x10068e7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008d200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10061f86
and dword [ebp - 0x14], 0
cmp dword [0x100976a8], 0
mov dword [ebp - 0x18], eax
jne 0x10068f2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10068fd7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10068fd7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100976a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100976ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100976b0], eax
call edi
push eax
call esi
mov dword [0x100976b8], eax
test eax, eax
je 0x10068f2f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100976b4], eax
mov eax, dword [0x100976b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10068f88
cmp dword [0x100976b8], ecx
je 0x10068f88
push eax
call esi
push dword [0x100976b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10068f88
test ebx, ebx
je 0x10068f88
call edi
test eax, eax
je 0x10068f7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10068f7f
test byte [ebp - 8], 1
jne 0x10068f88
or dword [ebp + 0x10], 0x200000
jmp 0x10068fbb
mov eax, dword [0x100976ac]
cmp eax, dword [ebp - 0x18]
je 0x10068fbb
push eax
call esi
test eax, eax
je 0x10068fbb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10068fbb
mov eax, dword [0x100976b0]
cmp eax, dword [ebp - 0x18]
je 0x10068fbb
push eax
call esi
test eax, eax
je 0x10068fbb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100976a8]
call esi
test eax, eax
je 0x10068fd7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10068fd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c755
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401d40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401d8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d84
test esi, esi
je 0x401d84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d60
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402098
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401ffe
cmp eax, 4
jne 0x402020
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40200e
cmp edx, 4
je 0x40200e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f70