joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430a67ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430aa9f0]
jne 0x430a67c4
repz ret
jmp fcn.430a7df9

Function at 0x430a7a9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x430a7aaa
pop dword [ebp - 0x18]
mov eax, 0xfc267ff4
sub eax, 0xb91c054a
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x35e66
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x4135
mov edx, eax
mov esi, 0x350cbe3c
add esi, 0xdfe1fc4
add esi, dword [ebp - 0x18]
mov ebx, 0x1318ec89
add ebx, 0x3ecd97a5
mov edi, dword [esi]
mov dword [ebp - 0x14], 0xabd982a
xor edi, ebx
mov dword [edx], edi
add dword [ebp - 0x14], ecx
add edx, 0x6315cbf7
sub edx, 0x6315cbf3
add esi, 0xebcfc6cd
add esi, 0x14303937
loop 0x430a7afe
add eax, 0xf7a7
mov ebx, eax
add eax, 0xce321ecf
add eax, 0x31cde136
mov ecx, 0x28f95a13
add ecx, 0x1a10a5ed
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401040
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x41b280]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
xor eax, eax
push 0x208
mov esi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00404ae0
mov eax, dword [ebx]
add esp, 0xc
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push eax
push edi
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esi]
xor edx, edx
mov word [esp + 0x214], dx
mov ebp, dword [esi - 0xc]
lea ebp, [ebp + ebp + 2]
test eax, eax
jne 0x4010f8
mov ecx, esi
lea eax, [esp + 0xc]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4010d6
test dx, dx
je 0x4010d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4010d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4010b0
xor eax, eax
jmp 0x4010db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4010f8
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00403bd5
add esp, 0x214
ret
mov eax, dword [ebx]
push ebp
push esi
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x218]
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.00403bd5
add esp, 0x214
ret

Function at 0x401130
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esi]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0
push eax
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40116e
mov eax, dword [esp]
cmp eax, dword [esp + 0xc]
jne 0x40116e
xor al, al
add esp, 8
ret
mov edx, dword [esi]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
add esp, 8
ret
Function at 0x401500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x41b280]
xor eax, esp
mov dword [esp + 0x808], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0xc], 1
mov word [esp + 0x14], ax
call fcn.00404ae0
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.ImagePath
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push 0x80000002
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor al, al
cmp word [esp + 8], 0x22
jne 0x40156e
mov al, 1
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00403bd5
add esp, 0x80c
ret

Function at 0x401720
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x268
mov eax, dword [0x41b280]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov ecx, 0x11
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsw word es:[edi], word [esi]
lea esi, [esp + 8]
lea edx, [esp + 0x64]
mov dword [esp + 0x10], 0
mov word [esp + 0x64], ax
call fcn.00402880
test eax, eax
jl 0x401780
mov eax, dword [esp + 8]
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x64]
lea eax, [esp + 0x1c]
call fcn.004028c0
lea esi, [esp + 0xc]
lea edx, [esp + 0x64]
call fcn.00402880
test eax, eax
jl 0x4017a7
mov eax, dword [esp + 0xc]
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x64]
mov eax, ebx
call fcn.004028c0
lea ecx, [esp + 8]
push ecx
push 0x20007
push 0
lea edx, [esp + 0x70]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401883
push str.QHActiveDefense
push ebx
call fcn.00404201
add esp, 8
test eax, eax
jne 0x4017ed
mov eax, dword [esp + 8]
push str.LaunchProtected
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x20]
push edx
push str.DeleteFlag
lea eax, [esp + 0x74]
push eax
mov esi, 4
push 0x80000002
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40186a
push str.DeleteFlag
lea ecx, [esp + 0x68]
push ecx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
je 0x40186a
push esi
lea edx, [esp + 0x14]
push edx
push esi
push str.DeleteFlag
lea eax, [esp + 0x74]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00403bd5
add esp, 0x268
ret
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.00403bd5
add esp, 0x268
ret
Function at 0x401b70
Capabilities:
Modify service
Persist via windows service
Query or enumerate registry value
Set registry value
Start service

Disassembly:
push ebp
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40169f
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 2
push str.QHActiveDefense
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4016c4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4016ec
call ebx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401701
call ebx
call ebx
mov ebp, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret
sub esp, 0xc
call fcn.004018a0
call fcn.00401500
test al, al
jne 0x401b86
call fcn.00401590
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push str.Start
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push 0x80000002
mov dword [esp + 0x20], 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, 2
cmp dword [esp], eax
jne 0x401bd2
xor eax, eax
add esp, 0xc
ret
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push str.Start
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0xc
jmp 0x401680

Function at 0x401c00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push str.keepalive
push str.SOFTWARE360Safe
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp], 0
je 0x401c48
mov al, 1
add esp, 0xc
ret
push esi
push str.Global0FB40CC1_AFF9_441d_8D9B_9F285AD8F637__
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x401c77
cmp eax, 0xb7
je 0x401c7e
cmp eax, 5
je 0x401c7e
xor al, al
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
add esp, 0xc
ret
Function at 0x401c90
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x30
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
jne 0x401cba
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
add esp, 0x30
ret
push esi
push 0xf01ff
push str.QHActiveDefense
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x401ce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop edi
add esp, 0x30
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [esp + 0xc]
push eax
push 0x24
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call ebp
test eax, eax
je 0x401d2e
cmp dword [esp + 0x1c], 1
jne 0x401d34
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x401d2e
lea edx, [esp + 0xc]
push edx
push 0x24
lea eax, [esp + 0x20]
push eax
push 0
push esi
call ebp
test eax, eax
jne 0x401d49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebp
pop esi
xor al, al
pop edi
add esp, 0x30
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esp + 0x20], 2
mov ecx, dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x14], ecx
jne 0x401dd8
mov eax, 0xcccccccd
mul dword [esp + 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x401d7e
mov edx, 0x3e8
jmp 0x401d8b
cmp edx, 0x2710
jbe 0x401d8b
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call ebp
test eax, eax
je 0x401dd2
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x30], ecx
jbe 0x401dbf
call ebx
mov edx, dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x14], edx
jmp 0x401dc9
call ebx
sub eax, edi
cmp eax, dword [esp + 0x34]
ja 0x401dd8
cmp dword [esp + 0x20], 2
je 0x401d63
jmp 0x401dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
pop ebx
pop ebp
pop esi
mov al, 1
pop edi
add esp, 0x30
ret
Function at 0x401e70
Capabilities:
Check mutex on windows
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
cmp esi, edi
jne 0x401e89
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0x10
push ebx
push ebp
push str._install
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
neg eax
sbb eax, eax
neg eax
mov dword [0x41d95c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x10], edi
cmp dword [0x41d95c], edi
jne 0x401f0a
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp eax, str.GlobalSYS_C0D01025
je 0x401ee9
push str.GlobalSYS_C0D01025
push 1
push eax
call ebp
mov esi, eax
test esi, esi
je 0x401ee9
call ebx
cmp eax, 0xb7
jne 0x401f06
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x401ec0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0x10
mov esi, dword [esp + 0x24]
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f10
sub eax, edx
sar eax, 1
je 0x401efa
mov edi, 1
cmp dword [0x41d95c], edi
jne 0x401f3d
call fcn.00401e00
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret 0x10
push str._watch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x401efa
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push str.keepalive
push str.SOFTWARE360Safe
push 0x80000002
mov dword [esp + 0x2c], 0
call esi
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401c00
test al, al
jne 0x401f75
call fcn.00401b70
call fcn.00401c90
cmp al, 1
jne 0x401f9b
add dword [esp + 0x10], edi
cmp dword [0x41ea38], 0
je 0x401fb4
mov dword [0x41ea38], 0
mov dword [esp + 0x10], edi
jmp 0x401f75
cmp dword [esp + 0x10], 3
jl 0x401f75
push 4
lea edx, [esp + 0x18]
push edx
push 4
push str.keepalive
push str.SOFTWARE360Safe
push 0x80000002
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jne 0x401f75
mov dword [0x41ea38], edi
jmp 0x401f75

Function at 0x402600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402617
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402648
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402644
cmp esi, eax
jae 0x402648
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402634
cmp esi, eax
jb 0x40264e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x402af0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x414ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x41b280]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
mov ecx, 0x4184a8
mov dword [esp + 0x1c], 0
call fcn.00401ff0
xor ecx, ecx
mov dword [esp + 0x28], 0
mov eax, 0x800
mov dword [esp + 0x14], eax
mov edx, 2
mul edx
seto cl
push 0x41cb60
mov dword [esp + 0x1c], 1
neg ecx
or ecx, eax
push ecx
call fcn.00403ffd
mov esi, eax
add esp, 8
test esi, esi
je 0x402be9
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.00404ae0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x20]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00401ff0
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00402d70
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402be0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.004045e5
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00402810
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret

Function at 0x402c40
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov ecx, 0x418378
call fcn.00401ff0
mov ecx, dword [esp]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x402c5e
lea eax, [ecx - 0x10]
jmp 0x402c81
lea edx, [eax + eax + 2]
mov eax, dword [esp + 8]
push edx
push ecx
push 1
push str.Description
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [esp]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret
Function at 0x402e10
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x41b280]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x41caec]
test eax, eax
jl 0x402e4b
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00403bd5
add esp, 0x144
ret
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [esp + 0x30]
push edx
mov dword [0x41caec], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00404ae0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x402ebb
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x402f0d
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402f0d
lea edx, [esp + 4]
push edx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x402eed
cmp ax, 6
jne 0x402f0d
mov eax, 1
mov dword [0x41caec], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00403bd5
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor al, al
call fcn.00403bd5
add esp, 0x144
ret

Function at 0x4035c0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x414b6b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x41b280]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00404ae0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x403658
push 0x4196b8
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.00404e5b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x403bd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b280]
jne 0x403bdf
repz ret
jmp fcn.004071a7
Function at 0x40db82
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40db85
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
pushal
jmp fcn.0040dba3
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 0x40dc01
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 0x40dbe8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40dbf1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40dbfb
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40dbdd
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
dec ebp
or al, 0x66
cmp ecx, dword [eax + 6]
jbe 0x40db67
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 0x40dc4e
dec eax
je 0x40dc45
sub eax, 3
je 0x40dc3c
mov dword [ebp - 4], 0x40
jmp 0x40dc6b
mov dword [ebp - 4], 4
jmp 0x40dc51
mov dword [ebp - 4], 0x20
jmp 0x40dc51
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 0x40dc9d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40dc1d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040d4ae
push cs
inc esi
add al, 0x3e
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x40dca9
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dba3
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40db85
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
pushal
jmp fcn.0040dba3
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 0x40dc01
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 0x40dbe8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40dbf1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40dbfb
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40dbdd
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
dec ebp
or al, 0x66
cmp ecx, dword [eax + 6]
jbe 0x40db67
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 0x40dc4e
dec eax
je 0x40dc45
sub eax, 3
je 0x40dc3c
mov dword [ebp - 4], 0x40
jmp 0x40dc6b
mov dword [ebp - 4], 4
jmp 0x40dc51
mov dword [ebp - 4], 0x20
jmp 0x40dc51
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 0x40dc9d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40dc1d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040d4ae
push cs
inc esi
add al, 0x3e
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x40dca9
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f060
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x786], 0x33
invalid
invalid