joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a38
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
pop ebp
ret 0x1c

Function at 0x4072e8
Capabilities:
Create thread

Disassembly:
mov eax, 0x418504
call fcn.00416fe0
sub esp, 0xd0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x74]
lea eax, [ecx + eax*8]
push edi
push dword [eax + 4]
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, dword [eax]
call fcn.00406b48
and dword [ebp - 4], 0
add esi, 0x6c
lea edi, [ebp - 0xdc]
mov dword [ebp - 0x10], esi
call fcn.0040798c
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, dword [ecx + eax*4 - 4]
call fcn.00406c9f
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xb4]
mov edi, esi
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov eax, dword [eax + 8]
push dword [eax]
lea esi, [ebx + 0x9c]
call fcn.00402145
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [ebp - 0x14]
push ecx
xor esi, esi
push esi
push eax
push 0x40703e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x4073a6
push 0x41acb8
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x425d0
call fcn.00416fff
push eax
lea esi, [ebx + 0x80]
call fcn.00402145
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xdc]
push eax
call fcn.00406d0d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x409c42
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, dword [esp + 8]
mov eax, dword [eax]
push edi
jmp 0x409c66
test esi, esi
jbe 0x409c6b
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x41f070]
dec esi
inc ecx
test cl, 3
jne 0x409c4e
cmp esi, 4
jb 0x409cb4
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
sub esi, 4
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x41f070]
add ecx, 4
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x41f070]
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x41f070]
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x41f070]
dec edx
jne 0x409c75
xor edx, edx
test esi, esi
jbe 0x409cd4
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x41f070]
inc edx
cmp edx, esi
jb 0x409cbb
pop ebx
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx], eax
pop esi
ret 4

Function at 0x40a97b
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40adb6
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40adca
xor al, al
jmp 0x40adda
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x40aee3
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x4184e3
call fcn.00416fe0
sub esp, 0x6c
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
call fcn.00409f24
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x5c
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0040b7c5
push 0x2a
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040b7c5
lea ecx, [ebp - 0x38]
push ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0040a9dd
mov byte [ebp - 4], 4
push dword [ebp - 0x24]
call fcn.00411a77
pop ecx
jmp 0x40af5c
lea eax, [ebp - 0x78]
push eax
sub esp, 0xc
lea edi, [ebp - 0x18]
mov eax, esp
mov dword [ebp + 8], esp
call fcn.00409f3d
call fcn.0040ae68
test al, al
je 0x40afc3
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040bc66
test al, al
jne 0x40af3f
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0040afd4
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40afd0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
mov byte [ebp - 4], 0
push dword [ebp - 0x18]
call fcn.00411a77
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x48]
call fcn.00411a77
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret 4
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0040afd4
xor bl, bl
jmp 0x40af96

Function at 0x40b4ea
Capabilities:
Delete file

Disassembly:
mov eax, 0x4184b7
call fcn.00416fe0
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x18]
mov byte [ebp - 0x1c], bl
call fcn.00409f24
jmp 0x40b55f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40b59a
push dword [edi]
call fcn.0040bbff
test al, al
jne 0x40b53f
push dword [edi]
call fcn.0040ab60
test al, al
jne 0x40b5b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b573
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0040b4cb
push dword [ebp - 0x18]
call fcn.00411a77
pop ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 0x1c], bl
call fcn.00409f24
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040b44b
test al, al
jne 0x40b508
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0040b4cb
push dword [ebp - 0x18]
call fcn.00411a77
xor al, al
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0040b4cb
push dword [ebp - 0x18]
call fcn.00411a77
mov al, bl
jmp 0x40b589
mov bl, 1
jmp 0x40b59a
Function at 0x40b947
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x417d73
call fcn.00416fe0
sub esp, 0x18
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
push edi
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
push 1
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x18]
push 0
push 0
mov dword [esi + 0x18], eax
push dword [ebx + 0x1c]
call fcn.004169e0
mov ecx, dword [ebx + 0x20]
xor edi, edi
add eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebx + 0x2c]
adc edx, edi
push eax
lea eax, [ebp - 0x18]
mov dword [esi + 0x24], edx
call fcn.0040b5d2
and dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b847
mov edi, eax
lea eax, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0040990b
mov byte [ebp - 4], 0
push dword [ebp - 0x24]
call fcn.00411a77
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00411a77
mov eax, dword [ebx + 0x24]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x40bdc6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bdef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40bdef
xor al, al
jmp 0x40be0a
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.004169e0
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
pop ebp
ret 4

Function at 0x40eba0
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x40f8ed
Capabilities:
Encode data using xor

Disassembly:
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.0040eee8
xor eax, eax
mov cl, byte [esi + eax + 0x108]
xor byte [eax + edi], cl
inc eax
cmp eax, 0x10
jl 0x40f8fa
xor eax, eax
mov cl, byte [eax + ebx]
mov byte [esi + eax + 0x108], cl
inc eax
cmp eax, 0x10
jl 0x40f90c
ret

Function at 0x41074e
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x41818e
call fcn.00416fe0
sub esp, 0xc
mov al, byte [ebx + 0xf4]
push esi
push 0
lea esi, [ebx + 0x68]
mov byte [ebx + 0x70], al
call fcn.00410661
push 0x45
lea eax, [ebp - 0x18]
push eax
call fcn.0040c241
and dword [ebp - 4], 0
mov eax, dword [eax]
lea esi, [ebx + 0x6c]
mov ecx, eax
call fcn.0040c3b0
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00411a77
pop ecx
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41253d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x419288
call fcn.00412908
mov edi, 0x94
mov eax, edi
call fcn.00413d70
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 [0x41ed24], ecx
mov eax, dword [esi + 4]
mov dword [0x41ed30], eax
mov edx, dword [esi + 8]
mov dword [0x41ed34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41ed28], esi
cmp ecx, 2
je 0x41259d
or esi, 0x8000
mov dword [0x41ed28], esi
shl eax, 8
add eax, edx
mov dword [0x41ed2c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4125d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4125d8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4125f0
cmp eax, 0x20b
je 0x4125dd
mov dword [ebp - 0x1c], esi
jmp 0x412604
cmp dword [ecx + 0x84], 0xe
jbe 0x4125d8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4125fe
cmp dword [ecx + 0x74], 0xe
jbe 0x4125d8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00413d15
pop ecx
test eax, eax
jne 0x412618
push 0x1c
call fcn.00412519
pop ecx
call fcn.00413c0c
test eax, eax
jne 0x412629
push 0x10
call fcn.00412519
pop ecx
call fcn.004139a6
mov dword [ebp - 4], esi
call fcn.004137a8
test eax, eax
jge 0x412642
push 0x1b
call fcn.004124f4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41f934], eax
call fcn.00413686
mov dword [0x41ebc0], eax
call fcn.004135e4
test eax, eax
jge 0x412668
push 8
call fcn.004124f4
pop ecx
call fcn.004133b1
test eax, eax
jge 0x412679
push 9
call fcn.004124f4
pop ecx
push 1
call fcn.00412e0f
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41268f
push eax
call fcn.004124f4
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413354
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4126b0
movzx eax, word [ebp - 0x40]
jmp 0x4126b3
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00411130
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4126d1
push edi
call fcn.00412f3c
call fcn.00412f5e
jmp 0x412703
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412943
ret
Function at 0x412e79
Capabilities:
Terminate process

Disassembly:
push 8
push 0x419310
call fcn.00412908
push 8
call fcn.004128d6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41ed64], esi
jne 0x412ead
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41ed60], esi
mov al, byte [ebp + 0x10]
mov byte [0x41ed5c], al
cmp dword [ebp + 0xc], edi
jne 0x412ef7
cmp dword [0x41f928], edi
je 0x412ee7
mov eax, dword [0x41f924]
sub eax, 4
mov dword [0x41f924], eax
cmp eax, dword [0x41f928]
jb 0x412ee7
mov eax, dword [eax]
cmp eax, edi
je 0x412ec8
call eax
jmp 0x412ec8
push 0x41e08c
mov eax, 0x41e088
call fcn.00412df7
pop ecx
push 0x41e098
mov eax, 0x41e090
call fcn.00412df7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x412f28
cmp dword [ebp + 0x10], edi
jne 0x412f36
mov dword [0x41ed64], esi
push dword [ebp + 8]
call fcn.00412db5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x412f35
push 8
call fcn.00412821
pop ecx
ret
call fcn.00412943
ret

Function at 0x41303f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x41e4d0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41e200]
je 0x413076
inc eax
cmp eax, 0x13
jb 0x413067
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41e200]
jne 0x413199
mov eax, dword [0x41ebc8]
cmp eax, 1
je 0x413174
cmp eax, edx
jne 0x4130a6
cmp dword [0x41e0c4], 1
je 0x413174
cmp ecx, 0xfc
je 0x413199
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 0x4130dc
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00414dc0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00414ff0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413110
mov eax, edi
push eax
call fcn.00414ff0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x419718
push edi
call fcn.00414ec0
add esp, 0x10
push edi
call fcn.00414ff0
push dword [esi + 0x41e204]
mov ebx, eax
call fcn.00414ff0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413d70
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00414dc0
push edi
push ebx
call fcn.00414dd0
push 0x4196f8
push ebx
call fcn.00414dd0
push dword [esi + 0x41e204]
push ebx
call fcn.00414dd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414cbe
add esp, 0x2c
jmp 0x413199
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x41e204]
push dword [esi]
call fcn.00414ff0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004150ac
add ebp, 0x90
leave
ret
Function at 0x414a62
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 0x414a90
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 0x414a97
cmp ebx, dword [eax + 4]
jae 0x414a97
xor eax, eax
jmp 0x414c87
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x414aa8
xor eax, eax
inc eax
jmp 0x414c86
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x414abe
cmp ecx, edx
jae 0x414c03
cmp dword [eax + 4], 0
je 0x414ac7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x414aaf
cmp dword [ebp + 8], 0
je 0x414ae9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x414c03
cmp eax, esi
jae 0x414c03
mov eax, dword [0x41ee90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x414b0e
cmp dword [esi*4 + 0x41ee98], edi
je 0x414c07
inc esi
cmp esi, eax
jl 0x414afc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414c83
cmp dword [ebp - 8], 0x1000000
jne 0x414c83
test byte [ebp - 0xc], 0xcc
je 0x414b8c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x414c83
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x414c83
cmp word [eax + 0x18], 0x10b
jne 0x414c83
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x414c83
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x414b8c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x414b8c
test byte [ecx + 0x27], 0x80
jne 0x414c03
push 1
push 0x41eed8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x414aa0
mov ecx, dword [0x41ee90]
test ecx, ecx
mov edx, ecx
jle 0x414bc0
lea eax, [ecx*4 + 0x41ee94]
cmp dword [eax], edi
je 0x414bc0
dec edx
sub eax, 4
test edx, edx
jg 0x414bb4
test edx, edx
jne 0x414bf1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x414bcd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x414be5
lea eax, [edx*4 + 0x41ee98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x414bd3
cmp ecx, 0x10
jge 0x414bf1
inc ecx
mov dword [0x41ee90], ecx
push 0
push 0x41eed8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x414aa0
xor eax, eax
jmp 0x414c86
test esi, esi
jle 0x414aa0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41eed8
call ebx
test eax, eax
jne 0x414aa0
cmp dword [esi*4 + 0x41ee98], edi
je 0x414c5d
mov eax, dword [0x41ee90]
lea esi, [eax - 1]
test esi, esi
jl 0x414c4b
cmp dword [esi*4 + 0x41ee98], edi
je 0x414c47
dec esi
jns 0x414c3b
test esi, esi
jge 0x414c5b
cmp eax, 0x10
jge 0x414c56
inc eax
mov dword [0x41ee90], eax
lea esi, [eax - 1]
jmp 0x414c5d
je 0x414c75
xor ecx, ecx
test esi, esi
jl 0x414c75
lea eax, [ecx*4 + 0x41ee98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x414c63
push 0
push 0x41eed8
call ebx
jmp 0x414aa0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414cbe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41eee4], ebx
push esi
push edi
jne 0x414d3e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x414d79
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41eee4], eax
je 0x414d79
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41eee8], eax
call esi
cmp dword [0x41ed24], 2
mov dword [0x41eeec], eax
jne 0x414d3e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41eef4], eax
je 0x414d3e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41eef0], eax
mov eax, dword [0x41eef0]
test eax, eax
je 0x414d83
call eax
test eax, eax
je 0x414d6a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41eef4]
test eax, eax
je 0x414d6a
test byte [ebp - 8], 1
jne 0x414d83
cmp dword [0x41ed30], 4
jb 0x414d7d
or byte [ebp + 0x12], 0x20
jmp 0x414da2
xor eax, eax
jmp 0x414db2
or byte [ebp + 0x12], 4
jmp 0x414da2
mov eax, dword [0x41eee8]
test eax, eax
je 0x414da2
call eax
mov ebx, eax
test ebx, ebx
je 0x414da2
mov eax, dword [0x41eeec]
test eax, eax
je 0x414da2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41eee4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4167a1
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.00413d70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41683c
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 [0x41ed24]
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 0x41683c
cmp eax, 1
je 0x41685d
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 0x41683c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416809
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x416838
xor eax, eax
inc eax
jmp 0x41687c
cmp edi, eax
jae 0x416840
xor eax, eax
jmp 0x41687c
cmp eax, esi
jae 0x416847
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 [0x41ed24]
jmp 0x416860
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 0x40ab70
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x40ac31
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40ac1b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x588a50
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x40ac31
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00516300
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.0040ad00
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005333c1
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x40ac91
cmp eax, 0x207
ja 0x40ac91
jne 0x40ac98
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aca1
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b0a78
mov esp, ebp
pop ebp
ret