joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408320
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
push eax
push 0x20
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4083b0
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x408369
push str.Cant___lookup___privilege___value._n
call fcn.0041c33a
add esp, 4
mov eax, dword [esp + 4]
push 0
push 0
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40839a
push str.Cant___adjust___privilege___value._n
call fcn.0041c33a
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
test eax, eax
push ecx
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
add esp, 0x18
ret

Function at 0x40afa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x442cfc]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x40b020
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x40affa
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x40afe5
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041acdb
add esp, 0x118
ret
cmp eax, 0x5a
jne 0x40afe3
cmp dword [esp + 0x10], 1
jne 0x40afe3
mov eax, 2
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041acdb
add esp, 0x118
ret
cmp eax, 5
jne 0x40b0a1
mov eax, dword [esp + 8]
test eax, eax
jne 0x40b04e
cmp dword [esp + 0x10], 2
jne 0x40afe3
mov eax, 3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041acdb
add esp, 0x118
ret
cmp eax, 1
jne 0x40b074
cmp dword [esp + 0x10], 2
jne 0x40afe3
mov eax, 4
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041acdb
add esp, 0x118
ret
cmp eax, 2
jne 0x40afe3
cmp dword [esp + 0x10], eax
jne 0x40afe3
mov eax, 5
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041acdb
add esp, 0x118
ret
cmp eax, 6
jne 0x40afe3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041acdb
add esp, 0x118
ret
Function at 0x40b120
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x434c8b
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x442cfc]
xor eax, esp
mov dword [esp + 0x820], eax
push esi
mov eax, dword [0x442cfc]
xor eax, esp
push eax
lea eax, [esp + 0x82c]
mov dword fs:[0], eax
push 0x800
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.0041daa0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea eax, [esp + 0x28]
mov word [esp + 0xc], dx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b1a4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
lea esi, [esp + 0xc]
call fcn.00409c70
mov eax, esi
mov ecx, edi
mov dword [esp + 0x834], 0
call fcn.0040b0c0
cmp dword [esp + 0x20], 8
jb 0x40b1e9
mov eax, dword [esp + 0xc]
push eax
call fcn.0040eebf
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x82c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0041acdb
add esp, 0x830
ret

Function at 0x40b4c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x434c58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x442cfc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.004097e0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b516
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.00409b50
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.004097e0
cmp dword [esp + 0x24], 8
jb 0x40b55e
mov edx, dword [esp + 0x10]
push edx
call fcn.0040eebf
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40b7a0
Capabilities:
Check for time delay via gettickcount
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov eax, edi
call fcn.0040b6d0
test al, al
je 0x40b7f7
mov eax, dword [edi + 0xc]
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40b800
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x19
mov eax, str.StartService_FAILED___d__n
mov word [esi + 4], cx
call fcn.00409c70
call fcn.00409500
add esp, 0x20
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x2c], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x19
mov eax, str.Service_start_pending..._n
mov word [esi + 4], dx
call fcn.00409c70
call fcn.00409500
mov edx, dword [edi + 0xc]
add esp, 0x1c
lea eax, [esp + 0xc]
push eax
push 0x24
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40b7f7
mov eax, dword [edi + 0xc]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x110
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esp + 0x18], 2
mov ebp, dword [esp + 0x28]
mov esi, eax
jne 0x40b8ec
jmp 0x40b880
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x40b89b
mov edx, 0x3e8
jmp 0x40b8a8
cmp edx, 0x2710
jbe 0x40b8a8
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 0x24
lea edx, [esp + 0x1c]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40b8ec
cmp dword [esp + 0x28], ebp
jbe 0x40b8db
call ebx
mov ebp, dword [esp + 0x28]
mov esi, eax
jmp 0x40b8e5
call ebx
sub eax, esi
cmp eax, dword [esp + 0x2c]
ja 0x40b8ec
cmp dword [esp + 0x18], 2
je 0x40b880
sub esp, 0x1c
cmp dword [esp + 0x34], 4
mov dword [esp + 0x2c], esp
mov ecx, esp
jne 0x40b917
mov eax, str.Service_started_successfully._n
call fcn.004095a0
call fcn.00409500
add esp, 0x1c
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, str.Service_not_started.
call fcn.004095a0
call fcn.00409500
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add esp, 0x1c
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
sub esp, 0x1c
mov eax, str.Current_State:__d__Exit_Code:__d__Check_Point:__d__Wait_Hint:__d_n
mov ecx, esp
mov dword [esp + 0x3c], esp
call fcn.004095a0
call fcn.00409500
add esp, 0x2c
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret
Function at 0x40be10
Capabilities:
Create service
Persist via windows service

Disassembly:
push ecx
push esi
push 0xf003f
push 0
push 0
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esi + 8], eax
test eax, eax
jne 0x40be67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0x24], esp
mov word [esi + 4], ax
push 0x1a
mov eax, str.OpenSCManager_FAILED___d__n
call fcn.00409c70
call fcn.00409500
add esp, 0x20
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esi]
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x110
push 0xf01ff
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40bed6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x24], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x1a
mov eax, str.CreateService_FAILED___d__n
mov word [esi + 4], cx
call fcn.00409c70
call fcn.00409500
add esp, 0x20
xor al, al
pop esi
pop ecx
ret
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x20], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x1d
mov eax, str.CreateService__Successfully._n
mov word [esi + 4], dx
call fcn.00409c70
call fcn.00409500
add esp, 0x1c
mov al, 1
pop esi
pop ecx
ret

Function at 0x40bf10
Capabilities:
Delete service

Disassembly:
push ecx
push esi
mov esi, eax
call fcn.0040b6d0
test al, al
je 0x40bf63
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40bf68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x24], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x1a
mov eax, str.DeleteService_FAILED___d__n
mov word [esi + 4], cx
call fcn.00409c70
call fcn.00409500
add esp, 0x20
xor al, al
pop esi
pop ecx
ret
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x20], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x1d
mov eax, str.Service_deleted_successfully_n
mov word [esi + 4], dx
call fcn.00409c70
call fcn.00409500
add esp, 0x1c
mov al, 1
pop esi
pop ecx
ret
Function at 0x40d560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435930
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x442cfc]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x442cfc]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x39]
push ebx
push eax
mov byte [esp + 0x40], bl
call fcn.0041daa0
mov ecx, 7
xor edx, edx
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
mov eax, dword [ebp + 8]
sub eax, 0x8000
mov dword [esp + 0x150], ebx
je 0x40d67c
sub eax, 4
jne 0x40d78f
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x2c], esp
mov word [esi + 4], ax
push 0x3e
mov eax, str.Device_Removal_Event__________________________________________
call fcn.00409c70
call fcn.00409500
lea ecx, [esp + 0x34]
add esp, 0x1c
push ecx
call fcn.004092f0
add esp, 4
test al, al
jne 0x40d77b
test byte [0x447130], 1
jne 0x40d64d
or dword [0x447130], 1
mov dword [0x447104], ebx
mov dword [0x447108], ebx
mov byte [0x44710c], bl
call fcn.0040afa0
cmp eax, 3
jne 0x40d77b
mov dword [0x447104], 0x2710
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x447108], eax
mov byte [0x44710c], 1
jmp 0x40d77b
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x2c], esp
xor edx, edx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ebx
push 0x3d
mov eax, str.Device_Arrival_Event_________________________________________
mov word [esi + 4], dx
call fcn.00409c70
call fcn.00409500
lea eax, [esp + 0x34]
add esp, 0x1c
push eax
call fcn.004092f0
add esp, 4
test al, al
je 0x40d6ed
test byte [0x447130], 1
jne 0x40d6c6
or dword [0x447130], 1
cmp dword [esp + 0x30], 8
mov dword [0x447104], ebx
mov dword [0x447108], ebx
mov byte [0x44710c], bl
jb 0x40d78f
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x40d787
cmp byte [0x44704c], bl
je 0x40d703
lea esi, [esp + 0x18]
call fcn.00401f10
jmp 0x40d78f
mov byte [0x44704c], 1
lea edx, [esp + 0x18]
mov byte [esp + 0x150], 1
push edx
mov dword [esp + 0x14], ebx
call fcn.00408e30
add esp, 4
test al, al
je 0x40d775
lea edi, [esp + 0x14]
lea esi, [esp + 0x34]
call fcn.00408de0
cmp al, bl
je 0x40d775
push 0xffffffffffffffff
call fcn.0040de00
mov esi, eax
call fcn.0040de30
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edi, [esp + 0x20]
call fcn.004083c0
add esp, 8
cmp dword [ebp + 0xc], ebx
je 0x40d775
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push 0x40d8d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [0x44704c], bl
cmp dword [esp + 0x30], 8
jb 0x40d78f
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040eebf
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041acdb
mov esp, ebp
pop ebp
ret
Function at 0x40d920
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x442cfc]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
push edi
push 0x228
lea eax, [esp + 0x14]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x18], 0
call fcn.0041daa0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d97d
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041acdb
add esp, 0x234
ret
lea ecx, [esp + 0xc]
push ecx
push edi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40da60
jmp 0x40d9a0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0xc]
call fcn.004079b0
mov eax, dword [esp + 8]
push str.EXPLORER.EXE
push eax
call fcn.0041c74d
add esp, 8
test eax, eax
je 0x40d9f8
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d9a0
lea esi, [eax + 1]
jmp 0x40da62
mov edx, dword [esp + 0x14]
push ebx
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
test esi, esi
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041acdb
add esp, 0x234
ret
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
test esi, esi
pop edi
setne al
pop esi
xor ecx, esp
call fcn.0041acdb
add esp, 0x234
ret
Function at 0x40e380
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x435530
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x442cfc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
xor ebp, ebp
call fcn.0040e520
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov ebx, eax
cmp ecx, eax
jbe 0x40e3d2
call fcn.0041b72a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov edi, ecx
cmp ecx, eax
jbe 0x40e3e1
call fcn.0041b72a
mov ecx, dword [esp + 0x20]
push ebx
push esi
push edi
push ecx
lea ebx, [esp + 0x28]
lea esi, [esp + 0x30]
call fcn.0040ebf0
mov edx, esi
push edx
push 0x40eab0
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.0040f34b
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e420
push 0x80004005
call fcn.00407850
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x30]
mov ecx, eax
sub ecx, dword [esp + 0x2c]
test ecx, 0xfffffffc
jne 0x40e464
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push str.EnumTop_error_:_d
push edx
call fcn.0040e720
mov eax, dword [esp + 0x3c]
add esp, 0xc
sub eax, dword [esp + 0x2c]
xor esi, esi
sar eax, 2
cmp eax, ebx
jbe 0x40e4b7
cmp esi, eax
jb 0x40e47a
call fcn.0041b72a
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + esi*4]
call fcn.0040e070
test al, al
jne 0x40e49c
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
inc esi
sar eax, 2
cmp esi, eax
jb 0x40e47a
jmp 0x40e4b7
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 2
cmp esi, ecx
jb 0x40e4b0
call fcn.0041b72a
mov edx, dword [esp + 0x2c]
mov ebp, dword [edx + esi*4]
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40e4ec
push eax
call fcn.0040eebf
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0040eebf
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x417afa
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x417ae6
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x417b04
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x417b62
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x417b49
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x417b52
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x417b5c
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x417b3e
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x417ac8
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x417baf
dec eax
je 0x417ba6
sub eax, 3
je 0x417b9d
mov dword [ebp - 4], 0x40
jmp 0x417bcc
mov dword [ebp - 4], 4
jmp 0x417bb2
mov dword [ebp - 4], 0x20
jmp 0x417bb2
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x417bfe
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x417b7e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0041740f
inc ebp
in al, 0x5d
movsb byte es:[edi], byte [esi]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x417c0a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417d15
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
inc edx
cld
invalid
call dword [edx]
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
invalid
invalid
Function at 0x4182e3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004173ed
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0041741f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004173d4
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0041740f
and bl, byte [0x468cddf]
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x419478
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0xfffffc5c
add byte [ebp - 0x73], dh
test esp, ebp
clc
invalid

Function at 0x41acdb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442cfc]
jne 0x41ace5
repz ret
jmp fcn.0041f9af
Function at 0x42ed54
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.00420a1a
and dword [ebp - 4], 0
cmp dword [0x446e94], 0
mov ebx, eax
jne 0x42ee05
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42eeb6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42eeb6
push eax
call fcn.004209a8
mov dword [esp], 0x43a5f4
push edi
mov dword [0x446e94], eax
call esi
push eax
call fcn.004209a8
mov dword [esp], 0x43a5e0
push edi
mov dword [0x446e98], eax
call esi
push eax
call fcn.004209a8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x446e9c], eax
call esi
push eax
call fcn.004209a8
pop ecx
mov dword [0x446ea4], eax
test eax, eax
je 0x42ee05
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004209a8
pop ecx
mov dword [0x446ea0], eax
mov eax, dword [0x446ea0]
cmp eax, ebx
je 0x42ee5d
cmp dword [0x446ea4], ebx
je 0x42ee5d
push eax
call fcn.00420a23
push dword [0x446ea4]
mov esi, eax
call fcn.00420a23
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42ee5d
test edi, edi
je 0x42ee5d
call esi
test eax, eax
je 0x42ee54
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42ee54
test byte [ebp - 0xc], 1
jne 0x42ee5d
or dword [ebp + 0x10], 0x200000
jmp 0x42ee96
mov eax, dword [0x446e98]
cmp eax, ebx
je 0x42ee96
push eax
call fcn.00420a23
pop ecx
test eax, eax
je 0x42ee96
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42ee96
mov eax, dword [0x446e9c]
cmp eax, ebx
je 0x42ee96
push eax
call fcn.00420a23
pop ecx
test eax, eax
je 0x42ee96
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446e94]
call fcn.00420a23
pop ecx
test eax, eax
je 0x42eeb6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42eeb8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret