joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441340
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441373
push esi
call fcn.00444430
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44136c
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 0x4413f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4413e2
mov eax, dword [esi + 8]
test eax, eax
je 0x441397
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 0x4413de
cmp eax, 2
je 0x4413e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44138a
cmp eax, 3
je 0x4413bd
cmp eax, 1
jne 0x44138a
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 0x44138a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44138a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441420
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441408
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441420
add esp, 4
pop esi
ret

Function at 0x45fad8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fb10
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.0045db8c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045db64
jmp 0x45fb1c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4611c6
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 0x461208
call fcn.00466cc2
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 0x461208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4611ff
xor eax, eax
jmp 0x461210
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461216
pop edi
pop esi
pop ebx
ret 4

Function at 0x4671f2
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 0x467220
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46723e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467158
jmp 0x46723e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46723e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467158
test edi, edi
mov eax, edi
jne 0x467228
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
jmp 0x1000113c
lea eax, [ebp - 0x104]
push eax
call fcn.100012e8
push 0x1000107e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x10001209
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push 0x1000109d
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x1000126e
mov dword [ebp - 0x10c], 0x103
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x100010b7
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x1000126e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x100011ee
mov word [ebx], 0x5c
push 0x10001088
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x1000126e
mov dword [0x1000300c], eax
push 0x10001092
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x10001263
push eax
push 0x3ea
call eax
pop edx
test eax, eax
je 0x10001263
mov dword [0x10003008], eax
push 0x3eb
mov ebx, section..data
call edx
test eax, eax
je 0x10001263
mov dword [section..data], edx
call 0x1000124a
add dword [esp], 0x4db6
call eax
mov dword [0x10003004], eax
sub esp, 4
pop dword [0x10003010]
leave
ret
push dword [0x1000300c]
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x1000300c], 0
mov dword [section..data], 0xffffffff
mov dword [0x10003010], 0
mov dword [0x10003004], 0
mov dword [0x10003008], 0
push 0x10
push 0x10001136
push 0x100010bc
push 0
call sub.USER32.dll_MessageBoxA
push 0xffffffffffffffff
call sub.KERNEL32.dll_ExitProcess
leave
ret

Function at 0x1011c302
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x108db7
jmp fcn.10001058
Function at 0x401b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401bad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401bce
cmp esi, eax
jae 0x401ba7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401bc0
cmp esi, eax
jae 0x401ba7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402b10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
push edi
inc eax
push eax
push 0x2042
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esi + 0x14]
xor ecx, ecx
test edx, edx
jbe 0x402b5c
push ebp
lea ebp, [esi + 4]
nop
cmp dword [esi + 0x18], 0x10
jb 0x402b4b
mov edx, dword [ebp]
jmp 0x402b4d
mov edx, ebp
mov dl, byte [edx + ecx]
mov byte [ecx + eax], dl
mov edx, dword [esi + 0x14]
inc ecx
cmp ecx, edx
jb 0x402b40
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x402b8b
push eax
push 0x431a4c
push 0x431a3c
mov ecx, ebx
call fcn.004243c6
pop edi
pop esi
xor al, al
pop ebx
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, 1
pop ebx
ret 4
Function at 0x4046a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x42f030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x43e234]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
push esi
mov esi, dword [eax - 0xc]
cmp esi, 0x20
jge 0x40473b
call fcn.004273ae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
push esi
lea eax, [esp + 0x44]
push 0x431b00
push eax
mov dword [esp + 0x44], 0
call fcn.004042b0
mov esi, dword [esp + 0x4c]
add esp, 0xc
push 0
push str.error
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404734
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x40487b
add eax, 0xfffffff0
push ebp
push eax
mov byte [esp + 0x14], 0x30
mov byte [esp + 0x15], 0x31
mov byte [esp + 0x16], 0x32
mov byte [esp + 0x17], 0x33
mov byte [esp + 0x18], 0x34
mov byte [esp + 0x19], 0x35
mov byte [esp + 0x1a], 0x36
mov byte [esp + 0x1b], 0x37
mov byte [esp + 0x1c], 0x38
mov byte [esp + 0x1d], 0x39
mov byte [esp + 0x1e], 0x41
mov byte [esp + 0x1f], 0x42
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0x44
mov byte [esp + 0x22], 0x45
mov byte [esp + 0x23], 0x46
call fcn.00402a90
add eax, 0x10
add esp, 4
mov dword [esp + 8], eax
mov esi, 1
lea ecx, [esp + 8]
mov dword [esp + 0x3c], esi
call fcn.004039a0
xor ebp, ebp
push ebx
mov dword [esp + 0x10], ebp
push edi
lea esp, [esp]
lea eax, [esi - 1]
test eax, eax
mov byte [esp + ebp + 0x28], 0
jl 0x404894
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
cmp eax, ecx
jg 0x404894
test esi, esi
mov al, byte [edx + esi - 1]
mov byte [esp + 0x4c], al
jl 0x404894
cmp esi, ecx
jg 0x404894
mov dl, byte [edx + esi]
xor al, al
lea edi, [esp + 0x18]
mov cl, byte [edi]
cmp byte [esp + 0x4c], cl
jne 0x404815
mov bl, al
shl bl, 4
or byte [esp + ebp + 0x28], bl
mov ebp, dword [esp + 0x14]
cmp dl, cl
jne 0x40481d
or byte [esp + ebp + 0x28], al
inc al
inc edi
cmp al, 0x10
jb 0x404800
inc ebp
add esi, 2
cmp esi, 0x21
mov dword [esp + 0x14], ebp
jl 0x4047c0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404876
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2c]
pop esi
call fcn.00415411
add esp, 0x38
ret
push 0x80070057
call fcn.00401b60
int3
Function at 0x40b81e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40b871
call fcn.0042c4d1
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40b871
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40b867
xor eax, eax
jmp 0x40b98a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40b8a1
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40b8a1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40b987
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40b8ce
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040ce32
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40b987
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40b917
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40b917
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40b911
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040ce32
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40b977
and dword [ebp + 0xc], 0
jmp 0x40b977
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40b977
push 0xc
call fcn.00421f14
mov esi, eax
test esi, esi
pop ecx
je 0x40b959
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40b95b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40b972
push dword [ebp - 8]
call fcn.004219e7
jmp 0x40b977
call fcn.004219be
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40b8dc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41563b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00415830
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4156d6
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4411a8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4156d6
cmp eax, 1
je 0x4156f7
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4156d6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4156a3
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4156d2
xor eax, eax
inc eax
jmp 0x415716
cmp edi, eax
jae 0x4156da
xor eax, eax
jmp 0x415716
cmp eax, esi
jae 0x4156e1
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4411a8]
jmp 0x4156fa
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4162af
Capabilities:
Terminate process

Disassembly:
push 8
push 0x434e58
call fcn.004171a0
push 8
call fcn.00418bcb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4411e8], esi
jne 0x4162e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4411e4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4411e0], al
cmp dword [ebp + 0xc], edi
jne 0x41632d
cmp dword [0x442a68], edi
je 0x41631d
mov eax, dword [0x442a64]
sub eax, 4
mov dword [0x442a64], eax
cmp eax, dword [0x442a68]
jb 0x41631d
mov eax, dword [eax]
cmp eax, edi
je 0x4162fe
call eax
jmp 0x4162fe
push 0x43d098
mov eax, 0x43d090
call fcn.0041622d
pop ecx
push 0x43d0a4
mov eax, 0x43d09c
call fcn.0041622d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41635e
cmp dword [ebp + 0x10], edi
jne 0x41636c
mov dword [0x4411e8], esi
push dword [ebp + 8]
call fcn.004161eb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41636b
push 8
call fcn.00418b16
pop ecx
ret
call fcn.004171db
ret
Function at 0x4197a5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4197d3
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4197da
cmp ebx, dword [eax + 4]
jae 0x4197da
xor eax, eax
jmp 0x4199ca
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4197eb
xor eax, eax
inc eax
jmp 0x4199c9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x419801
cmp ecx, edx
jae 0x419946
cmp dword [eax + 4], 0
je 0x41980a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4197f2
cmp dword [ebp + 8], 0
je 0x41982c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x419946
cmp eax, esi
jae 0x419946
mov eax, dword [0x441368]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x419851
cmp dword [esi*4 + 0x441370], edi
je 0x41994a
inc esi
cmp esi, eax
jl 0x41983f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4199c6
cmp dword [ebp - 8], 0x1000000
jne 0x4199c6
test byte [ebp - 0xc], 0xcc
je 0x4198cf
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4199c6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4199c6
cmp word [eax + 0x18], 0x10b
jne 0x4199c6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4199c6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4198cf
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4198cf
test byte [ecx + 0x27], 0x80
jne 0x419946
push 1
push 0x4413b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4197e3
mov ecx, dword [0x441368]
test ecx, ecx
mov edx, ecx
jle 0x419903
lea eax, [ecx*4 + 0x44136c]
cmp dword [eax], edi
je 0x419903
dec edx
sub eax, 4
test edx, edx
jg 0x4198f7
test edx, edx
jne 0x419934
push 0xf
pop ebx
cmp ecx, ebx
jg 0x419910
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x419928
lea eax, [edx*4 + 0x441370]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x419916
cmp ecx, 0x10
jge 0x419934
inc ecx
mov dword [0x441368], ecx
push 0
push 0x4413b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4197e3
xor eax, eax
jmp 0x4199c9
test esi, esi
jle 0x4197e3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4413b0
call ebx
test eax, eax
jne 0x4197e3
cmp dword [esi*4 + 0x441370], edi
je 0x4199a0
mov eax, dword [0x441368]
lea esi, [eax - 1]
test esi, esi
jl 0x41998e
cmp dword [esi*4 + 0x441370], edi
je 0x41998a
dec esi
jns 0x41997e
test esi, esi
jge 0x41999e
cmp eax, 0x10
jge 0x419999
inc eax
mov dword [0x441368], eax
lea esi, [eax - 1]
jmp 0x4199a0
je 0x4199b8
xor ecx, ecx
test esi, esi
jl 0x4199b8
lea eax, [ecx*4 + 0x441370]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4199a6
push 0
push 0x4413b0
call ebx
jmp 0x4197e3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ae0e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43e234]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43e650]
je 0x41ae43
inc eax
cmp eax, 0x13
jb 0x41ae34
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43e650]
jne 0x41af69
mov eax, dword [0x4411a0]
cmp eax, 1
je 0x41af41
cmp eax, edx
jne 0x41ae73
cmp dword [0x43e270], 1
je 0x41af41
cmp ecx, 0xfc
je 0x41af69
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41aea9
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041abb0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00416700
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41aedd
mov eax, edi
push eax
call fcn.00416700
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x434fb4
push edi
call fcn.0041d6f0
add esp, 0x10
push edi
call fcn.00416700
push dword [esi + 0x43e654]
mov ebx, eax
call fcn.00416700
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00415830
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041abb0
push edi
push ebx
call fcn.0041abc0
push 0x434fb0
push ebx
call fcn.0041abc0
push dword [esi + 0x43e654]
push ebx
call fcn.0041abc0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041d5e8
add esp, 0x2c
jmp 0x41af69
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43e654]
push dword [esi]
call fcn.00416700
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00415411
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41d5e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4415d8], ebx
push esi
push edi
jne 0x41d668
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d6a3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x435dcc
push edi
call esi
test eax, eax
mov dword [0x4415d8], eax
je 0x41d6a3
push 0x435dbc
push edi
call esi
push 0x435da8
push edi
mov dword [0x4415dc], eax
call esi
cmp dword [0x4411a8], 2
mov dword [0x4415e0], eax
jne 0x41d668
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4415e8], eax
je 0x41d668
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4415e4], eax
mov eax, dword [0x4415e4]
test eax, eax
je 0x41d6ad
call eax
test eax, eax
je 0x41d694
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4415e8]
test eax, eax
je 0x41d694
test byte [ebp - 8], 1
jne 0x41d6ad
cmp dword [0x4411b4], 4
jb 0x41d6a7
or byte [ebp + 0x12], 0x20
jmp 0x41d6cc
xor eax, eax
jmp 0x41d6dc
or byte [ebp + 0x12], 4
jmp 0x41d6cc
mov eax, dword [0x4415dc]
test eax, eax
je 0x41d6cc
call eax
mov ebx, eax
test ebx, ebx
je 0x41d6cc
mov eax, dword [0x4415e0]
test eax, eax
je 0x41d6cc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4415d8]
pop edi
pop esi
pop ebx
leave
ret