joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425fe4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fsubr st(1)
invalid
sub ecx, eax
mov dword [ebp - 0x54c], ecx
call fcn.0042498f
das
ja 0x425fb3
jae 0x426060
add al, 0x8b
test dword [eax - 0x74000004], ecx
dec ebp
cld
lea eax, [ecx + eax - 8]
push eax
lea eax, [ebp - 0x684]
push eax
call fcn.00424900
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0x684]
sub ecx, eax
mov dword [ebp - 0x684], ecx
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 4]
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.00424900
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0x678]
sub ecx, eax
mov dword [ebp - 0x678], ecx
push 4
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x678]
push eax
lea eax, [ebp - 0x38c]
push eax
call fcn.00424900
add esp, 0xc
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x678]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x3ac], eax
push 4
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.00424900
pushal
call 0xc4c660a1
or al, 0x8b
test dword [eax - 0x74000007], ecx
dec ebp
cld
invalid
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x748], eax
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x6f8], eax
and dword [ebp - 0x700], 0
jmp 0x4260df
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x38c]
jae 0x426131
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x4260d2
and dword [ebp - 0x700], 0
jmp 0x426147
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x688]
jae 0x426199
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x42613a
and byte [ebp - 0x714], 0
and byte [ebp - 0x713], 0
mov byte [ebp - 0x712], 0x71
and byte [ebp - 0x711], 0
mov byte [ebp - 0x710], 0xc8
mov byte [ebp - 0x70f], 0xe2
mov byte [ebp - 0x70e], 0xe1
mov byte [ebp - 0x70d], 0xe1
mov byte [ebp - 0x70c], 0xea
mov byte [ebp - 0x70b], 0xc8
mov byte [ebp - 0x70a], 0xe7
mov byte [ebp - 0x709], 0xf6
mov byte [ebp - 0x708], 0xbc
mov byte [ebp - 0x707], 0x8e
call fcn.0042498f
sbb byte [edi + 0x3d], bh
xchg ebp, eax
and byte [ebp - 0x744], 0
and byte [ebp - 0x743], 0
mov byte [ebp - 0x742], 2
and byte [ebp - 0x741], 0
invalid
invalid
Function at 0x426b30
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
in al, dx
add ebp, 0x24
push esp
call fcn.0042498f
pop ecx
inc edx
aad 0xc0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
add byte [eax], al
add byte [ebx + 0x708b0c40], cl
sbb al, 0xad
cmp byte [eax + 0x1c], 0x18
je 0x426b53
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0042498f
cmpsb byte [esi], byte es:[edi]
add edi, dword [eax + 0x1b]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.0042498f
jge 0x426b41
invalid
Function at 0x401a70
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 8
push esi
mov esi, ecx
lea eax, [esp + 4]
mov dword [esp + 4], 0x200
lea ecx, [esi + 0x118]
push eax
push ecx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 8]
lea eax, [esi + 0x318]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [esi + 0x328]
push ecx
call fcn.0040a7b8
lea edx, [esi + 0xd8]
push edx
call fcn.0040a73f
add esi, 0xd0
push esi
call fcn.0040a663
add esp, 0xc
pop esi
add esp, 8
ret

Function at 0x401bf0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4226e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00401ce0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push eax
call fcn.004180ae
push 0x42d2e0
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.00418583
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
mov ecx, esi
call fcn.00401ae0
mov ecx, esi
mov byte [esp + 0x18], 1
call fcn.00401de0
mov esi, eax
test esi, esi
jne 0x401c89
lea ecx, [esp + 8]
mov byte [esp + 0x18], al
call fcn.00418339
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00418339
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.00418339
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00418339
mov ecx, dword [esp + 0x10]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x401ce0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
mov ebx, ecx
push 0x80
push 3
mov eax, dword [ebx + 0xcc]
push 0
push 0
push 0xc0000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x401dc8
mov eax, dword [ebx + 0xcc]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x401dcf
push 0x800
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0xc], eax
je 0x401dc0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
call fcn.0041f669
mov eax, dword [eax + 8]
mov ebp, dword [sym.imp.USER32.dll_LoadStringA]
push 0x800
push esi
push 5
push eax
call ebp
test eax, eax
je 0x401d8d
lea eax, [esp + 0x14]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.0041f669
mov eax, dword [eax + 8]
push 0x800
push esi
push 6
push eax
call ebp
test eax, eax
pop ebp
je 0x401dbc
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
push eax
mov ecx, ebx
call fcn.00402190
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x402290
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push edi
mov edi, dword [esp + 0x10c]
push 0
push edi
call fcn.00409f9b
add esp, 8
test eax, eax
jne 0x4022ba
mov eax, 1
pop edi
add esp, 0x104
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
sub edi, ecx
push ebp
push esi
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor esi, esi
mov ebp, ecx
cmp ebp, 2
jl 0x402340
cmp byte [esp + 0x10], 0x5c
jne 0x402340
cmp byte [esp + 0x11], 0x5c
jne 0x402340
lea ecx, [esp + 0x12]
push 0x5c
push ecx
call fcn.0040ab30
add esp, 8
test eax, eax
je 0x402340
inc eax
push 0x5c
push eax
call fcn.0040ab30
mov edx, eax
add esp, 8
test edx, edx
je 0x402340
mov bl, byte [edx]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx], bl
mov esi, ecx
inc esi
cmp esi, ebp
jge 0x4023a1
mov ebx, dword [esp + 0x120]
mov edi, dword [esp + 0x11c]
cmp byte [esp + esi + 0x10], 0x5c
jne 0x40239c
lea edx, [esp + 0x10]
push 0
push edx
mov byte [esp + esi + 0x18], 0
call fcn.00409f9b
add esp, 8
test eax, eax
je 0x402397
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402397
test edi, edi
je 0x402397
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004021b0
add esp, 0xc
mov byte [esp + esi + 0x10], 0x5c
inc esi
cmp esi, ebp
jl 0x402352
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x104
ret

Function at 0x409f9b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409fbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ad97
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x409fde
test byte [esp + 8], 2
je 0x409fde
call fcn.0040ae0a
mov dword [eax], 0xd
call fcn.0040ae13
mov dword [eax], 5
jmp 0x409fb7
xor eax, eax
ret
Function at 0x40ec05
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e4c8
cmp edx, dword [eax]
je 0x40ec27
add eax, 8
inc ecx
cmp eax, 0x42e558
jl 0x40ec18
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e4c8]
jne 0x40ed55
mov eax, dword [0x4314f0]
cmp eax, 1
je 0x40ed2f
test eax, eax
jne 0x40ec58
cmp dword [0x42dfe4], 1
je 0x40ed2f
cmp edx, 0xfc
je 0x40ed55
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ec8f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d560
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b830
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ecd2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b830
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426a10
push edi
call fcn.0040aa20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d560
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d570
lea eax, [ebp - 0xa0]
push 0x4269f0
push eax
call fcn.0040d570
push dword [esi + 0x42e4cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d570
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410ad9
add esp, 0x2c
pop edi
jmp 0x40ed55
lea eax, [ebp + 8]
lea esi, [esi + 0x42e4cc]
push 0
push eax
push dword [esi]
call fcn.0040b830
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 0x416390
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040aeb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41645b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41645b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41640e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416419
or bh, 8
and edi, 0x8000000
je 0x416434
mov eax, dword [0x432c7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41645b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41685b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41687f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41689a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41bce3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41bd25
call fcn.0041f669
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41bd25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41bd1c
xor eax, eax
jmp 0x41bd2d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041bd33
pop edi
pop esi
pop ebx
ret 4

Function at 0x41cc3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4231dc
call fcn.0040ad78
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041f669
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41cc7d
call fcn.0041f669
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41cc8b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41cc99
or eax, 0xffffffff
jmp 0x41cd81
mov ecx, esi
call fcn.0041cbb4
mov dword [ebp - 0x14], eax
call fcn.0041a329
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41ccd0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41ccd0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041a2dd
push dword [ebp - 0x14]
call fcn.00419e2a
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041c94c
cmp eax, edi
je 0x41cd43
test byte [esi + 0x24], 0x10
je 0x41cd11
push 4
mov ecx, esi
pop ebx
call fcn.00419688
test ah, 1
je 0x41cd09
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041be35
cmp dword [esi + 0x1c], edi
je 0x41cd43
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041976e
jmp 0x41cd43
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41cd57
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41cd70
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41cd70
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041cbee
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41fb56
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41fb84
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41fba2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041fabc
jmp 0x41fba2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41fba2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041fabc
test edi, edi
mov eax, edi
jne 0x41fb8c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ea0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4c8a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x517748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004beccd
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 byte [ebp - 4], 6
test edi, edi
jne 0x401f46
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x4fe590
push eax
lea ecx, [ebp - 0x24]
call fcn.004c1058
push 0x515330
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004c5b8b
push edi
push esi
call fcn.004bea22
add esp, 8
mov eax, esi
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.004c0564
mov esp, ebp
pop ebp
ret 4

Function at 0x4024f0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f4d18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x517748]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004017f0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00402420
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x402561
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.004c1058
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40258a
push dword [esp + 0xc]
call fcn.00440f10
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x66bad1], 0
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jne 0x402bc1
push 0
push 0
push 0
push 0x402a60
push 0
push 0
mov byte [0x66bad1], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ebx, dword [ebp + 0x10]
xor edx, edx
push esi
push edi
mov edi, ebx
mov ecx, 0xa
shr edi, 0x10
mov eax, edi
shr ebx, 8
div ecx
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea eax, [edx + eax*2]
mov ecx, eax
xor ecx, edx
inc ecx
lea eax, [ecx + eax*2]
mov edx, eax
xor edx, ecx
add edx, 2
lea eax, [edx + eax*2]
mov esi, eax
xor esi, edx
add esi, 3
lea ecx, [esi + eax*2]
mov eax, ecx
lea edx, [ecx + 2]
xor eax, esi
mov cl, bl
lea edx, [eax + edx*2]
shr edx, 0x10
xor cl, dl
add cl, 0x10
mov al, cl
xor al, dl
xor edx, edx
add al, 0x10
xor al, cl
add al, 0x10
xor al, cl
mov ecx, dword [ebp - 4]
add al, 0x10
xor byte [ecx], al
mov ecx, 0x14
mov eax, edi
div ecx
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea eax, [edx + eax*2]
mov ecx, eax
xor ecx, edx
inc ecx
lea eax, [ecx + eax*2]
mov edx, eax
xor edx, ecx
add edx, 2
lea eax, [edx + eax*2]
mov esi, eax
xor esi, edx
add esi, 3
lea ecx, [esi + eax*2]
mov eax, ecx
add ecx, 2
xor eax, esi
lea ecx, [eax + ecx*2]
mov al, bl
xor al, cl
add al, 0x10
xor cl, al
add cl, 0x10
xor cl, al
add cl, 0x10
xor cl, al
add cl, 0x10
mov eax, dword [ebp + 8]
xor edx, edx
xor byte [eax], cl
mov eax, edi
mov ecx, 0x1e
div ecx
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea eax, [edx + eax*2]
mov ecx, eax
xor ecx, edx
inc ecx
lea eax, [ecx + eax*2]
mov edx, eax
xor edx, ecx
add edx, 2
lea eax, [edx + eax*2]
mov esi, eax
xor esi, edx
mov dl, bl
add esi, 3
lea ecx, [esi + eax*2]
mov eax, ecx
xor eax, esi
lea eax, [eax + ecx*2]
add eax, 4
shr eax, 8
xor dl, al
add dl, 0x10
mov cl, dl
xor cl, al
mov eax, dword [ebp - 8]
add cl, 0x10
xor cl, dl
add cl, 0x10
xor cl, dl
xor edx, edx
add cl, 0x10
xor byte [eax], cl
mov eax, edi
mov ecx, 0x28
div ecx
pop edi
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea eax, [edx + eax*2]
mov ecx, eax
xor ecx, edx
inc ecx
lea eax, [ecx + eax*2]
mov edx, eax
xor edx, ecx
add edx, 2
lea eax, [edx + eax*2]
mov esi, eax
xor esi, edx
add esi, 3
lea ecx, [esi + eax*2]
mov eax, ecx
xor eax, esi
pop esi
lea eax, [eax + ecx*2]
add eax, 4
shr eax, 0x18
xor bl, al
add bl, 0x10
mov cl, bl
xor cl, al
mov eax, dword [ebp + 0xc]
add cl, 0x10
xor cl, bl
add cl, 0x10
xor cl, bl
add cl, 0x10
xor byte [eax], cl
pop ebx
mov esp, ebp
pop ebp
ret