joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c63
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x54
mov eax, 0x43a1cc
call fcn.0042145f
mov esi, ecx
push ecx
push str._cleanup_
call fcn.00404ce0
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c8a
xor al, al
jmp 0x401dc8
push 8
pop ebx
add edi, 0xa
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401c99
mov ecx, dword [esi]
push dword [ebp - 0x18]
mov edx, dword [esi + 0x10]
push 2
push ecx
push edi
call fcn.00405473
add esp, 0x10
cmp eax, 0xffffffff
je 0x401dc6
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401cbd
mov ecx, dword [esi]
cmp word [ecx + eax*2], 0x3d
je 0x401dc6
sub eax, edi
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.00404c8a
and dword [ebp - 4], 0
lea edi, [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jb 0x401ce6
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push 0x3b
pop eax
mov word [ebp - 0x18], ax
test edx, edx
je 0x401d0c
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004057ea
mov esi, eax
pop ecx
test esi, esi
je 0x401d0c
sub esi, edi
sar esi, 1
jmp 0x401d0f
or esi, 0xffffffff
push esi
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404c8a
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404c8a
cmp dword [eax + 0x14], ebx
jb 0x401d3b
mov eax, dword [eax]
push eax
call fcn.00425b40
pop ecx
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.0040812b
cmp dword [ebp - 0x38], 0
je 0x401db6
test esi, esi
je 0x401db6
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401d7d
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x449bc8
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.0040513b
pop ecx
cmp dword [eax + 0x14], ebx
jb 0x401d95
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x60]
call fcn.0040812b
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jb 0x401daf
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x48]
call fcn.0040812b
lea ecx, [ebp - 0x30]
call fcn.0040812b
mov al, 1
call fcn.0042140e
ret
Function at 0x4027ee
Capabilities:
Get common file path

Disassembly:
push 0x24
mov eax, 0x43a2eb
call fcn.0042145f
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x18], 7
push ebx
mov byte [ebp - 0x14], bl
xor eax, eax
push dword [ebp - 0x14]
mov edi, 0x104
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.004067fa
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push 8
pop ebx
cmp dword [ebp - 0x18], ebx
jb 0x40283d
mov eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4028a1
push 6
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esi + 0x14], 7
mov dword [esi], edi
mov word [esi], ax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], edi
cmp eax, ebx
jb 0x40295a
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x402951
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x402951
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x4028ac
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4028b1
sub ecx, edx
sar ecx, 1
cmp ecx, dword [ebp - 0x1c]
ja 0x4028db
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x4028d0
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
jmp 0x4028e8
sub ecx, dword [ebp - 0x1c]
push edi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406751
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x4028f3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x402913
dec ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x40290a
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00404a3f
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jb 0x40295a
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x402951
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00420b09
pop ecx
pop ecx
mov eax, esi
call fcn.0042140e
ret
Function at 0x402962
Capabilities:
Query environment variable

Disassembly:
push 0x24
mov eax, 0x43a2eb
call fcn.0042145f
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x18], 7
push ebx
mov byte [ebp - 0x14], bl
xor eax, eax
push dword [ebp - 0x14]
mov edi, 0x104
mov dword [ebp - 0x2c], ebx
push edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.004067fa
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push 8
pop ebx
cmp dword [ebp - 0x18], ebx
jb 0x4029b1
mov eax, dword [ebp - 0x2c]
push edi
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x402a1a
push 6
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esi + 0x14], 7
mov dword [esi], edi
mov word [esi], ax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], edi
cmp eax, ebx
jb 0x402ad3
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x402aca
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x402aca
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402a25
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x402a2a
sub ecx, edx
sar ecx, 1
cmp ecx, dword [ebp - 0x1c]
ja 0x402a54
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402a49
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
jmp 0x402a61
sub ecx, dword [ebp - 0x1c]
push edi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406751
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402a6c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x402a8c
dec ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jb 0x402a83
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00404a3f
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jb 0x402ad3
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x402aca
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00420b09
pop ecx
pop ecx
mov eax, esi
call fcn.0042140e
ret
Function at 0x402fa0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4500e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027ee
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x402fc6
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
push ebx
push 0x2000000
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402ffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x403021
cmp eax, 2
je 0x403021
cmp eax, 5
je 0x403009
mov bl, 1
cmp esi, 0xffffffff
je 0x403009
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.0040812b
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00420acb
leave
ret
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x40302d
mov eax, dword [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
jmp 0x403009

Function at 0x4030e8
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
call fcn.004020ca
test al, al
jne 0x403130
push ecx
push str._initialNonSecureSetupPath
mov ecx, esi
call fcn.00404ce0
cmp eax, 0xffffffff
jne 0x403130
push ecx
push str._restarted
mov ecx, esi
call fcn.00404ce0
cmp eax, 0xffffffff
jne 0x403130
call fcn.00402fa0
test al, al
je 0x40312a
call fcn.0040304e
test al, al
jne 0x403130
pop esi
jmp fcn.00402f07
pop esi
ret
Function at 0x403ac5
Capabilities:
Create process on windows

Disassembly:
push 0x16c
mov eax, 0x43a5d9
call fcn.0042145f
mov ebx, ecx
xor eax, eax
lea edi, [ebp - 0xcc]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xbc]
xor edi, edi
push edi
push eax
call fcn.00422950
add esp, 0xc
mov dword [ebp - 0xbc], esi
lea ecx, [ebp - 0x58]
call fcn.00401dce
mov dword [ebp - 4], edi
cmp dword [ebp - 0x48], edi
je 0x403c97
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea ecx, [ebp - 0x16]
mov eax, esi
xor edx, edx
push 0xa
pop esi
div esi
sub ecx, 2
mov esi, eax
lea eax, [edx + 0x30]
mov word [ecx], ax
test esi, esi
jne 0x403b1d
push ecx
lea eax, [ebp - 0x16]
push eax
push ecx
lea ecx, [ebp - 0x118]
call fcn.00406026
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x178]
call fcn.0040520d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
mov edx, eax
mov dword [esp], 0x449a1c
call fcn.00405191
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x148]
mov edx, eax
mov dword [esp], str._cleanup_
call fcn.00405191
pop ecx
push ebx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00405feb
push eax
lea ecx, [ebp - 0x100]
call fcn.00404a3f
push 0x449a54
lea edx, [ebp - 0x100]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x130]
call fcn.00405191
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 6
push ecx
push eax
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xe8]
call fcn.004055d2
push 0x449a2c
lea edx, [ebp - 0xe8]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call fcn.00405191
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.0040812b
lea ecx, [ebp - 0x130]
call fcn.0040812b
lea ecx, [ebp - 0x100]
call fcn.0040812b
lea ecx, [ebp - 0x148]
call fcn.0040812b
lea ecx, [ebp - 0x160]
call fcn.0040812b
lea ecx, [ebp - 0x178]
call fcn.0040812b
lea ecx, [ebp - 0x118]
call fcn.0040812b
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
jb 0x403c4b
mov ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
jb 0x403c57
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0xcc]
push edx
lea edx, [ebp - 0xbc]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403c8f
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.0040812b
lea ecx, [ebp - 0x58]
call fcn.0040812b
call fcn.0042140e
ret
Function at 0x403ca5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4500e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403cf9
push edi
lea eax, [ebp - 8]
push eax
push 0x400000
push dword [0x454774]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403cf2
cmp dword [ebp - 8], edi
jne 0x403cd2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00420acb
leave
ret
Function at 0x408e75
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x43af2a
call fcn.0042145f
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x14], edi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 4], ecx
mov ebx, dword [esi + 0x14]
push 0x5c
pop ecx
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], cx
mov word [ebp - 0x12], cx
mov ecx, esi
push 0x3f
pop eax
mov word [ebp - 0x14], ax
cmp ebx, 8
jb 0x408ec5
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x18]
call fcn.0040ba0a
pop ecx
test al, al
jne 0x408eec
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x28], ax
mov ecx, esi
cmp ebx, 8
jb 0x408ef5
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push ecx
push ecx
call fcn.0040bac3
add esp, 8
mov ecx, eax
mov eax, esi
cmp ebx, 8
jb 0x408f0d
mov eax, dword [esi]
lea eax, [eax + ecx*2]
mov ecx, esi
add eax, 2
cmp ebx, 8
jb 0x408f1c
mov ecx, dword [esi]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040b519
mov ebx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x30]
lea eax, [ebx + 0x20]
push eax
call fcn.00409dc8
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x408f46
mov eax, dword [ebp - 0x30]
lea eax, [eax + ebx*2]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00408df6
push 8
pop ebx
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jb 0x408f62
mov ecx, dword [ebp - 0x30]
mov eax, esi
cmp dword [esi + 0x14], ebx
jb 0x408f6b
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x408f9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, esi
call fcn.0040889d
and dword [edi], 0
and dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x408fa6
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00404a3f
cmp dword [ebp - 0x1c], ebx
jb 0x408fbd
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
call fcn.0042140e
ret
Function at 0x40cf8a
Capabilities:
Create process on windows

Disassembly:
push 0x114
mov eax, 0x43b50d
call fcn.004214cb
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], ebx
call fcn.00408abf
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x40cfb7
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x34], cx
lea ecx, [ebp - 0x34]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 7
call fcn.00404f18
lea ecx, [ebp - 0xd8]
call fcn.00404e47
push 0x449a50
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.0040513b
pop ecx
push 0x449e10
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x108]
call fcn.00405191
pop ecx
push 0x449a48
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf0]
call fcn.00405191
pop ecx
push esi
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00405feb
push eax
lea ecx, [ebp - 0xc0]
call fcn.00404a3f
push 0x449a2c
lea edx, [ebp - 0xc0]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4c]
call fcn.00405191
pop ecx
lea ecx, [ebp - 0xc0]
call fcn.0040812b
lea ecx, [ebp - 0xf0]
call fcn.0040812b
lea ecx, [ebp - 0x108]
call fcn.0040812b
lea ecx, [ebp - 0x120]
call fcn.0040812b
push 0x40
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 0x44
push ebx
push eax
call fcn.00422950
xor eax, eax
lea edi, [ebp - 0xa8]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x4c]
add esp, 0xc
cmp dword [ebp - 0x38], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x40d0b4
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
jb 0x40d0c0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0xa8]
push edx
lea edx, [ebp - 0x94]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d0f8
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4c]
call fcn.0040812b
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x40d146
mov ecx, dword [ebp - 0x34]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x98], ecx
cmp eax, 0x1000
jb 0x40d13d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040129b
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x98]
push eax
push ecx
call fcn.00420b09
pop ecx
pop ecx
call fcn.0042141d
ret

Function at 0x40e1d6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40e222
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40e210
mov eax, 0x10000
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi], 0x40
inc eax
mov dword [0x452760], esi
pop esi
leave
ret
Function at 0x40e2e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x452760]
mov dword [ebp - 0x14], edx
mov esi, dword [edi + 4]
mov dword [ebp - 0xc], esi
jmp 0x40e312
mov eax, dword [esi + 0xc]
shl eax, 2
cmp eax, edx
ja 0x40e420
mov dword [ebp - 0xc], esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x40e2fe
lea eax, [edx + 0x10]
xor ecx, ecx
xor edx, edx
div dword [edi + 8]
test edx, edx
setne cl
xor edx, edx
add ecx, eax
mov eax, dword [edi + 0xc]
div dword [edi + 8]
cmp ecx, eax
jae 0x40e337
mov ecx, eax
jmp 0x40e338
inc ecx
mov edx, dword [ebp + 8]
mov esi, 0x80000000
mov dword [ebp - 0x10], ecx
mov eax, esi
imul ecx, dword [edi + 8]
lea ebx, [edx - 0x80000000]
sub eax, ecx
mov dword [ebp - 8], ecx
cmp ebx, eax
jb 0x40e361
mov ebx, esi
sub ebx, ecx
jmp 0x40e361
mov ecx, dword [ebp - 8]
push edx
mov edx, ecx
mov ecx, ebx
call fcn.0040e225
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40e47c
push dword [edi]
push 0x3000
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x40e35e
cmp dword [edi + 4], 0
jne 0x40e39b
mov dword [edi + 4], esi
jmp 0x40e3d1
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e47c
lea eax, [ebp - 4]
mov dword [ebx + 4], esi
push eax
push 0x20
push dword [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e47c
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 8]
mov ecx, eax
shr ecx, 8
xor ecx, eax
shr ecx, 8
xor ecx, eax
shl eax, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xff0
lea eax, [ecx + 0x10]
add eax, esi
mov dword [esi + 8], eax
mov eax, edx
sub eax, ecx
sub eax, 0x10
shr eax, 2
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20
push edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e47c
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e47c
mov eax, dword [ebp - 0x14]
test al, 3
mov ebx, dword [esi + 8]
push 0
pop ecx
setne cl
shr eax, 2
add ecx, eax
sub dword [esi + 0xc], ecx
lea eax, [ebx + ecx*4]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x20
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebx, ebx
je 0x40e478
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e47c
mov eax, ebx
jmp 0x40e47e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e58f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x452750], 0
jne 0x40e64b
and dword [ebp - 4], 0
mov eax, dword [0x452758]
test eax, eax
jne 0x40e5cc
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x452758], eax
test eax, eax
je 0x40e652
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x450b38], eax
cmp eax, 0xffffffff
je 0x40e652
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x450b3c], eax
cmp eax, 0xffffffff
je 0x40e652
push esi
push 0x454c18
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0040e1d6
push str.ntdll
mov dword [0x452750], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40e64a
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40e64a
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
js 0x40e64a
mov eax, dword [ebp - 0x18]
mov dword [0x454784], eax
pop esi
mov eax, dword [0x452750]
leave
ret
xor eax, eax
leave
ret

Function at 0x40e656
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x454c18
mov ebx, edx
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e6a5
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [esi], ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x454c18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e6b7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 0x454c18
xor edi, edi
mov ebx, dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e71a
mov ecx, dword [esi + 0x5c]
test ebx, ebx
je 0x40e6f5
mov eax, esi
sub eax, dword [esi + 0x60]
mov dword [ecx], eax
jmp 0x40e6f7
mov dword [ecx], esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x452754]
xor edi, edi
mov dword [esi + 0x50], eax
inc edi
mov dword [0x452754], esi
push 0x454c18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret