joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eecc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x46eef4
cmp eax, 0x16
jae 0x46eefa
jmp 0x46f00d
jl 0x46f00d
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov edx, 0xfff8
call fcn.0046cd38
mov word [ebp - 0x12], ax
movzx edx, word [ebp - 0x12]
neg edx
mov cx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
movzx ebx, word [ebp - 0x12]
mov eax, ebx
call fcn.00402d04
mov dword [ebp - 0x10], eax
xor ecx, ecx
push ebp
push 0x46f006
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp ebx, eax
je 0x46ef58
call fcn.00404ba0
jmp 0x46f00d
mov eax, ebx
sub eax, 0x16
xor edx, edx
jmp 0x46ef85
dec eax
test eax, eax
jl 0x46ef71
mov ecx, dword [ebp - 0x10]
cmp byte [ecx + eax], 0x50
jne 0x46ef63
test eax, eax
jl 0x46ef8d
mov edx, dword [ebp - 0x10]
add edx, eax
cmp dword [edx], 0x6054b50
je 0x46ef85
dec eax
xor edx, edx
test eax, eax
jl 0x46ef8d
test edx, edx
je 0x46ef64
test edx, edx
jne 0x46ef98
call fcn.00404ba0
jmp 0x46f00d
mov eax, dword [ebp - 4]
add eax, 4
movzx ecx, word [edx + 4]
mov word [eax + 4], cx
movzx ecx, word [edx + 6]
mov word [eax + 6], cx
movzx ecx, word [edx + 8]
mov word [eax + 8], cx
movzx ecx, word [edx + 0xa]
mov word [eax + 0xa], cx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
movzx edx, word [edx + 0x14]
mov word [eax + 0x14], dx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x18]
sub eax, edx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1e], eax
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f00d
movzx edx, word [ebp - 0x12]
mov eax, dword [ebp - 0x10]
call fcn.00402d20
ret
movzx eax, byte [ebp - 9]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47374c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x12a]
mov edx, ebx
mov eax, edi
call fcn.00473918
mov esi, eax
mov dword [edi + 0x12a], esi
and esi, 0xff
add dword [edi + 0x12e], esi
imul esi, dword [edi + 0x12e], 0x8088405
inc esi
mov dword [edi + 0x12e], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x132]
mov eax, edi
call fcn.00473918
mov dword [edi + 0x132], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4737c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
movzx esi, cx
dec esi
test esi, esi
jl 0x4737e7
inc esi
mov eax, edi
call fcn.004737a4
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.0047374c
inc ebx
dec esi
jne 0x4737d0
pop edi
pop esi
pop ebx
ret
Function at 0x47387c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00405560
xor eax, eax
push ebp
push 0x473908
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov ecx, 0xc
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xb5]
sub dword [eax + 0x14], 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004737ec
mov edi, 0xc
lea esi, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004737a4
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0047374c
mov byte [esi], bl
inc esi
dec edi
jne 0x4738d2
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47390f
lea eax, [ebp - 4]
call fcn.004050ac
ret
Function at 0x4769fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405560
mov eax, dword [ebp - 8]
call fcn.00405560
mov eax, dword [ebp - 0xc]
call fcn.00405560
xor eax, eax
push ebp
push 0x476b03
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x3c
call fcn.004038c4
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
xor eax, eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00405144
mov eax, dword [ebp - 0x10]
call fcn.00405570
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00405144
mov eax, dword [ebp - 0x14]
call fcn.00405570
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00405144
mov eax, dword [ebp - 0x18]
call fcn.00405570
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
sub eax, 1
jb 0x476ab3
je 0x476abc
dec eax
je 0x476ac5
dec eax
je 0x476ace
jmp 0x476ad5
mov dword [ebp - 0x38], 5
jmp 0x476ad5
mov dword [ebp - 0x38], 3
jmp 0x476ad5
mov dword [ebp - 0x38], 2
jmp 0x476ad5
mov dword [ebp - 0x38], 7
lea eax, [ebp - 0x54]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x476ae6
mov bl, 1
jmp 0x476ae8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476b0a
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004050d0
ret
Function at 0x476cb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405560
lea eax, [ebp - 0x168]
mov edx, dword [0x408038]
call fcn.00405b48
xor eax, eax
push ebp
push 0x476e3f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x16c]
mov ecx, 0x476e58
mov edx, dword [ebp - 4]
call fcn.004053bc
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x3f
call fcn.00409afc
mov ebx, eax
test ebx, ebx
jne 0x476dce
mov eax, dword [ebp - 0x154]
mov edx, 0x476e68
call fcn.004054bc
je 0x476db9
mov eax, dword [ebp - 0x154]
mov edx, 0x476e74
call fcn.004054bc
je 0x476db9
mov eax, dword [ebp - 0x158]
and eax, 0x10
cmp eax, 0x10
jne 0x476d8a
push dword [ebp - 4]
push 0x476e80
push dword [ebp - 0x154]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00405430
mov eax, dword [ebp - 0x170]
call fcn.00476cb0
jmp 0x476db9
push dword [ebp - 4]
push 0x476e80
push dword [ebp - 0x154]
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.00405430
mov eax, dword [ebp - 0x174]
call fcn.00405570
push eax
call sub.kernel32.dll_DeleteFileA_1
lea eax, [ebp - 0x168]
call fcn.00409b4c
mov ebx, eax
test ebx, ebx
je 0x476d2d
lea eax, [ebp - 0x168]
call fcn.00409b70
xor eax, eax
push ebp
push 0x476dfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040329c
call fcn.00402e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x476e08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476e46
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.004050d0
lea eax, [ebp - 0x168]
mov edx, dword [0x408038]
call fcn.00405c18
lea eax, [ebp - 4]
call fcn.004050ac
ret
Function at 0x476e84
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x477035
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x47704c
mov eax, dword [0x4815b4]
push dword [eax]
lea edx, [ebp - 0x14]
mov eax, dword [0x485668]
call fcn.0047ad34
push dword [ebp - 0x14]
push 0x477088
push 0x477094
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00405430
mov eax, dword [ebp - 0x10]
movzx ecx, word [0x4770b8]
mov dl, 1
call fcn.00439c04
mov eax, dword [ebx + 0x370]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jle 0x476f3e
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0x370]
mov edx, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00405570
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x476f0b
mov eax, dword [ebx + 0x370]
call fcn.00404280
mov edx, dword [0x48181c]
mov edx, dword [edx]
lea eax, [ebp - 0x20]
mov ecx, 0x4770c4
call fcn.004053bc
mov eax, dword [ebp - 0x20]
call fcn.00476cb0
xor eax, eax
push ebp
push 0x476f8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x48181c]
mov eax, dword [eax]
call fcn.0040329c
call fcn.00402e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x476f99
mov dword [ebp - 8], 4
mov eax, dword [0x4817b4]
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x477001
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push ebp
push 0x476fef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp eax, 0x64
jbe 0x476fd2
call fcn.00404150
mov edx, dword [0x48158c]
mov eax, dword [edx + eax*4]
call fcn.0040329c
call fcn.00402e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x476ff9
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x476fb7
dec dword [ebp - 8]
jne 0x476fa0
mov eax, dword [0x4817a0]
mov eax, dword [eax]
call fcn.0046472c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47703c
lea eax, [ebp - 0x20]
call fcn.004050ac
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004050d0
ret
Function at 0x100cf7f
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1038080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
and ebx, 0x8000
neg ebx
sbb ebx, ebx
push 4
inc ebx
pop eax
inc ebx
call fcn.0100a2f0
mov dword [ebp - 0x10], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100d0cb
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
and dword [ebp - 8], 0
mov edi, dword [ebp - 0x58]
mov esi, ebx
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
mov dword [ebp - 0x14], edi
cmp ebx, 2
jne 0x100d042
and dword [ebp - 0xc], 0
push 0x10017cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x100d019
push 0x10017b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100d042
push 0x1001798
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100d042
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
call eax
cmp eax, 1
jne 0x100d042
mov eax, dword [ebp - 0xc]
test eax, eax
jbe 0x100d042
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea eax, [edi - 1]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.0100cf51
test eax, eax
jl 0x100d0cb
mov eax, dword [ebp - 0xc]
not eax
and dword [ebp - 8], eax
je 0x100d074
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 8]
call fcn.0100cf51
test eax, eax
jl 0x100d0cb
lea eax, [edi + edi]
cmp dword [ebp - 8], eax
jae 0x100d07f
mov dword [ebp - 8], eax
dec edi
not edi
and edi, dword [ebp - 0x10]
sub edi, dword [ebp - 8]
cmp ebx, 1
jne 0x100d092
push 0x11
pop eax
jmp 0x100d095
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add eax, ecx
cmp edi, eax
jb 0x100d0cb
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100d0cb
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100d0cb
xor eax, eax
inc eax
jmp 0x100d0cd
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100a0c1
leave
ret
Function at 0x100d1ad
Capabilities:
Access pe header
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x30]
cmp byte [edx + 2], 0
mov ecx, 0xdeadbeef
jne 0x100d1eb
test eax, eax
je 0x100d1f4
mov edx, dword [eax + 0x60]
sub edx, dword [eax + 0x64]
cmp edx, 0x2000
jae 0x100d1f4
and dword [0x1038d70], 0
jmp 0x100d208
mov edx, dword [ebp + 8]
cmp edx, ecx
jne 0x100d202
test eax, eax
je 0x100d1eb
mov edx, dword [eax + 0x64]
mov dword [0x1038d70], edx
cmp dword [ebp + 0xc], ecx
jne 0x100d21b
test eax, eax
jne 0x100d216
or eax, 0xffffffff
jmp 0x100d21e
mov eax, dword [eax + 0x64]
jmp 0x100d21e
mov eax, dword [ebp + 0xc]
mov dword [0x1038d74], eax
add eax, 8
cmp eax, 8
jae 0x100d235
mov dword [0x1038d74], 0xfffffff7
mov eax, dword [ebp + 0x10]
mov dword [0x1038d78], 0x100d109
test eax, eax
je 0x100d24b
mov dword [0x1038d78], eax
mov eax, dword [ebp + 0x14]
mov dword [0x1038d7c], 0x100d0e4
test eax, eax
je 0x100d261
mov dword [0x1038d7c], eax
pop ebp
ret 0x10

Function at 0x100d3ea
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1038080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x1038a84], edi
jne 0x100d506
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x100d451
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x1038a84], edi
pop esi
je 0x100d4d9
dec eax
jne 0x100d506
cmp dword [ebp - 0x11c], 5
jne 0x100d4c6
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x100d4ba
dec eax
je 0x100d4a7
dec eax
je 0x100d48d
mov dword [0x1038a84], 0x14
jmp 0x100d506
cmp word [ebp - 0xc], 1
jb 0x100d49e
mov dword [0x1038a84], 0x10
or dword [0x1038a84], 4
jmp 0x100d506
cmp word [ebp - 0xc], 2
jb 0x100d49e
mov dword [0x1038a84], 8
jmp 0x100d49e
mov dword [0x1038a84], 4
jmp 0x100d506
cmp dword [ebp - 0x11c], 4
ja 0x100d518
mov dword [0x1038a84], 2
cmp dword [ebp - 0x11c], 4
jne 0x100d506
cmp dword [ebp - 0x118], edi
je 0x100d4fc
cmp dword [ebp - 0x118], 0xa
je 0x100d4fc
cmp dword [ebp - 0x118], 0x5a
jne 0x100d506
mov dword [0x1038a84], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x1038a84]
xor ecx, ebp
pop edi
call fcn.0100a0c1
leave
ret
mov dword [0x1038a84], 0x20
jmp 0x100d506
Function at 0x100d529
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1038080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100d57d
push 3
lea eax, [ebp - 0x44]
push 0x1001df8
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.0100a0c1
leave
ret

Function at 0x100d592
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1038080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x1038a88]
jne 0x100d62d
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1001d28
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d62c
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1001de0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x100d62c
push 3
push dword [esi*8 + 0x1001b78]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x100d61e
inc esi
cmp esi, 0x1c
jb 0x100d5fd
jmp 0x100d62c
mov ax, word [esi*8 + 0x1001b7c]
mov word [0x1038a88], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x1038a88]
xor ecx, ebp
call fcn.0100a0c1
leave
ret
Function at 0x100e4f6
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
push 8
pop ecx
xor ebx, ebx
push 0x1d
push ebx
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
jne 0x100e526
xor eax, eax
jmp 0x100e57f
push esi
push 4
push 0x1004a28
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
jne 0x100e544
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100e56a
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 8], eax
call esi
push edi
call esi
cmp dword [ebp - 8], ebx
jne 0x100e56e
xor eax, eax
jmp 0x100e57e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp dword [ebp - 0x10], eax
sete cl
mov eax, ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x100ef8c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1038080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
inc ebx
xor esi, esi
push edi
mov dword [ebp - 0x428], eax
test byte [0x1038aa0], bl
jne 0x100efd1
or dword [0x1038aa0], ebx
push 0x1033570
mov dword [0x1038a9c], esi
call fcn.0100ad2f
pop ecx
mov edi, 0x1038a9c
cmp dword [0x1038a98], esi
jne 0x100f0bf
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push esi
push 0x1004b70
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100f0cd
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x1004cec
push dword [ebp - 0x41c]
mov dword [ebp - 0x424], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x420]
cmp eax, esi
jne 0x100f0cd
cmp dword [ebp - 0x418], ebx
je 0x100f0ab
cmp dword [ebp - 0x418], 2
je 0x100f06c
mov eax, 0x80040153
jmp 0x100f0cd
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100f092
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100f0cd
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100a613
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0100ea7c
mov dword [0x1038a98], ebx
mov ecx, dword [ebp - 0x428]
push edi
call fcn.0100ef58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a0c1
leave
ret 4
Function at 0x1013088
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x10315d0
call fcn.0100a149
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x101317e
cmp byte [esi + 0x42], bl
je 0x101317e
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x10130c4
xor al, al
jmp 0x1013180
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.01012fed
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.01011207
mov edi, dword [eax]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.01011207
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x18]
add ebx, edi
push ebx
push eax
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x1013123
dec eax
je 0x1013127
dec eax
dec eax
je 0x101317a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.01011369
mov al, bl
jmp 0x1013180
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.01011207
mov edi, dword [ebp - 0x30]
sub edi, dword [eax]
je 0x101315c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.01011207
push dword [esi + 0x4c]
mov eax, dword [eax]
push edi
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1013111
cmp byte [esi + 0x42], 0
je 0x101317a
test edi, edi
jne 0x10130d2
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.010121ba
jmp 0x10130d2
mov bl, 1
jmp 0x1013113
mov al, 1
call fcn.0100a1db
ret

Function at 0x101652c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, 0x1005478
push esi
push dword [ebp + 8]
call fcn.01016139
push eax
call fcn.0101650b
push 0x10055f8
push eax
call fcn.01016139
push eax
call fcn.0101650b
push esi
push eax
call fcn.01016139
push eax
call fcn.0101650b
add esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
push eax
call fcn.010162df
push eax
call fcn.0101650b
pop ecx
movzx ecx, word [ebp - 4]
push ecx
mov ecx, eax
call fcn.010162df
push eax
call fcn.0101650b
pop ecx
movzx ecx, word [ebp - 2]
push ecx
mov ecx, eax
call fcn.010162df
push eax
call fcn.0101650b
push esi
push eax
call fcn.01016139
push eax
call fcn.0101650b
add esp, 0x10
xor eax, eax
pop esi
leave
ret 4