joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446450
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x450210]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x450210]
xor eax, edx
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x446520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [ebx + 0x2d]
push edi
test al, al
je 0x4465a9
mov eax, dword [ebx + 0x3c]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x446551
cmp dword [ebx + 0x40], edi
jae 0x446551
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x44656a
lea eax, [edi + edi]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], edi
mov ecx, edi
mov edi, dword [ebx + 0x3c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
jbe 0x4465a4
mov eax, dword [ebx + 0x3c]
mov cl, byte [esi + eax]
lea eax, [ebx + 0x30]
push ecx
push eax
call fcn.004464d0
mov edx, dword [ebx + 0x3c]
add esp, 8
mov byte [esi + edx], al
inc esi
cmp esi, edi
jb 0x446586
mov esi, dword [ebx + 0x3c]
jmp 0x4465ac
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x4465f3
mov eax, dword [ebx + 0x24]
lea ecx, [eax + edi]
cmp ecx, dword [ebx + 0x28]
jb 0x4465ce
pop edi
mov dword [ebx + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov ecx, edi
lea edi, [eax + edx]
mov edx, ecx
mov eax, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x24]
pop edi
add ecx, eax
pop esi
mov dword [ebx + 0x24], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x446613
lea ecx, [ebp + 0xc]
push 0
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [ebx + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x448820
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x44882e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
not eax
jb 0x44892f
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4519e4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4519e4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4519e4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4519e4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4519e4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4519e4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4519e4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4519e4]
xor eax, edx
inc ecx
dec edi
jne 0x448847
pop edi
test esi, esi
je 0x448951
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4519e4]
xor eax, edx
inc ecx
dec esi
jne 0x448933
pop esi
pop ebx
not eax
pop ebp
ret

Function at 0x448960
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x4519e4]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x4519e4]
xor eax, edx
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x449370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov cl, byte [ebx]
mov eax, esi
imul eax, dword [ebp + 0x10]
test cl, cl
je 0x4493af
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4493a4
mov byte [ebx + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x4493c0
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
push edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div dword [ebp + 0xc]
mov dword [ebx + 0x1c], ecx
pop ebx
pop ebp
ret

Function at 0x44a410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
cmp dword [esi], 0
jne 0x44a4fa
cmp dword [esi + 4], 0xffffffff
jne 0x44a4fa
lea ebx, [esi + 0x140]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + esi + 0x13f]
cmp cl, 0x5c
je 0x44a48b
cmp cl, 0x2f
je 0x44a48b
mov edi, 0x452094
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp ebx, 1
jne 0x44a4b6
push 1
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x44a4b6
pop edi
pop esi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push ebx
push ecx
push edi
call fcn.00449130
add esp, 0x10
test eax, eax
jne 0x44a4d8
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.00449640
add esp, 4
mov dword [esi], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44aab0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x44aad7
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44aad7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [ebp + 0xc]
mov cl, byte [ebx]
test cl, cl
je 0x44abb6
mov eax, ebx
mov edx, ebx
cmp cl, 0x2f
je 0x44aaf2
cmp cl, 0x5c
jne 0x44aaf4
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x44aae8
cmp eax, ebx
push esi
je 0x44ab39
sub eax, ebx
mov esi, ebx
mov ecx, eax
lea edi, [ebp - 0x208]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov byte [ebp + eax - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push ecx
call fcn.0044aab0
mov edi, dword [ebp + 8]
add esp, 8
test edi, edi
mov byte [ebp - 0x104], 0
je 0x44ab67
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x44abb6
lea ecx, [ebp - 0x104]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401690
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [0x4450d4]
mov word [0x4473e4], ax
inc eax
mov dword [0x4450d4], eax
mov eax, dword [0x4450d0]
mov word [0x4473e6], ax
inc eax
push esi
push edi
mov dword [0x4450d0], eax
mov edi, ecx
mov byte [0x4473e0], 8
mov byte [0x4473e1], 0
mov word [0x4473e2], 0
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [eax + 0x4473ed], cl
inc eax
cmp eax, 0x20
jl 0x4016d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4473e9], eax
mov ecx, 0x4473e0
xor eax, eax
mov edx, 0x16
movzx esi, word [ecx]
add eax, esi
add ecx, 2
dec edx
jne 0x4016f8
mov dl, byte [ecx]
mov dword [esp + 8], 0
mov byte [esp + 8], dl
movzx ecx, word [esp + 8]
add eax, ecx
mov ecx, eax
sar ecx, 0x10
and eax, 0xffff
add ecx, eax
mov eax, dword [esp + 0x14]
push 0x10
push eax
mov edx, ecx
push 0
sar edx, 0x10
push 0x2d
add edx, ecx
mov ecx, dword [esp + 0x20]
push 0x4473e0
not edx
push ecx
mov word [0x4473e2], dx
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401762
push str.sendto__
mov ecx, edi
call fcn.004015d0
pop edi
mov eax, esi
pop esi
pop ecx
ret 8

Function at 0x401770
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x148
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x154]
mov esi, ecx
mov ecx, dword [esp + 0x158]
push ecx
push 0
push 0x141
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x4017d4
push str.recvfrom__
mov ecx, esi
call fcn.004015d0
mov ecx, dword [esp + 0x158]
mov dl, byte [esp + 0x10]
mov eax, dword [esp + 0x25]
mov byte [ecx], dl
pop esi
add esp, 0x148
ret 0xc
mov eax, dword [esp + 0x158]
mov cl, byte [esp + 0x10]
mov byte [eax], cl
mov eax, dword [esp + 0x25]
pop esi
add esp, 0x148
ret 0xc
Function at 0x4021b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4021c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4021dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4021fe
cmp esi, eax
jae 0x4021d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4021f0
cmp esi, eax
jae 0x4021d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4035a0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
push esi
push 4
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push str.Window_Name:
push 0x449a00
call fcn.00402dd0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403230
mov ecx, esi
call fcn.00402800
mov eax, 1
pop esi
ret 8
Function at 0x40eea8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40eefb
call fcn.00433884
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40eefb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40eef1
xor eax, eax
jmp 0x40f014
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40ef2b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40ef2b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40f011
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40ef58
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040fcc6
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40f011
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40efa1
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40efa1
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40ef9b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040fcc6
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40f001
and dword [ebp + 0xc], 0
jmp 0x40f001
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40f001
push 0xc
call fcn.0042d1ff
mov esi, eax
test esi, esi
pop ecx
je 0x40efe3
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40efe5
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40effc
push dword [ebp - 8]
call fcn.00428c82
jmp 0x40f001
call fcn.00428c59
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40ef66
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x417e43
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 0x417e60
call fcn.0041a251
mov dword [eax], 0x16
xor eax, eax
jmp 0x417eca
push esi
push 0x8c
push 1
call fcn.0041a2d6
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x417eb5
push esi
call fcn.0041ac74
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 0x417e93
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x417dae
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x417ec9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00417f87
test ebx, ebx
pop ecx
je 0x417ec7
push ebx
call fcn.0041a263
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x417ff8
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.004181f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x418093
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 [0x44947c]
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 0x418093
cmp eax, 1
je 0x4180b4
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 0x418093
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x418060
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41808f
xor eax, eax
inc eax
jmp 0x4180d3
cmp edi, eax
jae 0x418097
xor eax, eax
jmp 0x4180d3
cmp eax, esi
jae 0x41809e
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 [0x44947c]
jmp 0x4180b7
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 0x418424
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43bca8
call fcn.004192a8
mov edi, 0x94
mov eax, edi
call fcn.004181f0
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 [0x44947c], ecx
mov eax, dword [esi + 4]
mov dword [0x449488], eax
mov edx, dword [esi + 8]
mov dword [0x44948c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x449480], esi
cmp ecx, 2
je 0x418484
or esi, 0x8000
mov dword [0x449480], esi
shl eax, 8
add eax, edx
mov dword [0x449484], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4184bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4184bf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4184d7
cmp eax, 0x20b
je 0x4184c4
mov dword [ebp - 0x1c], esi
jmp 0x4184eb
cmp dword [ecx + 0x84], 0xe
jbe 0x4184bf
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4184e5
cmp dword [ecx + 0x74], 0xe
jbe 0x4184bf
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041bcaf
pop ecx
test eax, eax
jne 0x4184ff
push 0x1c
call fcn.00418400
pop ecx
call fcn.0041ae6e
test eax, eax
jne 0x418510
push 0x10
call fcn.00418400
pop ecx
call fcn.0041d4f0
mov dword [ebp - 4], esi
call fcn.0041d2f2
test eax, eax
jge 0x418529
push 0x1b
call fcn.004183db
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44af30], eax
call fcn.0041d1d0
mov dword [0x449468], eax
call fcn.0041d12e
test eax, eax
jge 0x41854f
push 8
call fcn.004183db
pop ecx
call fcn.0041cefb
test eax, eax
jge 0x418560
push 9
call fcn.004183db
pop ecx
push 1
call fcn.00418ee0
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x418576
push eax
call fcn.004183db
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041ce9e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x418597
movzx eax, word [ebp - 0x40]
jmp 0x41859a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00427b37
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4185b8
push edi
call fcn.0041900d
call fcn.0041902f
jmp 0x4185ea
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004192e3
ret
Function at 0x418f4a
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43bd08
call fcn.004192a8
push 8
call fcn.0041bc64
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4494bc], esi
jne 0x418f7e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4494b8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4494b4], al
cmp dword [ebp + 0xc], edi
jne 0x418fc8
cmp dword [0x44af28], edi
je 0x418fb8
mov eax, dword [0x44af24]
sub eax, 4
mov dword [0x44af24], eax
cmp eax, dword [0x44af28]
jb 0x418fb8
mov eax, dword [eax]
cmp eax, edi
je 0x418f99
call eax
jmp 0x418f99
push 0x4450b4
mov eax, 0x4450ac
call fcn.00418ec8
pop ecx
push 0x4450c0
mov eax, 0x4450b8
call fcn.00418ec8
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x418ff9
cmp dword [ebp + 0x10], edi
jne 0x419007
mov dword [0x4494bc], esi
push dword [ebp + 8]
call fcn.00418e86
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x419006
push 8
call fcn.0041bbaf
pop ecx
ret
call fcn.004192e3
ret
Function at 0x41c83e
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 0x41c86c
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 0x41c873
cmp ebx, dword [eax + 4]
jae 0x41c873
xor eax, eax
jmp 0x41ca63
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41c884
xor eax, eax
inc eax
jmp 0x41ca62
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41c89a
cmp ecx, edx
jae 0x41c9df
cmp dword [eax + 4], 0
je 0x41c8a3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41c88b
cmp dword [ebp + 8], 0
je 0x41c8c5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41c9df
cmp eax, esi
jae 0x41c9df
mov eax, dword [0x449638]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41c8ea
cmp dword [esi*4 + 0x449640], edi
je 0x41c9e3
inc esi
cmp esi, eax
jl 0x41c8d8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ca5f
cmp dword [ebp - 8], 0x1000000
jne 0x41ca5f
test byte [ebp - 0xc], 0xcc
je 0x41c968
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41ca5f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41ca5f
cmp word [eax + 0x18], 0x10b
jne 0x41ca5f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41ca5f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41c968
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41c968
test byte [ecx + 0x27], 0x80
jne 0x41c9df
push 1
push 0x449680
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41c87c
mov ecx, dword [0x449638]
test ecx, ecx
mov edx, ecx
jle 0x41c99c
lea eax, [ecx*4 + 0x44963c]
cmp dword [eax], edi
je 0x41c99c
dec edx
sub eax, 4
test edx, edx
jg 0x41c990
test edx, edx
jne 0x41c9cd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41c9a9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41c9c1
lea eax, [edx*4 + 0x449640]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41c9af
cmp ecx, 0x10
jge 0x41c9cd
inc ecx
mov dword [0x449638], ecx
push 0
push 0x449680
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41c87c
xor eax, eax
jmp 0x41ca62
test esi, esi
jle 0x41c87c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x449680
call ebx
test eax, eax
jne 0x41c87c
cmp dword [esi*4 + 0x449640], edi
je 0x41ca39
mov eax, dword [0x449638]
lea esi, [eax - 1]
test esi, esi
jl 0x41ca27
cmp dword [esi*4 + 0x449640], edi
je 0x41ca23
dec esi
jns 0x41ca17
test esi, esi
jge 0x41ca37
cmp eax, 0x10
jge 0x41ca32
inc eax
mov dword [0x449638], eax
lea esi, [eax - 1]
jmp 0x41ca39
je 0x41ca51
xor ecx, ecx
test esi, esi
jl 0x41ca51
lea eax, [ecx*4 + 0x449640]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41ca3f
push 0
push 0x449680
call ebx
jmp 0x41c87c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret