joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401541
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x22c]
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.00409b24
sub esp, 0x10
test eax, eax
jne 0x4016a1
test byte [ebp + 0x10], 2
mov eax, dword [ebp - 0x22c]
je 0x4015d7
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x228], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x228]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x222]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x401642
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015ff
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401541
sub esp, 0xc
test eax, eax
jne 0x401659
mov dword [esp + 0xc], 0x105
lea edx, [ebp - 0x222]
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401659
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015e5
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4016a1
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov dword [esp], 3
call fcn.0040a444
push edx
test eax, eax
jne 0x40168b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ecx
push ecx
jmp 0x4016a1
mov dword [esp + 8], edi
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x40466d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test eax, eax
js 0x4046ad
add eax, dword [0x41d178]
xor edx, edx
mov dword [0x431238], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [0x40e010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.0040449b
push edi
test eax, eax
mov edi, eax
js 0x4047c1
mov dword [esp + 8], 4
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [0x40e010]
mov dword [esp], eax
call fcn.00409953
sub esp, 0xc
test eax, eax
jne 0x4046f1
mov edi, 0xfffffffd
jmp 0x4047c1
mov eax, dword [ebp - 0x1c]
add dword [0x431238], 4
mov dword [esp], eax
call fcn.0040449b
test eax, eax
mov edi, eax
push ecx
js 0x4047c1
test ebx, ebx
mov eax, dword [ebp - 0x1c]
jne 0x40477e
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4047c1
mov edx, 0x4000
cmp eax, edx
cmovg eax, edx
mov dword [ebp - 0x20], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42d1a0
mov eax, dword [0x40e010]
mov dword [esp], eax
call fcn.00409953
sub esp, 0xc
test eax, eax
je 0x4046e7
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x42d1a0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00409997
sub esp, 0xc
test eax, eax
je 0x4047bc
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
add dword [0x431238], eax
add edi, eax
jmp 0x404715
mov dword [esp + 4], ebx
xor edx, edx
cmp eax, esi
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x20]
cmovg eax, esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [0x40e010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4046e7
mov edi, dword [ebp - 0x20]
add dword [0x431238], edi
jmp 0x4047c1
mov edi, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x408674
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408411
mov edx, ebx
mov esi, eax
shl eax, 2
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x1c]
sub edi, eax
cmp edi, eax
jge 0x4086e6
mov edi, dword [edx]
add edx, 0x10
mov ecx, dword [ebx + eax*4]
mov dword [edx - 0x10], ecx
mov dword [ebx + eax*4], edi
mov ecx, dword [ebx + eax*4 + 4]
mov edi, dword [edx - 0xc]
mov dword [edx - 0xc], ecx
mov dword [ebx + eax*4 + 4], edi
mov ecx, dword [ebx + eax*4 + 8]
mov edi, dword [edx - 8]
mov dword [edx - 8], ecx
mov dword [ebx + eax*4 + 8], edi
mov ecx, dword [ebx + eax*4 + 0xc]
mov edi, dword [edx - 4]
mov dword [edx - 4], ecx
mov dword [ebx + eax*4 + 0xc], edi
sub eax, 4
jmp 0x4086a0
mov edx, 1
cmp edx, esi
jge 0x40885f
mov eax, dword [ebx + 0x10]
add ebx, 0x10
inc edx
mov ecx, eax
movzx edi, al
shr ecx, 0x18
movzx edi, byte [edi*4 + 0x412420]
movzx ecx, byte [ecx*4 + 0x412420]
mov ecx, dword [ecx*4 + 0x411820]
xor ecx, dword [edi*4 + 0x410c20]
mov edi, ecx
mov ecx, eax
shr ecx, 0x10
movzx eax, ah
movzx ecx, cl
movzx eax, byte [eax*4 + 0x412420]
movzx ecx, byte [ecx*4 + 0x412420]
xor edi, dword [ecx*4 + 0x411420]
mov ecx, edi
xor ecx, dword [eax*4 + 0x411020]
mov eax, dword [ebx + 4]
mov dword [ebx], ecx
mov ecx, eax
movzx edi, al
shr ecx, 0x18
movzx edi, byte [edi*4 + 0x412420]
movzx ecx, byte [ecx*4 + 0x412420]
mov ecx, dword [ecx*4 + 0x411820]
xor ecx, dword [edi*4 + 0x410c20]
mov edi, ecx
mov ecx, eax
shr ecx, 0x10
movzx eax, ah
movzx ecx, cl
movzx eax, byte [eax*4 + 0x412420]
movzx ecx, byte [ecx*4 + 0x412420]
xor edi, dword [ecx*4 + 0x411420]
mov ecx, edi
xor ecx, dword [eax*4 + 0x411020]
mov eax, dword [ebx + 8]
mov dword [ebx + 4], ecx
mov ecx, eax
movzx edi, al
shr ecx, 0x18
movzx edi, byte [edi*4 + 0x412420]
movzx ecx, byte [ecx*4 + 0x412420]
mov ecx, dword [ecx*4 + 0x411820]
xor ecx, dword [edi*4 + 0x410c20]
mov edi, ecx
mov ecx, eax
shr ecx, 0x10
movzx eax, ah
movzx ecx, cl
movzx eax, byte [eax*4 + 0x412420]
movzx ecx, byte [ecx*4 + 0x412420]
xor edi, dword [ecx*4 + 0x411420]
mov ecx, edi
xor ecx, dword [eax*4 + 0x411020]
mov eax, dword [ebx + 0xc]
mov dword [ebx + 8], ecx
mov ecx, eax
movzx edi, al
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x412420]
movzx edi, byte [edi*4 + 0x412420]
mov ecx, dword [ecx*4 + 0x411820]
xor ecx, dword [edi*4 + 0x410c20]
mov edi, ecx
mov ecx, eax
shr ecx, 0x10
movzx eax, ah
movzx ecx, cl
movzx eax, byte [eax*4 + 0x412420]
movzx ecx, byte [ecx*4 + 0x412420]
xor edi, dword [ecx*4 + 0x411420]
mov ecx, edi
xor ecx, dword [eax*4 + 0x411020]
mov dword [ebx + 0xc], ecx
jmp 0x4086eb
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40951a
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
xor ecx, ecx
lea eax, [ebp - 0x18]
sub esp, 0x48
mov dword [0x4501e0], 0x44
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x4501e0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x409586
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x40958a
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], edx
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x4097fc
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
mov ebx, eax
inc eax
je 0x40982a
mov dword [esp], esi
mov eax, ebx
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x409835
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.004097fc
push ecx
cmp eax, 0xffffffff
je 0x40988a
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x409882
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edx
jne 0x40987b
test byte [ebp + 0xc], 4
jne 0x40988a
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x40988a
mov eax, 1
jmp 0x40988c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40985f
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

Function at 0x409895
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x4098b0
xor eax, eax
mov dword [esp + 0x14], eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc
Function at 0x4098e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x64
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], 0x73006e
mov dword [ebp - 0xc], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
div ecx
xor eax, eax
add word [ebp - 0xc], dx
mov dword [esp + 8], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
jne 0x409948
dec esi
jne 0x4098f9
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x409953
Capabilities:
Read file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x409990
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x409997
Capabilities:
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x4099d4
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x409bd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x14]
sub esp, 0x30
mov dword [ebp - 0x10], 0x2000
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebp + 0x18], 0
setne al
shl eax, 8
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00409b24
sub esp, 0x10
test eax, eax
je 0x409c26
mov word [ebx], 0
jmp 0x409c79
mov dword [esp + 0x10], ebx
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
push edx
mov word [ebx + 0x1ffe], 0
jne 0x409c1f
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x409c1f
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x40a304
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x44c1e0
mov dword [esp + 4], eax
call fcn.00409d52
push ebx
push ebx
mov dword [esp], 0x44c1e0
call fcn.004096e2
push edx
test eax, eax
jne 0x40a335
xor eax, eax
jmp 0x40a3af
mov dword [esp], eax
mov ebx, eax
call fcn.00409e91
push ecx
test byte [0x41d12c], 0x80
je 0x40a355
movzx eax, word [ebx]
test eax, eax
je 0x40a331
cmp eax, 0x5c
je 0x40a331
sub ebx, 0x44c1e0
sar ebx, 1
mov dword [esp], 0x44c1e0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
cmp ebx, eax
mov dword [esp], 0x44c1e0
jge 0x40a394
call fcn.0040a2cc
push edx
test eax, eax
je 0x40a385
test byte [eax], 0x10
je 0x40a331
mov dword [esp], 0x44c1e0
call fcn.00409671
push eax
jmp 0x40a35d
call fcn.00409d86
push eax
mov dword [esp], 0x44c1e0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
inc eax
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x40a3b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x40a3f4
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x40a3fb
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x410460
add eax, ebx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
Function at 0x40ae20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x450244], 0
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
jne 0x40ae5d
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x40ae48
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x40ae3a
mov dword [ecx*4 + 0x450240], eax
inc ecx
cmp ecx, 0x100
jne 0x40ae33
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x40ae7f
mov cl, byte [edx]
inc edx
xor cl, al
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x450240]
jmp 0x40ae67
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x30001e2f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x30001608
push 0x300015ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30001e64
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x300015e8
push ebx
call edi
test esi, esi
mov dword [0x300015e8], esi
jne 0x30001ec8
mov dword [0x300015e8], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x30004134], 0x44bf19b1
pop ebx
leave
ret

Function at 0x30001ee3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x300015e8]
jne 0x30002445
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30004338], eax
mov dword [0x30004334], ecx
mov dword [0x30004330], edx
mov dword [0x3000432c], ebx
mov dword [0x30004328], esi
mov dword [0x30004324], edi
mov word [0x30004350], ss
mov word [0x30004344], cs
mov word [0x30004320], ds
mov word [0x3000431c], es
mov word [0x30004318], fs
mov word [0x30004314], gs
pushfd
pop dword [0x30004348]
mov eax, dword [ebp]
mov dword [0x3000433c], eax
mov eax, dword [ebp + 4]
mov dword [0x30004340], eax
lea eax, [ebp + 8]
mov dword [0x3000434c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30004288], 0x10001
mov eax, dword [0x30004340]
mov dword [0x3000423c], eax
mov dword [0x30004230], 0xc0000409
mov dword [0x30004234], 1
mov eax, dword [0x300015e8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30004134]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30004280], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30001624
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30004280], 0
jne 0x30002535
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x300021fd
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x30002ff0
call fcn.30002680
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x30004584
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x30001fa0
cmp eax, esi
jne 0x30001f93
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30001fa3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30001f7a
xor esi, esi
inc esi
mov eax, dword [0x30004580]
cmp eax, esi
jne 0x30001fb6
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30001fe5
mov eax, dword [0x30004580]
test eax, eax
jne 0x30001fdf
mov dword [0x30004580], esi
push 0x30001210
push 0x30001208
call fcn.30096000
pop ecx
pop ecx
test eax, eax
je 0x30001fe5
jmp 0x30002109
mov dword [0x30004228], esi
mov eax, dword [0x30004580]
cmp eax, esi
jne 0x30002009
push 0x30001204
push 0x300011f4
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30004580], 2
cmp dword [ebp - 0x20], ebx
jne 0x30002016
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30004590], ebx
je 0x30002037
push 0x30004590
call fcn.30002608
pop ecx
test eax, eax
je 0x30002037
push ebx
push 2
push ebx
call dword [0x30004590]
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x30002109
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x300020a1
cmp cx, bx
je 0x3000205c
cmp dword [ebp - 0x1c], ebx
jne 0x300020a1
movzx ecx, word [eax]
cmp cx, bx
je 0x30002071
cmp cx, 0x20
ja 0x30002071
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x3000205c
test byte [ebp - 0x40], 1
je 0x3000207d
movzx ecx, word [ebp - 0x3c]
jmp 0x30002080
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x30000000
call main
mov dword [0x30004224], eax
cmp dword [0x30004218], ebx
jne 0x300020e6
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp cx, 0x22
jne 0x300020b2
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x30002046
cmp dword [0x30004228], ebx
jne 0x300020f4
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30004224]
jmp 0x30002115
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300026c5
ret
call fcn.30001e2f
jmp 0x30001f3d
Function at 0x4010f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x44]
mov dword [esi], 0x426280
test al, al
je 0x40114c
mov eax, dword [esi + 0x18]
push eax
call dword [0x4312e8]
mov ecx, dword [esi + 0x18]
push ecx
call dword [0x4312e4]
mov ebp, dword [0x431304]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x401125
mov ecx, dword [esi + 0x18]
push ecx
call dword [0x4312dc]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x401186
mov eax, dword [esi + 0x40]
push eax
call dword [0x4312d8]
mov ebp, dword [0x4312d4]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
push 0x20
push ecx
push edx
call ebp
add edi, 4
dec ebx
jne 0x40116b
mov eax, dword [esi + 0x40]
push eax
call dword [0x43130c]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi - 0x28]
push ecx
call fcn.0041ab9c
mov edx, dword [edi]
push edx
call fcn.0041ab9c
mov eax, dword [edi - 0x20]
push eax
call fcn.0041ab9c
mov ecx, dword [edi + 8]
push ecx
call fcn.0041ab9c
add esp, 0x10
add edi, 4
dec ebx
jne 0x40118e
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4012c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
call dword [0x4312fc]
test eax, eax
jne 0x4012d5
pop edi
xor al, al
pop ebx
pop ecx
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 4
push edi
push 0x401430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 8]
push 0x20000
push 0
lea edx, [edi + 0x46]
push ecx
lea ebx, [edi + 0x18]
push edx
push 0xffff
push ebx
mov dword [edi + 0x2c], eax
call dword [0x431300]
test eax, eax
je 0x401320
pop edi
xor al, al
pop ebx
pop ecx
ret
push ebp
push esi
lea esi, [edi + 0x30]
mov ebp, 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [0x431308]
add esi, 4
dec ebp
jne 0x40132a
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx]
push 0x20
mov eax, dword [edi + edx*4 + 0x30]
push eax
push ecx
call dword [0x4312f4]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx]
push eax
call dword [0x4312f0]
mov al, 1
pop esi
mov byte [edi + 0x44], al
pop ebp
pop edi
pop ebx
pop ecx
ret