joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408390
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 0x408420
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 0x4083d9
push str.Cant___lookup___privilege___value._n
call fcn.0041c61f
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 0x40840a
push str.Cant___adjust___privilege___value._n
call fcn.0041c61f
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 0x40b190
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x443cfc]
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 0x40b210
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x40b1ea
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x40b1d5
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041afa1
add esp, 0x118
ret
cmp eax, 0x5a
jne 0x40b1d3
cmp dword [esp + 0x10], 1
jne 0x40b1d3
mov eax, 2
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041afa1
add esp, 0x118
ret
cmp eax, 5
jne 0x40b291
mov eax, dword [esp + 8]
test eax, eax
jne 0x40b23e
cmp dword [esp + 0x10], 2
jne 0x40b1d3
mov eax, 3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041afa1
add esp, 0x118
ret
cmp eax, 1
jne 0x40b264
cmp dword [esp + 0x10], 2
jne 0x40b1d3
mov eax, 4
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041afa1
add esp, 0x118
ret
cmp eax, 2
jne 0x40b1d3
cmp dword [esp + 0x10], eax
jne 0x40b1d3
mov eax, 5
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041afa1
add esp, 0x118
ret
cmp eax, 6
jne 0x40b1d3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041afa1
add esp, 0x118
ret
Function at 0x40b310
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x434f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x443cfc]
xor eax, esp
mov dword [esp + 0x820], eax
push esi
mov eax, dword [0x443cfc]
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.0041dd60
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 0x40b394
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
lea esi, [esp + 0xc]
call fcn.00409d40
mov eax, esi
mov ecx, edi
mov dword [esp + 0x834], 0
call fcn.0040b2b0
cmp dword [esp + 0x20], 8
jb 0x40b3d9
mov eax, dword [esp + 0xc]
push eax
call fcn.0040f11a
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.0041afa1
add esp, 0x830
ret

Function at 0x40b6b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x434f28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x443cfc]
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.004098b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b706
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.00409c20
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.004098b0
cmp dword [esp + 0x24], 8
jb 0x40b74e
mov edx, dword [esp + 0x10]
push edx
call fcn.0040f11a
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 0x40b990
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.0040b8c0
test al, al
je 0x40b9e7
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 0x40b9f0
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.00409d40
call fcn.00409570
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.00409d40
call fcn.00409570
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 0x40b9e7
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 0x40badc
jmp 0x40ba70
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x40ba8b
mov edx, 0x3e8
jmp 0x40ba98
cmp edx, 0x2710
jbe 0x40ba98
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 0x40badc
cmp dword [esp + 0x28], ebp
jbe 0x40bacb
call ebx
mov ebp, dword [esp + 0x28]
mov esi, eax
jmp 0x40bad5
call ebx
sub eax, esi
cmp eax, dword [esp + 0x2c]
ja 0x40badc
cmp dword [esp + 0x18], 2
je 0x40ba70
sub esp, 0x1c
cmp dword [esp + 0x34], 4
mov dword [esp + 0x2c], esp
mov ecx, esp
jne 0x40bb07
mov eax, str.Service_started_successfully._n
call fcn.00409610
call fcn.00409570
add esp, 0x1c
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, str.Service_not_started.
call fcn.00409610
call fcn.00409570
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.00409610
call fcn.00409570
add esp, 0x2c
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret
Function at 0x40c000
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 0x40c057
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.00409d40
call fcn.00409570
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 0x40c0c6
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.00409d40
call fcn.00409570
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.00409d40
call fcn.00409570
add esp, 0x1c
mov al, 1
pop esi
pop ecx
ret

Function at 0x40c100
Capabilities:
Delete service

Disassembly:
push ecx
push esi
mov esi, eax
call fcn.0040b8c0
test al, al
je 0x40c153
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40c158
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.00409d40
call fcn.00409570
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.00409d40
call fcn.00409570
add esp, 0x1c
mov al, 1
pop esi
pop ecx
ret
Function at 0x40d740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435c40
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x443cfc]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x443cfc]
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.0041dd60
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 0x40d85c
sub eax, 4
jne 0x40d96f
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.00409d40
call fcn.00409570
lea ecx, [esp + 0x34]
add esp, 0x1c
push ecx
call fcn.00409360
add esp, 4
test al, al
jne 0x40d95b
test byte [0x448138], 1
jne 0x40d82d
or dword [0x448138], 1
mov dword [0x44810c], ebx
mov dword [0x448110], ebx
mov byte [0x448114], bl
call fcn.0040b190
cmp eax, 3
jne 0x40d95b
mov dword [0x44810c], 0x2710
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x448110], eax
mov byte [0x448114], 1
jmp 0x40d95b
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.00409d40
call fcn.00409570
lea eax, [esp + 0x34]
add esp, 0x1c
push eax
call fcn.00409360
add esp, 4
test al, al
je 0x40d8cd
test byte [0x448138], 1
jne 0x40d8a6
or dword [0x448138], 1
cmp dword [esp + 0x30], 8
mov dword [0x44810c], ebx
mov dword [0x448110], ebx
mov byte [0x448114], bl
jb 0x40d96f
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x40d967
cmp byte [0x448054], bl
je 0x40d8e3
lea esi, [esp + 0x18]
call fcn.00401f40
jmp 0x40d96f
mov byte [0x448054], 1
lea edx, [esp + 0x18]
mov byte [esp + 0x150], 1
push edx
mov dword [esp + 0x14], ebx
call fcn.00408ea0
add esp, 4
test al, al
je 0x40d955
lea edi, [esp + 0x14]
lea esi, [esp + 0x34]
call fcn.00408e50
cmp al, bl
je 0x40d955
push 0xffffffffffffffff
call fcn.0040e020
mov esi, eax
call fcn.0040e050
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edi, [esp + 0x20]
call fcn.00408430
add esp, 8
cmp dword [ebp + 0xc], ebx
je 0x40d955
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push 0x40dab0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [0x448054], bl
cmp dword [esp + 0x30], 8
jb 0x40d96f
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040f11a
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.0041afa1
mov esp, ebp
pop ebp
ret
Function at 0x40db30
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4356bb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x443cfc]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x443cfc]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
push 0x228
lea eax, [esp + 0x20]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x24], 0
call fcn.0041dd60
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
jne 0x40dba2
xor al, al
jmp 0x40dc81
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40dc73
lea ecx, [ecx]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x18]
call fcn.00407a20
mov eax, dword [esp + 0x14]
push str.EXPLORER.EXE
push eax
call fcn.0041ca32
add esp, 8
test eax, eax
je 0x40dc1e
mov dword [esp + 0x250], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40dbc0
lea esi, [eax + 1]
jmp 0x40dc75
mov edx, dword [esp + 0x20]
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]
test esi, esi
mov dword [esp + 0x250], ebp
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40dc6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x40dc81
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne al
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041afa1
add esp, 0x240
ret
Function at 0x40e6a0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x435840
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x443cfc]
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.004096b0
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov ebx, eax
cmp ecx, eax
jbe 0x40e6f2
call fcn.0041bb62
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov edi, ecx
cmp ecx, eax
jbe 0x40e701
call fcn.0041bb62
mov ecx, dword [esp + 0x20]
push ebx
push esi
push edi
push ecx
lea ebx, [esp + 0x28]
lea esi, [esp + 0x30]
call fcn.0040ee30
mov edx, esi
push edx
push 0x40ecf0
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.0040f5a8
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e740
push 0x80004005
call fcn.004078c0
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 0x40e784
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push str.EnumTop_error_:_d
push edx
call fcn.0040e950
mov eax, dword [esp + 0x3c]
add esp, 0xc
sub eax, dword [esp + 0x2c]
xor esi, esi
sar eax, 2
cmp eax, ebx
jbe 0x40e7d7
cmp esi, eax
jb 0x40e79a
call fcn.0041bb62
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + esi*4]
call fcn.0040e290
test al, al
jne 0x40e7bc
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
inc esi
sar eax, 2
cmp esi, eax
jb 0x40e79a
jmp 0x40e7d7
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 2
cmp esi, ecx
jb 0x40e7d0
call fcn.0041bb62
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 0x40e7fb
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 0x40e80c
push eax
call fcn.0040f11a
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.0040f11a
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 0x40fa94
Capabilities:
Contain obfuscated stackstrings

Disassembly:
loopne 0x40fae0
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040f655
push eax
push esi
push dword [ebp + 8]
call fcn.0040f60a
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040f645
xchg ebx, eax
xchg esp, eax
mov cl, 6
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0040f645
mov eax, dword [0x8d975a78]
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x411661
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [ebp - 0x6c37b], cl
call dword [eax - 1]
mov ch, 0x74
cld
invalid

Function at 0x41afa1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443cfc]
jne 0x41afab
repz ret
jmp fcn.0041fc6f
Function at 0x42f024
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.00420dca
and dword [ebp - 4], 0
cmp dword [0x447e9c], 0
mov ebx, eax
jne 0x42f0d5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42f186
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42f186
push eax
call fcn.00420d58
mov dword [esp], 0x43b61c
push edi
mov dword [0x447e9c], eax
call esi
push eax
call fcn.00420d58
mov dword [esp], 0x43b608
push edi
mov dword [0x447ea0], eax
call esi
push eax
call fcn.00420d58
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x447ea4], eax
call esi
push eax
call fcn.00420d58
pop ecx
mov dword [0x447eac], eax
test eax, eax
je 0x42f0d5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00420d58
pop ecx
mov dword [0x447ea8], eax
mov eax, dword [0x447ea8]
cmp eax, ebx
je 0x42f12d
cmp dword [0x447eac], ebx
je 0x42f12d
push eax
call fcn.00420dd3
push dword [0x447eac]
mov esi, eax
call fcn.00420dd3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42f12d
test edi, edi
je 0x42f12d
call esi
test eax, eax
je 0x42f124
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42f124
test byte [ebp - 0xc], 1
jne 0x42f12d
or dword [ebp + 0x10], 0x200000
jmp 0x42f166
mov eax, dword [0x447ea0]
cmp eax, ebx
je 0x42f166
push eax
call fcn.00420dd3
pop ecx
test eax, eax
je 0x42f166
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42f166
mov eax, dword [0x447ea4]
cmp eax, ebx
je 0x42f166
push eax
call fcn.00420dd3
pop ecx
test eax, eax
je 0x42f166
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447e9c]
call fcn.00420dd3
pop ecx
test eax, eax
je 0x42f186
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42f188
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x41d1bb
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0xc]
jae 0x41d2a0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x100]
add eax, 1
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x100], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x100]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x104]
add eax, ecx
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x104], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x104]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x100]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 1]
mov byte [ecx], dl
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x100]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x104]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx]
add eax, edx
and eax, 0x800000ff
jns 0x41d27a
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 2], al
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov byte [edx], cl
jmp 0x41d1b2
mov esp, ebp
pop ebp
ret 8