joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b674
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x40b69f
cmp byte [ebx + 0xc], 0
je 0x40b68c
push eax
call sub.KERNEL32.DLL_GetFileType
jmp 0x40b692
push eax
call sub.KERNEL32.DLL_ReadFile
xor eax, eax
mov dword [ebx + 4], eax
lea eax, [ebx + 0x10]
call fcn.004041b4
pop ebx
ret

Function at 0x40b708
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b80d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040424c
mov eax, dword [ebp - 0xc]
call fcn.0040b598
mov ebx, eax
test bl, bl
jne 0x40b754
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.004046b0
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
je 0x40b765
cmp dword [ebp - 0xc], 0
jne 0x40b78f
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404618
push eax
mov edx, ebx
mov eax, esi
call fcn.0040b6f4
push eax
call sub.KERNEL32.DLL_RtlUnwind
test eax, eax
sete byte [ebp - 2]
jmp 0x40b7c1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [esi + 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404618
push eax
mov edx, ebx
mov eax, esi
call fcn.0040b6f4
push eax
call sub.KERNEL32.DLL_GetFileSize
test eax, eax
sete byte [ebp - 2]
cmp byte [ebp - 2], 0
je 0x40b7f7
cmp dword [esi + 4], 0
setne al
test al, bl
je 0x40b7ea
push dword [esi + 0x10]
push 0x40b828
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044e8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0040b6d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b814
lea eax, [ebp - 0xc]
call fcn.004041b4
ret

Function at 0x40d680
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d7ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b530]
call fcn.0040b604
mov dword [ebp - 4], eax
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.0040b6a4
xor eax, eax
push ebp
push 0x40d714
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 0x40d814
mov eax, dword [ebp - 4]
call fcn.0040b708
mov edx, 0x40d860
mov eax, dword [ebp - 4]
call fcn.0040b948
test al, al
je 0x40d6fe
lea ecx, [ebp - 8]
mov edx, 0x40d860
mov eax, dword [ebp - 4]
call fcn.0040b9dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d71b
mov eax, dword [ebp - 4]
call fcn.00403684
ret
Function at 0x40d8c0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40da3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b530]
call fcn.0040b604
mov dword [ebp - 4], eax
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.0040b6a4
xor eax, eax
push ebp
push 0x40d954
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 0x40da54
mov eax, dword [ebp - 4]
call fcn.0040b708
mov edx, 0x40daa0
mov eax, dword [ebp - 4]
call fcn.0040b948
test al, al
je 0x40d93e
lea ecx, [ebp - 8]
mov edx, 0x40daa0
mov eax, dword [ebp - 4]
call fcn.0040b9dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d95b
mov eax, dword [ebp - 4]
call fcn.00403684
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000cd63
pop dword [ebp - 0xc]
mov eax, 0xbd88e9ac
sub eax, 0xad881c49
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x38057
push 0
mov eax, 0x18546f98
add eax, 0xf7acd0cc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xbb5f0c1e
sub ecx, 0xbb5ec812
xor ebx, ebx
add ebx, eax
mov edx, 0x8bdd7741
add edx, 0x84240ebf
add edx, dword [ebp - 0xc]
mov edi, 0x508ab4f4
sub edi, 0x9546bcbc
add dword [ebp - 4], eax
mov esi, dword [edx]
add dword [ebp - 4], 0x39cb2a9c
xor esi, edi
mov dword [ebp - 8], 0x283f1f42
mov dword [ebx], esi
sub dword [ebp - 4], 0x841140ca
add ebx, 0x666f3514
add ebx, 0x9990caf0
add edx, 0x62cac09e
sub edx, 0x62cac09a
loop 0x1000cdc4
add eax, 0xb548a9b
sub eax, 0xb538798
mov ebx, eax
add eax, 0xb8161996
sub eax, 0xb8161991
mov ecx, 0x301a1285
add ecx, 0xdfe5ed7b
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x406902
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406941
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406941
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406941
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406941
cmp dword [ecx + 0x74], 0xe
jbe 0x406941
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40c363
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c400
push ebx
push esi
call fcn.0040c32c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c2c0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c3ad
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c3ff
push edi
push eax
call fcn.0040cf80
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c3cd
call fcn.0040ae21
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c3fe
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c2c0
add esp, 0x20
test eax, eax
jne 0x40c3ec
push edi
call fcn.0040ae21
jmp 0x40c3f4
push ebx
call fcn.0040ae21
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40d6fd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46ed30
push 0x46ed28
push str.FlsAlloc
push 0x1f
call fcn.0040d5bc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d731
push dword [ebp + 8]
mov ecx, esi
call dword [0x42014c]
call esi
jmp 0x40d737
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d77b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46ed40
push 0x46ed38
push str.FlsGetValue
push 0x21
call fcn.0040d5bc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7b2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42014c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d7ba
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46ed48
push 0x46ed40
push str.FlsSetValue
push 0x22
call fcn.0040d5bc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7f4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42014c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412c50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412c7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412c7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
jmp 0x40101c
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebx
xor edi, edi
call esi
test eax, eax
jle 0x40103a
xor byte [edi + ebx], 0xa5
push ebx
inc edi
call esi
cmp edi, eax
jl 0x40102e
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x401041
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
jmp 0x401055
and dword [ebp - 4], 0
mov esi, 0x4030d4
push 0
push esi
call section..text
pop ecx
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
push esi
mov ebx, eax
call section..text
test ebx, ebx
pop ecx
je 0x4010a2
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 4], 0
je 0x4010a2
push dword [ebp - 4]
push 1
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
pop esi
pop ebx
leave
ret
Function at 0x401110
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004017f0
push ebx
push esi
push edi
jmp 0x40112a
and byte [ebp - 0x100c], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x100b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [ebp - 4]
pop edi
mov esi, 0x4030e0
push eax
push 0xf003f
push 0
push esi
mov dword [ebp - 8], 0xfff
mov dword [ebp - 0xc], edi
call section..text
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40117e
xor eax, eax
jmp 0x4012d0
push esi
call section..text
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
mov esi, 0x403118
push 0
push esi
call section..text
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4011b3
mov dword [ebp - 8], edi
push esi
call section..text
mov ebx, dword [ebp + 8]
pop ecx
test ebx, ebx
jne 0x401219
cmp dword [ebp - 8], edi
jbe 0x401205
mov ebx, 0x403050
lea eax, [ebp - 0x100c]
push ebx
push eax
call fcn.004010a6
pop ecx
test eax, eax
pop ecx
jne 0x4012ce
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x100c]
push 0x403128
push eax
call edi
lea eax, [ebp - 0x100c]
push ebx
push eax
call edi
jmp 0x40128b
lea eax, [ebp - 0x100c]
push 0x403050
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x40128e
and dword [ebp + 8], 0
cmp dword [ebx], 0
jle 0x40128e
lea edi, [ebx + 4]
cmp dword [ebp + 8], 0x32
jge 0x40128b
and byte [edi + 0x1f], 0
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jle 0x40127e
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jle 0x401270
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.004010a6
pop ecx
test eax, eax
pop ecx
jne 0x40127e
lea eax, [ebp - 0x100c]
push 0x403128
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x100c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
inc dword [ebp + 8]
add edi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebx]
jl 0x401225
push 1
pop edi
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x100c]
push eax
push edi
push 0
push esi
call section..text
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4012be
xor edi, edi
push esi
call section..text
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012d5
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x4012ee
movzx eax, word [ebp + 0x10]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
mov dword [ebp + 0x14], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x40135e
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, ebx
je 0x40135e
lea eax, [ebp - 4]
push ebx
push eax
push esi
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x401419
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push esi
push edi
jmp 0x40143d
lea eax, [ebp - 0x15c]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edi, 0x403040
push edi
call section..text
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
pop ecx
push eax
lea eax, [ebp - 0x15c]
push eax
call esi
push edi
call section..text
pop ecx
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
lea eax, [ebp - 0x15c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x4015a3
push ebx
mov ebx, 0x403010
push ebx
call section..text
pop ecx
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebx
call section..text
pop ecx
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x660]
push eax
call esi
mov ebx, 0x40301c
push ebx
call section..text
pop ecx
push eax
lea eax, [ebp - 0x660]
push eax
call esi
push ebx
call section..text
pop ecx
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x660]
push eax
call esi
mov ebx, 0x40302c
push ebx
call section..text
pop ecx
push eax
lea eax, [ebp - 0x660]
push eax
call esi
push ebx
call section..text
pop ecx
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x660]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push 0x44
lea eax, [ebp - 0x58]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], di
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push pe_nt_image_headers32
push edi
push edi
lea eax, [ebp - 0x15c]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop ebx
test eax, eax
je 0x4015a3
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
pop edi
pop esi
leave
ret
Function at 0x4015a7
Capabilities:
Copy file
Create process on windows
Create thread
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
jmp 0x4015c7
push 0x40313c
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, 0x403050
test eax, eax
jne 0x40161a
mov dword [ebp - 4], 1
mov edi, 0x644
push 0x403134
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x401665
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4015f5
and byte [0x4030cf], 0
push esi
call section..text
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 0x1f
jle 0x40163e
lea eax, [eax + 0x403031]
push eax
push esi
call ebx
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push 0x40136e
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x403154], edi
jne 0x4015f0
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401653
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
xor eax, eax
mov dword [ebp - 8], ecx
push eax
push eax
push eax
push 6
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
xor ecx, ecx
cmp eax, ecx
je 0x4017ba
cmp dword [ebp - 4], ecx
mov dword [0x403150], eax
jne 0x4017d5
cmp dword [ebp - 8], ecx
je 0x40178a
push edi
push ecx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x403150]
add esp, 0xc
mov dword [eax], 1
mov eax, dword [0x403150]
add eax, 4
push esi
push eax
call ebx
mov edi, 0x104
lea eax, [ebp - 0x210]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x10c]
push 0x40312c
push eax
call edi
lea eax, [ebp - 0x10c]
push esi
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x10c]
sub ecx, 4
add eax, ecx
cmp byte [eax], 0x2e
jne 0x40172d
and byte [eax], 0
mov esi, 0x403048
push esi
call section..text
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
push esi
call section..text
pop ecx
lea eax, [ebp - 0x10c]
push 0
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x10c]
push 0x403130
push eax
call edi
lea eax, [ebp - 0x10c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4017c3
jmp 0x401799
mov eax, dword [0x403150]
mov ecx, dword [eax]
cmp ecx, 0x32
jge 0x4017ba
inc ecx
push esi
mov dword [eax], ecx
mov eax, dword [0x403150]
mov ecx, dword [eax]
shl ecx, 5
lea eax, [ecx + eax - 0x1c]
push eax
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 8]
call fcn.00401419
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push dword [0x403150]
call fcn.00401110
pop ecx
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4017d5
Function at 0x10003870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10127e86
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x101b441c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, 0xfffe
mov ecx, eax
lea edx, [esp + 8]
mov word [esp + 0xa], cx
push edx
lea ecx, [esp + 0x18]
mov word [esp + 0xc], ax
call fcn.10013c00
push 0
push 0
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.100086b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.10013a40
push 0xd8
mov dword [esi], vtable.DcmFileFormat.0
mov dword [esi + 0x50], 0
call fcn.100b02d2
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], 3
test eax, eax
je 0x1000390b
mov ecx, eax
call fcn.10019830
jmp 0x1000390d
xor eax, eax
mov ecx, dword [esi + 0x34]
push 4
push eax
mov byte [esp + 0x38], 2
call fcn.10014e80
push 0x50
call fcn.100b02d2
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], 4
test eax, eax
je 0x1000393d
mov ecx, eax
call fcn.100012a0
jmp 0x1000393f
xor eax, eax
mov ecx, dword [esi + 0x34]
push 4
push eax
mov byte [esp + 0x38], 2
call fcn.10014e80
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x1000d270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10128b7e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101b441c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.10013f70
xor edi, edi
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], edi
mov dword [esi], vtable.DcmItem.0
mov dword [esi + 0x28], edi
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.1002b520
push 0x10
mov byte [esp + 0x1c], 1
call fcn.100b02d2
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x18], 2
cmp eax, edi
je 0x1000d2f3
mov ecx, eax
call fcn.10014d50
mov dword [esi + 0x28], eax
jmp 0x1000d2f6
mov dword [esi + 0x28], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8