joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100031a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x184
call fcn.100b0e70
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100031e5
push ebx
call fcn.100afeb9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100031fc
mov eax, 0x100ba25b
push eax
push 1
mov ebx, 0x130
call fcn.100b0d40
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10003238
push 6
call fcn.100afebf
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10003266
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003261
push eax
mov ebx, eax
call fcn.100010eb
inc eax
push eax
call fcn.100afeb3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10003270
mov eax, 0x100ba25b
jmp 0x10003270
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10003281
push ebx
call fcn.100afeb9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x10005c17
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x10005c5f
mov eax, 0x100ba223
push eax
push 1
mov ebx, 0x194
call fcn.100b1190
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x10005c84
jmp 0x10005de4
push dword [ebp + 8]
call fcn.100021c0
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x100ba3af]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.10002f45
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x10005cce
push 6
call fcn.100afebf
add esp, 4
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x100ba3af]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.10002f45
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x10005dbf
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.10002f45
push eax
call fcn.10005bfb
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x10005d67
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10005d5d
push 6
call fcn.100afebf
add esp, 4
jmp 0x10005dbf
cmp word [ebp - 0x14], 0x5c
jne 0x10005da6
cmp dword [ebp - 0x18], 0
jle 0x10005da3
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10005da3
push 6
call fcn.100afebf
add esp, 4
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.10005dea
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x10005cf7
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10005de4
push 6
call fcn.100afebf
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x1000ac30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
pop ebp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
ret
Function at 0x1000e123
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0x64
jge 0x1000e15e
jmp 0x1000e373
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x100ba7d3]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.10002f45
push eax
call fcn.1000ae90
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 4]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.10002f45
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x40
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000e1dc
push 6
call fcn.100afebf
add esp, 4
test eax, eax
je 0x1000e27e
push 0x80000301
push 0
push 0x40
push 1
mov ebx, 0x1bc
call fcn.100b0670
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000e219
push ebx
call fcn.100afeb9
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantClear
push 0
lea eax, [ebp - 0x14]
push eax
push 1
mov ebx, 0xc
mov eax, 0x100b7940
call fcn.100b0240
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x40
push dword [ebp - 0x18]
push dword [ebp - 4]
call fcn.1000af1d
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000e27e
push 6
call fcn.100afebf
add esp, 4
cmp dword [ebp - 8], 0
je 0x1000e2cc
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x10]
push eax
push 4
push 0xf8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1000e2b8
push 6
call fcn.100afebf
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x1000e2cc
mov eax, 1
jmp 0x1000e2d1
mov eax, 0
test eax, eax
je 0x1000e373
push 0x80000301
push 0
push 0xf8
push 1
mov ebx, 0x1bc
call fcn.100b0670
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000e30e
push ebx
call fcn.100afeb9
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantClear
push 0
lea eax, [ebp - 0x14]
push eax
push 1
mov ebx, 0xc
mov eax, 0x100b7940
call fcn.100b0240
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0xf8
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.1000af1d
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000e373
push 6
call fcn.100afebf
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000e383
push ebx
call fcn.100afeb9
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e389
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x1000e3c1
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x1000e3af
mov al, 1
jmp 0x1000e420
cmp dword [ebx + 0x54], ecx
jne 0x1000e3b8
mov al, 2
jmp 0x1000e420
cmp dword [ebx + 0x7c], ecx
jne 0x1000e420
mov al, 3
jmp 0x1000e420
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x1000e3d6
mov al, 4
jmp 0x1000e420
cmp ecx, 5
jne 0x1000e3f6
cmp ebx, 0
jne 0x1000e3e4
mov al, 5
jmp 0x1000e420
cmp ebx, 1
jne 0x1000e3ed
mov al, 6
jmp 0x1000e420
cmp ebx, 2
jne 0x1000e3f6
mov al, 7
jmp 0x1000e420
cmp ecx, 6
jne 0x1000e41e
cmp ebx, 0
jne 0x1000e404
mov al, 8
jmp 0x1000e420
cmp ebx, 1
jne 0x1000e40b
mov al, 9
cmp ebx, 2
jne 0x1000e412
mov al, 0xa
cmp ebx, 3
jne 0x1000e419
mov al, 0xb
cmp ebx, 4
jne 0x1000e420
mov al, 0xc
pop ebx
leave
ret
Function at 0x1001175c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10011789
push 6
call fcn.100afebf
add esp, 4
jmp 0x1001178e
mov esp, ebp
pop ebp
ret 4
Function at 0x100946f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x10094737
cmp ebx, 0x20
je 0x10094737
cmp ebx, 0xffffffe0
je 0x10094737
jne 0x10094740
add eax, 1
cmp esi, eax
je 0x1009474d
jne 0x1009471c
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x10094751
jne 0x10094718
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x100947aa
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x100947b0
add eax, 4
pop esi
dec esi
push esi
jne 0x10094792
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8

Function at 0x10094a88
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10094598
and eax, 1
xor eax, 1
test eax, eax
je 0x10094ac1
mov edx, 0
mov eax, 0
jmp 0x10094afb
push 0x33
call 0x10094ac8
add dword [esp], 5
retf
mov esp, ebp
pop ebp
ret

Function at 0x10094aff
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10094598
and eax, 1
xor eax, 1
test eax, eax
je 0x10094b38
mov edx, 0
mov eax, 0
jmp 0x10094b70
push 0x33
call 0x10094b3f
add dword [esp], 5
retf
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10094b76
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
call fcn.10094598
and eax, 1
xor eax, 1
test eax, eax
je 0x10094ba3
mov eax, 0
jmp 0x10094bd8
push 0x33
call 0x10094baa
add dword [esp], 5
retf
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10094d08
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.10094598
and eax, 1
xor eax, 1
test eax, eax
je 0x10094d29
jmp 0x10094dca
cmp dword [ebp + 8], 0
jne 0x10094d33
cmp dword [ebp + 0xc], 0
je 0x10094d5d
cmp dword [ebp + 0x10], 0
jne 0x10094d43
cmp dword [ebp + 0x14], 0
je 0x10094d5d
cmp dword [ebp + 0x18], 0
jne 0x10094d53
cmp dword [ebp + 0x1c], 0
je 0x10094d5d
xor eax, eax
jmp 0x10094d62
mov eax, 1
test eax, eax
je 0x10094d6f
jmp 0x10094dca
push 0x33
call 0x10094d76
add dword [esp], 5
retf
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10095425
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
call fcn.10094598
and eax, 1
xor eax, 1
test eax, eax
je 0x10095452
mov eax, 0
jmp 0x10095485
push 0x33
call 0x10095459
add dword [esp], 5
retf
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100954a7
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
call fcn.10094598
and eax, 1
xor eax, 1
test eax, eax
je 0x100954d4
mov eax, 0
jmp 0x1009551c
mov dword [ebp - 4], 0
push 0x33
call 0x100954e2
add dword [esp], 5
retf
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10095556
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.10094598
and eax, 1
xor eax, 1
test eax, eax
je 0x1009559d
mov edx, 0
mov eax, 0
jmp 0x1009569f
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x33
call 0x100955c0
add dword [esp], 5
retf
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x100989ee
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10098a29
push 6
call fcn.100afebf
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.100b0c10
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10098a8c
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.100b0cb0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10098ab0
push 6
call fcn.100afebf
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.100b0c10
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10098b13
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.100b0cb0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10098b37
push 6
call fcn.100afebf
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.100b0c10
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10098b9a
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.100b0cb0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10098ba2
mov esp, ebp
pop ebp
ret
Function at 0x1009cef2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1009cf38
push 6
call fcn.100afebf
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x100ba322]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.10002f45
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.100b0e70
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1009cf8b
push ebx
call fcn.100afeb9
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1009cfc4
push 6
call fcn.100afebf
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x1009cfe0
push eax
mov ebx, eax
call fcn.100010eb
inc eax
push eax
call fcn.100afeb3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1009cfe5
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1009cff6
push ebx
call fcn.100afeb9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100b0c00
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x100b0c30
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.100b00d0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x100b0c87
push ebx
push edi
call fcn.100b0160
push esi
mov ebx, esi
call fcn.100b00d0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x100b0c5e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100b0c90
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x100b1020
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x100b103e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x100b1033
pop esi
ret
Function at 0x100b1040
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x100b1081.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x100b1081.2
jmp dword [eax*4 + 0x100b110c]
mov word [esp + 0x48], di
jmp 0x100b10ba
mov word [esp + 0x48], 2
jmp 0x100b10ba
mov word [esp + 0x48], 3
jmp 0x100b10ba
mov word [esp + 0x48], 4
jmp 0x100b10ba
mov word [esp + 0x48], 7
jmp 0x100b10ba
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x100b1104
cmp dword [esp + 0x70], edi
je 0x100b10f0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x100b11d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100b1262
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x100b1254
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x100b124c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x100b1215
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x100b4720
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x100b478a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x100b475a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100b47a6
push ecx
push esi
call fcn.100b64d0
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100b4810
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x100b4823
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call fcn.100b6f10
add esp, 4
test eax, eax
jne 0x100b4835
pop esi
add esp, 0x10
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x100b48f6
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x100b4973
lea ebx, [esp + 0x34]
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x100b487e
mov esi, dword [ebx]
jmp 0x100b4892
push ebx
call fcn.100b6d70
mov esi, eax
add esp, 4
test esi, esi
je 0x100b48d6
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x100b48bd
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100b48bd
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x100b48ca
push esi
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100b4973
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x100b486e
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
cmp eax, 2
jne 0x100b4973
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jle 0x100b4973
dec eax
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x100b4927
mov esi, dword [ebx]
jmp 0x100b493b
push ebx
call fcn.100b6d70
mov esi, eax
add esp, 4
test esi, esi
je 0x100b4965
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x100b4958
mov eax, dword [esp + 0x18]
push ecx
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
test ebp, ebp
je 0x100b4965
push esi
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [esp + 0x24]
add ebx, 0xc
dec eax
mov dword [esp + 0x24], eax
jne 0x100b4917
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret