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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413c76
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x413c45
cmp eax, 2
jne 0x413c61
test esi, esi
mov eax, dword [esp + 0x14]
je 0x413c70
test eax, eax
je 0x413c6b
test al, 1
jne 0x413c61
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x413c70
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x413f10
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x428368
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4312c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0x18], 0
je 0x413f57
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
cmp dword [esi], 0
mov dword [esp + 0x10], eax
je 0x413f6e
test eax, eax
jne 0x413f6e
push 0x8007000e
call fcn.00405760
push str.WebServicesCommunicationCenter
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.WebServicesCommunicationCenter
lea ecx, [esp + 0x18]
call fcn.00401ff0
test eax, eax
jge 0x413f9a
push eax
call fcn.00405760
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push ebp
push SysReAllocStringLen
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41400f
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.LastUpdateTimeLoWord
push esi
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esp + 0x30]
push 4
lea edx, [esp + 0x30]
push edx
push 4
push 0
push str.LastUpdateTimeHiWord
push esi
mov dword [esp + 0x44], ecx
call edi
test esi, esi
je 0x414017
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414017
mov dword [esp + 0x18], 0x80004005
push ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 8
Function at 0x4141b0
Capabilities:
Get geographical location
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4283c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4312c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebp, ebp
cmp eax, ebp
jne 0x4141e5
xor eax, eax
jmp 0x4141f6
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
cmp dword [esi], ebp
mov dword [esp + 0x14], eax
je 0x41420c
cmp eax, ebp
jne 0x41420c
push 0x8007000e
call fcn.00405760
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.WebServices
mov dword [esp + 0x28], ebp
call ebx
push eax
push str.WebServices
lea ecx, [esp + 0x1c]
call fcn.00401ff0
cmp eax, ebp
jge 0x414236
push eax
call fcn.00405760
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push ebp
push edx
push SysReAllocStringLen
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x414294
mov esi, dword [esp + 0x2c]
cmp esi, ebp
mov edi, dword [esp + 0x18]
jne 0x41426f
push 0x80004005
call fcn.00405760
push esi
call ebx
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebp
push str.CountryCode
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp edi, ebp
je 0x414299
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414299
mov ebp, 0x80004005
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x418716
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4312c8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004186ab
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.00419940
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 0x418765
cmp dword [ebp - 0x1c], 5
jb 0x41877d
jmp 0x418779
cmp dword [ebp - 0x10], 1
jne 0x41877d
cmp dword [ebp - 0x1c], 4
ja 0x418779
jne 0x41877d
cmp dword [ebp - 0x18], 0
jbe 0x41877d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42b908
call fcn.00401020
test eax, eax
jge 0x41879e
mov byte [0x432280], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418ff5
add ebp, 0x78
leave
ret

Function at 0x418ff5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4312c8]
jne 0x418fff
repz ret
jmp fcn.0041cefc
Function at 0x42226d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041af6f
xor ebx, ebx
cmp dword [0x432f04], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x422342
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4222ad
xor eax, eax
jmp 0x422406
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4222a6
push eax
call fcn.0041af0c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x432f04], eax
call esi
push eax
call fcn.0041af0c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432f08], eax
call esi
push eax
call fcn.0041af0c
mov dword [0x432f0c], eax
lea eax, [ebp - 8]
push eax
call fcn.0041eada
test eax, eax
pop ecx
pop ecx
je 0x422310
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00419275
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x422342
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041af0c
cmp eax, ebx
pop ecx
mov dword [0x432f14], eax
je 0x422342
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041af0c
pop ecx
mov dword [0x432f10], eax
mov eax, dword [0x432f10]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4223bb
cmp dword [0x432f14], esi
je 0x4223bb
push eax
call fcn.0041af78
pop ecx
call eax
cmp eax, ebx
je 0x422388
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x432f14]
call fcn.0041af78
pop ecx
call eax
test eax, eax
je 0x422388
test byte [ebp - 0x18], 1
jne 0x4223bb
lea eax, [ebp - 0xc]
push eax
call fcn.0041eb11
test eax, eax
pop ecx
je 0x4223a3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00419275
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4223b2
or dword [ebp + 0x10], 0x200000
jmp 0x4223ec
or dword [ebp + 0x10], 0x40000
jmp 0x4223ec
mov eax, dword [0x432f08]
cmp eax, esi
je 0x4223ec
push eax
call fcn.0041af78
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4223ec
mov eax, dword [0x432f0c]
cmp eax, esi
je 0x4223ec
push dword [ebp - 4]
push eax
call fcn.0041af78
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x432f04]
call fcn.0041af78
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x593b57
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40d020]
test eax, eax
je 0x593b96
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x593b96
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x593b96
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x593b96
cmp dword [ecx + 0x74], 0xe
jbe 0x593b96
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10004adc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083360
push 0x1008225e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x10004b22
jmp 0x10004b40
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0x4550
je 0x10004b40
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x10004b59
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10026e00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008297b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x10083378
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x38], 0xc8
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x3c], 0x2ee
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x34], 0x64
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], 0x1f4
mov edx, dword [ebp - 0x1c]
mov dword [edx + 8], 0xcc
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x30], 0x2ee
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x20], 0xbb8
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], 0x3e8
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0x12c
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x40], 0x64
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x2c], 0x2ee
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x14], 0x384
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x24], 0xfa
mov dword [ebp - 0x10], 0
jmp 0x10026ebb
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0xb
jge 0x10026ed1
mov eax, dword [ebp - 0x10]
shl eax, 7
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + eax + 0x44], 0
jmp 0x10026eb2
cmp dword [0x100921a4], 0
jne 0x10026f20
push 0x9c
call fcn.10082206
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x10026f04
mov ecx, dword [ebp - 0x18]
call fcn.1006af00
mov dword [ebp - 0x20], eax
jmp 0x10026f0b
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [0x100921a4], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100674b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
pop ebp
ret
Function at 0x1006c56d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100834f8
push 0x1008225e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
add eax, 0xc
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x18], 0
je 0x1006c67b
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x18]
cmp edx, dword [ebp + 8]
jne 0x1006c66e
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0
jne 0x1006c5ef
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x2d]
jmp 0x1006c69b
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x14]
sub edx, 0x10
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10]
sub ecx, 0x10
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x2e]
jmp 0x1006c69b
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
jmp 0x1006c5b7
mov dword [ebp - 4], 0xffffffff
jmp 0x1006c69b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101d7aaa
Capabilities:
Encode data using xor

Disassembly:
cmp bp, di
pushal
add al, 0x5a
clc
bt di, 0xb
rol al, 3
cmc
pushfd
pushfd
sub al, 0x90
bt bx, 2
call fcn.101d812b
add byte [eax], al
aas
arpl word [edi + 0x73], bx
je 0x101d7b42
inc eax
aas
and al, 0x62
popal
jae 0x101d7b40
arpl word [edi + 0x73], bx
je 0x101d7b4e
imul ebp, dword [esi + 0x67], 0x3f554440
and al, 0x63
push 0x745f7261
jb 0x101d7b4d
imul esi, dword [ebx + esi*2 + 0x40], 0x74734044
inc eax
inc eax
push esi
aas
and al, 0x61
insb byte es:[edi], dx
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [ecx + 0x74], sp
outsd dx, dword [esi]
jb 0x101d7b44
inc esp
inc eax
xor al, byte [eax + 0x40]
jae 0x101d7b7f
inc eax
inc eax
push ecx
inc edx
inc ebp
push eax
inc edx
inc esp
pop eax
pop edx
add byte [eax], bh
cmc
push 0x8d4fd2f0
pushfd
or eax, eax
jmp 0x101dc50d
mov bl, 0x28
add byte [eax], al
call fcn.101da5bf
add byte [ebp + 0xf642464], cl
xchg dword [esi + esi*8 - 1], ebx
jmp [eax - 9]
mov byte [esp], ah
jmp 0x101dc0e4
Function at 0x402a40
Capabilities:
Accept command line arguments
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call fcn.00401a60
mov ebx, dword [ebp - 0x408]
add esp, 4
mov edi, eax
jmp loc.0041db6c

Function at 0x402b34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41003c]
jne 0x402b3e
repz ret
jmp fcn.0040359b

Function at 0x408ffc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41003c]
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.0040583e
and dword [ebp - 0x14], 0
cmp dword [0x411ca8], 0
mov dword [ebp - 0x18], eax
jne 0x4090af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409157
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409157
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411ca8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411cac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411cb0], eax
call edi
push eax
call esi
mov dword [0x411cb8], eax
test eax, eax
je 0x4090af
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411cb4], eax
mov eax, dword [0x411cb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409108
cmp dword [0x411cb8], ecx
je 0x409108
push eax
call esi
push dword [0x411cb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409108
test ebx, ebx
je 0x409108
call edi
test eax, eax
je 0x4090ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4090ff
test byte [ebp - 8], 1
jne 0x409108
or dword [ebp + 0x10], 0x200000
jmp 0x40913b
mov eax, dword [0x411cac]
cmp eax, dword [ebp - 0x18]
je 0x40913b
push eax
call esi
test eax, eax
je 0x40913b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40913b
mov eax, dword [0x411cb0]
cmp eax, dword [ebp - 0x18]
je 0x40913b
push eax
call esi
test eax, eax
je 0x40913b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411ca8]
call esi
test eax, eax
je 0x409157
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409159
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b34
leave
ret
Function at 0x40aedd
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x5c]
call fcn.00408d90
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x40af19
test byte [0x417394], 1
je 0x40b0e8
push eax
push 0x405648
push 0x405324
push 0xd
jmp 0x40afd0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push 1
push 1
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x48], eax
jne 0x40af58
test byte [0x417394], 1
je 0x40b0e8
push 0x405324
push 0xe
push dword [0x41738c]
push dword [0x417388]
call fcn.00407079
jmp 0x40b0e8
push edi
push edi
push edi
push edi
call ebx
cmp dword [esi + 0x48], edi
mov dword [esi + 0x44], eax
jne 0x40af7c
test byte [0x417394], 1
je 0x40b0e8
push 0x405324
push 0xf
jmp 0x40af42
push edi
push edi
push 1
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x4c], eax
jne 0x40afa0
test byte [0x417394], 1
je 0x40b0e8
push 0x405324
push 0x10
jmp 0x40af42
push edi
push 0x20019
lea ebx, [esi + 0x54]
push ebx
call fcn.004116c1
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x40afe6
test byte [0x417394], 1
je 0x40b0e8
push eax
push 0x405630
push 0x405324
push 0x11
push dword [0x41738c]
push dword [0x417388]
call fcn.0040709f
jmp 0x40b0e8
push dword [esi + 0x44]
push dword [ebx]
call fcn.0040970b
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x40b013
test byte [0x417394], 1
je 0x40b0e8
push eax
push 0x40560c
push 0x405324
push 0x12
jmp 0x40afd0
push 0x29c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x40b02b
mov ecx, eax
call fcn.0040abde
jmp 0x40b02d
xor eax, eax
cmp eax, edi
mov dword [esi + 8], eax
jne 0x40b04c
mov eax, 0x8007000e
mov dword [ebp - 4], eax
push eax
push 0x82b
call fcn.00407e19
jmp 0x40b0e8
add eax, 0x284
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ecx, dword [esi + 8]
push esi
call fcn.00409004
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x40b03c
lea ebx, [esi + 0xc]
push ebx
mov ecx, 0x417bc0
call fcn.0040abb7
push edi
push edi
push edi
push ecx
mov eax, esp
mov dword [eax], edi
mov ecx, dword [esi + 8]
push edi
call fcn.0040ab13
cmp eax, edi
jne 0x40b0ab
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40b099
call esi
jmp 0x40b0a5
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
push eax
jmp 0x40b03d
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x40a950
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x50], eax
jne 0x40b0d1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x40b0e8
mov eax, dword [esi + 8]
push edi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, ebx
call fcn.0040a45d
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e017
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4179f0]
and dword [ebp - 0x250], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0xe
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x24c]
rep stosd dword es:[edi], eax
push 0x40584c
lea ecx, [ebp - 0x210]
call fcn.0040ded4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x41
pop ecx
lea eax, [ebp - 0x108]
lea esi, [ebp - 0x20c]
lea edi, [ebp - 0x108]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
jne 0x40e093
mov esi, 0x80070003
jmp 0x40e1cc
xor edi, edi
cmp dword [ebx + 0x70], edi
lea ecx, [ebp - 0x210]
jne 0x40e0ac
push 0x40196c
call fcn.0040d98b
jmp 0x40e0d1
cmp dword [ebx + 0x64], edi
jne 0x40e0b8
push 0x401960
jmp 0x40e0a5
push 0x405844
call fcn.0040d98b
lea eax, [ebx + 0x68]
push eax
lea ecx, [ebp - 0x210]
call fcn.0040d9b2
mov eax, dword [ebx + 4]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x250], 0x3c
mov dword [ebp - 0x24c], 0x440
mov dword [ebp - 0x244], 0x40583c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40e14d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40e13d
call esi
jmp 0x40e149
call esi
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x40e1cc
cmp dword [ebp - 0x218], edi
jne 0x40e15c
mov esi, 0x8000ffff
jmp 0x40e1cc
push 0xffffffffffffffff
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40e192
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40e180
call esi
mov esi, eax
jmp 0x40e1c0
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e1c0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e1bb
mov esi, dword [ebp - 0x214]
cmp esi, edi
jle 0x40e1c0
jmp 0x40e184
mov esi, 0x8000ffff
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x210]
call fcn.00407505
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00410db5
leave
ret