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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov ecx, 0x1049c49d
call fcn.100ee95d
nop
mov eax, dword [0x104747f0]
mov dword [ebp - 4], eax
jmp 0x101a4426
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x101a443c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x101a443a
mov eax, dword [ebp - 4]
jmp 0x101a44b6
jmp 0x101a441e
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x101a44b3
mov eax, dword [ebp - 4]
add eax, 0x20
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
cmp eax, 0xfe0
jbe 0x101a4476
mov eax, dword [ebp - 4]
mov ecx, dword [0x104747f0]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov dword [0x104747f0], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101a5a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x102fa2c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x1049c625
call fcn.100ee95d
nop
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x104747fc]
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 0x101a5a5c
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 0x101a5a7e
mov eax, 0xa
jmp 0x101a5b67
cmp dword [ebp + 0xc], 0
je 0x101a5acb
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 0x101a5ac9
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 0x101a5b07
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x101a5af2
push 7
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100ee296
add esp, 0xc
jmp 0x101a5b07
push 5
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100ee296
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.100e9a8e
mov esp, ebp
pop ebp
ret
Function at 0x101a5c60
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x102fa2c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x1049c625
call fcn.100ee95d
nop
mov dword [ebp - 8], 0
push 0
push 4
call fcn.100e96a1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x101a5e0d
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100e8f4e
test eax, eax
je 0x101a5e02
mov dword [ebp - 8], 1
cmp dword [ebp - 0x28], 0x10
jb 0x101a5da1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x1c], eax
jne 0x101a5da1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x20], eax
je 0x101a5da1
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x101a5d2c
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 [0x104747f8]
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 0x101a5d2a
mov dword [ebp - 8], 0
jmp 0x101a5dbd
jmp 0x101a5d81
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x101a5d81
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 [0x104747f8]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x101a5d79
mov dword [ebp - 8], 0
jmp 0x101a5dbd
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.100e6406
test eax, eax
jne 0x101a5cbe
cmp dword [ebp - 8], 0
je 0x101a5dd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x101a5dd5
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x101a5e02
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x101a5e02
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x104747f8]
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.100e9a8e
mov esp, ebp
pop ebp
ret
Function at 0x101a6040
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov ecx, 0x1049c625
call fcn.100ee95d
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.101a5c60
add esp, 4
test eax, eax
jne 0x101a6091
mov dword [ebp - 4], 9
jmp 0x101a6101
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x101a6101
mov dword [ebp - 8], 0
jmp 0x101a60ab
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 0x101a6101
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 0x101a60ff
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.101a6170
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x101a60a2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101a6490
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov ecx, 0x1049c625
call fcn.100ee95d
nop
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x101a6516
mov dword [ebp - 4], 0
jmp 0x101a64be
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 0x101a6500
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 0x101a64fe
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 0x101a64b5
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x104747f8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
nop
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101a74b0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x1049c6f9
call fcn.100ee95d
nop
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x101a7507
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x90
je 0x101a7507
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xcc
je 0x101a7507
xor eax, eax
jmp 0x101a7548
mov dword [ebp - 4], 1
jmp 0x101a7519
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x101a7543
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 0x101a7541
xor eax, eax
jmp 0x101a7548
jmp 0x101a7510
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x417174]
shl eax, 2
mov dword [0x417178], eax
push edi
push ecx
xor eax, eax
mov edi, 0x41eb1c
mov ecx, 0x4237fc
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00404afc
pop edx
call fcn.00403cd4
call fcn.00404b00
push 0
call fcn.0040e8bc
pop ecx
push 0x41713c
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x41717c], eax
push 0
jmp fcn.004141d8

Function at 0x4011d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov word [ebp - 0xe], 0
movsx edx, word [ebp - 0xe]
mov ecx, dword [edx*4 + 0x41eb1c]
xor dword [ebp - 4], ecx
push dword [ebp - 4]
call fcn.00401150
pop ecx
xor dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
inc word [ebp - 0xe]
cmp word [ebp - 0xe], 0x10
jl 0x4011ec
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [0x41eb5c]
xor dword [ebp - 8], eax
mov edx, dword [0x41eb60]
xor dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40125c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov word [ebp - 0xe], 0x11
movsx edx, word [ebp - 0xe]
mov ecx, dword [edx*4 + 0x41eb1c]
xor dword [ebp - 4], ecx
push dword [ebp - 4]
call fcn.00401150
pop ecx
xor dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
dec word [ebp - 0xe]
cmp word [ebp - 0xe], 1
jg 0x401278
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [0x41eb20]
xor dword [ebp - 8], eax
mov edx, dword [0x41eb1c]
xor dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4012e8
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 4]
shl ecx, 0xa
lea eax, [ecx + 0x4171d4]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
shl eax, 0xa
lea edx, [eax + 0x41eb64]
mov eax, dword [ebp - 8]
mov dword [edx + eax*4], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jl 0x4012f8
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x4012f3
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
shl ecx, 8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
movzx eax, byte [eax + edx]
or ecx, eax
mov dword [ebp - 0x10], ecx
inc dword [ebp - 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jl 0x40136a
xor ecx, ecx
mov dword [ebp - 8], ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x401345
mov eax, dword [ebp - 4]
mov edx, dword [eax*4 + 0x41718c]
xor edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x41eb1c], edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x12
jl 0x40133b
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 8]
call fcn.004011d0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [ecx*4 + 0x41eb1c], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [edx*4 + 0x41eb20], ecx
add dword [ebp - 4], 2
cmp dword [ebp - 4], 0x12
jl 0x4013a2
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.004011d0
add esp, 0xc
mov edx, dword [ebp - 4]
shl edx, 0xa
lea ecx, [edx + 0x41eb64]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp - 4]
shl ecx, 0xa
lea eax, [ecx + 0x41eb68]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4], ecx
add dword [ebp - 8], 2
cmp dword [ebp - 8], 0x100
jl 0x4013e3
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x4013de
mov esp, ebp
pop ebp
ret

Function at 0x4047cc
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x413438
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x41e034], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4134f0
cmp byte [0x417173], 0
je 0x4134aa
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00413384
add esp, 8
mov ebx, eax
test eax, eax
jne 0x413493
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00413384
add esp, 8
mov ebx, eax
test eax, eax
jne 0x413493
lea ebx, [ebp - 0x54]
jmp 0x413494
inc ebx
call fcn.004133f0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x413511
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x41e038
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040db50
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x41e03b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x413511
cmp dword [0x41e034], 0xffffffff
je 0x413511
mov eax, dword [0x41e034]
test eax, eax
je 0x413511
cmp byte [eax], 0
je 0x413511
push esi
push eax
call fcn.00413590
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4135f2
call fcn.00413540
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040db50
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0040db50
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x413bcc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x420788], 0
jne 0x413c4d
cmp dword [0x4207a4], 0
jne 0x413bfc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4207a4], eax
test eax, eax
jne 0x413bfc
push str.GetEnvironmentStrings_failed
call fcn.00413528
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4207a4]
jmp 0x413c10
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040db50
pop ecx
mov edi, eax
test eax, eax
jne 0x413c08
lea edi, [ebp + 1]
push edi
call fcn.00403be4
pop ecx
mov ebx, eax
mov dword [0x42078c], ebx
test ebx, ebx
jne 0x413c3a
xor eax, eax
jmp 0x413d10
push edi
mov edx, dword [0x4207a4]
push edx
push ebx
call fcn.0040d9d0
add esp, 0xc
jmp 0x413c6d
xor esi, esi
mov ebx, dword [0x420788]
jmp 0x413c67
push eax
call fcn.0040db50
pop ecx
test eax, eax
jne 0x413c63
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x413c57
lea ebx, [esi + 4]
push 4
mov dword [0x420790], ebx
inc ebx
push ebx
call fcn.004032c8
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x413c90
xor eax, eax
jmp 0x413d10
cmp dword [0x420788], 0
jne 0x413cc1
xor esi, esi
mov ebx, dword [0x42078c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x413cb2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040db50
pop ecx
mov edi, eax
test eax, eax
jne 0x413ca8
jmp 0x413cf2
xor esi, esi
mov ebx, dword [0x420788]
mov eax, dword [esp]
mov edi, eax
jmp 0x413cec
push eax
call fcn.0040db50
pop ecx
test eax, eax
je 0x413ce1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x413ce5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x413cd0
mov eax, dword [0x420788]
test eax, eax
je 0x413d02
push eax
call fcn.00403bf4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x420788], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a5fc0
Capabilities:
Encode data using xor

Disassembly:
jnp 0x4a5fc4
out 0x55, al
clc
outsd dx, dword [esi]
and eax, 0xcc28794b
fcomp st(5)
push ds
sahf
or esi, dword [ebx - 0x5ce753da]
push esi
scasd eax, dword es:[edi]
fucomi st(4)
sbb ebx, esi
xchg edi, eax
dec dword [edi + 0x6ddf371c]
aaa
fild qword [ebp + 0x35]
pushal
leave
dec ebp
loopne 0x4a5fa0
aaa
fild qword [ebp + 0x35]
pushal
leave
dec ebp
loopne 0x4a5fa0
aam 0x58
invalid

Function at 0x65783d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f398
cmp edx, dword [eax]
je 0x65785f
add eax, 8
inc ecx
cmp eax, 0x65f428
jl 0x657850
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f398]
jne 0x65798d
mov eax, dword [0xa5bcf4]
cmp eax, 1
je 0x657967
test eax, eax
jne 0x657890
cmp dword [0x65f2c4], 1
je 0x657967
cmp edx, 0xfc
je 0x65798d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6578c7
lea eax, [ebp - 0x1a4]
push 0x65c9e8
push eax
call fcn.00658220
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006586b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65790a
lea eax, [ebp - 0x1a4]
push eax
call fcn.006586b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9e4
push edi
call fcn.0065a580
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c9c8
push eax
call fcn.00658220
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658230
lea eax, [ebp - 0xa0]
push 0x65c9c4
push eax
call fcn.00658230
push dword [esi + 0x65f39c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658230
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c99c
push eax
call fcn.0065a4f4
add esp, 0x2c
pop edi
jmp 0x65798d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f39c]
push 0
push eax
push dword [esi]
call fcn.006586b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d78
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402daa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402da6
cmp esi, eax
jae 0x402daa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402d98
cmp esi, eax
jb 0x402db0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret