joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426a70
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push dword [esp + 0x14]
push edx
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x426a99
xor eax, eax
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
pop ecx
ret 4

Function at 0x427880
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x4278c8
cmp edx, 0x40
je 0x4278ba
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
lea edx, [esi + 0x20]
mov edi, 4
nop dword [eax + eax]
mov ecx, dword [edx + 4]
lea ebx, [ebx + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [ebx - 8], eax
bswap ecx
mov dword [ebx - 4], ecx
sub edi, 1
jne 0x427910
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x427970
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x43301c]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x427ca0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x427cde
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x427cd7
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x427ce0
add eax, 0x28
cmp eax, edi
jne 0x427cc7
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4283f0
Capabilities:
Get process heap force flags

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 0xa4]
shl eax, 0x10
or eax, dword [ecx + 0xa8]
ret
Function at 0x428fc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x428fe7
mov ecx, 5
int 0x29
push 2
call fcn.00428640
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4290f2
test esi, esi
jne 0x4290f2
push 2
call fcn.00428640
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042951f
mov esp, ebp
pop ebp
ret
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401a1e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov eax, 0x40300c
or esi, 0xffffffff
lock xadd dword [eax], esi
dec esi
jne 0x401a62
push 4
pop ecx
call fcn.00401415
xor ecx, ecx
push ecx
push ecx
push eax
push 0x4019f0
push ecx
push ecx
mov dword [eax], 0x493e0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x401a5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401a62
call fcn.004015de
mov eax, esi
pop esi
ret

Function at 0x100129b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10010d8
call fcn.010014f0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10012d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012d6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10012ee
cmp eax, 0x20b
je 0x10012db
mov dword [ebp - 0x1c], edi
jmp 0x1001302
cmp dword [ecx + 0x84], 0xe
jbe 0x10012d6
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10012fc
cmp dword [ecx + 0x74], 0xe
jbe 0x10012d6
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100204c], 0xffffffff
or dword [0x1002050], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002048]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002044]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002054], eax
call fcn.010014e6
cmp dword [0x1002030], edi
jne 0x100135d
push fcn.010014e6
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010014cf
push 0x1001088
push 0x1001084
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002040]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100203c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1001080
push 0x100107c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010011e9
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10013d4
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001409
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100152b
ret

Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push eax
push eax
push eax
push str.http:__www.microsoft.com_security_malwareremove_
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 0x10
Function at 0x401eb2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xc], edi
call fcn.00406880
cmp eax, 1
jle 0x401fef
push 0
push 0x8000000
push 3
push 0
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401ffb
test ebx, ebx
je 0x401ffb
push 4
push 0x1000
push 0xf4240
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x401fd5
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jle 0x401fc8
fld qword [0x434db8]
mov esi, edi
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fmul qword [ebp - 0x30]
call fcn.00426d70
xor esi, esi
lea ecx, [ebp - 0x20]
push esi
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x401fe6
fld qword [ebp - 0x28]
fld qword [0x434db8]
fmul st(1), st(0)
jmp 0x401f99
fxch st(1)
fcomi st(1)
jbe 0x401f6e
fstp st(0)
jmp 0x401f70
fstp st(1)
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00426d70
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401fde
cmp dword [ebp - 0x10], esi
jbe 0x401fde
fld qword [ebp - 0x18]
fld qword [0x434db8]
fsub st(1), st(0)
fxch st(1)
fst qword [ebp - 0x18]
fldz
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x401f64
fstp st(0)
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc eax
add edi, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
cmp eax, dword [ebp + 8]
jl 0x401f2e
mov eax, dword [ebp - 4]
fstp st(0)
push 0x8000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401ffb
fld qword [0x434db8]
jmp 0x401faa
mov eax, dword [ebp - 4]
test eax, eax
je 0x401fd5
jmp 0x401fc8
mov dl, byte [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.0040aec0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402199
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x420], edi
test edi, edi
je 0x40234a
test esi, esi
je 0x40234a
cmp dword [ebp + 0x18], 0
je 0x40234a
test ebx, ebx
je 0x4021ec
push esi
call fcn.0040110c
pop ecx
push eax
push esi
lea ecx, [ebx + 0x24]
call fcn.00403fd7
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00412b70
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x208
push 0
push eax
call fcn.00412b70
lea edx, [ebp - 0x214]
add esp, 0xc
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x402223
mov edx, dword [ebp + 0x18]
push esi
push ecx
lea ecx, [ebp - 0x214]
call fcn.00401b9a
pop ecx
pop ecx
xor edx, edx
mov ecx, edx
movzx eax, word [ebp + ecx - 0x214]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x41e], ax
test ax, ax
jne 0x402248
lea edi, [ebp - 0x214]
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, dx
jne 0x402269
mov eax, dword [0x4345cc]
mov dword [edi], eax
lea edi, [ebp - 0x214]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, dx
jne 0x402285
push 5
pop ecx
lea eax, [ebp - 0x41c]
mov esi, str.kugou.dll
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [ebp + 8], 0
jne 0x4022f2
mov edx, dword [ebp + 0x18]
push str.kugou.dll
push ecx
mov ecx, dword [ebp - 0x420]
call fcn.00401b9a
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x420]
xor edi, edi
push edi
push ebx
call fcn.00402002
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x402346
push dword [ebp + 0xc]
lea edx, [ebp - 0x214]
push edi
push ebx
call fcn.00402002
add esp, 0xc
jmp 0x402344
push dword [ebp + 0xc]
lea edx, [ebp - 0x214]
push dword [ebp + 8]
push ebx
call fcn.00402002
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x402346
call fcn.00401c10
test al, al
je 0x402346
call fcn.00414ea2
mov edx, dword [ebp + 0x18]
push str.kugou.dll
push ecx
mov ecx, dword [ebp - 0x420]
call fcn.00401b9a
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x420]
push dword [ebp + 8]
push ebx
call fcn.00402002
add esp, 0x14
mov esi, eax
mov eax, esi
jmp 0x40234c
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9d4
mov esp, ebp
pop ebp
ret
Function at 0x40235d
Capabilities:
Create directory
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x208
push eax
mov bl, al
lea eax, [ebp - 0x20c]
push eax
call fcn.00412b70
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 1
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor eax, eax
xor esi, esi
push eax
push eax
inc esi
lea eax, [ebp - 0x238]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x224], 0xc
lea eax, [ebp - 0x238]
mov dword [ebp - 0x21c], esi
sub edi, 2
mov dword [ebp - 0x220], eax
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x4023eb
mov esi, 0x4345d0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x20c]
sub edi, 2
xor edx, edx
mov ax, word [edi + 2]
add edi, 2
cmp ax, dx
jne 0x402420
push 8
pop ecx
push edx
push 0x8000000
push 4
lea eax, [ebp - 0x224]
mov esi, str._startup_record
push eax
push 7
push 0xc0000000
lea eax, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
je 0x402534
test eax, eax
je 0x402534
xor ecx, ecx
push ecx
push 0xc
push ecx
push 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402522
test edi, edi
je 0x402522
push 0xc
xor eax, eax
push eax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x402519
mov ecx, dword [esi + 4]
mov dword [ebp - 0x210], ecx
test ecx, ecx
je 0x4024f9
fild dword [esi]
fstp dword [ebp - 0x214]
fld dword [ebp - 0x214]
fild dword [ebp - 0x210]
fstp dword [ebp - 0x210]
fdiv dword [ebp - 0x210]
fstp dword [ebp - 0x210]
fld dword [0x434d9c]
fld dword [ebp - 0x210]
fcompi st(1)
fstp st(0)
ja 0x4024f9
cmp byte [esi + 9], 0
jne 0x4024f9
xor ecx, ecx
mov bl, cl
jmp 0x402503
lea eax, [ecx + 1]
mov bl, 1
mov dword [esi + 4], eax
xor ecx, ecx
push 0xc
push esi
mov byte [esi + 8], bl
mov byte [esi + 9], cl
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402526
xor ecx, ecx
mov bl, cl
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40253e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov bl, cl
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9d4
mov esp, ebp
pop ebp
ret
Function at 0x406710
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406781
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push ecx
push edi
call eax
test eax, eax
jne 0x406776
mov eax, 2
jmp 0x406781
xor eax, eax
cmp dword [ebp - 0x124], eax
setne al
push pe_nt_image_headers32
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.00412b70
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
push eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call fcn.004065c0
mov dword [esi], eax
add esp, 4
movzx eax, word [ebp - 0xc]
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xa]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
test eax, eax
je 0x406851
cmp eax, 6
je 0x406848
cmp eax, 9
jne 0x406858
mov dword [esi + 0x18], 1
jmp 0x406858
mov dword [esi + 0x18], 2
jmp 0x406858
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x134]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f9d4
mov esp, ebp
pop ebp
ret

Function at 0x407140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ecx + 0x14], 8
push esi
push edi
mov esi, edx
jb 0x407152
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4071c1
mov edi, dword [ebp - 4]
test edi, edi
je 0x4071c1
cmp dword [esi + 0x14], 8
jb 0x40718d
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407192
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.ErrCode
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4087f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x121c
call fcn.00410a90
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
add ecx, 0x1c
push ebx
push esi
push edi
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x1210], 2
mov dword [ebp - 0x120c], eax
jb 0x408828
mov ecx, dword [ecx]
lea edx, [ebp - 0x1208]
mov edi, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x408830
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x434894
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1214], 0
cmp ebx, 0xffffffff
je 0x408905
push 0x9ff
lea eax, [ebp - 0xa07]
push 0
push eax
call fcn.00412b70
add esp, 0xc
mov dword [ebp - 0xa08], 0xc8
lea eax, [ebp - 0x1218]
mov ecx, 0x202
lea esi, [ebp - 0x1210]
lea edi, [ebp - 0xa04]
push 0
push eax
push 0xa00
lea eax, [ebp - 0xa08]
push eax
rep movsd dword es:[edi], dword [esi]
push ebx
mov word [ebp - 0x1fc], 0x101
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408905
push 0
lea eax, [ebp - 0x1218]
push eax
push 4
lea eax, [ebp - 0x1214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1214]
xor edx, edx
cmp eax, 0xea
cmove ecx, edx
mov dword [ebp - 0x1214], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1214], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040f9d4
mov esp, ebp
pop ebp
ret
Function at 0x408930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4279e8
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44
lea eax, [ebp - 0xb0]
xor bl, bl
push 0
push eax
call fcn.00412b70
xor eax, eax
mov dword [ebp - 0xb0], 0x44
mov dword [ebp - 0x64], eax
add esp, 0xc
cmp dword [esi + 0x30], 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [esi + 0x1c]
jb 0x408997
mov eax, dword [eax]
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408ad2
push 0xffffffffffffffff
push dword [ebp - 0x64]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
movzx ebx, bl
test eax, eax
mov dword [ebp - 0x54], 0x7fffff
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x64]
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov eax, dword [ebp - 0x54]
jne 0x4089f9
test eax, eax
je 0x4089f9
xor bl, bl
jmp 0x408a01
test bl, bl
jne 0x408ad2
xor ecx, ecx
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], ecx
mov word [ebp - 0x50], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x38]
push 0x10
push ecx
push eax
call fcn.004197db
add esp, 0xc
cmp word [ebp - 0x38], 0
jne 0x408a4c
xor ecx, ecx
jmp 0x408a61
lea ecx, [ebp - 0x38]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408a52
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403fd7
lea ecx, [esi + 0x34]
lea edx, [ebp - 0x50]
call fcn.00407140
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x408ad2
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x7fffffff
jbe 0x408a91
call fcn.00418f5c
add eax, eax
cmp eax, 0x1000
jb 0x408ac9
test byte [ebp - 0x50], 0x1f
je 0x408aa5
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x408ab1
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x408abd
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x408ac7
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x60]
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f9d4
mov esp, ebp
pop ebp
ret