joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10199810
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x102d42c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x104755dd
call fcn.100e28b3
nop
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x1044e7fc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 5
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1019986c
mov eax, dword [ebp - 0x14]
sub eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1019988e
mov eax, 0xa
jmp 0x10199977
cmp dword [ebp + 0xc], 0
je 0x101998db
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax], 0xe9
mov eax, dword [ebp - 0x14]
add eax, 5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
sub edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 1], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x101998d9
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xeb
mov eax, dword [ebp - 0x1c]
mov byte [eax + 1], 0xf9
jmp 0x10199917
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10199902
push 7
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100e21ec
add esp, 0xc
jmp 0x10199917
push 5
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100e21ec
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
nop
mov al, byte [ebp + 0xc]
and al, 1
shl al, 1
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x14]
and dl, 0xfd
or dl, al
mov eax, dword [ebp - 8]
mov byte [eax + 0x14], dl
mov al, byte [ebp + 0xc]
and al, 1
shl al, 2
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x14]
and dl, 0xfb
or dl, al
mov eax, dword [ebp - 8]
mov byte [eax + 0x14], dl
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dda57
mov esp, ebp
pop ebp
ret
Function at 0x10199a70
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x102d42c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x104755dd
call fcn.100e28b3
nop
mov dword [ebp - 8], 0
push 0
push 4
call fcn.100dd665
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x10199c1d
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100dcf1c
test eax, eax
je 0x10199c12
mov dword [ebp - 8], 1
cmp dword [ebp - 0x28], 0x10
jb 0x10199bb1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x1c], eax
jne 0x10199bb1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x20], eax
je 0x10199bb1
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10199b3c
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
push ecx
push 0
mov edx, dword [0x1044e7f8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10199b3a
mov dword [ebp - 8], 0
jmp 0x10199bcd
jmp 0x10199b91
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x10199b91
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x1044e7f8]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10199b89
mov dword [ebp - 8], 0
jmp 0x10199bcd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ebp - 0x20]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100da3ed
test eax, eax
jne 0x10199ace
cmp dword [ebp - 8], 0
je 0x10199be5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10199be5
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x10199c12
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10199c12
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x1044e7f8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dda57
mov esp, ebp
pop ebp
ret
Function at 0x10199e50
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov ecx, 0x104755dd
call fcn.100e28b3
nop
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10199a70
add esp, 4
test eax, eax
jne 0x10199ea1
mov dword [ebp - 4], 9
jmp 0x10199f11
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10199f11
mov dword [ebp - 8], 0
jmp 0x10199ebb
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x10199f11
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10199f0f
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
nop
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10199f80
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x10199eb2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1019a2a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov ecx, 0x104755dd
call fcn.100e28b3
nop
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1019a326
mov dword [ebp - 4], 0
jmp 0x1019a2ce
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x1019a310
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1019a30e
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1019a2c5
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x1044e7f8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
nop
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1019b2c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x104756b1
call fcn.100e28b3
nop
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x1019b317
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x90
je 0x1019b317
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xcc
je 0x1019b317
xor eax, eax
jmp 0x1019b358
mov dword [ebp - 4], 1
jmp 0x1019b329
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x1019b353
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
cmp ecx, eax
je 0x1019b351
xor eax, eax
jmp 0x1019b358
jmp 0x1019b320
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007cff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10007d0e
pop dword [ebp - 0x38]
mov eax, 0xde51fd40
add eax, 0x31ae7fce
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xbe8aa277
add dword [ebp - 0x48], 0x8fc7a2d4
mov dword [ebp - 0x44], 0x9595794a
add dword [ebp - 0x44], 0x9c9dd2fb
mov dword [ebp - 0x40], 0x2cacf8d
add dword [ebp - 0x40], 0x498174a1
mov dword [ebp - 0x3c], 0x57fa2dce
add dword [ebp - 0x3c], 0xa805d232
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x3fe928ef
sub dword [ebp - 0x48], 0xcb76bf99
mov dword [ebp - 0x44], 0x3d03783a
add dword [ebp - 0x44], 0x468e93b
mov dword [ebp - 0x40], 0xe55e802f
add dword [ebp - 0x40], 0x7e10ec3d
mov dword [ebp - 0x3c], 0x321cd5b0
sub dword [ebp - 0x3c], 0x321cd5b0
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x53c73452
add eax, 0xbc38dbb6
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37af4
push 0
call eax
mov ecx, 0xeab16919
sub ecx, 0xeab1252e
mov edx, eax
mov ebx, 0xeb2d989b
sub ebx, 0xdb2b769b
add ebx, dword [ebp - 0x38]
mov edi, 0x40db2d89
add edi, 0xbc32a060
xor dword [ebp - 0x34], eax
mov esi, dword [ebx]
mov dword [ebp - 0x18], 0x20057b52
add esi, edi
add dword [ebp - 0x20], 0x1fb71652
mov dword [edx], esi
xor dword [ebp - 0x1c], esi
add edx, 4
add ebx, 4
loop 0x10007e2b
add eax, 0x835fc9fb
add eax, 0x7ca13884
mov ebx, eax
add eax, 0x7b4fa359
sub eax, 0x7b4fa354
mov ecx, 0x24e307ee
sub ecx, 0x14e307ee
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x1000cdef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100024d0]
jne 0x1000d4b4
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10011e48], eax
mov dword [0x10011e44], ecx
mov dword [0x10011e40], edx
mov dword [0x10011e3c], ebx
mov dword [0x10011e38], esi
mov dword [0x10011e34], edi
mov word [0x10011e60], ss
mov word [0x10011e54], cs
mov word [0x10011e30], ds
mov word [0x10011e2c], es
mov word [0x10011e28], fs
mov word [0x10011e24], gs
pushfd
pop dword [0x10011e58]
mov eax, dword [ebp]
mov dword [0x10011e4c], eax
mov eax, dword [ebp + 4]
mov dword [0x10011e50], eax
lea eax, [ebp + 8]
mov dword [0x10011e5c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10011d98], 0x10001
mov eax, dword [0x10011e50]
mov dword [0x10011d4c], eax
mov dword [0x10011d40], 0xc0000409
mov dword [0x10011d44], 1
mov eax, dword [0x100024d0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10011c40]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10011d90], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x100024e0
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10011d90], 0
jne 0x1000d5a0
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x10001350
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f468
push 0x10003578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call fcn.100034d2
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x100014cc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x10001410
cmp word [edi + 2], 0x5c
jne 0x10001410
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x100013df
cmp eax, 0x5c
je 0x100013df
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x100013c4
cmp word [esi], 0
je 0x100013f0
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x100013f0
movzx eax, word [esi]
test ax, ax
je 0x10001408
cmp eax, 0x5c
je 0x10001408
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x100013e8
cmp word [esi], 0
je 0x10001436
jmp 0x10001430
cmp word [edi + 2], 0x3a
jne 0x10001436
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x10001436
cmp eax, 0x5c
jne 0x10001436
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
movzx eax, word [esi]
test ax, ax
je 0x10001491
cmp eax, 0x5c
jne 0x10001483
xor ecx, ecx
mov word [esi], cx
push edi
call ebx
cmp eax, 0xffffffff
jne 0x10001477
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000147b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000147b
push edi
jmp 0x100014c4
test al, 0x10
je 0x10001474
mov edx, 0x5c
mov word [esi], dx
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10001440
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.10003498
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10003498
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100017a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1000c8d4
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x100017da
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
push eax
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov eax, esi
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], esp
mov word [ecx], dx
lea edi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x10001810
sub eax, edi
sar eax, 1
push eax
push esi
call fcn.100026e0
call fcn.100016b0
mov eax, dword [ebp - 0x28]
mov esi, 0x10
add esp, 0x20
cmp dword [ebp - 0x14], esi
jae 0x1000183e
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp dword [ebp - 0x14], esi
jb 0x1000185a
mov edx, dword [ebp - 0x28]
push edx
call fcn.1000348d
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000601d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011268]
jne 0x10006027
repz ret
jmp fcn.10008fa5

Function at 0x10008bbc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10011268]
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.1000602c
and dword [ebp - 0x14], 0
cmp dword [0x10012a08], 0
mov dword [ebp - 0x18], eax
jne 0x10008c6f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10008d17
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10008d17
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10012a08], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10012a0c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10012a10], eax
call edi
push eax
call esi
mov dword [0x10012a18], eax
test eax, eax
je 0x10008c6f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10012a14], eax
mov eax, dword [0x10012a14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10008cc8
cmp dword [0x10012a18], ecx
je 0x10008cc8
push eax
call esi
push dword [0x10012a18]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10008cc8
test ebx, ebx
je 0x10008cc8
call edi
test eax, eax
je 0x10008cbf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10008cbf
test byte [ebp - 8], 1
jne 0x10008cc8
or dword [ebp + 0x10], 0x200000
jmp 0x10008cfb
mov eax, dword [0x10012a0c]
cmp eax, dword [ebp - 0x18]
je 0x10008cfb
push eax
call esi
test eax, eax
je 0x10008cfb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10008cfb
mov eax, dword [0x10012a10]
cmp eax, dword [ebp - 0x18]
je 0x10008cfb
push eax
call esi
test eax, eax
je 0x10008cfb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10012a08]
call esi
test eax, eax
je 0x10008d17
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10008d19
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000601d
leave
ret
Function at 0x410b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x410bac
mov dword [eax], ecx
jmp 0x410bae
mov eax, ecx
push ecx
push ecx
push esi
push 0x410c20
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret

Function at 0x4118ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4118dd
pop dword [ebp - 0x10]
mov eax, 0x4118dd
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xdf550353
sub dword [ebp - 0x20], 0x9102be08
mov dword [ebp - 0x1c], 0x242b2ab9
sub dword [ebp - 0x1c], 0xf1f7de74
mov dword [ebp - 0x18], 0x84b70c2a
add dword [ebp - 0x18], 0xc7953804
mov dword [ebp - 0x14], 0xdb08a95f
sub dword [ebp - 0x14], 0xdb08a95f
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xe97ea464
add dword [ebp - 0x20], 0x8af3c4f2
mov dword [ebp - 0x1c], 0xfd43fb33
add dword [ebp - 0x1c], 0x44286642
mov dword [ebp - 0x18], 0xbb05dba
add dword [ebp - 0x18], 0x57bf0eb2
mov dword [ebp - 0x14], 0xa33b031d
sub dword [ebp - 0x14], 0xa33b031d
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xbdc507e
sub eax, 0xb9b1042
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x39bd4
push 0
call eax
mov ecx, 0x43de
xor edx, edx
add edx, eax
mov ebx, 0x7d8a60bc
add ebx, 0x82b75f44
add ebx, dword [ebp - 0x10]
mov edi, 0x936f5f93
add edi, 0x7efa8566
sub dword [ebp - 4], 0xdde5b8a6
mov esi, dword [ebx]
add esi, edi
xor dword [ebp - 0xc], 0x38ec6287
mov dword [edx], esi
mov dword [ebp - 4], 0x16a29836
add edx, 0x86e5bb80
sub edx, 0x86e5bb7c
add ebx, 4
loop 0x4119f1
add eax, 0x16265d80
sub eax, 0x16255b35
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x41b5ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b24d

Function at 0x41b5b6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b3dc

Function at 0x41b9b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409de0
mov eax, dword [0x47ed00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041854c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b9f2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bb4e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425e90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x480ae8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cb80
mov ecx, dword [esi*4 + 0x480ae8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bb47
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bb47
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bb47
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cb80
add esp, 0x14
test edx, edx
jl 0x41bb47
jg 0x41babd
test eax, eax
jb 0x41bb47
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bb47
jl 0x41bad7
cmp dword [ebp - 0x1008], eax
ja 0x41bb47
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41baf5
test ebx, ebx
je 0x41bb2e
cmp ecx, edi
jae 0x41bb2e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bb0f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bb1b
cmp byte [ecx + 1], 0xa
jne 0x41bb1b
inc ecx
jmp 0x41bb1b
movzx eax, al
movsx eax, byte [eax + 0x47efd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41baf5
cmp edx, ebx
jne 0x41baf5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bb4c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409063
leave
ret