joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001aab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1001aabf
pop dword [ebp - 0x34]
mov eax, 0x6a2ad713
sub eax, 0x5a292c54
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xd579e4f2
sub dword [ebp - 0x44], 0x87279fa7
mov dword [ebp - 0x40], 0x5aa0cc82
sub dword [ebp - 0x40], 0x286d803d
mov dword [ebp - 0x3c], 0x48609524
add dword [ebp - 0x3c], 0x3ebaf0a
mov dword [ebp - 0x38], 0x480cbe25
sub dword [ebp - 0x38], 0x480cbe25
lea eax, [ebp - 0x44]
push eax
mov eax, 0xbd24f83b
sub eax, 0xad208773
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xd2f11ffb
sub dword [ebp - 0x44], 0x5e7eb6a5
mov dword [ebp - 0x40], 0x24338aec
add dword [ebp - 0x40], 0x1d38d689
mov dword [ebp - 0x3c], 0x9ade539e
sub dword [ebp - 0x3c], 0x376ee732
mov dword [ebp - 0x38], 0xee992fd0
sub dword [ebp - 0x38], 0xee992fd0
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x6309d77f
sub eax, 0x5305669b
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x405ae
push 0
call eax
mov ecx, 0x3fed
mov edx, eax
mov esi, 0xe3226316
add esi, 0x2ce3ccea
add esi, dword [ebp - 0x34]
mov ebx, 0xb6b6f660
sub ebx, 0x14d10890
sub dword [ebp - 0x10], 0x553c6ad1
mov edi, dword [esi]
sub dword [ebp - 0x20], 0xb731fddf
sub edi, ebx
sub dword [ebp - 0x20], 0x773cb467
mov dword [edx], edi
xor dword [ebp - 0x2c], 0xa027113
add edx, 0xa62f1f02
sub edx, 0xa62f1efe
add esi, 0x813d3e3a
sub esi, 0x813d3e36
loop 0x1001abdb
add eax, 0xfc67aac6
sub eax, 0xfc66b83f
mov ebx, eax
add eax, 0x308a9faa
add eax, 0xcf75605b
mov ecx, 0x496e4794
add ecx, 0xc691b86c
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x46cf30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a000]
push edi
jmp 0x46cf4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46cf51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46cf40
mov eax, 1
add ebx, ebx
jne 0x46cf63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46cf74
jne 0x46cf93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46cf93
dec eax
add ebx, ebx
jne 0x46cf80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46cf58
add ebx, ebx
jne 0x46cf8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46cfe5
xor ecx, ecx
sub eax, 3
jb 0x46cfab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46d01a
sar eax, 1
mov ebp, eax
jmp 0x46cfb6
add ebx, ebx
jne 0x46cfb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46cf84
inc ecx
add ebx, ebx
jne 0x46cfc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46cf84
add ebx, ebx
jne 0x46cfd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46cfc6
jne 0x46cfe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46cfc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46d004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46cff6
jmp 0x46cf46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46d004
add edi, ecx
jmp 0x46cf46
pop esi
mov edi, esi
mov ecx, 0x1499
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46d022
cmp byte [edi], 0xa
jne 0x46d022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46d027
lea edi, [esi + 0x68000]
mov eax, dword [edi]
or eax, eax
je 0x46d096
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x87150]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x87238]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46d054
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x87240]
or eax, eax
je 0x46d090
mov dword [ebx], eax
add ebx, 4
jmp 0x46d071
call dword [esi + 0x8723c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x46d0c7
cmp al, 0xef
ja 0x46d0ba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46d09c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x46d0a9
mov ebp, dword [esi + 0x87244]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46d0fb
sub esp, 0xffffff80
jmp 0x4114f4
Function at 0x401ad0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
push 0x1000
lea ecx, [esi + 0x2110]
push 0
push ecx
mov dword [esi], vtable.CTRL_BOX.0
mov dword [esi + 0x2004], 0
mov dword [esi + 0x2008], 0
mov dword [esi + 0x200c], 0xffffff9c
mov dword [esi + 0x512c], eax
call fcn.0040a680
add esp, 0xc
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call edi
push 0x80ffff
mov dword [esi + 0x4124], eax
call edi
push str.Arial_Cyr
push 0
push 2
push 0
push 0
push 0
push 0
push 0
push 0
push 0x258
push 0
push 0
push 0
push 0x10
mov dword [esi + 0x5128], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
idiv dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esi + 0x3120], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x401a90
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
pop edi
mov eax, esi
pop esi
ret 8

Function at 0x401ad4
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
push 0x1000
lea ecx, [esi + 0x2110]
push 0
push ecx
mov dword [esi], vtable.CTRL_BOX.0
mov dword [esi + 0x2004], 0
mov dword [esi + 0x2008], 0
mov dword [esi + 0x200c], 0xffffff9c
mov dword [esi + 0x512c], eax
call fcn.0040a680
add esp, 0xc
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call edi
push 0x80ffff
mov dword [esi + 0x4124], eax
call edi
push str.Arial_Cyr
push 0
push 2
push 0
push 0
push 0
push 0
push 0
push 0
push 0x258
push 0
push 0
push 0
push 0x10
mov dword [esi + 0x5128], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
idiv dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esi + 0x3120], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x401a90
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x4026b0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x5c
mov eax, dword [0x421fbc]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1548], 0
je 0x40277b
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
lea edx, [esi + 0x15c4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esi + 0x1504], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
mov ecx, edx
mov edx, dword [esi + 0x1504]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esi + 0x1504]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x12]
movzx ecx, word [esp + 0x10]
movzx edx, word [esp + 0xe]
push eax
movzx eax, word [esp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push str._02d:_02d:_02d__d
push ecx
call fcn.0040ab25
add esp, 0x18
mov ecx, dword [esp + 0x5c]
pop esi
xor ecx, esp
call fcn.0040a66a
add esp, 0x5c
ret
Function at 0x402b30
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x119fc], edx
lea edx, [esi + 0x119f0]
push edx
push 0
push esi
push 0x402b00
mov dword [esi + 0x11a04], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x119f8], ecx
mov ecx, dword [esp + 0x1c]
push 0x2000
push 0
mov dword [esi + 0x11a00], eax
mov dword [esi + 0x119f4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x119ec], eax
pop esi
ret 0x14
Function at 0x4042c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call fcn.004010c0
cmp eax, dword [esi + 0x2004]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jge 0x4042ed
mov eax, dword [esi + 0x2008]
mov ecx, dword [esi + eax*4 + 4]
push edi
push ecx
call ebx
jmp 0x4042ef
xor eax, eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov ecx, esi
call fcn.004010c0
cmp eax, dword [esi + 0x2004]
jge 0x404318
mov edx, dword [esi + 0x2008]
mov eax, dword [esi + edx*4 + 4]
push edi
push eax
call ebx
jmp 0x40431a
xor eax, eax
pop edi
pop esi
pop ebx
mov dword [esp + 4], eax
jmp dword [sym.imp.USER32.dll_UpdateWindow]

Function at 0x404330
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, ecx
call fcn.004010c0
cmp eax, dword [esi + 0x2004]
jne 0x404350
pop edi
mov eax, 0x41c6ea
pop esi
ret 4
push edi
mov ecx, esi
call fcn.004010c0
cmp eax, dword [esi + 0x2004]
jge 0x404374
mov eax, dword [esi + 0x2008]
mov ecx, dword [esi + eax*4 + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x404376
xor eax, eax
push 0xff
lea edi, [esi + 0x2010]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
mov ecx, esi
call section..text
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x407c10
Capabilities:
Accept command line arguments
Create process on windows
Set current directory

Disassembly:
sub esp, 0x258
mov eax, dword [0x421fbc]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x264]
test eax, eax
push ebx
push esi
mov ecx, 8
push edi
mov edi, dword [esp + 0x268]
mov dword [0x4429e4], ecx
je 0x407c4f
cmp byte [eax], 0x38
jne 0x407c4f
mov dword [0x4429e4], ecx
mov dword [0x4429e0], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x60]
nop
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x407c60
cmp byte [esp + 0x60], 0x22
jne 0x407c8c
lea eax, [esp + 0x61]
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax - 1], cl
add eax, 1
test cl, cl
jne 0x407c80
lea eax, [esp + 0x60]
push 0x22
push eax
call fcn.0040ac60
add esp, 8
test eax, eax
je 0x407ca2
mov byte [eax], 0
lea ecx, [esp + 0x60]
push 0x5c
push ecx
call fcn.0040ad20
add esp, 8
test eax, eax
je 0x407cb8
mov byte [eax], 0
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x104
call fcn.0040a239
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
add esp, 4
test esi, esi
je 0x407d09
push 0x41c6d4
push str.Trace
call fcn.0040b2f4
push 0x41c6b8
push eax
mov dword [esi], eax
call fcn.0040b336
mov eax, dword [esi]
push eax
call fcn.0040adc0
add esp, 0x14
push 0x14
call ebx
jmp 0x407d0b
xor esi, esi
cmp dword [0x4429e4], 6
mov dword [0x442a30], esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
jne 0x407d31
push 0
push 0x406c20
push 0
push str.DEVS6CFG
push edi
call esi
cmp dword [0x4429e4], 8
jne 0x407d4b
push 0
push 0x406c20
push 0
push str.DEVS8CFG
push edi
call esi
mov ecx, dword [0x4429d0]
test ecx, ecx
je 0x407d74
cmp dword [ecx + 0x90], 0
je 0x407d74
mov ecx, dword [0x442a30]
push 0x41ca5c
call fcn.00403f50
mov ecx, dword [0x4429d0]
mov eax, dword [0x4429d4]
test eax, eax
je 0x407d8c
push eax
call fcn.0040a1d6
mov ecx, dword [0x4429d0]
add esp, 4
test ecx, ecx
je 0x407da0
mov esi, ecx
call fcn.00407e60
push esi
call fcn.0040a1d6
add esp, 4
mov eax, dword [0x442a30]
test eax, eax
je 0x407db2
push eax
call fcn.0040a1d6
add esp, 4
cmp dword [0x442a34], 0
je 0x407e12
push 0x3e8
call ebx
push 0x44
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0040a680
add esp, 0xc
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 1
mov word [esp + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a66a
add esp, 0x258
ret 0x10
Function at 0x408020
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x41be1b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x421fbc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
push 0x8a8
call fcn.0040a239
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x407f54
mov eax, dword [edi + 0x84]
mov dword [esi + 8], eax
lea eax, [edi + 0x88]
mov ecx, esi
mov dword [esi + 0x850], eax
mov dword [esi], 1
mov dword [esi + 0x8a4], 0
call fcn.004089d0
jmp 0x407f56
xor esi, esi
mov dword [0x442948], esi
cmp dword [esi], 0
mov dword [esp + 0x1c], 0xffffffff
jne 0x407fc9
mov ecx, dword [edi + 0x84]
push 0x41ca9c
push 0x400
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x442948]
test ecx, ecx
je 0x407fab
cmp dword [ecx], 0
mov esi, ecx
je 0x407fa2
push 1
push str._Normal_Termination
call fcn.00408910
push esi
call fcn.0040a1d6
add esp, 4
mov dword [0x442948], 0
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
lea edx, [esp + 0x10]
push edx
push 0
push edi
push 0x407e30
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [edi + 0x80], eax
nop
push 0x64
call esi
mov eax, dword [0x442948]
cmp dword [eax + 0x31c], 0
je 0x407ff0
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
jmp 0x407ee0
Function at 0x409c20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
push 0x442b18
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, 0x442b18
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409c41
sub eax, edx
cmp eax, 3
jne 0x409c60
cmp byte [0x442b1a], 0x5c
jne 0x409c60
mov byte [0x442b1a], bl
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x409c7c
mov edx, 0x442b18
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x409c70
mov eax, dword [esp + 0x70]
mov esi, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409c82
mov edi, 0x442b18
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x409c95
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov edi, 0x41c99c
mov esi, ebp
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x10], 0x4c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x442b18
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x200
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x88002c
mov word [esp + 0x48], bx
mov word [esp + 0x4a], bx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0x409ae0
mov dword [esp + 0x58], ebx
jne 0x409d4a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
jmp 0x409d4e
mov eax, dword [esp + 0x74]
mov edi, 0x41c9dc
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x409d6b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
cmp eax, ebx
jne 0x409d79
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov edi, 0x41c9dc
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x409deb
cmp word [esp + 0x4a], bx
mov edi, dword [esp + 0x1c]
jne 0x409deb
mov esi, dword [esp + 0x28]
lea esi, [esi + esi - 1]
xor eax, eax
cmp esi, ebx
jbe 0x409db7
mov cl, byte [edi]
add edi, 1
test cl, cl
jne 0x409da4
add eax, 1
movzx edx, ax
cmp edx, esi
jb 0x409da4
lea eax, [edi + 1]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409dc0
mov edi, 0x442b18
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x409dd3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 0x442b18
pop ebx
add esp, 0x4c
ret

Function at 0x40a66a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421fbc]
jne 0x40a674
repz ret
jmp fcn.0040cecc
Function at 0x411209
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x411236
call fcn.0040ec20
mov dword [eax], esi
call fcn.0040ec0d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040ebae
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x411212
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411265
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ec33
pop ecx
call fcn.0040ec0d
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41128c
test al, 1
je 0x41128c
test byte [esp + 0xc], 2
je 0x41128c
call fcn.0040ec20
mov dword [eax], 5
call fcn.0040ec0d
mov dword [eax], 0xd
jmp 0x41125c
xor eax, eax
pop esi
ret
Function at 0x417891
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040c90d
xor ebx, ebx
cmp dword [0x443624], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x417966
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4178d1
xor eax, eax
jmp 0x417a2a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e1c0
push edi
call esi
cmp eax, ebx
je 0x4178ca
push eax
call fcn.0040c8aa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x443624], eax
call esi
push eax
call fcn.0040c8aa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x443628], eax
call esi
push eax
call fcn.0040c8aa
mov dword [0x44362c], eax
lea eax, [ebp - 8]
push eax
call fcn.00410cd7
test eax, eax
pop ecx
pop ecx
je 0x417934
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040eab2
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x417966
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040c8aa
cmp eax, ebx
pop ecx
mov dword [0x443634], eax
je 0x417966
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c8aa
pop ecx
mov dword [0x443630], eax
mov eax, dword [0x443630]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4179df
cmp dword [0x443634], esi
je 0x4179df
push eax
call fcn.0040c916
pop ecx
call eax
cmp eax, ebx
je 0x4179ac
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x443634]
call fcn.0040c916
pop ecx
call eax
test eax, eax
je 0x4179ac
test byte [ebp - 0x18], 1
jne 0x4179df
lea eax, [ebp - 0xc]
push eax
call fcn.00410d4a
test eax, eax
pop ecx
je 0x4179c7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040eab2
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4179d6
or dword [ebp + 0x10], 0x200000
jmp 0x417a10
or dword [ebp + 0x10], 0x40000
jmp 0x417a10
mov eax, dword [0x443628]
cmp eax, esi
je 0x417a10
push eax
call fcn.0040c916
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417a10
mov eax, dword [0x44362c]
cmp eax, esi
je 0x417a10
push dword [ebp - 4]
push eax
call fcn.0040c916
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x443624]
call fcn.0040c916
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401118
Capabilities:
Query environment variable

Disassembly:
enter 0x34, 0
mov edx, 0x403154
sub dword [ebp - 0x20], esi
push edx
push dword [edx + 0xd4]
push dword [edx + 0x60]
call fcn.00401a38
pop edx
push edx
lea edi, [edx - 0x154]
push edi
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x401135
pop edx
push edx
call sub.KERNEL32.dll_GetEnvironmentStringsA
pop edx
add esp, 0x34
pop ebp
ret 0x10

Function at 0x40188c
Capabilities:
Query environment variable

Disassembly:
enter 0x60, 0
mov ebx, 0x4031b0
and dword [ebx - 0x78], 0x49
call sub.KERNEL32.dll_GetEnvironmentStringsA
push ebx
push dword [ebx + 0x9c]
push dword [ebx + 0xb4]
push edi
call fcn.004012a0
pop ebx
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
add esp, 0x60
pop ebp
ret 0xc