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

Disassembly:
push 0x60
push 0x4087b0
call fcn.00404884
mov edi, 0x94
mov eax, edi
call fcn.00401e50
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 [0x40a6e8], ecx
mov eax, dword [esi + 4]
mov dword [0x40a6f4], eax
mov edx, dword [esi + 8]
mov dword [0x40a6f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40a6ec], esi
cmp ecx, 2
je 0x4021d2
or esi, 0x8000
mov dword [0x40a6ec], esi
shl eax, 8
add eax, edx
mov dword [0x40a6f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40220d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40220d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402225
cmp eax, 0x20b
je 0x402212
mov dword [ebp - 0x1c], esi
jmp 0x402239
cmp dword [ecx + 0x84], 0xe
jbe 0x40220d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402233
cmp dword [ecx + 0x74], 0xe
jbe 0x40220d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402365
pop ecx
test eax, eax
jne 0x402265
cmp dword [0x40a6d0], 1
jne 0x402252
call fcn.00404046
push 0x1c
call fcn.00403ecf
push 0xff
call fcn.00403b14
pop ecx
pop ecx
call fcn.004047fb
mov dword [ebp - 4], esi
call fcn.00404650
test eax, eax
jge 0x40227e
push 0x1b
call fcn.0040214d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40bc58], eax
call fcn.0040452e
mov dword [0x40a6c8], eax
call fcn.0040448c
test eax, eax
jge 0x4022a4
push 8
call fcn.0040214d
pop ecx
call fcn.00404259
test eax, eax
jge 0x4022b5
push 9
call fcn.0040214d
pop ecx
call fcn.00403b44
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4022c8
push eax
call fcn.0040214d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004041f0
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4022e9
movzx eax, word [ebp - 0x34]
jmp 0x4022ec
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401000
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40230a
push edi
call fcn.00403c6b
call fcn.00403c8d
jmp 0x40233c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004048bf
ret
Function at 0x403ba9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40a728], esi
push edi
jne 0x403bc9
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 [0x40a724], esi
mov byte [0x40a720], al
jne 0x403c2f
mov ecx, dword [0x40bc28]
test ecx, ecx
je 0x403c10
mov eax, dword [0x40bc24]
sub eax, 4
cmp eax, ecx
jmp 0x403c09
mov eax, dword [eax]
test eax, eax
je 0x403bfb
call eax
mov eax, dword [0x40bc24]
sub eax, 4
cmp eax, dword [0x40bc28]
mov dword [0x40bc24], eax
jae 0x403bf3
mov eax, 0x40a020
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x403c2f
mov eax, dword [edi]
test eax, eax
je 0x403c28
call eax
add edi, 4
cmp edi, esi
jb 0x403c20
mov eax, 0x40a02c
mov esi, 0x40a030
cmp eax, esi
mov edi, eax
jae 0x403c4e
mov eax, dword [edi]
test eax, eax
je 0x403c47
call eax
add edi, 4
cmp edi, esi
jb 0x403c3f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403c69
push dword [ebp + 8]
mov dword [0x40a728], 1
call fcn.00403b14
pop ecx
pop ebp
ret

Function at 0x403ecf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40a590]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a058]
je 0x403efc
inc eax
cmp eax, 0x12
jb 0x403eed
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a058]
jne 0x404030
mov eax, dword [0x40a6d0]
cmp eax, 1
je 0x40400b
cmp eax, edx
jne 0x403f2c
cmp dword [0x40a044], 1
je 0x40400b
cmp ecx, 0xfc
je 0x404030
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403f65
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00405b00
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00405130
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403fa7
lea eax, [ebp - 0x10c]
push eax
call fcn.00405130
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x408b98
push edi
call fcn.00405c00
add esp, 0x10
push edi
call fcn.00405130
push dword [esi + 0x40a05c]
mov ebx, eax
call fcn.00405130
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401e50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405b00
push edi
push ebx
call fcn.00405b10
push 0x408b78
push ebx
call fcn.00405b10
push dword [esi + 0x40a05c]
push ebx
call fcn.00405b10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405a04
add esp, 0x2c
jmp 0x404030
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40a05c]
push dword [esi]
call fcn.00405130
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00405252
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e36
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x40a590]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x40bb04]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x404fc6
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40bb20]
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 - 0x18], ebx
je 0x404fc6
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x404e95
xor eax, eax
jmp 0x404fda
test al, 0x20
je 0x404ea6
push 2
push edi
push edi
push ecx
call fcn.00406580
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404f62
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x404f9a
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x404efc
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x404eed
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x404ed2
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404f3c
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x404f45
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x404ec6
jmp 0x404f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x404fc1
cmp dword [ebp + 8], edi
je 0x404f9a
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x404f8f
mov dword [0x40a6e0], eax
jmp 0x404fcd
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404f84
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x404f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x404f47
push dword [ebp + 8]
call fcn.00404c0d
pop ecx
jmp 0x404fd7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404faf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x404e8e
mov dword [0x40a6dc], 0x1c
mov dword [0x40a6e0], edi
jmp 0x404fd7
sub eax, dword [ebp - 0x14]
jmp 0x404fda
and dword [0x40a6e0], 0
mov dword [0x40a6dc], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00405252
leave
ret
Function at 0x405a04
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40a878], ebx
push esi
push edi
jne 0x405a84
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405abf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x409068
push edi
call esi
test eax, eax
mov dword [0x40a878], eax
je 0x405abf
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40a87c], eax
call esi
cmp dword [0x40a6e8], 2
mov dword [0x40a880], eax
jne 0x405a84
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40a888], eax
je 0x405a84
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40a884], eax
mov eax, dword [0x40a884]
test eax, eax
je 0x405ac9
call eax
test eax, eax
je 0x405ab0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40a888]
test eax, eax
je 0x405ab0
test byte [ebp - 8], 1
jne 0x405ac9
cmp dword [0x40a6f4], 4
jb 0x405ac3
or byte [ebp + 0x12], 0x20
jmp 0x405ae8
xor eax, eax
jmp 0x405af8
or byte [ebp + 0x12], 4
jmp 0x405ae8
mov eax, dword [0x40a87c]
test eax, eax
je 0x405ae8
call eax
mov ebx, eax
test ebx, ebx
je 0x405ae8
mov eax, dword [0x40a880]
test eax, eax
je 0x405ae8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40a878]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40689b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00401e50
mov eax, dword [0x40a590]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40bb04]
mov dword [ebp - 4], eax
jae 0x4069db
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40bb20]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4069db
push 1
push esi
push ebx
call fcn.00405681
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4069e5
push 2
push esi
push ebx
call fcn.00405681
add esp, 0xc
cmp eax, 0xffffffff
je 0x4069e5
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x406988
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.004078f0
push 0x8000
push ebx
call fcn.00407950
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x406947
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.00404e36
add esp, 0xc
cmp eax, 0xffffffff
je 0x406965
sub edi, eax
test edi, edi
jg 0x40693c
jmp 0x40697b
cmp dword [0x40a6e0], 5
jne 0x406978
mov dword [0x40a6dc], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00407950
pop ecx
pop ecx
jmp 0x4069c8
jge 0x4069c8
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00405681
push ebx
call fcn.00404dfa
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 0x4069c8
mov dword [0x40a6dc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40a6e0], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.00405681
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4069e8
mov dword [0x40a6dc], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00405252
leave
ret
Function at 0x4069f7
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 [0x40bb04]
push edi
jae 0x406bbe
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x40bb20]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x406bbe
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x406a9d
test dl, 2
jne 0x406a9d
test dl, 0x48
je 0x406a67
mov al, byte [eax + 5]
cmp al, 0xa
je 0x406a67
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 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 [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406ab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x406a98
mov dword [0x40a6e0], ecx
jmp 0x406bc5
cmp eax, 0x6d
jne 0x406aa4
xor eax, eax
jmp 0x406bd2
push eax
call fcn.00404c0d
pop ecx
jmp 0x406bcf
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x406bb9
test edx, edx
je 0x406ad3
cmp byte [edi], 0xa
jne 0x406ad3
or al, 4
jmp 0x406ad5
and al, 0xfb
mov byte [ecx], al
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 0x406bb3
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x406ba3
cmp al, 0xd
je 0x406b09
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x406b95
dec ecx
cmp dword [ebp - 8], ecx
jae 0x406b23
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x406b1e
add dword [ebp - 8], 2
jmp 0x406b77
mov dword [ebp - 8], eax
jmp 0x406b91
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406b4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406b91
cmp dword [ebp - 0x10], 0
je 0x406b91
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x406b6c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x406b77
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x406b94
cmp edi, dword [ebp + 0xc]
jne 0x406b7c
cmp byte [ebp - 1], 0xa
jne 0x406b7c
mov byte [edi], 0xa
jmp 0x406b94
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00405681
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x406b95
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x406aed
jmp 0x406bb3
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x406bb3
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x406bd2
and dword [0x40a6e0], 0
mov dword [0x40a6dc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d71
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401e50
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e06
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40a6e8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x406e06
cmp eax, 1
je 0x406e1e
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e06
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x406ddb
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x406e02
xor eax, eax
inc eax
jmp 0x406e3a
cmp esi, ebx
jae 0x406e0a
xor eax, eax
jmp 0x406e3a
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40a6e8]
jmp 0x406e20
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b030]
jne 0x40107a
repz ret
jmp fcn.00401e51

Function at 0x408b0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d5a
and dword [ebp - 4], 0
cmp dword [0x45db68], 0
mov ebx, eax
jne 0x408bbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c6d
push eax
call fcn.00404ce8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45db68], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45db6c], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45db70], eax
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x45db78], eax
test eax, eax
je 0x408bbc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x45db74], eax
mov eax, dword [0x45db74]
cmp eax, ebx
je 0x408c14
cmp dword [0x45db78], ebx
je 0x408c14
push eax
call fcn.00404d63
push dword [0x45db78]
mov esi, eax
call fcn.00404d63
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408c14
test edi, edi
je 0x408c14
call esi
test eax, eax
je 0x408c0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c0b
test byte [ebp - 0xc], 1
jne 0x408c14
or dword [ebp + 0x10], 0x200000
jmp 0x408c4d
mov eax, dword [0x45db6c]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c4d
mov eax, dword [0x45db70]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45db68]
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af70
Capabilities:
Set console window title

Disassembly:
sub esp, 0x420
mov eax, dword [0x45b030]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [0x2c3b55c]
push ebx
mov ebx, dword [0x2c3b280]
push esi
mov esi, dword [0x45bf60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40afb1
push str.zolihetujejijitewi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c3b55c]
mov dword [0x45dd0c], esi
cmp eax, 0x114e
jne 0x40afdb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2c3b55c]
cmp eax, 0x2f
jne 0x40affb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call fcn.0040ae60
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401070
add esp, 0x420
ret
Function at 0x25811528
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x25811537
pop dword [ebp - 0x30]
mov eax, 0x25811537
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x92b8bfcb
sub dword [ebp - 0x40], 0x44667a80
mov dword [ebp - 0x3c], 0xe846706b
sub dword [ebp - 0x3c], 0xb6132426
mov dword [ebp - 0x38], 0x44b4345d
add dword [ebp - 0x38], 0x7980fd1
mov dword [ebp - 0x34], 0xa602cea3
add dword [ebp - 0x34], 0x59fd315d
lea eax, [ebp - 0x40]
push eax
mov eax, 0x5023b5f2
sub eax, 0x2aa1e5ae
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xd5f6c90e
add dword [ebp - 0x40], 0x9e7ba048
mov dword [ebp - 0x3c], 0x68e832e4
sub dword [ebp - 0x3c], 0x277bd16f
mov dword [ebp - 0x38], 0x169c763e
add dword [ebp - 0x38], 0x4cd2f62e
mov dword [ebp - 0x34], 0xbdd65730
add dword [ebp - 0x34], 0x4229a8d0
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xc14fcdd5
sub eax, 0x9bcdfd55
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x40af4
push 0
call eax
mov ecx, 0x57db
mov edi, eax
mov esi, 0xdff5026e
sub esi, 0xba726c6e
add esi, dword [ebp - 0x30]
mov ebx, 0xd05d4cde
add ebx, 0x1bbe584f
add dword [ebp - 0x18], esi
mov edx, dword [esi]
sub dword [ebp - 0x10], ecx
sub edx, ebx
sub dword [ebp - 0x24], 0x35de276d
mov dword [edi], edx
xor dword [ebp - 0x1c], 0x9ccd1e3a
add edi, 4
add esi, 0x24cf77aa
add esi, 0xdb30885a
loop 0x2581164e
add eax, 0x1523f
xor ebx, ebx
add ebx, eax
add eax, 0x67d0a5e2
add eax, 0x982f5a23
mov ecx, 0x25800000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x9d4370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x9d438e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x9fd074
push ecx
mov edi, eax
call fcn.009e8198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9d43cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009e802e
push esi
call fcn.009e7fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x9d7850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x9d78ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xa02720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9d78ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.009e81e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x9d78ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa02720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9d792a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.009e9082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x9d7957
mov word [eax], si
add eax, 2
push eax
call fcn.009e9030
add esp, 4
jmp 0x9d7959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x9d78ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9d78b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x9d7ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret