joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e59
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push str.CLASSPATH
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x401eb1
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00401abf
mov edi, eax
push ebx
push str._Denv.class.path_s
push edi
call esi
push 0
push edi
call fcn.00401551
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.004025ca
pop ecx
test al, al
pop ecx
jne 0x401ee3
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Cant_determine_application_home_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
xor al, al
pop ecx
jmp 0x402007
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00401abf
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push str._Dapplication.home_s
push edi
call esi
push 0
push edi
call fcn.00401551
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x404014
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, str.com.sun.corba.se.internal.CosNaming.TransientNameServer
lea edx, [edx + ecx + 1]
jb 0x401f2d
inc edx
push edx
call fcn.00401abf
mov edx, eax
mov esi, str._Djava.class.path
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0x10], 0x40401c
rep movsb byte es:[edi], byte [esi]
jb 0x401f67
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.00401551
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x402152
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.0040258c
lea eax, [ebp - 0x184]
push 0x404a64
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4021ab
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x4021fb
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4021ef
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x4021c5
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x40a1f2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b420
push 0x40a1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call sym.imp.MSVCRT.dll___set_app_type
nop
pop ecx
or dword [0x40f804], 0xffffffff
or dword [0x40f808], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40f800]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40f7fc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40f80c], eax
call fcn.0040a377
cmp dword [0x40f1d0], ebx
jne 0x40a275
push 0x40a374
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040a362
push 0x40d00c
push 0x40d008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40f7f8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x40f7f4]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40d004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40a308
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x40a2dc
cmp al, 0x22
jne 0x40a2ce
cmp byte [esi], 0x22
jne 0x40a2e5
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x40a2ef
cmp al, 0x20
jbe 0x40a2e1
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40a313
movzx eax, word [ebp - 0x2c]
jmp 0x40a316
cmp byte [esi], 0x20
jbe 0x40a2e5
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40a308
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x100297c
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x10013a8
push 0x80000002
call dword [0x1001024]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x10029b1
push edi
push 0x100136c
call fcn.01002719
pop ecx
pop ecx
jmp 0x1002a6f
mov eax, dword [ebp + 8]
sub eax, esi
je 0x1002a3d
dec eax
je 0x1002a21
dec eax
je 0x10029cc
push dword [ebp + 8]
push 0x100133c
jmp 0x1002a15
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push esi
mov esi, 0x1001318
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 8
mov dword [ebp + 8], 0xb
call dword [0x1001028]
mov edi, eax
test edi, edi
je 0x1002a03
push edi
push 0x10012d8
jmp 0x1002a5f
cmp dword [ebp + 8], 0xb
jne 0x1002a0f
cmp dword [ebp - 8], 8
je 0x1002a66
push esi
push 0x10012a8
call fcn.01002719
pop ecx
pop ecx
push 0x57
pop edi
jmp 0x1002a66
push 0x1001318
push dword [ebp - 4]
call dword [0x100102c]
mov edi, eax
cmp edi, esi
je 0x1002a66
push edi
push 0x1001268
jmp 0x1002a5f
push 8
push dword [ebp + 0xc]
push 0xb
push esi
push 0x1001318
push dword [ebp - 4]
call dword [0x1001030]
mov edi, eax
cmp edi, esi
je 0x1002a66
push edi
push 0x1001228
call fcn.01002719
pop ecx
pop ecx
push dword [ebp - 4]
call dword [0x1001034]
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x1002ace
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp - 0xc]
push eax
push 2
call fcn.0100297c
test eax, eax
je 0x1002aeb
push eax
push 0x10015b0
jmp 0x1002b13
push edi
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x30
lea eax, [ebp - 0x3c]
push eax
push 3
call dword [0x1001138]
test eax, eax
pop edi
je 0x1002b1f
push eax
push 0x1001560
call fcn.01002719
pop ecx
pop ecx
xor eax, eax
inc eax
leave
ret
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x1001510
call fcn.01002719
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, dword [ebp - 0x38]
jl 0x1002b1a
jne 0x1002b4a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x3c]
jbe 0x1002b1a
xor eax, eax
leave
ret
Function at 0x1002b4e
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1005014]
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
xor esi, esi
push esi
call dword [0x1001080]
test eax, eax
jne 0x1002b89
call dword [fcn.010010a0]
mov esi, eax
push esi
push 0x1001840
jmp 0x1002bab
push 2
push esi
push esi
call dword [0x1001014]
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x1002bba
call dword [fcn.010010a0]
mov esi, eax
push esi
push 0x10017d0
call dword [0x10010f8]
pop ecx
pop ecx
mov eax, esi
jmp 0x1002c68
push ebx
push edi
push esi
push esi
push 0x10017bc
push esi
push esi
lea ecx, [ebp - 0x210]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x1001760
push 0x100174c
push eax
call dword [0x1001018]
mov edi, dword [0x100101c]
mov ebx, eax
cmp ebx, esi
jne 0x1002c09
call dword [fcn.010010a0]
push eax
push 0x1001730
call fcn.01002719
pop ecx
pop ecx
jmp 0x1002c43
mov eax, dword [ebp + 8]
push 0x1001700
mov dword [ebp + 8], eax
call dword [0x10010f8]
pop ecx
lea eax, [ebp + 8]
push eax
push 1
push ebx
call dword [0x1001020]
test eax, eax
jne 0x1002c40
call dword [fcn.010010a0]
push eax
push 0x1001680
call dword [0x10010f8]
pop ecx
pop ecx
push ebx
call edi
push dword [ebp - 0x214]
call edi
call fcn.01002a77
mov edi, eax
cmp edi, esi
je 0x1002c64
push edi
push 0x10015f8
call dword [0x10010f8]
pop ecx
pop ecx
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.010036f5
leave
ret 4

Function at 0x1002c75
Capabilities:
Delete service

Disassembly:
push ebp
push esi
push edi
push 2
xor ebp, ebp
push ebp
push ebp
call dword [0x1001014]
mov edi, eax
cmp edi, ebp
jne 0x1002ca4
call dword [fcn.010010a0]
mov esi, eax
push esi
push 0x1001950
call dword [0x10010f8]
pop ecx
pop ecx
mov eax, esi
jmp 0x1002d02
push ebx
push 0x10000
push 0x100174c
push edi
call dword [0x100100c]
mov ebx, dword [0x100101c]
mov esi, eax
cmp esi, ebp
jne 0x1002cd9
call dword [fcn.010010a0]
mov ebp, eax
push ebp
push 0x1001918
call fcn.01002719
pop ecx
pop ecx
jmp 0x1002cfc
push esi
call dword [0x1001010]
test eax, eax
jne 0x1002cf9
call dword [fcn.010010a0]
mov ebp, eax
push ebp
push 0x10018e0
call fcn.01002719
pop ecx
pop ecx
push esi
call ebx
push edi
call ebx
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x41b341
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x41c4c0
push 8
mov eax, edx
pop esi
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec esi
jne 0x41b34f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x41c8c0
jb 0x41b34a
pop edi
pop esi
ret
Function at 0x401080
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x4abf80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a4e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x41c8c0
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call 0x4c49ca
mov dword [ebx], 0x41c8ac
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call 0x4c49ca
or eax, 0xffffffff
push 0x423264
mov dword [ebx], 0x41c870
push edi
mov dword [esi], 0x41c884
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [fcn.0041c0e4]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x401de9
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setne cl
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x401e09
push 0x80004005
call fcn.00401220
xor edx, edx
jne 0x401ded
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x401e1a
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x401e70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42d190]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x10]
call fcn.00401b90
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401d00
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401ed0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x10]
call fcn.00401bb0
mov eax, dword [ebp - 0x21c]
jmp 0x401f61
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x401f36
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401e70
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401f2d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x10]
call fcn.00401bb0
mov eax, dword [ebp - 0x220]
jmp 0x401f61
mov dword [ebp - 4], 0x100
jmp 0x401ed7
lea ecx, [ebp - 0x10]
call fcn.00401c50
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x228]
call fcn.00401bf0
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x10]
call fcn.00401bb0
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041163f
mov esp, ebp
pop ebp
ret 4
Function at 0x40b9f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4256e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42d190]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.0040ab30
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.00406d00
push eax
mov ecx, esi
call fcn.0040ab30
lea ecx, [esp + 8]
call fcn.00406ce0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
add esp, 0x2c
ret

Function at 0x410e13
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42d190]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00410d52
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00412090
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x410e62
cmp dword [ebp - 0x1c], 5
jb 0x410e7a
jmp 0x410e76
cmp dword [ebp - 0x10], 1
jne 0x410e7a
cmp dword [ebp - 0x1c], 4
ja 0x410e76
jne 0x410e7a
cmp dword [ebp - 0x18], 0
jbe 0x410e7a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4266bc
call fcn.00401380
test eax, eax
jge 0x410e9b
mov byte [0x42f680], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041163f
add ebp, 0x78
leave
ret

Function at 0x411238
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42e9b8], 0
push esi
jne 0x4111ab
call fcn.004110d6
test eax, eax
je 0x4111ee
mov eax, dword [0x42e9b8]
cmp eax, 1
jne 0x4111cc
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4111ee
pop esi
ret
push eax
call dword [0x42e9c0]
test eax, eax
jne 0x411236
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4111f2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42e9b8]
call dword [0x42e9c0]
mov edi, eax
test edi, edi
je 0x411219
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x411235
lea edi, [esi + 0xff0]
push esi
push dword [0x42e9b8]
call dword [0x42e9bc]
add esi, 0x10
cmp esi, edi
jb 0x41121f
mov eax, esi
pop edi
pop esi
ret
jmp 0x411198

Function at 0x41163f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d190]
jne 0x411649
repz ret
jmp fcn.00415d38
Function at 0x41800e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42da98]
je 0x418029
inc edi
cmp edi, 0x17
jb 0x41801a
cmp edi, 0x17
jae 0x4181a9
push ebp
push 3
call fcn.0041c88b
cmp eax, 1
pop ecx
je 0x418175
push 3
call fcn.0041c88b
test eax, eax
pop ecx
jne 0x41805d
cmp dword [0x42d180], 1
je 0x418175
cmp ebx, 0xfc
je 0x4181a8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42eff8
push ebp
call fcn.00417ba7
add esp, 0xc
test eax, eax
je 0x418093
push esi
push esi
push esi
push esi
push esi
call fcn.00413235
add esp, 0x14
push 0x104
mov esi, 0x42f011
push esi
push 0
mov byte [0x42f115], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4180d7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00417ba7
add esp, 0xc
test eax, eax
je 0x4180d7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00413235
add esp, 0x14
push esi
call fcn.00412920
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41811c
push esi
call fcn.00412920
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42f30c
push 0x427684
sub ecx, eax
push ecx
push eax
call fcn.0041b0d6
add esp, 0x14
test eax, eax
je 0x41811c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00413235
add esp, 0x14
jmp 0x41811e
xor esi, esi
push 0x427680
push ebx
push ebp
call fcn.0041b01b
add esp, 0xc
test eax, eax
je 0x41813e
push esi
push esi
push esi
push esi
push esi
call fcn.00413235
add esp, 0x14
push dword [edi*8 + 0x42da9c]
push ebx
push ebp
call fcn.0041b01b
add esp, 0xc
test eax, eax
je 0x418160
push esi
push esi
push esi
push esi
push esi
call fcn.00413235
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041c6ce
add esp, 0xc
jmp 0x4181a8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4181a8
cmp ebp, 0xffffffff
je 0x4181a8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42da9c]
push dword [esi]
call fcn.00412920
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41c6ce
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004165d3
xor ebx, ebx
cmp dword [0x42f59c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41c7a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c884
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x428088
push edi
call esi
cmp eax, ebx
je 0x41c884
push eax
call fcn.00416565
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f59c], eax
call esi
push eax
call fcn.00416565
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42f5a0], eax
call esi
push eax
call fcn.00416565
mov dword [0x42f5a4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00417d9b
test eax, eax
pop ecx
pop ecx
je 0x41c772
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413235
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41c7a4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00416565
cmp eax, ebx
pop ecx
mov dword [0x42f5ac], eax
je 0x41c7a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416565
pop ecx
mov dword [0x42f5a8], eax
mov eax, dword [0x42f5a8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41c829
cmp dword [0x42f5ac], ecx
je 0x41c829
push eax
call fcn.004165dc
push dword [0x42f5ac]
mov esi, eax
call fcn.004165dc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41c829
cmp edi, ebx
je 0x41c829
call esi
cmp eax, ebx
je 0x41c7f6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c7f6
test byte [ebp - 0x18], 1
jne 0x41c829
lea eax, [ebp - 0x10]
push eax
call fcn.00417dd2
test eax, eax
pop ecx
je 0x41c811
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413235
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41c820
or dword [ebp + 0x10], 0x200000
jmp 0x41c864
or dword [ebp + 0x10], 0x40000
jmp 0x41c864
mov eax, dword [0x42f5a0]
cmp eax, dword [ebp - 8]
je 0x41c864
push eax
call fcn.004165dc
cmp eax, ebx
pop ecx
je 0x41c864
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41c864
mov eax, dword [0x42f5a4]
cmp eax, dword [ebp - 8]
je 0x41c864
push eax
call fcn.004165dc
cmp eax, ebx
pop ecx
je 0x41c864
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f59c]
call fcn.004165dc
cmp eax, ebx
pop ecx
je 0x41c884
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c886
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret