joyce8/EMBER2024-capa huggingface dataset:
Function at 0x644460
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x644714
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x656870]
mov eax, dword [eax]
mov edx, 0x644730
call fcn.00595fa4
push 5
mov eax, dword [0x656870]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x6446db
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0063bdb0
lea eax, [ebp - 0x10]
call fcn.005a3b94
mov eax, dword [ebp - 0x10]
call fcn.0042170c
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.005a36e8
mov edx, dword [ebp - 0x14]
mov eax, 0x65e5c4
call fcn.00408aec
call fcn.00642af4
lea ecx, [ebp - 0x18]
mov edx, 0x644744
mov eax, dword [0x65e5c4]
call fcn.005a27a8
mov edx, dword [ebp - 0x18]
mov eax, 0x65e5c8
call fcn.00408aec
lea ecx, [ebp - 0x1c]
mov edx, 0x64475c
mov eax, dword [0x65e5c4]
call fcn.005a27a8
mov edx, dword [ebp - 0x1c]
mov eax, 0x65e5cc
call fcn.00408aec
push 2
push 0
push 1
mov ecx, dword [0x65e5c4]
mov dl, 1
mov eax, dword [0x5a92c4]
call fcn.005a9c18
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6445b8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.005a9bd8
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.005a9bb0
cmp dword [ebp - 0xc], 0x67734d49
je 0x644593
mov cl, 1
xor edx, edx
mov eax, dword [0x65e5cc]
call fcn.005ab26c
jmp 0x6445a2
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x65e5c4]
call fcn.005ab26c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6445bf
mov eax, dword [ebp - 4]
call fcn.004069c8
ret
Function at 0x644860
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x64499d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x6449b8
mov edx, ebx
call fcn.00409a14
mov eax, dword [ebp - 0x25c]
call fcn.004097c0
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x644977
xor eax, eax
push ebp
push 0x644970
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x6449d4
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.0042188c
test eax, eax
jne 0x644941
test byte [ebp - 0x258], 0x10
jne 0x644941
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00409864
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409a14
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x644939
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.004097c0
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.0042110c
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x6448d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x644977
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6449a4
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.0040876c
lea eax, [ebp - 4]
call fcn.0040870c
ret
Function at 0x6449e0
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x644ade
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.0040870c
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.005a2c40
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x644af8
call fcn.00421be4
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00409a14
mov eax, dword [ebp - 8]
call fcn.004097c0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x644a7e
test esi, 0x10
jne 0x644aae
test esi, 1
je 0x644a7e
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.004097c0
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
call fcn.004097c0
push eax
mov eax, dword [ebp - 0xc]
call fcn.004097c0
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x644aa8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00408aec
jmp 0x644abb
inc edi
cmp edi, 0xa
je 0x644abb
inc ebx
cmp ebx, 0x3e8
jne 0x644a1f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x644ae5
lea eax, [ebp - 0x14]
call fcn.0040870c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040876c
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4b2424d5
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x52b015d0
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x8cf590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3b9000]
push edi
or ebp, 0xffffffff
jmp 0x8cf5b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8cf5b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8cf5a8
mov eax, 1
add ebx, ebx
jne 0x8cf5cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8cf5dc
jne 0x8cf5ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8cf5ec
dec eax
add ebx, ebx
jne 0x8cf5e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8cf5c0
xor ecx, ecx
sub eax, 3
jb 0x8cf604
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8cf676
sar eax, 1
mov ebp, eax
jmp 0x8cf60f
add ebx, ebx
jne 0x8cf60f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x8cf61c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x8cf640
inc ecx
add ebx, ebx
jne 0x8cf62c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8cf621
jne 0x8cf63d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8cf621
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8cf660
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8cf651
jmp 0x8cf5ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8cf660
add edi, ecx
jmp 0x8cf5ae
pop esi
mov edi, esi
mov ecx, 0x46f4f4
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x8cf69b
cmp byte [edi], 0x9c
jne 0x8cf680
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x8cf67e
lea edi, [esi + 0x4cd000]
mov eax, dword [edi]
or eax, eax
je 0x8cf6ec
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d0208]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d0244]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8cf6a1
mov ecx, edi
jns 0x8cf6d0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4d0248]
or eax, eax
je 0x8cf6e6
mov dword [ebx], eax
add ebx, 4
jmp 0x8cf6be
call dword [esi + 0x4d024c]
popal
jmp 0x4012ec
Function at 0x401490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
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 0x4014ab
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4014bf
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 0x4014e0
cmp esi, eax
jae 0x4014b9
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014d2
cmp esi, eax
jae 0x4014b9
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f288
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.004035a0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402810
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 0x403d22
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 0x40fb1c
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.0040fe10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40fbb7
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 [0x453e6c]
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 0x40fbb7
cmp eax, 1
je 0x40fbd8
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 0x40fbb7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40fb84
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40fbb3
xor eax, eax
inc eax
jmp 0x40fbf7
cmp edi, eax
jae 0x40fbbb
xor eax, eax
jmp 0x40fbf7
cmp eax, esi
jae 0x40fbc2
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 [0x453e6c]
jmp 0x40fbdb
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 0x4126b9
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 0x4126d6
call fcn.00411f6f
mov dword [eax], 0x16
xor eax, eax
jmp 0x412740
push esi
push 0x8c
push 1
call fcn.004198b7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41272b
push esi
call fcn.00413f38
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 0x412709
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41261f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41273f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040faa6
test ebx, ebx
pop ecx
je 0x41273d
push ebx
call fcn.00411f8b
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x412f7c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x444f98
call fcn.00411bf8
push 8
call fcn.004143d4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x453eac], esi
jne 0x412fb0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x453ea8], esi
mov al, byte [ebp + 0x10]
mov byte [0x453ea4], al
cmp dword [ebp + 0xc], edi
jne 0x412ffa
cmp dword [0x455758], edi
je 0x412fea
mov eax, dword [0x455754]
sub eax, 4
mov dword [0x455754], eax
cmp eax, dword [0x455758]
jb 0x412fea
mov eax, dword [eax]
cmp eax, edi
je 0x412fcb
call eax
jmp 0x412fcb
push 0x4500ac
mov eax, 0x4500a4
call fcn.00412ecd
pop ecx
push 0x4500b8
mov eax, 0x4500b0
call fcn.00412ecd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41302b
cmp dword [ebp + 0x10], edi
jne 0x413039
mov dword [0x453eac], esi
push dword [ebp + 8]
call fcn.00412e7c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x413038
push 8
call fcn.004142f8
pop ecx
ret
call fcn.00411c33
ret
Function at 0x415516
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 0x415544
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 0x41554b
cmp ebx, dword [eax + 4]
jae 0x41554b
xor eax, eax
jmp 0x41573b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41555c
xor eax, eax
inc eax
jmp 0x41573a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x415572
cmp ecx, edx
jae 0x4156b7
cmp dword [eax + 4], 0
je 0x41557b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x415563
cmp dword [ebp + 8], 0
je 0x41559d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4156b7
cmp eax, esi
jae 0x4156b7
mov eax, dword [0x454028]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4155c2
cmp dword [esi*4 + 0x454030], edi
je 0x4156bb
inc esi
cmp esi, eax
jl 0x4155b0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415737
cmp dword [ebp - 8], 0x1000000
jne 0x415737
test byte [ebp - 0xc], 0xcc
je 0x415640
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x415737
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415737
cmp word [eax + 0x18], 0x10b
jne 0x415737
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x415737
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x415640
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x415640
test byte [ecx + 0x27], 0x80
jne 0x4156b7
push 1
push 0x454070
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x415554
mov ecx, dword [0x454028]
test ecx, ecx
mov edx, ecx
jle 0x415674
lea eax, [ecx*4 + 0x45402c]
cmp dword [eax], edi
je 0x415674
dec edx
sub eax, 4
test edx, edx
jg 0x415668
test edx, edx
jne 0x4156a5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x415681
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x415699
lea eax, [edx*4 + 0x454030]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x415687
cmp ecx, 0x10
jge 0x4156a5
inc ecx
mov dword [0x454028], ecx
push 0
push 0x454070
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x415554
xor eax, eax
jmp 0x41573a
test esi, esi
jle 0x415554
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x454070
call ebx
test eax, eax
jne 0x415554
cmp dword [esi*4 + 0x454030], edi
je 0x415711
mov eax, dword [0x454028]
lea esi, [eax - 1]
test esi, esi
jl 0x4156ff
cmp dword [esi*4 + 0x454030], edi
je 0x4156fb
dec esi
jns 0x4156ef
test esi, esi
jge 0x41570f
cmp eax, 0x10
jge 0x41570a
inc eax
mov dword [0x454028], eax
lea esi, [eax - 1]
jmp 0x415711
je 0x415729
xor ecx, ecx
test esi, esi
jl 0x415729
lea eax, [ecx*4 + 0x454030]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x415717
push 0
push 0x454070
call ebx
jmp 0x415554
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417bda
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x450be0]
mov ecx, dword [ebp + 0x98]
push ebx
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x451250]
je 0x417c0f
inc eax
cmp eax, 0x13
jb 0x417c00
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x451250]
jne 0x417d32
mov eax, dword [0x453e5c]
cmp eax, 1
je 0x417d0d
cmp eax, edx
jne 0x417c3f
cmp dword [0x450ca4], 1
je 0x417d0d
cmp ecx, 0xfc
je 0x417d32
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417c75
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00416b60
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004116b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417ca9
mov eax, edi
push eax
call fcn.004116b0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x445234
push edi
call fcn.0041c450
add esp, 0x10
push edi
call fcn.004116b0
push dword [esi + 0x451254]
mov ebx, eax
call fcn.004116b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040fe10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00416b60
push edi
push ebx
call fcn.00416b70
push 0x445230
push ebx
call fcn.00416b70
push dword [esi + 0x451254]
push ebx
call fcn.00416b70
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041cfea
add esp, 0x2c
jmp 0x417d32
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x451254]
push dword [esi]
call fcn.004116b0
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 + 0x8c]
call fcn.0040fe88
pop edi
pop esi
pop ebx
add ebp, 0x90
leave
ret
Function at 0x41cfea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4542e8], ebx
push esi
push edi
jne 0x41d06a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d0a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x446efc
push edi
call esi
test eax, eax
mov dword [0x4542e8], eax
je 0x41d0a5
push 0x446eec
push edi
call esi
push 0x446ed8
push edi
mov dword [0x4542ec], eax
call esi
cmp dword [0x453e6c], 2
mov dword [0x4542f0], eax
jne 0x41d06a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4542f8], eax
je 0x41d06a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4542f4], eax
mov eax, dword [0x4542f4]
test eax, eax
je 0x41d0af
call eax
test eax, eax
je 0x41d096
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4542f8]
test eax, eax
je 0x41d096
test byte [ebp - 8], 1
jne 0x41d0af
cmp dword [0x453e78], 4
jb 0x41d0a9
or byte [ebp + 0x12], 0x20
jmp 0x41d0ce
xor eax, eax
jmp 0x41d0de
or byte [ebp + 0x12], 4
jmp 0x41d0ce
mov eax, dword [0x4542ec]
test eax, eax
je 0x41d0ce
call eax
mov ebx, eax
test ebx, ebx
je 0x41d0ce
mov eax, dword [0x4542f0]
test eax, eax
je 0x41d0ce
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4542e8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d608
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x450be0]
xor ecx, ecx
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41d642
xor eax, eax
jmp 0x41d7ac
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x455620]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41d680
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041f247
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41d71a
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41d77d
jmp 0x41d6a4
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41d6df
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41d6d0
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x41d6b0
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d73e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41d747
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41d6a2
jmp 0x41d747
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d73e
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41d747
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41d7a7
cmp dword [ebp - 0x68], eax
je 0x41d77a
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41d76f
call fcn.00411f6f
mov dword [eax], 9
call fcn.00411f7d
mov dword [eax], esi
jmp 0x41d7a2
push dword [ebp - 0x68]
call fcn.00411f8b
pop ecx
jmp 0x41d7a2
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41d78f
cmp byte [edi], 0x1a
jne 0x41d78f
xor eax, eax
jmp 0x41d7aa
call fcn.00411f6f
mov dword [eax], 0x1c
call fcn.00411f7d
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41d7aa
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
pop edi
call fcn.0040fe88
add ebp, 0x3a4
leave
ret