joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40446a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x446388
lea ecx, [ebp - 8]
call fcn.0040102e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00404503
test al, al
jne 0x4044bb
push 0x44b3b8
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
call fcn.00404698
add esp, 0xc
mov ecx, eax
call fcn.00401b80
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
leave
ret
push 0x40aed1
lea ecx, [ebp - 0x14]
call fcn.004044f0
push eax
push 0
push 0x44b3b8
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
call fcn.00404698
add esp, 0xc
push eax
call fcn.00404730
add esp, 0xc
neg eax
sbb eax, eax
neg eax
leave
ret

Function at 0x404c62
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.004010cb
push 0x100
lea ecx, [ebp - 0x10]
call fcn.0040150d
lea ecx, [ebp - 8]
call fcn.00411826
push dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 8]
mov esi, eax
call fcn.00411826
cmp esi, dword [eax]
jb 0x404cbd
inc esi
lea ecx, [ebp - 0x10]
push esi
call fcn.0040150d
lea ecx, [ebp - 8]
call fcn.00411826
push dword [eax]
push dword [ebp - 0x10]
call edi
mov esi, eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00401495
lea eax, [ebp - 1]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 1], 0x5c
call fcn.00404d05
pop edi
pop esi
test al, al
jne 0x404cec
lea eax, [ebp - 1]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 1], 0x5c
call fcn.00406db0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004111fd
lea ecx, [ebp - 0x10]
call fcn.004015e0
mov eax, dword [ebp + 8]
leave
ret

Function at 0x415945
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
push ebx
xor ebx, ebx
push esi
test dword [ecx + 4], 0x7fffffff
je 0x41595f
call fcn.00401b80
jmp 0x415961
xor eax, eax
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
push ebx
movzx eax, byte [ebp + 0x18]
push ebx
push eax
push ebx
push ebx
call fcn.00401b80
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x415991
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x415995
mov bl, 1
jmp 0x415997
call esi
mov al, bl
pop esi
pop ebx
pop ebp
ret

Function at 0x415ac9
Capabilities:
Check mutex on windows

Disassembly:
mov ecx, dword [esp + 4]
call fcn.00401b80
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x415af2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415af2
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x415ca9
Capabilities:
Create thread

Disassembly:
push 8
call fcn.00433511
test eax, eax
pop ecx
je 0x415cc4
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
jmp 0x415cc6
xor eax, eax
push eax
push 0
push 0x415bc4
call fcn.0043403b
mov ecx, eax
xor eax, eax
add esp, 0xc
cmp eax, ecx
sbb eax, eax
and eax, ecx
ret
Function at 0x4174e5
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0041755c
mov ecx, dword [esp + 0xc]
xor edi, edi
push edi
push 0x8000080
push 3
push edi
push 1
push 0x80000000
call fcn.00401b80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x417550
cmp eax, edi
je 0x417550
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x417550
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
je 0x417550
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
jmp 0x417557
mov ecx, esi
call fcn.0041755c
pop edi
pop esi
ret 4

Function at 0x418b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push 0xffffffffffffffff
lea eax, [ebp - 1]
push edi
push eax
mov ecx, ebx
mov byte [ebp - 1], 0x5c
call fcn.00417902
mov esi, eax
lea eax, [ebp - 0x24]
push esi
push edi
push eax
mov ecx, ebx
call fcn.004011fc
or eax, 0xffffffff
cmp esi, eax
je 0x418bc9
lea eax, [esi + 1]
mov ecx, dword [ebx + 4]
mov esi, 0x7fffffff
and ecx, esi
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.004011fc
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x24]
push eax
push 1
push edi
call fcn.00401b80
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418ca8
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push edi
push eax
push edi
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
call fcn.00401b80
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x418c9f
cmp dword [ebp + 0xc], 2
je 0x418c3d
cmp dword [ebp + 0xc], 7
je 0x418c3d
cmp dword [ebp + 0xc], 1
jne 0x418c9f
cmp dword [ebp - 8], edi
je 0x418c9f
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.004013f3
push dword [ebp - 8]
mov ecx, edi
call fcn.00401495
test al, al
je 0x418ca8
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push dword [edi]
push eax
push 0
call fcn.00401b80
push eax
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x44b668
mov ecx, edi
mov dword [ebp - 0x1c], eax
neg eax
sbb eax, eax
neg eax
and eax, esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00418caf
mov al, 1
jmp 0x418caa
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418d38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [ebp - 1]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 1], 0x5c
call fcn.00417902
mov esi, eax
lea eax, [ebp - 0x18]
push esi
push ebx
push eax
mov ecx, edi
call fcn.004011fc
or eax, 0xffffffff
cmp esi, eax
je 0x418d71
lea eax, [esi + 1]
mov ecx, dword [edi + 4]
and ecx, 0x7fffffff
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004011fc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x18]
push eax
push 1
push ebx
call fcn.00401b80
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x418daa
xor al, al
jmp 0x418df1
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call fcn.00401b80
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x418dea
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
cmp esi, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418df6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [ebp - 1]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 1], 0x5c
call fcn.00417902
mov esi, eax
lea eax, [ebp - 0x18]
push esi
push ebx
push eax
mov ecx, edi
call fcn.004011fc
or eax, 0xffffffff
cmp esi, eax
je 0x418e2f
lea eax, [esi + 1]
mov ecx, dword [edi + 4]
and ecx, 0x7fffffff
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004011fc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x18]
push eax
push 1
push ebx
call fcn.00401b80
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418e9f
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call fcn.00401b80
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
cmp esi, ebx
je 0x418ea2
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418ea7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
call fcn.004013f3
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [ebp - 1]
push ebx
push eax
mov ecx, esi
mov byte [ebp - 1], 0x5c
call fcn.00417902
mov edi, eax
lea eax, [ebp - 0x20]
push edi
push ebx
push eax
mov ecx, esi
call fcn.004011fc
or eax, 0xffffffff
cmp edi, eax
je 0x418ee8
lea eax, [edi + 1]
mov ecx, dword [esi + 4]
and ecx, 0x7fffffff
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004011fc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x20]
push eax
push 1
push ebx
call fcn.00401b80
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418f68
lea eax, [ebp - 8]
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.00401b80
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x418f87
cmp dword [ebp - 0xc], 3
jne 0x418f87
cmp dword [ebp - 8], ebx
je 0x418f87
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.004013f3
push dword [ebp - 8]
mov ecx, edi
call fcn.00401495
test al, al
jne 0x418f6c
xor al, al
jmp 0x418f92
lea eax, [ebp - 8]
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push dword [edi]
push eax
push ebx
call fcn.00401b80
push eax
push dword [ebp - 0x10]
call esi
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418f97
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [ebp - 1]
push ebx
push eax
mov ecx, esi
mov byte [ebp - 1], 0x5c
call fcn.00417902
mov edi, eax
lea eax, [ebp - 0x10]
push edi
push ebx
push eax
mov ecx, esi
call fcn.004011fc
or eax, 0xffffffff
cmp edi, eax
je 0x418fd0
lea eax, [edi + 1]
mov ecx, dword [esi + 4]
and ecx, 0x7fffffff
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004011fc
mov ecx, dword [ebp + 0x10]
call fcn.00401b80
mov esi, eax
cmp esi, ebx
je 0x419001
push esi
call fcn.004322c0
pop ecx
mov edi, eax
jmp 0x419003
xor edi, edi
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push 0x2001f
push ebx
push str.REG_SZ
push ebx
call fcn.00401b80
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41904b
push edi
push esi
push 1
push ebx
lea ecx, [ebp - 0x18]
call fcn.00401b80
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41904b
mov bl, 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41905b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [ebp - 1]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 1], 0x5c
call fcn.00417902
mov esi, eax
lea eax, [ebp - 0x10]
push esi
push ebx
push eax
mov ecx, edi
call fcn.004011fc
or eax, 0xffffffff
cmp esi, eax
je 0x419094
lea eax, [esi + 1]
mov ecx, dword [edi + 4]
and ecx, 0x7fffffff
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004011fc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push 0x2001f
push ebx
push str.REG_SZ
push ebx
call fcn.00401b80
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4190f8
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push ebx
lea ecx, [ebp - 0x18]
call fcn.00401b80
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4190f8
mov bl, 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x419108
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [ebp - 1]
push ebx
push eax
mov ecx, edi
mov byte [ebp - 1], 0x5c
call fcn.00417902
mov esi, eax
lea eax, [ebp - 0x10]
push esi
push ebx
push eax
mov ecx, edi
call fcn.004011fc
or eax, 0xffffffff
cmp esi, eax
je 0x419141
lea eax, [esi + 1]
mov ecx, dword [edi + 4]
mov esi, 0x7fffffff
and ecx, esi
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004011fc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push 0x2001f
push ebx
push str.REG_SZ
push ebx
call fcn.00401b80
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4191ab
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
and ecx, esi
push ecx
lea ecx, [ebp - 0x18]
push dword [eax]
push 3
push ebx
call fcn.00401b80
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4191ab
mov bl, 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x4191bb
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0xffffffffffffffff
lea eax, [ebp - 1]
push 0
push eax
mov ecx, esi
mov byte [ebp - 1], 0x5c
call fcn.00417902
mov edi, eax
lea eax, [ebp - 0xc]
push edi
push 0
push eax
mov ecx, esi
call fcn.004011fc
or eax, 0xffffffff
cmp edi, eax
je 0x4191f3
lea eax, [edi + 1]
mov ecx, dword [esi + 4]
and ecx, 0x7fffffff
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004011fc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0xc]
push eax
push 2
push 0
call fcn.00401b80
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41923f
lea ecx, [ebp - 0x14]
call fcn.00401b80
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
leave
ret
Function at 0x4533bf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ecx
push ebx
push edx
push esi
push edi
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov edx, esi
cmp byte [esi], 0
je 0x4533de
inc esi
jmp 0x4533d6
inc esi
sub esi, edx
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
add esi, dword [esi + 0x3c]
mov esi, dword [esi + 0x78]
add esi, dword [ebp + 8]
mov ebx, dword [esi + 0x20]
add ebx, dword [ebp + 8]
xor edx, edx
push esi
mov edi, dword [ebx]
add edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cld
repe cmpsb byte [esi], byte es:[edi]
jne 0x45340c
pop esi
jmp 0x453418
pop esi
add ebx, 4
inc edx
cmp edx, dword [esi + 0x18]
jb 0x4533f8
jmp 0x45343a
sub ebx, dword [esi + 0x20]
sub ebx, dword [ebp + 8]
shr ebx, 1
add ebx, dword [esi + 0x24]
add ebx, dword [ebp + 8]
movzx eax, word [ebx]
shl eax, 2
add eax, dword [esi + 0x1c]
add eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop edx
pop ebx
pop ecx
leave
ret 8

Function at 0x401430
Capabilities:
Resume thread

Disassembly:
enter 0x30, 0
mov eax, 0x403158
adc esi, ecx
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
pop eax
push eax
push dword [eax + 0x190]
push edx
push dword [eax + 8]
push dword [eax + 0x1f0]
call fcn.00401514
pop eax
push eax
mov ecx, 0xfffffffe
push ecx
call sub.KERNEL32.dll_ResumeThread
pop eax
add esp, 0x30
pop ebp
ret 0x10

Function at 0x4014a8
Capabilities:
Accept command line arguments

Disassembly:
enter 0x2c, 0
lea ebx, [0x40317c]
add edx, esi
call sub.KERNEL32.dll_GetCommandLineA
push ebx
push edi
push dword [ebx + 0x140]
push dword [ebx + 0xac]
call fcn.0040115c
pop ebx
call sub.KERNEL32.dll_GetACP
add esp, 0x2c
pop ebp
ret 0x10

Function at 0x40162c
Capabilities:
Accept command line arguments

Disassembly:
enter 0x50, 0
lea eax, [edi + 0x14]
cmp eax, 0xf529
add byte [ebp + 0x293d1447], cl
cmc
add byte [eax], al
jbe 0x40162f
push eax
call sub.KERNEL32.dll_GetCommandLineA
pop eax
push eax
push dword [eax + 0x48]
push ecx
push dword [eax + 0x194]
call fcn.004011a4
pop eax
push eax
push 0
call sub.KERNEL32.dll_HeapDestroy
pop eax
add esp, 0x50
pop ebp
ret 8

Function at 0x4017c4
Capabilities:
Resume thread

Disassembly:
enter 0x3c, 0
lea edi, [esi - 0x160]
and ecx, dword [edi - 0x70]
push edi
push ebx
push edx
call fcn.0040162c
pop edi
call sub.KERNEL32.dll_GetACP
push 0xfffffffffffffffe
call sub.KERNEL32.dll_ResumeThread
add esp, 0x3c
pop ebp
ret 0x10

Function at 0x401a1c
Capabilities:
Accept command line arguments

Disassembly:
enter 0x3c, 0
lea ecx, [esi + 0xb4]
add edx, dword [ebp - 0x24]
push ecx
call sub.KERNEL32.dll_GetCommandLineA
pop ecx
push ecx
push edx
push dword [ecx + 0x120]
push edi
push dword [ecx + 0x10c]
call fcn.004019b0
pop ecx
push ecx
call sub.KERNEL32.dll_GetSystemDefaultLCID
pop ecx
add esp, 0x3c
pop ebp
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x461ec5
Capabilities:
Encode data using xor

Disassembly:
inc esi
and ch, dl
stc
dec esi
inc esi
sub bl, 0xf9
nop
jmp 0x461e8c

Function at 0x4c7735
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d03a0
cmp edx, dword [eax]
je 0x4c7757
add eax, 8
inc ecx
cmp eax, 0x4d0430
jl 0x4c7748
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d03a0]
jne 0x4c7885
mov eax, dword [0x4d5de0]
cmp eax, 1
je 0x4c785f
test eax, eax
jne 0x4c7788
cmp dword [0x4d02cc], 1
je 0x4c785f
cmp edx, 0xfc
je 0x4c7885
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c77bf
lea eax, [ebp - 0x1a4]
push 0x4cca80
push eax
call fcn.004c8120
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c85b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c7802
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c85b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cca7c
push edi
call fcn.004ca480
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cca60
push eax
call fcn.004c8120
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c8130
lea eax, [ebp - 0xa0]
push 0x4cca5c
push eax
call fcn.004c8130
push dword [esi + 0x4d03a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c8130
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cca34
push eax
call fcn.004ca3f4
add esp, 0x2c
pop edi
jmp 0x4c7885
lea eax, [ebp + 8]
lea esi, [esi + 0x4d03a4]
push 0
push eax
push dword [esi]
call fcn.004c85b0
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]
pop esi
leave
ret
Function at 0x401340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
and eax, 1
jne 0x40136b
mov byte [0x413008], 1
test eax, eax
je 0x4013c6
mov byte [0x413008], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4013e0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
xor eax, eax
sub esp, 8
leave
ret 0x10
cmp byte [0x413008], 0
jne 0x401376
xor eax, eax
jmp 0x4013ad
Function at 0x409620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x409670
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x409696
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40973b
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x409710
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x409689
cmp eax, 0x40
je 0x409689
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x4096c0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x4096c0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00409620
lea esi, [esi]
lea edi, [edi]
Function at 0x4099b0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00409990
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x4099e6
jmp 0x409a36
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x4099e3
cmp dl, 0x20
je 0x4099e3
cmp dl, 0x22
je 0x409a80
cmp dl, 9
mov eax, edx
je 0x409a24
cmp dl, 0x20
je 0x409a28
test dl, dl
jne 0x409a1a
lea esi, [esi]
jmp 0x409a36
cmp al, 0x20
je 0x409a28
test al, al
je 0x409a36
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x409a12
cmp al, 0x20
jne 0x409a9a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x409a28
cmp al, 0x20
je 0x409a28
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x409a45
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401340
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x409a8e
cmp al, 0x22
jne 0x409a80
cmp al, 0x22
jne 0x409a24
add ebx, 1
movzx eax, byte [ebx]
jmp 0x409a24
cmp al, 9
je 0x409a28
nop
jmp 0x409a36