joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d100
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004048b0
mov ebp, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d181
mov eax, dword [esi + 0xa0]
add esi, 0xa0
mov dword [esp + 0xc], 0
mov ecx, dword [eax - 4]
push ebx
mov ebx, dword [eax - 0xc]
sub eax, 0x10
cmp ecx, 1
jle 0x40d163
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00403590
mov esi, dword [esi]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop ebx
push edi
jne 0x40d1a4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d19b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
Function at 0x40e560
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
push edi
mov edi, ecx
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x40e57a
call fcn.0040d7f0
test eax, eax
je 0x40e605
push esi
lea eax, [esp + 8]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x41fc40
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e5e6
mov esi, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push eax
push 0x41fb48
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e5e6
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40e5d2
cmp eax, 2
jne 0x40e5e6
mov eax, dword [esp + 8]
test eax, eax
jbe 0x40e5e6
push 0x41fb48
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [edi + 0x84]
push 0
push 1
push eax
call fcn.0040f640
add esp, 0xc
test esi, esi
je 0x40e604
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [edi + 0x68]
test eax, eax
pop edi
je 0x40e61d
push 0
push 6
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
add esp, 8
ret

Function at 0x40e8b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x18]
je 0x40e9ec
test esi, esi
je 0x40e9ec
xor eax, eax
lea ebx, [ebx]
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x40e8d0
mov edx, 1
sub edx, esi
mov dword [esp + 8], edx
mov edx, 2
sub edx, esi
mov dword [esp + 0xc], edx
push edi
xor eax, eax
mov edx, 3
xor edi, edi
sub edx, esi
mov dword [esp + 8], eax
mov ecx, esi
mov dword [esp + 0x14], edx
cdq
idiv ebp
movzx eax, byte [edx + ebx]
movzx edx, byte [ecx]
add eax, edi
add edx, eax
mov edi, edx
and edi, 0x800000ff
jns 0x40e927
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [edi + esi]
mov al, byte [ecx]
mov byte [ecx], dl
mov byte [edi + esi], al
mov eax, dword [esp + 0xc]
add eax, ecx
cdq
idiv ebp
movzx eax, byte [ecx + 1]
movzx edx, byte [edx + ebx]
add edx, edi
add eax, edx
mov edi, eax
and edi, 0x800000ff
jns 0x40e958
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [edi + esi]
mov al, byte [ecx + 1]
mov byte [ecx + 1], dl
mov byte [edi + esi], al
mov eax, dword [esp + 0x10]
add eax, ecx
cdq
idiv ebp
movzx eax, byte [ecx + 2]
movzx edx, byte [edx + ebx]
add edx, edi
add eax, edx
mov edi, eax
and edi, 0x800000ff
jns 0x40e98b
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [edi + esi]
mov al, byte [ecx + 2]
mov byte [ecx + 2], dl
mov byte [edi + esi], al
mov eax, dword [esp + 0x14]
add eax, ecx
cdq
idiv ebp
movzx eax, byte [ecx + 3]
movzx edx, byte [edx + ebx]
add edx, edi
add eax, edx
mov edi, eax
and edi, 0x800000ff
jns 0x40e9be
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ecx + 3]
mov dl, byte [edi + esi]
mov byte [ecx + 3], dl
mov byte [edi + esi], al
mov eax, dword [esp + 8]
add eax, 4
add ecx, 4
cmp eax, 0x100
mov dword [esp + 8], eax
jl 0x40e907
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x10
ret
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x40ea00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push edi
mov edi, eax
mov ebx, ecx
je 0x40eadf
test ebx, ebx
je 0x40eadf
test edi, edi
jne 0x40ea21
mov edi, ebp
push esi
push 0x100
call fcn.004144c9
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
call fcn.0040e8b0
add esp, 8
test eax, eax
jne 0x40ea4f
push esi
call fcn.00414948
add esp, 4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [esp + 0x18]
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x40eac4
sub ebp, edi
mov dword [esp + 0x14], edx
inc eax
and eax, 0x800000ff
jns 0x40ea70
dec eax
or eax, 0xffffff00
inc eax
movzx edx, byte [eax + esi]
add ecx, edx
and ecx, 0x800000ff
jns 0x40ea86
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [ecx + esi]
mov dl, byte [eax + esi]
mov byte [eax + esi], bl
mov byte [ecx + esi], dl
movzx edx, byte [eax + esi]
movzx ebx, byte [ecx + esi]
add edx, ebx
and edx, 0x800000ff
jns 0x40eaac
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + esi]
xor dl, byte [edi + ebp]
mov byte [edi], dl
mov edx, dword [esp + 0x14]
inc edi
dec edx
mov dword [esp + 0x14], edx
jne 0x40ea61
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40eace
mov dword [eax], edx
push esi
call fcn.00414948
add esp, 4
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop edi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40f8e0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42482c]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
push esi
mov esi, dword [esp + 0x118]
push edi
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
stosb byte es:[edi], al
je 0x40f946
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x40f946
push esi
call edi
cmp eax, 0x104
jbe 0x40f960
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004144ff
add esp, 0x10c
ret
push ebp
push 0x103
push esi
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esp, [esp]
test eax, eax
je 0x40fa01
push 0x5c
push eax
call fcn.00414acc
mov esi, eax
add esp, 8
test esi, esi
je 0x40fa01
lea eax, [esp + 0x14]
push eax
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
je 0x40f9b8
test al, 0x10
jne 0x40f9f9
test al, 0x10
jne 0x40f9d3
push 0x80
lea ecx, [esp + 0x18]
push ecx
call ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and ebx, eax
jne 0x40f9f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f9f9
mov ebx, 1
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x40f990
lea edx, [esp + 0x14]
push edx
call edi
cmp eax, 0xffffffff
je 0x40fa11
test al, 0x10
jne 0x40fa52
test al, 0x10
jne 0x40fa2c
push 0x80
lea eax, [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and ebx, eax
jne 0x40fa52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fa52
mov ebx, 1
mov ecx, dword [esp + 0x118]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004144ff
add esp, 0x10c
ret
Function at 0x40fa70
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x42482c]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x114], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
mov dword [esp + 0xc], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fab1
sub eax, edx
cmp eax, 0x103
jbe 0x40fac8
push 0x6f
jmp 0x40fb90
push 0x103
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0041531d
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00414de4
add esp, 0x14
test eax, eax
je 0x40fb8e
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jge 0x40fb12
push 0x41f434
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ebx
call edi
test eax, eax
jne 0x40fb23
push 2
jmp 0x40fb90
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40fb41
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0040f8e0
add esp, 8
test eax, eax
jne 0x40fb41
push 0x52
jmp 0x40fb90
push esi
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x40fb56
push 0x80
push esi
call ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
je 0x40fb77
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40fb77
push eax
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.004144ff
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004144ff
mov esp, ebp
pop ebp
ret

Function at 0x40fbb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov edx, dword [esp + 0x48]
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x54]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
add esp, 0x3c
ret

Function at 0x40fc10
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42482c]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40fc62
cmp dword [esp + 0x10], 2
jne 0x40fc62
cmp dword [esp + 4], 6
jb 0x40fc62
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004144ff
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.004144ff
add esp, 0x98
ret
Function at 0x4101f0
Capabilities:
Get file size

Disassembly:
mov al, byte [ecx + 0x38]
test al, al
je 0x41023f
cmp dword [ecx + 0x34], 0x10
jb 0x410202
mov ecx, dword [ecx + 0x20]
jmp 0x410205
add ecx, 0x20
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x410253
mov ecx, dword [ecx + 0x40]
test ecx, ecx
lea eax, [ecx + 0x1800]
jne 0x410258
mov eax, 0x2000
ret
Function at 0x414fc5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00414ee0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415060
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x425ba4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x415060
cmp eax, 1
je 0x415081
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415060
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41502d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41505c
xor eax, eax
inc eax
jmp 0x4150a0
cmp edi, eax
jae 0x415064
xor eax, eax
jmp 0x4150a0
cmp eax, esi
jae 0x41506b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x425ba4]
jmp 0x415084
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4151f6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x415213
call fcn.00418421
mov dword [eax], 0x16
xor eax, eax
jmp 0x41527d
push esi
push 0x8c
push 1
call fcn.0041aa6b
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x415268
push esi
call fcn.004171b4
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x415246
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x415161
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41527c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00413af1
test ebx, ebx
pop ecx
je 0x41527a
push ebx
call fcn.00418433
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4154dd
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x420118
call fcn.00415720
mov edi, 0x94
mov eax, edi
call fcn.00414ee0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x425ba4], ecx
mov eax, dword [esi + 4]
mov dword [0x425bb0], eax
mov edx, dword [esi + 8]
mov dword [0x425bb4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x425ba8], esi
cmp ecx, 2
je 0x41553d
or esi, 0x8000
mov dword [0x425ba8], esi
shl eax, 8
add eax, edx
mov dword [0x425bac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x415578
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415578
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415590
cmp eax, 0x20b
je 0x41557d
mov dword [ebp - 0x1c], esi
jmp 0x4155a4
cmp dword [ecx + 0x84], 0xe
jbe 0x415578
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41559e
cmp dword [ecx + 0x74], 0xe
jbe 0x415578
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004159af
pop ecx
test eax, eax
jne 0x4155b8
push 0x1c
call fcn.004154b9
pop ecx
call fcn.004173ae
test eax, eax
jne 0x4155c9
push 0x10
call fcn.004154b9
pop ecx
call fcn.0041b87f
mov dword [ebp - 4], esi
call fcn.0041b681
test eax, eax
jge 0x4155e2
push 0x1b
call fcn.00415494
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x427278], eax
call fcn.0041b55f
mov dword [0x4259f0], eax
call fcn.0041b4bd
test eax, eax
jge 0x415608
push 8
call fcn.00415494
pop ecx
call fcn.0041b28a
test eax, eax
jge 0x415619
push 9
call fcn.00415494
pop ecx
push 1
call fcn.00416701
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41562f
push eax
call fcn.00415494
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041b22d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x415650
movzx eax, word [ebp - 0x40]
jmp 0x415653
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00407bc0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x415671
push edi
call fcn.0041682e
call fcn.00416850
jmp 0x4156a3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041575b
ret
Function at 0x41576c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41579a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4157a1
cmp ebx, dword [eax + 4]
jae 0x4157a1
xor eax, eax
jmp 0x415991
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4157b2
xor eax, eax
inc eax
jmp 0x415990
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4157c8
cmp ecx, edx
jae 0x41590d
cmp dword [eax + 4], 0
je 0x4157d1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4157b9
cmp dword [ebp + 8], 0
je 0x4157f3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41590d
cmp eax, esi
jae 0x41590d
mov eax, dword [0x425a00]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x415818
cmp dword [esi*4 + 0x425a08], edi
je 0x415911
inc esi
cmp esi, eax
jl 0x415806
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41598d
cmp dword [ebp - 8], 0x1000000
jne 0x41598d
test byte [ebp - 0xc], 0xcc
je 0x415896
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41598d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41598d
cmp word [eax + 0x18], 0x10b
jne 0x41598d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41598d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x415896
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x415896
test byte [ecx + 0x27], 0x80
jne 0x41590d
push 1
push 0x425a48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4157aa
mov ecx, dword [0x425a00]
test ecx, ecx
mov edx, ecx
jle 0x4158ca
lea eax, [ecx*4 + 0x425a04]
cmp dword [eax], edi
je 0x4158ca
dec edx
sub eax, 4
test edx, edx
jg 0x4158be
test edx, edx
jne 0x4158fb
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4158d7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4158ef
lea eax, [edx*4 + 0x425a08]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4158dd
cmp ecx, 0x10
jge 0x4158fb
inc ecx
mov dword [0x425a00], ecx
push 0
push 0x425a48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4157aa
xor eax, eax
jmp 0x415990
test esi, esi
jle 0x4157aa
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x425a48
call ebx
test eax, eax
jne 0x4157aa
cmp dword [esi*4 + 0x425a08], edi
je 0x415967
mov eax, dword [0x425a00]
lea esi, [eax - 1]
test esi, esi
jl 0x415955
cmp dword [esi*4 + 0x425a08], edi
je 0x415951
dec esi
jns 0x415945
test esi, esi
jge 0x415965
cmp eax, 0x10
jge 0x415960
inc eax
mov dword [0x425a00], eax
lea esi, [eax - 1]
jmp 0x415967
je 0x41597f
xor ecx, ecx
test esi, esi
jl 0x41597f
lea eax, [ecx*4 + 0x425a08]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41596d
push 0
push 0x425a48
call ebx
jmp 0x4157aa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41676b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x420150
call fcn.00415720
push 8
call fcn.00415b53
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x425be4], esi
jne 0x41679f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x425be0], esi
mov al, byte [ebp + 0x10]
mov byte [0x425bdc], al
cmp dword [ebp + 0xc], edi
jne 0x4167e9
cmp dword [0x42724c], edi
je 0x4167d9
mov eax, dword [0x427248]
sub eax, 4
mov dword [0x427248], eax
cmp eax, dword [0x42724c]
jb 0x4167d9
mov eax, dword [eax]
cmp eax, edi
je 0x4167ba
call eax
jmp 0x4167ba
push 0x424048
mov eax, 0x424040
call fcn.004166e9
pop ecx
push 0x424054
mov eax, 0x42404c
call fcn.004166e9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41681a
cmp dword [ebp + 0x10], edi
jne 0x416828
mov dword [0x425be4], esi
push dword [ebp + 8]
call fcn.004166a7
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x416827
push 8
call fcn.00415a9e
pop ecx
ret
call fcn.0041575b
ret

Function at 0x41b07c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42482c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4250c8]
je 0x41b0b3
inc eax
cmp eax, 0x13
jb 0x41b0a4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4250c8]
jne 0x41b1d6
mov eax, dword [0x4259f8]
cmp eax, 1
je 0x41b1b1
cmp eax, edx
jne 0x41b0e3
cmp dword [0x424848], 1
je 0x41b1b1
cmp ecx, 0xfc
je 0x41b1d6
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b119
lea eax, [ebp - 0x7c]
push 0x420260
push eax
call fcn.004175c0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004176c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41b14d
mov eax, edi
push eax
call fcn.004176c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x42025c
push edi
call fcn.00414950
add esp, 0x10
push edi
call fcn.004176c0
push dword [esi + 0x4250cc]
mov ebx, eax
call fcn.004176c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414ee0
mov ebx, esp
push 0x420ac0
push ebx
call fcn.004175c0
push edi
push ebx
call fcn.004175d0
push 0x420258
push ebx
call fcn.004175d0
push dword [esi + 0x4250cc]
push ebx
call fcn.004175d0
push 0x12010
push 0x420224
push ebx
call fcn.0041ba0a
add esp, 0x2c
jmp 0x41b1d6
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4250cc]
push dword [esi]
call fcn.004176c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004144ff
add ebp, 0x90
leave
ret