joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100018b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100151a0]
test eax, eax
je 0x100018d8
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.100024d4
push dword [0x100151a0]
call fcn.1000223e
add esp, 0x14
pop ebp
ret

Function at 0x10001d40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push str.kernel32
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10001dfd
push esi
push 1
push edi
call fcn.10002a70
mov esi, eax
add esp, 8
test esi, esi
je 0x10001df4
push esi
push edi
push 0
push str.kernel32
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10001ddf
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0x1000f22c
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10001dd7
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push esi
movzx eax, word [edx + 0x12]
mov dword [ecx], eax
movzx eax, word [edx + 0x10]
mov dword [ecx + 4], eax
movzx eax, word [edx + 0x16]
mov dword [ecx + 8], eax
call fcn.1000290c
add esp, 4
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.1000290c
add esp, 4
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10008987
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
mov bh, 0x41
adc al, 0xf
mov bh, 0x71
push es

Function at 0x10008c87
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc eax, dword [ebp + 0x50c0458d]
call fcn.10008957
push eax
push esi
push dword [ebp + 8]
call fcn.1000890c
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.10008947
xchg ecx, eax
jle 0x10008c49
lea ecx, [ebp + 0x5d88e845]
call 0xf95e1508
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.10008957
push eax
push esi
push dword [ebp + 8]
call fcn.1000890c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
Function at 0x10008d45
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.10008957
push eax
push esi
push dword [ebp + 8]
call fcn.1000890c
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x10008de2
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10008957
push eax
push esi
push dword [ebp + 8]
call fcn.1000890c
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10008947
sub eax, 0x88d9993f
popfd
jl 0x10008dcc
invalid
invalid
Function at 0x10008fd8
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10008ffb
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10008ff6
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10008fe0
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10008fe8
cmp edx, ebx
jne 0x10009136
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10008fb7
add eax, dword [eax + 4]
jmp 0x10008fa4
mov dword [ebp + 0xc], ebx
jmp 0x10009006
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000901e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000903c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000909a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10009081
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000908a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10009094
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10009076
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10009000
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x100090e7
dec eax
je 0x100090de
sub eax, 3
je 0x100090d5
mov dword [ebp - 4], 0x40
jmp 0x10009104
mov dword [ebp - 4], 4
jmp 0x100090ea
mov dword [ebp - 4], 0x20
jmp 0x100090ea
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10009136
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x100090b6
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10008947
add byte [ecx + edi*8 + 0x1475ff84], bh
push 1
push esi
call edi
mov eax, esi
jmp 0x10009142
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100091ad
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc eax
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10008957
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000890c
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10008957
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000890c
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.10008957
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000890c
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.10008947
xchg esi, eax
mov bh, 0xbe
fadd qword [eax - 0x5335b]
inc dword [eax]
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.10008957
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000890c
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.10008947
rol dword [edi - 0x5a7fd317], 1
pushfd
stc
invalid
Function at 0x40344c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40345b
pop dword [ebp - 0x44]
mov eax, 0x6e5e76c5
add eax, 0x91e1bd96
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x1cc06092
sub dword [ebp - 0x54], 0xce6e1b47
mov dword [ebp - 0x50], 0xd037fa59
add dword [ebp - 0x50], 0x61fb51ec
mov dword [ebp - 0x4c], 0x65bbacd6
sub dword [ebp - 0x4c], 0x196f68a8
mov dword [ebp - 0x48], 0xb3268f8b
add dword [ebp - 0x48], 0x4cd97075
lea eax, [ebp - 0x54]
push eax
mov eax, 0x3751f3f
sub eax, 0x334deeb
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x53a34126
add dword [ebp - 0x54], 0x20cf2830
mov dword [ebp - 0x50], 0x3fdafc06
sub dword [ebp - 0x50], 0xfe6e9a91
mov dword [ebp - 0x4c], 0x7180a202
sub dword [ebp - 0x4c], 0xe113596
mov dword [ebp - 0x48], 0x1cd83fb4
sub dword [ebp - 0x48], 0x1cd83fb4
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xd42e5530
add eax, 0x2c11eb20
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x36f5f
push 0
call eax
mov ecx, 0x4862
xor edi, edi
add edi, eax
mov edx, 0x408400
add edx, dword [ebp - 0x44]
mov esi, 0xb7462c14
sub esi, 0xfdab0729
sub dword [ebp - 0x28], edi
mov ebx, dword [edx]
sub dword [ebp - 8], ebx
xor ebx, esi
sub dword [ebp - 8], 0x5307b594
mov dword [edi], ebx
sub dword [ebp - 0x34], esi
add edi, 4
add edx, 0xf1478cfe
add edx, 0xeb87306
loop 0x403573
add eax, 0x1145b
xor ebx, ebx
add ebx, eax
add eax, 0xf883cfff
add eax, 0x77c3006
mov ecx, 0x922db8
add ecx, 0xffadd248
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40107e
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5cf708]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [0x5cf70c]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x2c], 0x9e3779b9
call fcn.00401077
mov eax, dword [0x5cf710]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x5cf714]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x5de95c], 0xc
mov dword [ebp - 4], eax
jne 0x401103
push edx
lea eax, [ebp - 0x38]
push eax
push edx
lea eax, [ebp - 0x438]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x5de95c]
cmp eax, 0xfa9
jne 0x40111f
mov dword [0x5de958], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401135
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x5de8ac], 0
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [0x5de954], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x4010d3
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x4078df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5cec70]
jne 0x4078e9
repz ret
jmp fcn.0040c209

Function at 0x40a726
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.00403abe
and dword [ebp - 4], 0
cmp dword [0x5d393c], 0
mov ebx, eax
jne 0x40a7d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a888
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a888
push eax
call fcn.00403a4c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5d393c], eax
call esi
push eax
call fcn.00403a4c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5d3940], eax
call esi
push eax
call fcn.00403a4c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5d3944], eax
call esi
push eax
call fcn.00403a4c
pop ecx
mov dword [0x5d394c], eax
test eax, eax
je 0x40a7d7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403a4c
pop ecx
mov dword [0x5d3948], eax
mov eax, dword [0x5d3948]
cmp eax, ebx
je 0x40a82f
cmp dword [0x5d394c], ebx
je 0x40a82f
push eax
call fcn.00403ac7
push dword [0x5d394c]
mov esi, eax
call fcn.00403ac7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a82f
test edi, edi
je 0x40a82f
call esi
test eax, eax
je 0x40a826
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a826
test byte [ebp - 0xc], 1
jne 0x40a82f
or dword [ebp + 0x10], 0x200000
jmp 0x40a868
mov eax, dword [0x5d3940]
cmp eax, ebx
je 0x40a868
push eax
call fcn.00403ac7
pop ecx
test eax, eax
je 0x40a868
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a868
mov eax, dword [0x5d3944]
cmp eax, ebx
je 0x40a868
push eax
call fcn.00403ac7
pop ecx
test eax, eax
je 0x40a868
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5d393c]
call fcn.00403ac7
pop ecx
test eax, eax
je 0x40a888
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a88a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0xfffffc19
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0xc], 0
jle 0x4013d9
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401f00
add esp, 0xc
push 0
push 0x8000080
push 3
push 0
push 3
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40137b
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4013d9
push 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4013bb
mov dword [ebp - 0x14], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4013d9
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
je 0x4013cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x4013d9
cmp dword [ebp - 0x18], 0xffffffff
je 0x4013e9
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x401540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0xfffffc19
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0
jle 0x401641
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4015b4
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x401641
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 2
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4015ed
mov dword [ebp - 0x14], 0xfffffffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x401641
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401619
mov dword [ebp - 0x14], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
je 0x401633
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x40163a
mov dword [ebp - 0x14], 0
jmp 0x401641
cmp dword [ebp - 0x18], 0xffffffff
je 0x401651
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x401ee7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e2c4]
jne 0x401ef1
repz ret
jmp fcn.00404142
Function at 0x40a4b0
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.004051b9
and dword [ebp - 4], 0
cmp dword [0x440338], 0
mov ebx, eax
jne 0x40a561
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a612
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x432584
push edi
call esi
test eax, eax
je 0x40a612
push eax
call fcn.00405147
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x440338], eax
call esi
push eax
call fcn.00405147
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44033c], eax
call esi
push eax
call fcn.00405147
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x440340], eax
call esi
push eax
call fcn.00405147
pop ecx
mov dword [0x440348], eax
test eax, eax
je 0x40a561
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405147
pop ecx
mov dword [0x440344], eax
mov eax, dword [0x440344]
cmp eax, ebx
je 0x40a5b9
cmp dword [0x440348], ebx
je 0x40a5b9
push eax
call fcn.004051c2
push dword [0x440348]
mov esi, eax
call fcn.004051c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a5b9
test edi, edi
je 0x40a5b9
call esi
test eax, eax
je 0x40a5b0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a5b0
test byte [ebp - 0xc], 1
jne 0x40a5b9
or dword [ebp + 0x10], 0x200000
jmp 0x40a5f2
mov eax, dword [0x44033c]
cmp eax, ebx
je 0x40a5f2
push eax
call fcn.004051c2
pop ecx
test eax, eax
je 0x40a5f2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a5f2
mov eax, dword [0x440340]
cmp eax, ebx
je 0x40a5f2
push eax
call fcn.004051c2
pop ecx
test eax, eax
je 0x40a5f2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440338]
call fcn.004051c2
pop ecx
test eax, eax
je 0x40a612
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a614
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret