joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038bcc
Capabilities:
Create thread

Disassembly:
push 0x94
mov eax, 0x1005210f
call fcn.1003b8ec
push str.gxdteCfg
lea ecx, [ebp - 0x84]
call fcn.10004a83
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x48]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.1001c4ef
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.1000585c
lea ecx, [ebp - 0x48]
call fcn.10010ca2
lea ecx, [ebp - 0x48]
test al, al
je 0x10038e04
push str.ctxMenuAuth
call fcn.10010909
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x30], esi
call fcn.10010ca2
test al, al
je 0x10038e01
push str.enable
lea ecx, [ebp - 0x2c]
call fcn.10004a83
push edi
lea eax, [ebp - 0x2c]
push eax
push esi
mov byte [ebp - 4], 3
call fcn.10019f16
add esp, 0xc
mov ebx, eax
neg ebx
push edi
sbb bl, bl
push 1
lea ecx, [ebp - 0x2c]
inc bl
mov byte [ebp - 4], 2
call fcn.1000585c
test bl, bl
jne 0x10038e01
cmp dword [ebp + 8], edi
je 0x10038dea
push str.expired
lea ecx, [ebp - 0x68]
call fcn.10004a83
push 5
lea eax, [ebp - 0x68]
push eax
push esi
mov byte [ebp - 4], 4
call fcn.10019f16
add esp, 0xc
xor ebx, ebx
push edi
mov esi, eax
inc ebx
imul esi, esi, 0x3e8
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.1000585c
push str.exts
lea ecx, [ebp - 0x68]
call fcn.10004a83
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0x1005dee5
mov byte [ebp - 4], 5
call fcn.10004a83
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0xa0]
push eax
call fcn.10018e97
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.100013e5
add esp, 0x30
push edi
push ebx
lea ecx, [ebp - 0xa0]
call fcn.1000585c
push edi
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.1000585c
cmp dword [ebp - 0x18], edi
je 0x10038dd3
cmp esi, edi
je 0x10038dd3
call fcn.10025817
test eax, eax
je 0x10038dcc
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10038d51
lea eax, [ebp - 0x28]
push 2
push eax
push str.explorer.exe
call fcn.1002584b
add esp, 0xc
call fcn.10002d84
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x30], eax
mov eax, esi
cdq
add ecx, eax
mov eax, dword [ebp - 0x30]
adc eax, edx
mov dword [0x100706a8], ecx
mov dword [0x100706ac], eax
cmp dword [0x100706a0], edi
jne 0x10038db2
push edi
push edi
push edi
push 0x10038346
push edi
push edi
mov dword [0x100706a0], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._TempAuth_temp_auth_cleaner_created
call fcn.10022250
pop ecx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10038dbe
lea eax, [ebp - 0x28]
push eax
push str._TempAuth_temp_auth_for:__s
call fcn.10022250
pop ecx
jmp 0x10038ddd
push str._TempAuth_dte_not_working
jmp 0x10038dd8
push str._TempAuth_parameter_error
call fcn.10022250
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10005a6e
jmp 0x10038e01
push str._TempAuth_remove_temp_auth
call fcn.10022250
mov dword [esp], str.explorer.exe
call fcn.10025cd6
pop ecx
lea ecx, [ebp - 0x48]
or dword [ebp - 4], 0xffffffff
call fcn.1000f850
call fcn.1003b96f
ret
Function at 0x1003931b
Capabilities:
Check os version

Disassembly:
push 0x130
mov eax, 0x10052145
call fcn.1003b8ec
test byte [0x100706d0], 1
mov esi, 0x100706b0
jne 0x10039359
or dword [0x100706d0], 1
and dword [ebp - 4], 0
mov ecx, esi
call fcn.10039212
push 0x100564b3
call fcn.1003c402
or dword [ebp - 4], 0xffffffff
pop ecx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x134]
push eax
mov ecx, esi
call fcn.100386f0
push esi
push dword [0x100706c8]
lea ecx, [ebp - 0x13c]
call fcn.1002bedf
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x134]
call fcn.100383c2
test al, al
jne 0x100393a3
lea ecx, [ebp - 0x134]
call fcn.100383e9
mov eax, dword [eax + 4]
jmp 0x10039400
push 0x118
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.1003c230
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x128], 5
jbe 0x100393e3
push dword [ebp + 8]
call fcn.10038296
jmp 0x100393eb
mov eax, dword [ebp + 8]
call fcn.10037ea3
mov edi, eax
test edi, edi
je 0x100393fe
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.10039171
mov dword [eax], edi
mov eax, edi
call fcn.1003b96f
ret

Function at 0x1003a88d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1003a8d5
mov eax, dword [esi + 8]
test eax, eax
je 0x1003a8d5
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1003a8c8
cmp dword [ebp - 4], 0x103
jne 0x1003a8c8
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
pop esi
leave
ret
Function at 0x1003a976
Capabilities:
Check if file exists
Get session user name

Disassembly:
push ebp
sub esp, 0x324
lea ebp, [esp - 4]
mov eax, dword [0x1006d144]
xor eax, ebp
mov dword [ebp + 0x324], eax
push 0xc
mov eax, 0x100521be
call fcn.1003b883
mov eax, dword [ebp + 0x330]
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
xor ebx, ebx
lea eax, [ebp + 0x1e]
push ebx
push eax
mov esi, ecx
call fcn.1003c230
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1c]
push eax
push str.polocker.exe
push esi
call fcn.10002306
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003a9e9
push 3
pop eax
jmp 0x1003aadc
push dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push edi
push eax
lea eax, [ebp]
push str.__s___s__s
push eax
call fcn.100041b8
xor eax, eax
push 0xfe
mov word [ebp + 0x224], ax
lea eax, [ebp + 0x226]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1003c230
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x224]
push eax
mov dword [ebp - 0x18], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1003aa4e
push ebx
push 1
lea ecx, [ebp]
call fcn.10005a6e
xor eax, eax
jmp 0x1003aadc
call fcn.1001a978
test eax, eax
mov eax, dword [ebp + 4]
jne 0x1003aa99
cmp dword [ebp + 0x18], 8
jae 0x1003aa63
lea eax, [ebp + 4]
xor esi, esi
inc esi
push esi
push ebx
push eax
call fcn.10002f06
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1003aa7d
mov dword [ebp - 0x10], esi
cmp eax, 0xffffffff
jne 0x1003aa80
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x14]
call fcn.10001336
push ebx
push esi
lea ecx, [ebp]
call fcn.10005a6e
xor eax, eax
cmp byte [ebp - 0x10], bl
jmp 0x1003aad5
cmp dword [ebp + 0x18], 8
jae 0x1003aaa2
lea eax, [ebp + 4]
xor esi, esi
inc esi
push esi
push eax
call fcn.100032a3
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1003aabb
mov dword [ebp - 0x10], esi
cmp eax, 0xffffffff
jne 0x1003aabe
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x14]
call fcn.10001336
push ebx
push esi
lea ecx, [ebp]
call fcn.10005a6e
xor eax, eax
cmp byte [ebp - 0x10], bl
setne al
dec eax
and eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x324]
xor ecx, ebp
call fcn.1003b874
add ebp, 0x328
leave
ret

Function at 0x1003adab
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 4], bl
je 0x1003adba
xor al, al
jmp 0x1003ae07
push 0x10059a38
mov byte [esi + 4], 1
call fcn.1001e134
pop ecx
test eax, eax
je 0x1003ae05
cmp dword [0x10070110], ebx
je 0x1003ae05
push 0x1005ab48
call fcn.1001a50a
pop ecx
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1003adf2
cmp eax, 2
jne 0x1003ae05
push ebx
push ebx
push ebx
push 0x1003ad18
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov al, 1
pop esi
pop ebx
ret

Function at 0x1003b874
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006d144]
jne 0x1003b87e
repz ret
jmp fcn.1004006c
Function at 0x100443dd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1003eb51
and dword [ebp - 4], 0
cmp dword [0x100716bc], 0
mov ebx, eax
jne 0x1004448e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1004453f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1004453f
push eax
call fcn.1003eadf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100716bc], eax
call esi
push eax
call fcn.1003eadf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100716c0], eax
call esi
push eax
call fcn.1003eadf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100716c4], eax
call esi
push eax
call fcn.1003eadf
pop ecx
mov dword [0x100716cc], eax
test eax, eax
je 0x1004448e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003eadf
pop ecx
mov dword [0x100716c8], eax
mov eax, dword [0x100716c8]
cmp eax, ebx
je 0x100444e6
cmp dword [0x100716cc], ebx
je 0x100444e6
push eax
call fcn.1003eb5a
push dword [0x100716cc]
mov esi, eax
call fcn.1003eb5a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100444e6
test edi, edi
je 0x100444e6
call esi
test eax, eax
je 0x100444dd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100444dd
test byte [ebp - 0xc], 1
jne 0x100444e6
or dword [ebp + 0x10], 0x200000
jmp 0x1004451f
mov eax, dword [0x100716c0]
cmp eax, ebx
je 0x1004451f
push eax
call fcn.1003eb5a
pop ecx
test eax, eax
je 0x1004451f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1004451f
mov eax, dword [0x100716c4]
cmp eax, ebx
je 0x1004451f
push eax
call fcn.1003eb5a
pop ecx
test eax, eax
je 0x1004451f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100716bc]
call fcn.1003eb5a
pop ecx
test eax, eax
je 0x1004453f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10044541
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010b0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb10
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push str._______________________________________________________________________________n
call fcn.00401040
push str._________________________________________________________________n
call fcn.00401040
push str.______________________________________________________n
call fcn.00401040
push str._____________________________V__V________________________n
call fcn.00401040
push str.___________________________________________________n
call fcn.00401040
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
push str._lu_n
call fcn.00401040
add esp, 0x20
mov dword [ebp - 0xb10], 0x101
lea eax, [ebp - 0xb10]
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x30c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401132
sub eax, edx
sar eax, 1
push esi
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push 0x4022b0
push eax
call fcn.00401070
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xb0c]
push str.C:Users_sDesktopWLtester.txt
push eax
call fcn.00401070
lea eax, [ebp - 0xb0c]
push 0x4022d8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
push str.NishangChmOnlinePayloadBypass._n
push esi
call fcn.00401010
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 0x38
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004011c1
mov esp, ebp
pop ebp
ret
Function at 0x10001320
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x2000000
mov dword [ebp - 4], 0x2000000
call fcn.100028a8
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [ebp - 0x3c], esi
jbe 0x10001409
lea esp, [esp]
push 0x1c
lea ecx, [ebp - 0x24]
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x1000137d
add esi, 0x1000
jmp 0x10001400
cmp dword [ebp - 0x14], 0x1000
jne 0x100013fa
cmp dword [ebp - 0xc], 0x1000000
jne 0x100013fa
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 4], eax
jae 0x100013b0
mov esi, eax
push edi
mov dword [ebp - 4], esi
call fcn.100029a0
push esi
call fcn.100028a8
mov edi, eax
mov eax, dword [ebp - 0x18]
add esp, 8
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ebp - 0x24]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100013fa
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
xor esi, esi
test ecx, ecx
jle 0x100013fa
xor eax, eax
lea edx, [eax + esi]
mov dl, byte [edx + edi]
cmp dl, byte [eax + 0x1000d180]
jne 0x1000141b
inc eax
cmp eax, 0x10
jl 0x100013d3
cmp esi, 0xffffffff
je 0x100013fa
mov eax, dword [ebp - 0x24]
lea ecx, [esi + eax]
cmp ecx, 0x1000d180
jne 0x10001422
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x3c]
jb 0x10001360
push edi
call fcn.100029a0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
cmp esi, ecx
jl 0x100013d1
jmp 0x100013fa
push edi
call fcn.100029a0
mov ecx, dword [ebp - 0x24]
add esp, 4
pop edi
lea eax, [esi + ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001440
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000afa0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1000f038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor ebx, ebx
sub eax, ebx
mov dword [ebp - 4], ebx
je 0x1000156f
dec eax
jne 0x100015d5
mov eax, dword [0x10010d0c]
cmp eax, ebx
jne 0x100014bc
push str.102FDD8D_2B4C_465F_891C_5AB0440D288E
push 0x100010
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x100010
push ebx
push ebx
push 0xf001f
push eax
mov dword [0x10010d08], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10010d0c], eax
cmp byte [eax], bl
je 0x100015b2
mov dword [0x10010cfc], ebx
call fcn.10001320
cmp eax, ebx
je 0x100014db
add eax, 0xffffffd0
mov dword [0x10010cfc], eax
cmp dword [0x10010cfc], ebx
je 0x100015d5
call fcn.10001b09
cmp eax, ebx
jne 0x100015d5
mov ecx, dword [0x10010cfc]
push 0x10010cf8
mov edx, 0x100010c0
call fcn.10001c49
cmp eax, ebx
jne 0x100015d5
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10010d00
mov edx, 0x10001220
mov ecx, esi
call fcn.10001c49
cmp eax, ebx
jne 0x100015d5
mov eax, dword [0x10010cfc]
push eax
mov ecx, 1
call fcn.10001df6
add esp, 4
cmp eax, ebx
jne 0x100015d5
push esi
mov ecx, 1
call fcn.10001df6
add esp, 4
cmp eax, ebx
jne 0x100015d5
call fcn.10001ec5
cmp eax, ebx
jne 0x100015d5
mov byte [0x10010d04], 1
jmp 0x100015d5
cmp byte [0x10010d04], bl
je 0x100015a9
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
xor ecx, ecx
call fcn.10001df6
mov edx, dword [0x10010cfc]
add esp, 4
push edx
xor ecx, ecx
call fcn.10001df6
add esp, 4
call fcn.10001ec5
call fcn.10001b83
mov byte [0x10010d04], bl
mov eax, dword [0x10010d0c]
cmp eax, ebx
je 0x100015d5
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x10010d08]
mov dword [0x10010d0c], ebx
cmp eax, ebx
je 0x100015d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10010d08], ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100017ec
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000f038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x100018c0
push ebx
push 0x1c
pop ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x100018ae
cmp dword [ebp - 0x20], 0x10
jb 0x1000189e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1000189e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000189e
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000186c
push 0x200
push ecx
push dword [0x10010d14]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x100018b6
jmp 0x10001890
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10001890
shl eax, 3
push eax
push ecx
push 0
push dword [0x10010d14]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x100018b6
shl dword [esi + 4], 1
mov dword [esi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [ebp - 0x18]
mov dword [ecx + eax*4], edx
inc dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10001829
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100028b3
leave
ret

Function at 0x100018cc
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.100017ec
cmp dword [esi], edi
je 0x10001926
push ebx
xor ebx, ebx
cmp dword [esi + 8], edi
jbe 0x10001925
jmp 0x100018f2
xor edi, edi
mov eax, dword [esi]
push dword [eax + ebx*4]
push edi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1000191f
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
push edi
call fcn.1000169c
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x100018f0
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1000192a
Capabilities:
Resume thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x10001971
cmp dword [esi + 8], edi
jbe 0x10001961
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000195a
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10001937
pop ebx
push dword [esi]
push 0
push dword [0x10010d14]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x10001973
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
imul ebx, ebx, 0x28
add ebx, dword [0x10011e60]
push esi
test byte [ebx + 0x14], 1
push edi
mov edi, dword [ebx]
push 5
pop esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
je 0x100019a4
sub edi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 7
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100019bd
push 0xa
pop eax
jmp 0x10001a1e
cmp dword [ebp + 8], 0
je 0x100019df
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, esi
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x100019ef
mov eax, dword [ebx]
mov word [eax], 0xf9eb
jmp 0x100019ef
test byte [ebx + 0x14], 1
lea esi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
je 0x100019eb
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 8]
and eax, 1
mov ecx, eax
and ecx, 0xfffffffd
add eax, eax
or ecx, eax
mov eax, dword [ebx + 0x14]
add ecx, ecx
and eax, 0xfffffff9
or ecx, eax
mov dword [ebx + 0x14], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002268
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [0x10011e5c]
mov dword [ebp - 8], edx
jmp 0x1000229a
cmp dword [eax + 4], 0
jne 0x10002331
mov eax, dword [eax]
test eax, eax
jne 0x1000228e
and esi, 0xfffff000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
push edi
lea edi, [ecx - 0x1000]
mov dword [ebp - 0xc], ecx
mov esi, 0x1000
cmp edi, edx
jb 0x100022d9
push 0x40
push 0x3000
push esi
push edi
call ebx
test eax, eax
jne 0x100022fd
sub edi, esi
cmp edi, dword [ebp - 8]
jae 0x100022c0
mov ecx, dword [ebp - 0xc]
test eax, eax
jne 0x100022fd
lea edi, [ecx + 0x1000]
jmp 0x100022f6
push 0x40
push 0x3000
push esi
push edi
call ebx
test eax, eax
jne 0x100022fd
add edi, esi
cmp edi, dword [ebp - 4]
jb 0x100022e5
jmp 0x1000232f
and dword [eax + 4], 0
and dword [eax + 8], 0
lea ecx, [eax + 0x20]
mov edx, ecx
sub edx, eax
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x1000230c
mov ecx, dword [0x10011e5c]
mov dword [eax], ecx
mov dword [0x10011e5c], eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100028b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000f038]
jne 0x100028bd
repz ret
jmp fcn.10002cf7
Function at 0x10008fd4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000f038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10003359
and dword [ebp - 0x14], 0
cmp dword [0x10010ca4], 0
mov dword [ebp - 0x18], eax
jne 0x10009087
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000912f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000912f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10010ca4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10010ca8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10010cac], eax
call edi
push eax
call esi
mov dword [0x10010cb4], eax
test eax, eax
je 0x10009087
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10010cb0], eax
mov eax, dword [0x10010cb0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100090e0
cmp dword [0x10010cb4], ecx
je 0x100090e0
push eax
call esi
push dword [0x10010cb4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100090e0
test ebx, ebx
je 0x100090e0
call edi
test eax, eax
je 0x100090d7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100090d7
test byte [ebp - 8], 1
jne 0x100090e0
or dword [ebp + 0x10], 0x200000
jmp 0x10009113
mov eax, dword [0x10010ca8]
cmp eax, dword [ebp - 0x18]
je 0x10009113
push eax
call esi
test eax, eax
je 0x10009113
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10009113
mov eax, dword [0x10010cac]
cmp eax, dword [ebp - 0x18]
je 0x10009113
push eax
call esi
test eax, eax
je 0x10009113
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10010ca4]
call esi
test eax, eax
je 0x1000912f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10009131
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100028b3
leave
ret