joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403cf0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x24
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0xc]
push eax
push 0
mov esi, ecx
mov ecx, dword [esi + 0x1b0]
push 0x41a
push ecx
call edi
mov eax, dword [esi + 0x1b0]
lea edx, [esp + 0x1c]
push edx
push 0
push 0x419
push eax
call edi
fild dword [esi + 0x290]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
sub ecx, esi
sub ecx, edx
add ecx, eax
mov dword [esp + 8], ecx
fidiv dword [esp + 8]
pop edi
pop esi
add esp, 0x24
ret

Function at 0x406b00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43f318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0x54]
push 0
mov ecx, edi
call fcn.0040dd50
call fcn.0043b8c8
mov esi, dword [eax + 4]
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x406b57
mov eax, dword [ebx + 0x1978]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x406b57
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 0xe4], 0
push 0
mov ecx, ebx
call fcn.00405ca0
lea ecx, [ebx + 0x1978]
call fcn.00401210
push 0
mov ecx, edi
call fcn.0042d9f9
mov ecx, ebx
call fcn.0042bfdb
mov esi, eax
test esi, esi
je 0x406c06
push 0xffffffffffffffff
mov ecx, esi
call fcn.00402c80
call fcn.00429587
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
push 0xe000
mov dword [esp + 0x1c], 0
call fcn.004294fa
test eax, eax
je 0x406bca
push 0xe000
push eax
lea ecx, [esp + 0x14]
call fcn.00401550
mov edi, dword [esp + 0xc]
push edi
mov ecx, esi
call fcn.0042d99a
push 0
mov ecx, esi
call fcn.00402c50
push 0
mov ecx, esi
call fcn.00403cc0
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 0x1c]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004068f0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401400
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x406cc2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407030
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43f3a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x1978]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.00401400
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0xc], edi
push 0
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 1
call fcn.0042d9f9
mov ecx, esi
call fcn.0042da56
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.00406da0
mov bl, al
call fcn.0043b8c8
test bl, bl
mov esi, dword [eax + 4]
je 0x4070be
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x4070be
mov eax, dword [edi - 0xc]
test eax, eax
je 0x4070be
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 0xe4], 0
lea eax, [edi - 0x10]
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x4070e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407106
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40ffd0
Capabilities:
Capture microphone audio

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43f850
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x40ffff
mov eax, dword [esi]
call dword [eax + 0x18]
test eax, eax
mov dword [esi + 0x3c], eax
je 0x4100a7
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4100bb
mov cl, byte [esp + 0x14]
test cl, cl
push 1
push 0
push 0
push eax
push 0xffffffffffffffff
push 0
je 0x410055
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
mov dword [esi + 4], eax
je 0x4100bb
cmp eax, 0x20
jne 0x4100a7
call fcn.00429587
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
push 0x27d8
jmp 0x410087
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
mov dword [esi + 4], eax
je 0x4100bb
cmp eax, 0x20
jne 0x4100a7
call fcn.00429587
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
push 0x27d9
lea ecx, [esp + 0x18]
call fcn.00401920
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
call fcn.00435ba8
lea ecx, [esp + 0x14]
call fcn.00407440
xor al, al
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 4]
mov al, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x417a20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x451fe0]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x417a94
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.00419c7f
add esp, 0x110
ret

Function at 0x417ab0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x451fe0]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push ebx
push 0
push 0
push ebp
push str.open
push 0
mov dword [esp + 0x22c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x417bc8
lea eax, [esp + 0xc]
push eax
push str..htm
push 0x80000000
call fcn.00417a20
add esp, 0xc
test eax, eax
jne 0x417bc8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
push 0x80000000
call fcn.00417a20
add esp, 0xc
test eax, eax
jne 0x417baf
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call fcn.00419e78
mov esi, eax
add esp, 8
test esi, esi
jne 0x417b7d
lea edx, [esp + 0x10]
push 0x444820
push edx
call fcn.00419e78
mov esi, eax
add esp, 8
test esi, esi
jne 0x417b7d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x417b80
mov byte [esi], 0
push 0x44269c
push esi
call edi
push ebp
push esi
call edi
push ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
call fcn.00419c7f
add esp, 0x20c
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
call fcn.00419c7f
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.00419c7f
add esp, 0x20c
ret
Function at 0x41a95e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4484f0
call fcn.0041bed8
push 8
call fcn.0041f381
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x455150], esi
jne 0x41a992
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45514c], esi
mov al, byte [ebp + 0x10]
mov byte [0x455148], al
cmp dword [ebp + 0xc], edi
jne 0x41a9dc
cmp dword [0x4569ec], edi
je 0x41a9cc
mov eax, dword [0x4569e8]
sub eax, 4
mov dword [0x4569e8], eax
cmp eax, dword [0x4569ec]
jb 0x41a9cc
mov eax, dword [eax]
cmp eax, edi
je 0x41a9ad
call eax
jmp 0x41a9ad
push 0x450094
mov eax, 0x45008c
call fcn.0041a8dc
pop ecx
push 0x4500a0
mov eax, 0x450098
call fcn.0041a8dc
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0041aa0d
cmp dword [ebp + 0x10], edi
jne 0x41aa1b
mov dword [0x455150], esi
push dword [ebp + 8]
call fcn.0041a89a
xor edi, edi
xor esi, esi
inc esi
call fcn.0041bf13
ret

Function at 0x41af8e
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.0041b180
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b029
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 [0x455110]
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 0x41b029
cmp eax, 1
je 0x41b04a
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 0x41b029
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41aff6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41b025
xor eax, eax
inc eax
jmp 0x41b069
cmp edi, eax
jae 0x41b02d
xor eax, eax
jmp 0x41b069
cmp eax, esi
jae 0x41b034
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 [0x455110]
jmp 0x41b04d
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 0x41b206
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x448530
call fcn.0041bed8
mov edi, 0x94
mov eax, edi
call fcn.0041b180
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x455110], ecx
mov eax, dword [esi + 4]
mov dword [0x45511c], eax
mov edx, dword [esi + 8]
mov dword [0x455120], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x455114], esi
cmp ecx, 2
je 0x41b266
or esi, 0x8000
mov dword [0x455114], esi
shl eax, 8
add eax, edx
mov dword [0x455118], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41b2a1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b2a1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41b2b9
cmp eax, 0x20b
je 0x41b2a6
mov dword [ebp - 0x1c], esi
jmp 0x41b2cd
cmp dword [ecx + 0x84], 0xe
jbe 0x41b2a1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41b2c7
cmp dword [ecx + 0x74], 0xe
jbe 0x41b2a1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00420333
pop ecx
test eax, eax
jne 0x41b2e1
push 0x1c
call fcn.0041b1e2
pop ecx
call fcn.0041d54d
test eax, eax
jne 0x41b2f2
push 0x10
call fcn.0041b1e2
pop ecx
call fcn.0041f3b2
mov dword [ebp - 4], esi
call fcn.00421853
test eax, eax
jge 0x41b30b
push 0x1b
call fcn.0041b1bd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4569e0], eax
call fcn.00421731
mov dword [0x45515c], eax
call fcn.0042168f
test eax, eax
jge 0x41b331
push 8
call fcn.0041b1bd
pop ecx
call fcn.0042145c
test eax, eax
jge 0x41b342
push 9
call fcn.0041b1bd
pop ecx
push 1
call fcn.0041a8f4
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41b358
push eax
call fcn.0041b1bd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004213ff
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41b379
movzx eax, word [ebp - 0x40]
jmp 0x41b37c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004278b4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41b39a
push edi
call fcn.0041aa21
call fcn.0041aa43
jmp 0x41b3cc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041bf13
ret
Function at 0x41c166
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41c183
call fcn.0041cc7f
mov dword [eax], 0x16
xor eax, eax
jmp 0x41c1ed
push esi
push 0x8c
push 1
call fcn.0041b879
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41c1d8
push esi
call fcn.0041d353
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41c1b6
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41c0d1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41c1ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041af1d
test ebx, ebx
pop ecx
je 0x41c1ea
push ebx
call fcn.0041cc91
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420ec2
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 0x420ef0
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 0x420ef7
cmp ebx, dword [eax + 4]
jae 0x420ef7
xor eax, eax
jmp 0x4210e7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x420f08
xor eax, eax
inc eax
jmp 0x4210e6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x420f1e
cmp ecx, edx
jae 0x421063
cmp dword [eax + 4], 0
je 0x420f27
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x420f0f
cmp dword [ebp + 8], 0
je 0x420f49
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x421063
cmp eax, esi
jae 0x421063
mov eax, dword [0x4552e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x420f6e
cmp dword [esi*4 + 0x4552f0], edi
je 0x421067
inc esi
cmp esi, eax
jl 0x420f5c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4210e3
cmp dword [ebp - 8], 0x1000000
jne 0x4210e3
test byte [ebp - 0xc], 0xcc
je 0x420fec
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4210e3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4210e3
cmp word [eax + 0x18], 0x10b
jne 0x4210e3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4210e3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x420fec
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x420fec
test byte [ecx + 0x27], 0x80
jne 0x421063
push 1
push 0x455330
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x420f00
mov ecx, dword [0x4552e8]
test ecx, ecx
mov edx, ecx
jle 0x421020
lea eax, [ecx*4 + 0x4552ec]
cmp dword [eax], edi
je 0x421020
dec edx
sub eax, 4
test edx, edx
jg 0x421014
test edx, edx
jne 0x421051
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42102d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x421045
lea eax, [edx*4 + 0x4552f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x421033
cmp ecx, 0x10
jge 0x421051
inc ecx
mov dword [0x4552e8], ecx
push 0
push 0x455330
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x420f00
xor eax, eax
jmp 0x4210e6
test esi, esi
jle 0x420f00
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x455330
call ebx
test eax, eax
jne 0x420f00
cmp dword [esi*4 + 0x4552f0], edi
je 0x4210bd
mov eax, dword [0x4552e8]
lea esi, [eax - 1]
test esi, esi
jl 0x4210ab
cmp dword [esi*4 + 0x4552f0], edi
je 0x4210a7
dec esi
jns 0x42109b
test esi, esi
jge 0x4210bb
cmp eax, 0x10
jge 0x4210b6
inc eax
mov dword [0x4552e8], eax
lea esi, [eax - 1]
jmp 0x4210bd
je 0x4210d5
xor ecx, ecx
test esi, esi
jl 0x4210d5
lea eax, [ecx*4 + 0x4552f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4210c3
push 0
push 0x455330
call ebx
jmp 0x420f00
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4210eb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x451fe0]
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 + 0x452420]
je 0x421120
inc eax
cmp eax, 0x13
jb 0x421111
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x452420]
jne 0x421246
mov eax, dword [0x455164]
cmp eax, 1
je 0x42121e
cmp eax, edx
jne 0x421150
cmp dword [0x452024], 1
je 0x42121e
cmp ecx, 0xfc
je 0x421246
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 0x421186
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00422140
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041bc80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4211ba
mov eax, edi
push eax
call fcn.0041bc80
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x448694
push edi
call fcn.00421fa0
add esp, 0x10
push edi
call fcn.0041bc80
push dword [esi + 0x452424]
mov ebx, eax
call fcn.0041bc80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041b180
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00422140
push edi
push ebx
call fcn.00422150
push 0x448690
push ebx
call fcn.00422150
push dword [esi + 0x452424]
push ebx
call fcn.00422150
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00422eb6
add esp, 0x2c
jmp 0x421246
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x452424]
push dword [esi]
call fcn.0041bc80
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.00419c7f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x422eb6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x455550], ebx
push esi
push edi
jne 0x422f36
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x422f71
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44912c
push edi
call esi
test eax, eax
mov dword [0x455550], eax
je 0x422f71
push 0x44911c
push edi
call esi
push 0x449108
push edi
mov dword [0x455554], eax
call esi
cmp dword [0x455110], 2
mov dword [0x455558], eax
jne 0x422f36
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x455560], eax
je 0x422f36
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x45555c], eax
mov eax, dword [0x45555c]
test eax, eax
je 0x422f7b
call eax
test eax, eax
je 0x422f62
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x455560]
test eax, eax
je 0x422f62
test byte [ebp - 8], 1
jne 0x422f7b
cmp dword [0x45511c], 4
jb 0x422f75
or byte [ebp + 0x12], 0x20
jmp 0x422f9a
xor eax, eax
jmp 0x422faa
or byte [ebp + 0x12], 4
jmp 0x422f9a
mov eax, dword [0x455554]
test eax, eax
je 0x422f9a
call eax
mov ebx, eax
test ebx, ebx
je 0x422f9a
mov eax, dword [0x455558]
test eax, eax
je 0x422f9a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x455550]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423e04
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x451fe0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x423e35
xor eax, eax
jmp 0x423fbe
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x456680]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x423e71
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00425d36
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x423f4c
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x423f8a
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x423ed5
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x423ec6
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x423ea6
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423f15
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x423f1e
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x423e97
jmp 0x423f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x423fb9
cmp dword [ebp - 0x6c], edi
je 0x423f8a
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x423f7f
call fcn.0041cc7f
mov dword [eax], 9
call fcn.0041cc88
mov dword [eax], esi
jmp 0x423fb4
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423f74
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x423f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x423f20
push dword [ebp - 0x6c]
call fcn.0041cc91
pop ecx
jmp 0x423fb4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x423fa2
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x423fa2
xor eax, eax
jmp 0x423fbc
call fcn.0041cc7f
mov dword [eax], 0x1c
call fcn.0041cc88
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x423fbc
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00419c7f
add ebp, 0x3a0
leave
ret