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

Disassembly:
push dword [ebp + 0x14]
call fcn.00401cac
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x403d88
jmp 0x403d8d
jmp 0x403689
cmp dword [ebp - 0x37c], 0
jne 0x403e37
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401ec3
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x403e23
lea eax, [ebp - 0x714]
push eax
call fcn.00401cf7
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.00401d8c
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404100
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48b04c], 0
je 0x404161
cmp word [0x48b220], 0xd7b2
jne 0x404129
cmp dword [0x48b228], 0
jbe 0x404129
mov eax, 0x48b21c
call dword [0x48b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x489054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404188
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48901c], 0
jne 0x40417d
push 0
push 0x489074
push 0x489054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b1f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b231
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404374
jmp 0x40b23a
mov eax, ebx
mov edx, esi
call fcn.004042d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b244
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b265
mov al, byte [esp]
jmp 0x40b267
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c5a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c60c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e04
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c613
lea eax, [ebp - 0xc]
call fcn.00404284
ret

Function at 0x423170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48ba24
cmp dword [edi], 0
jne 0x4231ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48ba20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4895e4
mov ecx, 2
call fcn.004028fc
mov edx, 0x423148
lea eax, [esi + 5]
call fcn.00423168
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423168
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4231c1
mov dword [0x48ba20], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4246f8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4246fe
ret
Function at 0x426ce4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x426d35
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426d1c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426d0c
jmp 0x426d35
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x426d1d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438160
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404734
xor eax, eax
push ebp
push 0x43828e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x438261
xor eax, eax
push ebp
push 0x43825a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040454c
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43822f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x43821e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040454c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404744
mov edx, ebx
pop ecx
call fcn.004028fc
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438225
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x48a290]
mov dl, 1
mov eax, dword [0x407c1c]
call fcn.0040ba60
call fcn.00403cc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438295
lea eax, [ebp - 4]
call fcn.00404284
ret
Function at 0x458234
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45826c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45824d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45825c
or bl, 4
test esi, 0x20000000
je 0x458267
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45ef0c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f0b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45f098
mov dl, 1
mov eax, dword [0x41810c]
call fcn.004034c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404284
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45f087
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044bc18
test al, al
je 0x45f07a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45f0c8
lea eax, [ebp - 0x254]
call fcn.00409898
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45f07a
xor eax, eax
push ebp
push 0x45f073
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45f100
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45f05c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044fc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45f05c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f07a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ef7d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c6bc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f0be
lea eax, [ebp - 0x260]
call fcn.00404284
ret
Function at 0x45f9ec
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x48bc38]
cmp byte [eax + 0xa5], 0
jne 0x45fa5d
cmp dword [0x48bc50], 0
jne 0x45fa1e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45f9a8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48bc50], eax
cmp dword [0x48bc4c], 0
jne 0x45fa39
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48bc4c], eax
cmp dword [0x48bc54], 0
jne 0x45fa5d
push esp
push 0
push 0
push 0x45f94c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48bc54], eax
pop edx
ret
Function at 0x465c34
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x465c90
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x465c5f
call fcn.0040ccbc
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.004028fc
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x465c90
call fcn.0040ccbc
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x47f028
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404284
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x47f077
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044fc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x483c7c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
xor ecx, ecx
push ebp
push 0x483da8
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x483d97
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
dec ecx
je 0x483d3d
dec ecx
jne 0x483d8e
cmp eax, 4
jg 0x483ce8
mov dword [ebp - 4], 4
jmp 0x483d9e
cmp eax, 5
jne 0x483cfd
test edx, edx
jne 0x483cfd
mov dword [ebp - 4], 5
jmp 0x483d9e
cmp eax, 5
jne 0x483d13
cmp edx, 1
jne 0x483d13
mov dword [ebp - 4], 6
jmp 0x483d9e
cmp eax, 5
jne 0x483d26
cmp edx, 2
jne 0x483d26
mov dword [ebp - 4], 6
jmp 0x483d9e
cmp eax, 6
jl 0x483d34
mov dword [ebp - 4], 7
jmp 0x483d9e
mov dword [ebp - 4], 0xffffffff
jmp 0x483d9e
cmp eax, 4
jne 0x483d4d
test edx, edx
jne 0x483d4d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x483d9e
cmp eax, 4
jne 0x483d72
cmp edx, 0xa
jne 0x483d72
cmp byte [ebp - 0x83], 0x41
jne 0x483d69
mov dword [ebp - 4], 2
jmp 0x483d9e
mov dword [ebp - 4], 1
jmp 0x483d9e
cmp eax, 4
jne 0x483d85
cmp edx, 0x5a
jne 0x483d85
mov dword [ebp - 4], 3
jmp 0x483d9e
mov dword [ebp - 4], 0xffffffff
jmp 0x483d9e
mov dword [ebp - 4], 0xffffffff
jmp 0x483d9e
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x483db2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485944
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x48598c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
push ebx
or ecx, 0xffffffff
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.00418c9c
push 0
push 0x48599c
call sub.user32.dll_FindWindowA
test eax, eax
je 0x485982
push ebx
push eax
call sub.user32.dll_GetWindowRect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x485996
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401420
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
test ch, bh
add eax, 0x788b0000
cmp al, 3
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.00401229
sub byte [ebp - 0x61], ch
inc ebx
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.00401229
sbb dword [edx], esi
mov esp, 0x478b66f2
push es
cmp ax, bx
jbe 0x401483
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 0x40147d
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x40146e
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.00401229
mov ebx, dword [esi]
invalid
Function at 0x10010fc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push 0x94
lea eax, [esp + 8]
push 0
push eax
call fcn.10028b90
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x94
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100110cb
mov eax, dword [esp + 0x14]
sub eax, esi
je 0x100110c6
sub eax, 1
je 0x10011087
sub eax, 1
jne 0x100110cb
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x1001102a
mov esi, 5
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 5
jne 0x10011073
mov eax, dword [esp + 0xc]
sub eax, 0
je 0x10011064
sub eax, 1
je 0x10011055
sub eax, 1
jne 0x100110cb
mov esi, 8
mov eax, esi
pop esi
add esp, 0x94
ret
mov esi, 7
mov eax, esi
pop esi
add esp, 0x94
ret
mov esi, 6
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 6
jb 0x100110cb
mov esi, 9
mov eax, esi
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100110b7
cmp eax, 0xa
je 0x100110a8
cmp eax, 0x5a
jne 0x100110cb
mov esi, 4
mov eax, esi
pop esi
add esp, 0x94
ret
mov esi, 3
mov eax, esi
pop esi
add esp, 0x94
ret
mov esi, 2
mov eax, esi
pop esi
add esp, 0x94
ret
mov esi, 1
mov eax, esi
pop esi
add esp, 0x94
ret
Function at 0x10023709
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1004eaa8]
je 0x10023724
inc edi
cmp edi, 0x17
jb 0x10023715
cmp edi, 0x17
jae 0x100238a4
push ebp
push 3
call fcn.1003a8f2
cmp eax, 1
pop ecx
je 0x10023870
push 3
call fcn.1003a8f2
test eax, eax
pop ecx
jne 0x10023758
cmp dword [0x1004ffb4], 1
je 0x10023870
cmp ebx, 0xfc
je 0x100238a3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10050070
push ebp
call fcn.10027ee4
add esp, 0xc
test eax, eax
je 0x1002378e
push esi
push esi
push esi
push esi
push esi
call fcn.1001fbe8
add esp, 0x14
push 0x104
mov esi, 0x10050089
push esi
push 0
mov byte [0x1005018d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100237d2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10027ee4
add esp, 0xc
test eax, eax
je 0x100237d2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001fbe8
add esp, 0x14
push esi
call fcn.10022310
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10023817
push esi
call fcn.10022310
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10050384
push 0x10044a7c
sub ecx, eax
push ecx
push eax
call fcn.1002af86
add esp, 0x14
test eax, eax
je 0x10023817
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1001fbe8
add esp, 0x14
jmp 0x10023819
xor esi, esi
push 0x10044a78
push ebx
push ebp
call fcn.1002aec7
add esp, 0xc
test eax, eax
je 0x10023839
push esi
push esi
push esi
push esi
push esi
call fcn.1001fbe8
add esp, 0x14
push dword [edi*8 + 0x1004eaac]
push ebx
push ebp
call fcn.1002aec7
add esp, 0xc
test eax, eax
je 0x1002385b
push esi
push esi
push esi
push esi
push esi
call fcn.1001fbe8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1003a735
add esp, 0xc
jmp 0x100238a3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100238a3
cmp ebp, 0xffffffff
je 0x100238a3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1004eaac]
push dword [esi]
call fcn.10022310
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10028348
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004ea48]
jne 0x10028352
repz ret
jmp fcn.1003b715
Function at 0x1003a735
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001f653
xor ebx, ebx
cmp dword [0x10050660], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1003a80b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003a8eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1003a8eb
push eax
call fcn.1001f5e5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10050660], eax
call esi
push eax
call fcn.1001f5e5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10050664], eax
call esi
push eax
call fcn.1001f5e5
mov dword [0x10050668], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1001ff0b
test eax, eax
pop ecx
pop ecx
je 0x1003a7d9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001fbe8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1003a80b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1001f5e5
cmp eax, ebx
pop ecx
mov dword [0x10050670], eax
je 0x1003a80b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001f5e5
pop ecx
mov dword [0x1005066c], eax
mov eax, dword [0x1005066c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1003a890
cmp dword [0x10050670], ecx
je 0x1003a890
push eax
call fcn.1001f65c
push dword [0x10050670]
mov esi, eax
call fcn.1001f65c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1003a890
cmp edi, ebx
je 0x1003a890
call esi
cmp eax, ebx
je 0x1003a85d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1003a85d
test byte [ebp - 0x18], 1
jne 0x1003a890
lea eax, [ebp - 0x10]
push eax
call fcn.1001ffba
test eax, eax
pop ecx
je 0x1003a878
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001fbe8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1003a887
or dword [ebp + 0x10], 0x200000
jmp 0x1003a8cb
or dword [ebp + 0x10], 0x40000
jmp 0x1003a8cb
mov eax, dword [0x10050664]
cmp eax, dword [ebp - 8]
je 0x1003a8cb
push eax
call fcn.1001f65c
cmp eax, ebx
pop ecx
je 0x1003a8cb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1003a8cb
mov eax, dword [0x10050668]
cmp eax, dword [ebp - 8]
je 0x1003a8cb
push eax
call fcn.1001f65c
cmp eax, ebx
pop ecx
je 0x1003a8cb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10050660]
call fcn.1001f65c
cmp eax, ebx
pop ecx
je 0x1003a8eb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1003a8ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x29807350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x29877b48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x29807376
xor eax, eax
jmp 0x29807433
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x29807398
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x29807398
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x29807433
cmp dword [esi + 0x4c], 0
je 0x29807431
call fcn.29806b4d
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x298073c2
push dword [esi + 0x4c]
push eax
call fcn.29840a5a
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x29807431
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
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 0x298073ff
sub eax, 1
je 0x298073ff
dec eax
sub eax, 1
jne 0x29807431
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x298073b4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x29807423
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x29807431
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x29807433
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.29801ca0
leave
ret 4