joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ab20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474f23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00466cd1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046c441
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046d999
test eax, eax
je 0x43ac3c
mov ecx, dword [esp + 0x3c]
call fcn.0046c46e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43ac00
push edi
mov ecx, esi
call fcn.00469a31
mov ecx, esi
call fcn.0043ada0
cmp dword [esp + 0x38], 1
jne 0x43ac35
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00469b9b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d670
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d6a3
push esi
call fcn.00440760
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d69c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d729
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d712
mov eax, dword [esi + 8]
test eax, eax
je 0x43d6c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d70e
cmp eax, 2
je 0x43d712
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d6ba
cmp eax, 3
je 0x43d6ed
cmp eax, 1
jne 0x43d6ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d6ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d6ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d750
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d738
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d750
add esp, 4
pop esi
ret

Function at 0x4492a0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x449343
test eax, eax
jbe 0x449343
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x449343
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4492ee
xor esi, esi
jmp 0x4492f4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44931f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00405300
add esi, eax
push esi
mov ebx, esi
call fcn.00405300
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x449300
pop ebp
test edi, edi
pop edi
jne 0x449343
test ebx, ebx
je 0x449343
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004564a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x449485
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44959d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44959d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00467123
mov esi, eax
test esi, esi
je 0x44959d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44959d
mov ecx, esi
call fcn.004493f0
cmp edi, eax
jge 0x44959d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x449523
mov dword [esp + 0x34], 1
jmp 0x44957e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44959d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004489b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x467ac7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x467aff
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00465b7b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00465b53
jmp 0x467b0b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4691b5
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 0x4691f7
call fcn.0046ee9b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4691f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4691ee
xor eax, eax
jmp 0x4691ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469205
pop edi
pop esi
pop ebx
ret 4
Function at 0x46f3cb
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 0x46f3f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46f417
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046f331
jmp 0x46f417
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46f417
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046f331
test edi, edi
mov eax, edi
jne 0x46f401
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x8a31b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.008a3140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.008a3140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.008a3140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.008a3140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x8a3bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8a3c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x8b587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8a3c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x8a3c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x101884a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1003210
call fcn.01018ac0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1018887
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1018887
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x101889f
cmp eax, 0x20b
je 0x101888c
mov dword [ebp - 0x1c], ebx
jmp 0x10188b3
cmp dword [ecx + 0x84], 0xe
jbe 0x1018887
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10188ad
cmp dword [ecx + 0x74], 0xe
jbe 0x1018887
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x104af40], 0xffffffff
or dword [0x104af44], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x104945c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1049458]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x104af3c], eax
call fcn.01018ab8
cmp dword [0x1048630], ebx
jne 0x101890e
push fcn.01018ab8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01018aa1
push 0x1048030
push 0x104802c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1049454]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1049450]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1048028
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10189a4
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1018978
cmp al, 0x22
jne 0x101896a
cmp byte [esi], 0x22
jne 0x1018981
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x101898b
cmp al, 0x20
jbe 0x101897d
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x10189af
movzx eax, word [ebp - 0x50]
jmp 0x10189b2
cmp byte [esi], 0x20
jbe 0x1018981
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10189a4
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10189cf
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1018a04
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01018afb
ret
Function at 0x1042c06
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
je 0x1042cef
mov edi, dword [ebp + 8]
test edi, edi
je 0x1042cef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x104ae58]
mov ebx, 0x104ae4c
cmp eax, 0xea60
jae 0x1042c5a
push edi
push ebx
call fcn.01043959
test al, al
je 0x1042c5a
mov eax, dword [0x104ae48]
mov dword [esi], eax
jmp 0x1042cf6
push esi
push edi
push 0x100dd60
push 0x80000002
call fcn.01042ae3
cmp eax, 3
je 0x1042c75
cmp eax, 2
jne 0x1042c99
push esi
push edi
push 0x100dcf0
push 0x80000001
call fcn.01042ae3
cmp eax, 3
je 0x1042c90
cmp eax, 2
jne 0x1042c99
mov dword [ebp - 4], 0xc00d0fda
xor eax, eax
test eax, eax
je 0x1042cac
jle 0x1042ca9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x1042cf6
push edi
call fcn.0101b883
cmp eax, 5
jae 0x1042cf6
push 5
push ebx
lea ecx, [ebp - 0x10]
call fcn.01043a34
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x10]
call fcn.01043fb2
mov eax, dword [esi]
mov dword [0x104ae48], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x104ae58], eax
call fcn.01043f5e
jmp 0x1042cf6
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1042d8a
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1042e65
cmp dword [ebp + 8], 0
je 0x1042e65
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, 0xea60
cmp eax, dword [0x104ae6c]
mov esi, 0x104ae60
jae 0x1042de1
push dword [ebp + 8]
push esi
call fcn.01043959
test al, al
je 0x1042de1
mov eax, dword [0x104ae5c]
mov dword [edi], eax
jmp 0x1042e6c
push edi
push dword [ebp + 8]
push 0x100dd60
push 0x80000002
call fcn.01042d05
cmp eax, 3
je 0x1042dfe
cmp eax, 2
jne 0x1042e11
push edi
push dword [ebp + 8]
push 0x100dcf0
push 0x80000001
call fcn.01042d05
test eax, eax
je 0x1042e28
jle 0x1042e21
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 4], eax
jl 0x1042e6c
push dword [ebp + 8]
call fcn.0101b883
cmp eax, 5
jae 0x1042e6c
push 5
push esi
lea ecx, [ebp - 0x10]
call fcn.01043a34
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.01043fb2
mov eax, dword [edi]
mov dword [0x104ae5c], eax
call ebx
lea ecx, [ebp - 0x10]
mov dword [0x104ae6c], eax
call fcn.01043f5e
jmp 0x1042e6c
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

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 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443008]
jne 0x40100a
repz ret
jmp fcn.004018a6

Function at 0x40621b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402426
and dword [ebp - 4], 0
cmp dword [0x446ed4], 0
mov ebx, eax
jne 0x4062cc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40637d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40637d
push eax
call fcn.004023b4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x446ed4], eax
call esi
push eax
call fcn.004023b4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x446ed8], eax
call esi
push eax
call fcn.004023b4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x446edc], eax
call esi
push eax
call fcn.004023b4
pop ecx
mov dword [0x446ee4], eax
test eax, eax
je 0x4062cc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004023b4
pop ecx
mov dword [0x446ee0], eax
mov eax, dword [0x446ee0]
cmp eax, ebx
je 0x406324
cmp dword [0x446ee4], ebx
je 0x406324
push eax
call fcn.0040242f
push dword [0x446ee4]
mov esi, eax
call fcn.0040242f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406324
test edi, edi
je 0x406324
call esi
test eax, eax
je 0x40631b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40631b
test byte [ebp - 0xc], 1
jne 0x406324
or dword [ebp + 0x10], 0x200000
jmp 0x40635d
mov eax, dword [0x446ed8]
cmp eax, ebx
je 0x40635d
push eax
call fcn.0040242f
pop ecx
test eax, eax
je 0x40635d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40635d
mov eax, dword [0x446edc]
cmp eax, ebx
je 0x40635d
push eax
call fcn.0040242f
pop ecx
test eax, eax
je 0x40635d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446ed4]
call fcn.0040242f
pop ecx
test eax, eax
je 0x40637d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40637f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40746f
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1bbd3d4], 0x930
jne 0x40748c
push 0x4418b4
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x1bbd3d4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bbd218], eax
jne 0x4074ac
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
leave
ret

Function at 0x4074b6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor edx, edx
cmp dword [ebp + 0xc], edx
jle 0x4074ef
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
call fcn.004074ae
mov eax, dword [ebp - 8]
add eax, 0x64
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x64
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edx
xor byte [eax], cl
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x4074c2
cmp dword [ebp + 0xc], 0x2d
jne 0x407506
or dword [0x1bbd50c], 0xffffffff
mov dword [0x1bbd508], 0xa62e7790
leave
ret
Function at 0x401a46
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x401af3
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi - 1]
cmp ecx, 0x63fffff
ja 0x401ae9
push ebx
push edi
mov ecx, esi
call fcn.0040214b
cmp dword [esi + 0x10], edi
jne 0x401ae1
test edi, edi
je 0x401ae9
and dword [ebp - 4], 0
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x401ab2
mov ecx, dword [esi]
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401add
cmp dword [ebp - 4], 0
je 0x401add
add ebx, dword [ebp - 4]
cmp ebx, edi
jb 0x401aa4
jmp 0x401ae9
push 0
jmp 0x401ae2
push ebx
mov ecx, esi
call fcn.00402177
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x404a24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x20c]
push edi
xor esi, esi
push esi
push eax
call fcn.0041a810
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0041a810
add esp, 0xc
lea eax, [ebp - 0x20c]
push str...XLBugHandler.dll
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x404b12
cmp dword [0x44e014], esi
jne 0x404b12
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push edi
call esi
push str._XL_SetPeerID_4
push edi
mov dword [0x44e010], eax
call esi
push str._XL_InitBugHandler_20
push edi
mov dword [0x44e008], eax
call esi
push str._XL_SetReportShowMode_4
push edi
mov dword [0x44e01c], eax
call esi
push str._XL_AddCrashProcess_12
push edi
mov dword [0x44e00c], eax
call esi
push str._XL_RemoveCrashProcess_4
push edi
call esi
push str._XL_SetAlwaysSendReport_4
push edi
call esi
push str._XL_SetCustomInfo_4
push edi
mov dword [0x44e018], eax
call esi
mov dword [0x44e014], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00418ae7
leave
ret

Function at 0x404c02
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
push eax
lea ecx, [ebp - 0x22c]
call fcn.00402126
push edi
lea ecx, [ebp - 0x22c]
call fcn.004062cc
push esi
push 0x4478dc
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0040656b
add esp, 0x10
lea eax, [ebp - 0x214]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push 0
cmovae eax, dword [ebp - 0x22c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x22c]
mov esi, eax
call fcn.004021e1
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00418ae7
leave
ret