joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492c50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d6588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00493050
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x5b09b4
call fcn.004a3d58
mov ecx, dword [0x54943c]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004903b0
mov esi, 0x549494
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x492cf7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x492cee
cmp al, 0xff
je 0x492cee
dec al
mov byte [ecx], al
jmp 0x492cf7
push ecx
call fcn.004c4b1a
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004c07f0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x492d3d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x492d34
cmp al, 0xff
je 0x492d34
dec al
mov byte [ecx], al
jmp 0x492d3d
push ecx
call fcn.004c4b1a
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004a3ddf
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4bae30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d7ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004afd26
mov eax, dword [0x54dd20]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004afc58
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004bb910
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4baed7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4baece
cmp al, 0xff
je 0x4baece
dec al
mov byte [ecx], al
jmp 0x4baed7
push ecx
call fcn.004c4b1a
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4baf08
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4baeff
cmp al, 0xff
je 0x4baeff
dec al
mov byte [ecx], al
jmp 0x4baf08
push ecx
call fcn.004c4b1a
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4c71a0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c71d8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c5257
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c522f
jmp 0x4c71e4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c8892
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c88d4
call fcn.004ce885
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4c88d4
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4c88cb
xor eax, eax
jmp 0x4c88dc
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c88e2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cedb5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4cede3
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4cee01
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ced1b
jmp 0x4cee01
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cee01
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ced1b
test edi, edi
mov eax, edi
jne 0x4cedeb
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4020f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
fldz
push ebx
fst dword [esp + 4]
push esi
fldz
push edi
mov edi, dword [esp + 0x24]
fstp qword [esp + 0x14]
push edi
fstp dword [esp + 0x14]
call fcn.0040bf13
mov ebx, dword [esp + 0x24]
push edi
mov esi, eax
push ebx
push esi
call fcn.0040bfe0
fld qword [esp + 0x24]
fld1
add edi, esi
fsub st(1), st(0)
add esp, 0x10
fxch st(1)
mov ecx, esi
fstp qword [esp + 0x14]
fld dword [esp + 0xc]
fld qword [esp + 0x14]
mov eax, dword [0x429644]
fadd qword [0x420430]
sub eax, 0x425004
add eax, ebx
fsubp st(1)
fstp dword [esp + 0xc]
cmp esi, edi
je 0x402161
mov dl, byte [eax]
xor byte [ecx], dl
inc ecx
inc eax
cmp ecx, edi
jne 0x402157
mov eax, dword [0x426ea0]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fadd qword [esp + 0x14]
mov ecx, dword [0x42638c]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
faddp st(1)
call fcn.0040bcd0
mov dword [0x42638c], eax
fsubr qword [esp + 0x14]
pop edi
mov eax, esi
pop esi
fstp qword [esp + 0xc]
pop ebx
add esp, 0x10
ret
Function at 0x402250
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x144
mov eax, dword [0x427e50]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 4], ebx
xor eax, eax
mov word [esp + 0xc], ax
fld qword [0x425318]
fsub qword [0x420378]
push ebp
push esi
mov dword [esp + 0x10], ebx
fstp qword [0x425318]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fld qword [0x425318]
fsub qword [0x420448]
fsub qword [0x420440]
fsubp st(1)
call fcn.0040bcd0
mov dword [esp + 0xc], eax
push 0x104
call fcn.0040bf13
add esp, 4
push ebx
push 2
mov ebp, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, dword [0x426358]
mov esi, eax
mov eax, dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0xc], esi
mov dword [0x426358], edx
cmp esi, ebx
je 0x402460
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402447
push edi
mov edi, ebp
lea edx, [esp + 0x4c]
sub edi, edx
lea eax, [esp + 0x4c]
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
cmp cl, bl
jne 0x402320
mov eax, dword [esp + 0x24]
mov ecx, dword [0x425460]
lea edx, [ecx + eax + 0x7f30e14b]
push ebp
mov dword [esp + 0x28], edx
call fcn.0041ef63
mov ecx, dword [esp + 0x15c]
add esp, 4
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402371
cmp dl, bl
je 0x40236d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402371
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x402351
xor eax, eax
jmp 0x402376
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4023ef
cmp dword [esp + 0x15c], ebx
je 0x402442
mov eax, dword [esp + 0x30]
push eax
push ebx
push 1
mov dword [esp + 0x30], 0x3d0803b5
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4023eb
inc dword [esp + 0x14]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
fld dword [0x425320]
fadd qword [0x420378]
push esi
fstp dword [0x425320]
fld dword [0x426ef8]
fsubr qword [0x420438]
fld qword [0x426368]
fld dword [0x425320]
fsubp st(2)
fsubrp st(1)
fstp qword [0x426368]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov cx, word [0x4254c0]
mov ax, word [esp + 0x18]
movsx edx, cx
mov dword [esp + 0x20], edx
movsx ecx, ax
fild dword [esp + 0x20]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fld qword [0x425500]
faddp st(2)
fsubrp st(1)
call fcn.0040bcd0
lea edx, [esp + 0x28]
push edx
push esi
mov word [esp + 0x20], ax
mov dword [esp + 0x30], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402316
jmp 0x402446
inc dword [esp + 0x14]
pop edi
mov ax, word [0x427d50]
cwde
add dword [esp + 0x18], eax
inc word [0x427d50]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0040bd7b
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0x14]
add esp, 4
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c345
add esp, 0x144
ret
Function at 0x4028a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
fldz
mov dword [esp + 0x20], 0x44
fstp qword [esp + 8]
fldz
fst dword [esp]
fstp dword [esp + 4]
fld dword [esp]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp]
fld dword [esp]
fadd qword [0x420498]
fadd qword [0x420490]
call fcn.0040bcd0
mov dword [0x426350], eax
fld qword [esp + 8]
xor eax, eax
fadd st(1)
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
fstp qword [esp + 8]
xor ecx, ecx
fld dword [esp + 4]
mov edx, 1
fsubr qword [0x420488]
fsub qword [esp + 8]
mov word [esp + 0x52], cx
mov word [esp + 0x50], dx
lea ecx, [esp + 0x10]
push ecx
fstp qword [esp + 0xc]
fld qword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
fsub dword [esp + 4]
lea edx, [esp + 0x24]
push edx
push eax
push eax
push 8
push eax
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], 1
fstp qword [esp + 0x24]
push eax
mov eax, dword [esp + 0x8c]
fadd dword [esp + 0x20]
push eax
push ecx
fstp dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x64
ret

Function at 0x402e40
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
xor eax, eax
mov word [esp + 0xc], ax
xor ecx, ecx
xor edx, edx
push 3
mov word [esp + 0x14], cx
push 0x425464
mov word [esp + 0x14], dx
call fcn.004020f0
mov ebx, dword [esp + 0x20]
mov edi, eax
push edi
push ebx
call fcn.0040ca5e
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x402ee4
fld dword [0x4254d0]
fsub qword [0x420378]
fstp dword [0x4254d0]
mov ax, word [esp + 0x10]
movsx ecx, ax
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fsub dword [0x4254d0]
mov edx, dword [0x427390]
mov dword [esp + 0xc], edx
fsub qword [0x4204d8]
fild dword [esp + 0xc]
fmulp st(1)
call fcn.0040bcd0
mov dword [0x427390], eax
dec dword [esp + 0x10]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push ebx
call fcn.0040ca5e
mov esi, eax
add esp, 8
test esi, esi
je 0x402f30
push esi
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.0040cc86
push esi
call fcn.0040c604
mov cx, word [esp + 0x24]
movzx eax, word [esp + 0x24]
movsx edx, cx
movsx ecx, ax
movzx eax, word [esp + 0x24]
add edx, ecx
movsx ecx, ax
add edx, ecx
mov dword [esp + 0x20], edx
add esp, 0x14
fild dword [esp + 0xc]
fmul dword [0x4254fc]
fstp dword [0x4254fc]
dec dword [esp + 0x10]
fld dword [0x426f9c]
push edi
fld qword [0x4254e0]
push 3
fadd qword [0x4204d0]
fsubp st(1)
fstp dword [0x426f9c]
call fcn.00401af0
fld dword [0x426ea8]
add esp, 8
fadd qword [0x4204c8]
pop edi
pop esi
pop ebx
fadd dword [0x4262e4]
fstp dword [0x4262e4]
add esp, 8
ret
Function at 0x403260
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
fldz
push ebx
fst qword [esp + 0xc]
xor eax, eax
push 0x2e
fstp qword [esp + 0x10]
mov word [esp + 8], ax
push 0x42547c
call fcn.004020f0
add dword [0x4273c0], 0xcc3ce227
add esp, 8
lea ecx, [esp + 8]
push ecx
mov ebx, eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4032e9
push esi
push edi
push 0x34
push 0x427804
call fcn.004020f0
mov edx, dword [esp + 0x28]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4032c1
sub eax, edi
push eax
push edx
mov edx, dword [esp + 0x18]
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push 0x34
call fcn.00401af0
add esp, 8
pop edi
pop esi
push ebx
push 0x2e
call fcn.00401af0
mov eax, dword [esp + 0x10]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0x10
ret
Function at 0x40c345
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427e50]
jne 0x40c34f
repz ret
jmp fcn.00410537

Function at 0x417354
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004106b7
and dword [ebp - 4], 0
cmp dword [0x42a0b4], 0
mov ebx, eax
jne 0x417405
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4174b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x421c38
push edi
call esi
test eax, eax
je 0x4174b6
push eax
call fcn.00410645
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42a0b4], eax
call esi
push eax
call fcn.00410645
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42a0b8], eax
call esi
push eax
call fcn.00410645
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42a0bc], eax
call esi
push eax
call fcn.00410645
pop ecx
mov dword [0x42a0c4], eax
test eax, eax
je 0x417405
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410645
pop ecx
mov dword [0x42a0c0], eax
mov eax, dword [0x42a0c0]
cmp eax, ebx
je 0x41745d
cmp dword [0x42a0c4], ebx
je 0x41745d
push eax
call fcn.004106c0
push dword [0x42a0c4]
mov esi, eax
call fcn.004106c0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41745d
test edi, edi
je 0x41745d
call esi
test eax, eax
je 0x417454
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417454
test byte [ebp - 0xc], 1
jne 0x41745d
or dword [ebp + 0x10], 0x200000
jmp 0x417496
mov eax, dword [0x42a0b8]
cmp eax, ebx
je 0x417496
push eax
call fcn.004106c0
pop ecx
test eax, eax
je 0x417496
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417496
mov eax, dword [0x42a0bc]
cmp eax, ebx
je 0x417496
push eax
call fcn.004106c0
pop ecx
test eax, eax
je 0x417496
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a0b4]
call fcn.004106c0
pop ecx
test eax, eax
je 0x4174b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4174b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xdff7f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdff802
pushal
call 0xdff808
pop ebp
sub ebp, 0x10
sub ebp, 0x9ff7f8
jmp 0xdff81e
mov eax, 0x9ff7f8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b8
mov edx, 0x15626d8c
xor byte [eax], dl
inc eax
dec ecx
jne 0xdff835
jmp 0xdff848
pop es
inc ecx
pop es
add eax, 0x8c8c8cb0
or eax, 0x8c8c744d
mov word [edi - 0x7375cbbf], cs
mov word [esi + esi - 0x7373735c], cs
jnp 0xdff8d2
pop dword [edi + eax + 0xd]
or byte [esp + ecx*4 + 0x1498f8c], 0xe8
test al, 0x70
add eax, 0xe801a888
test al, 0x70
add eax, 0xcce4a888
sub ch, byte [ebp - 0x22cb1b74]
mov word [ebp - 0xf1b5760], cs
invalid
mov esp, fs
int3
Function at 0x10001600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, 1
push esi
mov esi, dword [ebp + 0x14]
shl eax, 4
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, edi
or eax, ebx
mov dword [ebp - 0x24], 0x33323130
mov dword [ebp - 0x20], 0x37363534
mov dword [ebp - 0x1c], 0x42413938
mov dword [ebp - 0x18], 0x46454443
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x62613938
mov dword [ebp - 8], 0x66656463
je 0x100016cc
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x18], ecx
test ecx, ecx
jg 0x10001698
xor ecx, ecx
mov edx, ebx
mov dword [ebp + 0x18], ecx
mov ebx, 0x10
test ebx, ebx
je 0x10001686
shrd edi, edx, 4
dec ebx
inc ecx
shr edx, 4
mov eax, edi
or eax, edx
jne 0x10001673
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp + 0x18], ecx
test cl, 1
je 0x10001698
inc ecx
mov dword [ebp + 0x18], ecx
lea edx, [esi - 1]
add edx, ecx
cmp edx, esi
jb 0x100016e9
xor ecx, ecx
cmp ecx, 0x10
jge 0x100016be
mov eax, edi
inc ecx
shrd edi, ebx, 4
and eax, 0xf
shr ebx, 4
add eax, dword [ebp - 4]
mov al, byte [ebp + eax - 0x24]
jmp 0x100016c0
mov al, 0x30
mov byte [edx], al
dec edx
cmp edx, esi
jae 0x100016a3
mov ecx, dword [ebp + 0x18]
jmp 0x100016e9
mov eax, dword [ebp + 0x10]
mov ecx, 2
test eax, eax
cmovg ecx, eax
xor eax, eax
test ecx, ecx
jle 0x100016e9
nop
mov byte [eax + esi], 0x30
inc eax
cmp eax, ecx
jl 0x100016e0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x100016fd
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
mov byte [ecx + esi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10001710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [ebp + 8], eax
mov ecx, dword [eax + 0x20]
mov esi, dword [eax + 0x1c]
add ecx, edi
mov ebx, dword [eax + 0x24]
add esi, edi
add ebx, edi
mov dword [ebp - 4], ecx
cmp dword [eax + 0x14], edx
jbe 0x10001762
mov ecx, dword [ebp + 0x14]
cmp edx, 0xffff
ja 0x10001762
mov eax, dword [esi + edx*4]
add eax, edi
cmp eax, dword [ebp + 0xc]
jne 0x10001759
dec ecx
test ecx, ecx
jle 0x1000176d
mov eax, dword [ebp + 8]
inc edx
cmp edx, dword [eax + 0x14]
jb 0x10001742
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 8]
xor eax, eax
mov esi, dword [esi + 0x18]
test esi, esi
je 0x10001762
lea esp, [esp]
movzx ecx, word [ebx + eax*2]
cmp edx, ecx
je 0x10001798
inc eax
cmp eax, esi
jb 0x10001780
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100017a7
mov dword [eax], edx
lea eax, [ecx + edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
test esi, esi
je 0x10001ba6
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0x1c
push eax
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001b9f
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
cmova esi, dword [ebp - 4]
cmp eax, 4
je 0x10001bb2
cmp eax, 0x40
je 0x10001bb2
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10001b9f
mov eax, dword [ebp + 0xc]
push esi
add eax, edi
push eax
push ebx
call fcn.10001cf0
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x10001bc2
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001bc2
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
pop ebx
sub esi, eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
push esi
add eax, edi
push eax
push ebx
call fcn.10001cf0
add esp, 0xc
mov eax, dword [ebp - 4]
add edi, esi
sub eax, esi
mov dword [ebp - 4], eax
jne 0x10001b37
mov esi, dword [ebp + 0x10]
pop ebx
sub esi, eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10001e90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
lea eax, [ebp - 0x214]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
jmp 0x10001eb5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x10001ed9
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov cx, word [esi + ecx*2]
mov word [eax + edx*2], cx
jmp 0x10001eac
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2], dx
mov dword [ebp - 4], 0
jmp 0x10001ef7
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
test edx, edx
je 0x10001f76
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x5c
je 0x10001f23
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x2f
jne 0x10001f71
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov word [edx + ecx*2], ax
mov eax, 1
shl eax, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
test edx, edx
jne 0x10001f53
push 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10001f62
push 0
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 0x5c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2], dx
jmp 0x10001eee
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10004dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 3
ja case.default.0x10004dcf
jmp dword [eax*4 + 0x10004f08]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [0x1000d664], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push dword [0x1000d664]
mov dword [0x1000d66c], eax
mov dword [0x1000d660], 0x1000d6f8
call fcn.100018e0
push dword [0x1000d66c]
mov dword [0x1000d668], eax
call fcn.100018e0
push 0x1000d900
mov dword [0x1000d670], eax
call fcn.10003240
push eax
push 0x1000d900
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call esi
push 0xffffffffffffffff
push 0x1000d900
call fcn.10002940
push 0x1000d6f8
call fcn.10003240
push eax
push 0x1000d6f8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10012800
push 0x1000d6f8
call edi
push 0xffffffffffffffff
push 0x1000d900
call fcn.100029c0
push eax
push 0x1000d6f8
call edi
push 0x1000d900
call fcn.10003240
push eax
push 0x1000d900
push dword [0x1000d66c]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1000d900
push 0x1000dd10
call esi
push 0x1000dd10
call fcn.100030d0
push 0x1000dd10
push 0x1000db08
call esi
push 0x10012804
push 0x1000db08
call edi
push 0x1000dd10
call fcn.10001e90
call fcn.10008cf0
test byte [section..bss], 2
pop edi
pop esi
je 0x10004ee5
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0x1000d900
call fcn.100030d0
call fcn.100076c0
test al, al
je case.default.0x10004dcf
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc