joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4180d6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x423780
call fcn.0041edbc
mov edi, 0x94
mov eax, edi
call fcn.00417cd0
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 [0x42bf64], ecx
mov eax, dword [esi + 4]
mov dword [0x42bf70], eax
mov edx, dword [esi + 8]
mov dword [0x42bf74], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42bf68], esi
cmp ecx, 2
je 0x418136
or esi, 0x8000
mov dword [0x42bf68], esi
shl eax, 8
add eax, edx
mov dword [0x42bf6c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x418171
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418171
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x418189
cmp eax, 0x20b
je 0x418176
mov dword [ebp - 0x1c], esi
jmp 0x41819d
cmp dword [ecx + 0x84], 0xe
jbe 0x418171
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x418197
cmp dword [ecx + 0x74], 0xe
jbe 0x418171
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00419327
pop ecx
test eax, eax
jne 0x4181c9
cmp dword [0x42bf54], 1
jne 0x4181b6
call fcn.0041f089
push 0x1c
call fcn.0041ef11
push 0xff
call fcn.004182b2
pop ecx
pop ecx
call fcn.0041f687
mov dword [ebp - 4], esi
call fcn.0041a816
test eax, eax
jge 0x4181e2
push 0x1b
call fcn.004180b1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42d594], eax
call fcn.0041f565
mov dword [0x42bf4c], eax
call fcn.0041f4c3
test eax, eax
jge 0x418208
push 8
call fcn.004180b1
pop ecx
call fcn.0041f290
test eax, eax
jge 0x418219
push 9
call fcn.004180b1
pop ecx
push 1
call fcn.004182e2
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41822f
push eax
call fcn.004180b1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041f233
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x418250
movzx eax, word [ebp - 0x40]
jmp 0x418253
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00414ca0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x418271
push edi
call fcn.0041840d
call fcn.0041842f
jmp 0x4182a3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041edf7
ret
Function at 0x41834c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x42bfa4], esi
push edi
jne 0x41836c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x42bfa0], esi
mov byte [0x42bf9c], al
jne 0x4183d2
mov ecx, dword [0x42d58c]
test ecx, ecx
je 0x4183b3
mov eax, dword [0x42d588]
sub eax, 4
cmp eax, ecx
jmp 0x4183ac
mov eax, dword [eax]
test eax, eax
je 0x41839e
call eax
mov eax, dword [0x42d588]
sub eax, 4
cmp eax, dword [0x42d58c]
mov dword [0x42d588], eax
jae 0x418396
mov eax, 0x42a030
mov esi, 0x42a038
cmp eax, esi
mov edi, eax
jae 0x4183d2
mov eax, dword [edi]
test eax, eax
je 0x4183cb
call eax
add edi, 4
cmp edi, esi
jb 0x4183c3
mov eax, 0x42a03c
mov esi, 0x42a044
cmp eax, esi
mov edi, eax
jae 0x4183f1
mov eax, dword [edi]
test eax, eax
je 0x4183ea
call eax
add edi, 4
cmp edi, esi
jb 0x4183e2
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41840b
push dword [ebp + 8]
mov dword [0x42bfa4], 1
call fcn.004182b2
pop ebp
ret
Function at 0x418dd1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x42d448]
push edi
jae 0x418fa8
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x42d460]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x418fa8
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x418e7c
test dl, 2
jne 0x418e7c
test dl, 0x48
je 0x418e46
cmp byte [eax + 5], 0xa
je 0x418e46
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x418e77
mov dword [0x42bf5c], ecx
jmp 0x418faf
cmp eax, 0x6d
jne 0x418e83
xor eax, eax
jmp 0x418fbc
push eax
call fcn.0041ec01
pop ecx
jmp 0x418fb9
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x418fa3
test eax, eax
je 0x418eb6
cmp byte [ebx], 0xa
jne 0x418eb6
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x418ebf
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x418f9d
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x418f8d
cmp al, 0xd
je 0x418ef1
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x418f7f
dec ecx
cmp dword [ebp - 8], ecx
jae 0x418f0b
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x418f06
add dword [ebp - 8], 2
jmp 0x418f5f
mov dword [ebp - 8], eax
jmp 0x418f7b
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418f33
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418f7b
cmp dword [ebp - 0x10], 0
je 0x418f7b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x418f54
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x418f5f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x418f7e
cmp ebx, dword [ebp + 0xc]
jne 0x418f64
cmp byte [ebp - 1], 0xa
jne 0x418f64
mov byte [ebx], 0xa
jmp 0x418f7e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004200d9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418f7f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x418ed5
jmp 0x418f9d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x418f9d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x418fbc
and dword [0x42bf5c], 0
mov dword [0x42bf58], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a9c1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x42a26c]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x42d448]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x41ab63
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x42d460]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x41ab63
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x41aa37
xor eax, eax
jmp 0x41ab77
test al, 0x20
je 0x41aa4a
push 2
push 0
push 0
push ecx
call fcn.004200d9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41aadf
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x41ab40
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41aaa4
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41aa95
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x41aa77
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
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 0x41ab04
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x41ab0d
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x41aa6c
jmp 0x41ab0d
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ab04
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x41ab0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x41ab5e
cmp dword [ebp - 0x68], eax
je 0x41ab3d
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x41ab32
mov dword [0x42bf58], 9
mov dword [0x42bf5c], eax
jmp 0x41ab74
push dword [ebp - 0x68]
call fcn.0041ec01
pop ecx
jmp 0x41ab74
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41ab52
cmp byte [edi], 0x1a
je 0x41aa30
mov dword [0x42bf58], 0x1c
jmp 0x41ab6d
sub eax, dword [ebp - 0x7c]
jmp 0x41ab77
mov dword [0x42bf58], 9
and dword [0x42bf5c], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041eb09
add ebp, 0x3a4
leave
ret
Function at 0x41ecd8
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.00417cd0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ed73
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 [0x42bf64]
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 0x41ed73
cmp eax, 1
je 0x41ed94
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 0x41ed73
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41ed40
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41ed6f
xor eax, eax
inc eax
jmp 0x41edb3
cmp edi, eax
jae 0x41ed77
xor eax, eax
jmp 0x41edb3
cmp eax, esi
jae 0x41ed7e
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 [0x42bf64]
jmp 0x41ed97
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 0x41ef11
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42a26c]
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 + 0x42a708]
je 0x41ef48
inc eax
cmp eax, 0x13
jb 0x41ef39
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42a708]
jne 0x41f06b
mov eax, dword [0x42bf54]
cmp eax, 1
je 0x41f046
cmp eax, edx
jne 0x41ef78
cmp dword [0x42a214], 1
je 0x41f046
cmp ecx, 0xfc
je 0x41f06b
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 0x41efae
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0041e9e0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.0041d270
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41efe2
mov eax, edi
push eax
call fcn.0041d270
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x427c88
push edi
call fcn.004168f0
add esp, 0x10
push edi
call fcn.0041d270
push dword [esi + 0x42a70c]
mov ebx, eax
call fcn.0041d270
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00417cd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041e9e0
push edi
push ebx
call fcn.0041e9f0
push 0x427c68
push ebx
call fcn.0041e9f0
push dword [esi + 0x42a70c]
push ebx
call fcn.0041e9f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00421c9a
add esp, 0x2c
jmp 0x41f06b
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x42a70c]
push dword [esi]
call fcn.0041d270
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.0041eb09
add ebp, 0x90
leave
ret
Function at 0x421a71
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 0x421a9f
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 0x421aa6
cmp ebx, dword [eax + 4]
jae 0x421aa6
xor eax, eax
jmp 0x421c96
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x421ab7
xor eax, eax
inc eax
jmp 0x421c95
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x421acd
cmp ecx, edx
jae 0x421c12
cmp dword [eax + 4], 0
je 0x421ad6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x421abe
cmp dword [ebp + 8], 0
je 0x421af8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x421c12
cmp eax, esi
jae 0x421c12
mov eax, dword [0x42c180]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x421b1d
cmp dword [esi*4 + 0x42c188], edi
je 0x421c16
inc esi
cmp esi, eax
jl 0x421b0b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421c92
cmp dword [ebp - 8], 0x1000000
jne 0x421c92
test byte [ebp - 0xc], 0xcc
je 0x421b9b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x421c92
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x421c92
cmp word [eax + 0x18], 0x10b
jne 0x421c92
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x421c92
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x421b9b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x421b9b
test byte [ecx + 0x27], 0x80
jne 0x421c12
push 1
push 0x42c1c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x421aaf
mov ecx, dword [0x42c180]
test ecx, ecx
mov edx, ecx
jle 0x421bcf
lea eax, [ecx*4 + 0x42c184]
cmp dword [eax], edi
je 0x421bcf
dec edx
sub eax, 4
test edx, edx
jg 0x421bc3
test edx, edx
jne 0x421c00
push 0xf
pop ebx
cmp ecx, ebx
jg 0x421bdc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x421bf4
lea eax, [edx*4 + 0x42c188]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x421be2
cmp ecx, 0x10
jge 0x421c00
inc ecx
mov dword [0x42c180], ecx
push 0
push 0x42c1c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x421aaf
xor eax, eax
jmp 0x421c95
test esi, esi
jle 0x421aaf
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42c1c8
call ebx
test eax, eax
jne 0x421aaf
cmp dword [esi*4 + 0x42c188], edi
je 0x421c6c
mov eax, dword [0x42c180]
lea esi, [eax - 1]
test esi, esi
jl 0x421c5a
cmp dword [esi*4 + 0x42c188], edi
je 0x421c56
dec esi
jns 0x421c4a
test esi, esi
jge 0x421c6a
cmp eax, 0x10
jge 0x421c65
inc eax
mov dword [0x42c180], eax
lea esi, [eax - 1]
jmp 0x421c6c
je 0x421c84
xor ecx, ecx
test esi, esi
jl 0x421c84
lea eax, [ecx*4 + 0x42c188]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x421c72
push 0
push 0x42c1c8
call ebx
jmp 0x421aaf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421c9a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42c1cc], ebx
push esi
push edi
jne 0x421d1a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x421d55
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x427f84
push edi
call esi
test eax, eax
mov dword [0x42c1cc], eax
je 0x421d55
push 0x427f74
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42c1d0], eax
call esi
cmp dword [0x42bf64], 2
mov dword [0x42c1d4], eax
jne 0x421d1a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42c1dc], eax
je 0x421d1a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42c1d8], eax
mov eax, dword [0x42c1d8]
test eax, eax
je 0x421d5f
call eax
test eax, eax
je 0x421d46
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42c1dc]
test eax, eax
je 0x421d46
test byte [ebp - 8], 1
jne 0x421d5f
cmp dword [0x42bf70], 4
jb 0x421d59
or byte [ebp + 0x12], 0x20
jmp 0x421d7e
xor eax, eax
jmp 0x421d8e
or byte [ebp + 0x12], 4
jmp 0x421d7e
mov eax, dword [0x42c1d0]
test eax, eax
je 0x421d7e
call eax
mov ebx, eax
test ebx, ebx
je 0x421d7e
mov eax, dword [0x42c1d4]
test eax, eax
je 0x421d7e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42c1cc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421e2f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00417cd0
mov eax, dword [0x42a26c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x42d448]
mov dword [ebp - 4], eax
jae 0x421f7a
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x42d460]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x421f7a
push 1
push esi
push ebx
call fcn.0041844d
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x421f84
push 2
push esi
push ebx
call fcn.0041844d
add esp, 0xc
cmp eax, 0xffffffff
je 0x421f84
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x421f24
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0041eb20
push 0x8000
push ebx
call fcn.00422819
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x421ee0
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0041a9c1
add esp, 0xc
cmp eax, 0xffffffff
je 0x421efe
sub edi, eax
test edi, edi
jg 0x421ed5
jmp 0x421f14
cmp dword [0x42bf5c], 5
jne 0x421f11
mov dword [0x42bf58], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.00422819
pop ecx
pop ecx
jmp 0x421f64
jge 0x421f64
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0041844d
push ebx
call fcn.0041f89d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x421f64
mov dword [0x42bf58], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x42bf5c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0041844d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x421f87
mov dword [0x42bf58], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041eb09
leave
ret
Function at 0x40d78a
Capabilities:
Packed with generic packer

Disassembly:
pushfd
lea eax, [ebx + eax*4]
jmp loc.0041e557

Function at 0x40e29a
Capabilities:
Packed with generic packer

Disassembly:
mov byte [esp + 4], al
pushal
lea esp, [esp + 0x28]
jb 0x411b58
btc ax, si
mov eax, dword [ebp - 0x20]
adc cl, 0xe5
not eax
cmc
mov cl, byte [eax + edi]
rcr dh, 2
add cl, cl
cwde
call fcn.0041696a

Function at 0x40e2f2
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x417116
jmp loc.0041f2a7

Function at 0x40e385
Capabilities:
Packed with generic packer

Disassembly:
mov edx, 1
pushal
shr ecx, 1
jmp 0x4164b9

Function at 0x40e5e4
Capabilities:
Packed with generic packer

Disassembly:
pushal
pushfd
test dh, 1
pushfd
jmp loc.00422796

Function at 0x40e847
Capabilities:
Packed with generic packer

Disassembly:
cmp ecx, 7
pushfd
jmp 0x40ef8c
push 0xa11a954a
jmp fcn.00418160

Function at 0x40e9c0
Capabilities:
Packed with generic packer

Disassembly:
mov byte [esp], dl
lea esp, [esp + 0x28]
call fcn.0040eb2d
push eax
pushfd
lea esp, [esp + 8]
jb 0x416e0a
pushfd
mov eax, ecx
call fcn.00416930
mov ebp, 0x73ea9344
dec esp
or eax, 0x5e13216
ret 0x5d6a
jmp loc.00422149
bswap ax
push 0x97d3da0
push dword [esp]
mov dword [esp + 4], edx
movsx eax, dl
lea eax, [ebx + ecx*4 + 0x360]
jmp 0x4118bb

Function at 0x40eac0
Capabilities:
Packed with generic packer

Disassembly:
pushfd
lea esp, [esp + 0x30]
jae 0x411b58
not ch
pushal
xchg bl, cl
call fcn.0040ee60

Function at 0x40eb57
Capabilities:
Packed with generic packer

Disassembly:
bswap eax
cwde
lea eax, [ebx + 0x50d0]
pushfd
lea esp, [esp + 8]
call fcn.004147b4
pushal
jmp loc.0041e597

Function at 0x40ee60
Capabilities:
Packed with generic packer

Disassembly:
mov ebx, dword [esp + 0x24]
push 0x8c2126b7
seto ch
mov ch, cl
movzx cx, bl
mov ecx, dword [esp + 0x2c]
mov byte [esp], 0xb3
jmp loc.00423017

Function at 0x40ee9b
Capabilities:
Packed with generic packer

Disassembly:
not al
mov al, byte [ebp - 2]
jmp loc.00421f1b

Function at 0x40efd8
Capabilities:
Packed with generic packer

Disassembly:
bsf si, ax
mov edi, dword [ebx + ecx*4]
pop esi
push edx
dec si
sbb esi, esi
add edi, eax
pushal
movsx si, dl
jmp loc.0041eb2c

Function at 0x411b46
Capabilities:
Packed with generic packer

Disassembly:
mov byte [esp], al
mov byte [esp + 4], 0x44
lea esp, [esp + 0x30]
je 0x41818a

Function at 0x4144f2
Capabilities:
Packed with generic packer

Disassembly:
pushfd
mov esp, esi
push 0x61de936e
pushal
pushal
pushfd
lea esp, [esp + 0x48]
jmp 0x4145f4
not ah
mov ax, word [esp]
lea eax, [0x40e37f]
push dword [esp]
mov dword [esp + 0x28], 0x411a6e
call fcn.00414650
test ax, 0x15b8
cmp al, 9
pushal
push dword [esp]
push ebp
lea esp, [esp + 0x28]
ja 0x418335
pushal
clc
cmc
push dword [esp + 4]
imul edx, edx, 0xa
cmc
call fcn.0040ee44
bts si, sp
rcr edx, 1
jmp loc.0041eed7
jmp 0x40ee87

Function at 0x41453d
Capabilities:
Packed with generic packer

Disassembly:
mov ebx, dword [esp + 4]
pushal
movzx ecx, al
mov cl, 0x55
pushfd
mov ecx, dword [esp + 0x2c]
push 0xe94a0263
pushfd
lea esp, [esp + 0x38]
jmp loc.004228d6