joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ff580
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x539a68]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4ff6e4
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x130], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x4ff6d8
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4ff6c2
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x54ef1c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
call fcn.00405e7b
add esp, 4
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.ServiceName
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x12c], 0
je 0x4ff6b3
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00443310
add esp, 8
mov eax, dword [ebp - 0x12c]
push eax
call fcn.00462990
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0x104
jmp 0x4ff5d3
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ff6eb
mov eax, 0xffffff01
jmp 0x4ff6ed
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040553d
mov esp, ebp
pop ebp
ret
Function at 0x4ffae0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x539a68]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004057a0
add esp, 0xc
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
cmp dword [0x55c690], 0
jne 0x4ffc21
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.IPHelperMutex
push 0x54ef44
lea ecx, [ebp - 0x110]
push ecx
call fcn.00443408
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x4ffb7c
xor eax, eax
jmp 0x4ffc27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ffb98
push 0xffffffffffffffff
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x55c690], 0
jne 0x4ffc07
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x55c694], eax
cmp dword [0x55c694], 0
jne 0x4ffbc6
mov dword [ebp - 0x114], 0xfffffffe
jmp 0x4ffbfd
push str.GetNetworkParams
mov ecx, dword [0x55c694]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x55c688], eax
cmp dword [0x55c688], 0
je 0x4ffbfd
push str.GetAdaptersInfo
mov edx, dword [0x55c694]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x55c68c], eax
mov dword [0x55c690], 1
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040553d
mov esp, ebp
pop ebp
ret
Function at 0x50a710
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0x60
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004057a0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
xor eax, eax
pop ebp
ret
Function at 0x438cbb
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edx
and ecx, esi
call fcn.00438cff
and esi, ecx
sub esi, ecx
xor dword [eax], edx
sub esi, ecx
add esi, 0x7782ee2c
add eax, 1
mov esi, esi
sub esp, 4
mov dword [esp], 0x921db9fd
mov esi, dword [esp]
add esp, 4
dec ecx
cmp eax, ebx
jne fcn.00438cbb
add ecx, 0xb24ade15
sub esi, esi
dec esi
ret
Function at 0x41be93
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412fa6
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41becb
xor eax, eax
jmp 0x41bef7
cmp esi, dword [ebp - 4]
je 0x41bef4
cmp dword [ebp + 0xc], 0
je 0x41bef4
push dword [edi + 0x9c]
call fcn.0041baa1
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040e444
pop ecx
pop ecx
cmp esi, eax
je 0x41bec7
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x8e12b0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e12b6
pop ebp
sub ebp, 6
sub ebp, 0x4e12b0
jmp 0x8e1314
jmp 0x8e131d
mov eax, 0x4e12b0
add eax, ebp
add eax, 0x93
mov ecx, 0x623
mov edx, 0x37a1badc
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e1334
jmp 0x8e1347
mov dh, 0x9c
mov ah, 0xdc
int3
Function at 0x8e1144
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e114a
pop ebp
sub ebp, 6
sub ebp, 0x4e1144
jmp 0x8e11a8
clc
add eax, 0x5b57d225
invalid
jmp 0x8e11b1
mov eax, 0x4e1144
add eax, ebp
add eax, 0x93
mov ecx, 0x630
mov edx, 0x77058360
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e11c8
jmp 0x8e11db
or ah, byte [eax]
or byte [eax + 0x70], ah
pushal
pushal
or byte [eax - 0x54], ah
dec esp
pushal
loope 0x8e1179
or eax, 0xe1c5879f
nop
lahf
xchg ebp, eax
loope 0x8e117f
or eax, 0x53c5879f
mov al, byte [0x5cf59f30]
xor dword [eax], esp
xor bl, ch
lodsd eax, dword [esi]
jmp 0x8e11ea

Function at 0x806104
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x80610a
pop ebp
sub ebp, 6
sub ebp, 0x406104
jmp 0x806168
jmp 0x806171
mov eax, 0x406104
add eax, ebp
add eax, 0x93
mov ecx, 0x643
mov edx, 0xc1beb34a
xor byte [eax], dl
inc eax
dec ecx
jne 0x806188
jmp 0x80619b
and byte [edx], cl
and cl, byte [edx + 0x5a]
dec edx
dec edx
and cl, byte [edx - 0x7a]
dec dx
retf
Function at 0x4606de
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
mov dword [ebp - 0xc], ebx
call fcn.0040a961
lea ecx, [ebp - 0x20]
call fcn.0040a961
lea ecx, [ebp - 0x40]
call fcn.0040a961
push 0x4c5950
lea ecx, [ebp - 0x30]
call fcn.00406b57
push esi
lea ecx, [ebp - 0x30]
call fcn.004033c6
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.004033c6
lea ecx, [ebp - 0x20]
call fcn.0040a6c3
test edi, edi
je 0x460761
push 0x5c
pop eax
cmp word [edi], ax
je 0x460761
cmp word [edi + 2], ax
je 0x460761
push 0x4c5984
lea ecx, [ebp - 0x20]
call fcn.00406b57
push edi
lea ecx, [ebp - 0x20]
call fcn.004033c6
cmp dword [ebp + 0xc], ebx
je 0x4607b2
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00422340
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a8c7
push 0x4c598c
lea ecx, [ebp - 0x40]
call fcn.004033c6
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x46083e
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x46083e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x460839
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1fe
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x460834
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 8]
shr eax, 1
mov dword [ebp - 8], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.0040988f
lea ecx, [ebp - 0x20]
call fcn.0040988f
lea ecx, [ebp - 0x30]
call fcn.0040988f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x461014
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
push esi
push 0
push dword [eax]
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
jne 0x46106c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46106a
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x46106a
push esi
push dword [esi]
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x4117af
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x411824
mov edx, edi
add edx, dword [edi + 0x3c]
cmp word [edx], 0x4550
jne 0x411824
mov dword [ebp - 0xc], edx
mov eax, dword [edx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
cmp ecx, dword [edx + 0x18]
jge 0x411824
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + ecx*4]
add ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call fcn.00411580
cmp eax, 1
je 0x411804
inc ecx
jmp 0x4117e2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp + 8]
xor ebx, ebx
mov bx, word [eax + ecx*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 8]
mov edx, dword [eax + ebx*4]
add edx, dword [ebp + 8]
jmp 0x411826
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x411830
Capabilities:
Access peb ldr_data

Disassembly:
xor edx, edx
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov edx, dword [ebx + 0x10]
mov dword [0x412c24], edx
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [0x412c20], ebx
ret

Function at 0x4118e6
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x412020
mov ecx, dword [0x4115b8]
shr ecx, 1
dec ecx
mov bl, byte [0x4115bc]
rdtsc
push eax
mov bh, byte [esi]
inc esi
mov byte [edi], bh
inc edi
mov al, byte [esi]
stosb byte es:[edi], al
add byte [edi - 1], bl
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
loop 0x411906
rdtsc
pop edx
sub eax, edx
pop edx
push edx
push 0
push 0
push 0x4119dc
call dword [fcn.00411c2a]
push 0x4119a1
push eax
call dword [fcn.00411c3a]
mov dword [fcn.00411c1e], eax
push 0
push 2
push 0x4119da
push 0x4119b0
call dword [fcn.00411c1e]
pop edx
sub edx, eax
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x4051bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4087e0]
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.004042aa
and dword [ebp - 0x14], 0
cmp dword [0x40c830], 0
mov dword [ebp - 0x18], eax
jne 0x40526e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405316
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405316
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40c830], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40c834], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40c838], eax
call edi
push eax
call esi
mov dword [0x40c840], eax
test eax, eax
je 0x40526e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40c83c], eax
mov eax, dword [0x40c83c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4052c7
cmp dword [0x40c840], ecx
je 0x4052c7
push eax
call esi
push dword [0x40c840]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4052c7
test ebx, ebx
je 0x4052c7
call edi
test eax, eax
je 0x4052be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4052be
test byte [ebp - 8], 1
jne 0x4052c7
or dword [ebp + 0x10], 0x200000
jmp 0x4052fa
mov eax, dword [0x40c834]
cmp eax, dword [ebp - 0x18]
je 0x4052fa
push eax
call esi
test eax, eax
je 0x4052fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4052fa
mov eax, dword [0x40c838]
cmp eax, dword [ebp - 0x18]
je 0x4052fa
push eax
call esi
test eax, eax
je 0x4052fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40c830]
call esi
test eax, eax
je 0x405316
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405318
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405526
leave
ret

Function at 0x405526
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4087e0]
jne 0x405530
repz ret
jmp fcn.00406693
Function at 0x4027a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
xor ecx, ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl210.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x40293b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov eax, 2
call fcn.004022d0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 0x14]
call fcn.004022f0
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
jmp 0x402902
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call sub.rtl210.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call sub.rtl210.bpl__System_Sysutils_ExtractFileName_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call sub.rtl210.bpl__System_Sysutils_UpperCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x244]
push eax
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 8]
call sub.rtl210.bpl__System_Sysutils_UpperCase_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x250]
pop eax
call sub.rtl210.bpl__System__UStrEqual_qqrv
je 0x4028d0
lea eax, [ebp - 0x258]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call sub.rtl210.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x254]
call sub.rtl210.bpl__System_Sysutils_UpperCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x254]
push eax
lea edx, [ebp - 0x25c]
mov eax, dword [ebp - 8]
call sub.rtl210.bpl__System_Sysutils_UpperCase_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x25c]
pop eax
call sub.rtl210.bpl__System__UStrEqual_qqrv
jne 0x4028eb
push 0
mov eax, dword [ebp - 0x238]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 0x14]
call fcn.00402310
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x40282b
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402942
lea eax, [ebp - 0x25c]
mov edx, 7
call sub.rtl210.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
call sub.rtl210.bpl__System__UStrClr_qqrpv
ret
Function at 0x401790
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov esi, eax
push 0x411da0
push esi
call fcn.00407010
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4017e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41001c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, 0x10
push edi
cmp dword [ebp + 0x1c], esi
jae 0x401805
lea eax, [ebp + 8]
push 0x40e0ac
push eax
call fcn.0040254e
mov edi, eax
add esp, 8
test edi, edi
jne 0x40183c
cmp dword [ebp + 0x1c], esi
jb 0x40182a
mov eax, dword [ebp + 8]
push eax
call fcn.00402046
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401efc
mov esp, ebp
pop ebp
ret
push ebx
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
mov dword [ebp - 0x408], 0
call fcn.00404430
push edi
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.004027af
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
mov esi, eax
call ebx
test esi, esi
je 0x4018da
nop
cmp esi, 1
jb 0x4018a8
mov eax, dword [ebp - 0x408]
push esi
lea ecx, [ebp - 0x404]
lea eax, [eax + 0x511da0]
push ecx
push eax
call fcn.00407010
add esp, 0xc
add dword [ebp - 0x408], esi
push 0x400
lea edx, [ebp - 0x404]
push 0
push edx
call fcn.00404430
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004027af
add esp, 0x1c
mov esi, eax
call ebx
test esi, esi
jne 0x401880
push 0x100000
push 0
push 0x411da0
call fcn.00404430
call section..text
push edi
call fcn.00402839
add esp, 0x10
cmp dword [ebp + 0x1c], 0x10
pop ebx
jb 0x40190c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402046
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
xor ecx, ebp
pop esi
call fcn.00401efc
mov esp, ebp
pop ebp
ret

Function at 0x401efc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41001c]
jne 0x401f06
repz ret
jmp fcn.00402a41