joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eaf0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x7c]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x40
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov edx, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
lea eax, [edx + eax]
movzx edx, word [eax + 6]
add eax, 0xf8
mov dword [ebp - 0x74], eax
lea eax, [edx - 1]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jb 0x40ec75
sub dword [ebp - 0x6c], 1
lea esi, [esi]
add dword [ebp - 0x6c], 1
imul eax, dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x74]
lea esi, [eax + edx]
lea edi, [ebp - 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
or edx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
test dword [ebp - 0x50], 0xffffffff
je 0x40ec69
mov ebx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0x2000000
je 0x40ebcc
push 0x4000
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 8]
jmp 0x40ec69
mov eax, ebx
and eax, 0x20000000
je 0x40ebde
mov dword [ebp - 0x68], 1
jmp 0x40ebe5
mov dword [ebp - 0x68], 0
mov eax, ebx
and eax, 0x40000000
je 0x40ebf7
mov dword [ebp - 0x64], 1
jmp 0x40ebfe
mov dword [ebp - 0x64], 0
mov eax, ebx
and eax, 0x80000000
je 0x40ec10
mov dword [ebp - 0x60], 1
jmp 0x40ec17
mov dword [ebp - 0x60], 0
mov eax, ebx
and eax, 0x4000000
je 0x40ec29
mov dword [ebp - 0x5c], 1
jmp 0x40ec30
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x68]
shl eax, 4
lea eax, [ebp + eax - 0x24]
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx*8]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 1
jne 0x40ec56
or dword [ebp - 0x54], 0x200
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 4]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
ja 0x40eb74
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
mov ecx, 0x5b886a29
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6d774376
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403ba0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x426010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea ecx, [esp + 0x14]
call fcn.00419d1a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0
push eax
call fcn.004038c0
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
push 0xffffffffffffffff
push 0
call fcn.00419d7a
push 0xffffffffffffffff
push 9
lea ecx, [esp + 0x1c]
call fcn.00419d7a
mov ecx, dword [esp + 0x18]
push 0
mov byte [ecx], 0x40
mov edx, dword [esp + 0x1c]
mov al, byte [esi]
mov byte [edx + 1], al
mov ecx, dword [esp + 0x1c]
mov al, byte [esi + 1]
mov byte [ecx + 2], al
mov edx, dword [esp + 0x1c]
mov al, byte [esi + 2]
mov byte [edx + 3], al
mov ecx, dword [esp + 0x1c]
mov al, byte [esi + 3]
mov byte [ecx + 4], al
mov edx, dword [esp + 0x1c]
mov al, byte [esi + 4]
mov byte [edx + 5], al
mov ecx, dword [esp + 0x1c]
mov al, byte [esi + 5]
mov byte [ecx + 6], al
mov edx, dword [esp + 0x1c]
mov al, byte [esi + 6]
mov byte [edx + 7], al
mov ecx, dword [esp + 0x1c]
mov al, byte [esi + 7]
mov byte [ecx + 8], al
mov ecx, 0x443d10
call fcn.00404e80
push 0
mov ecx, 0x443d10
call fcn.00404f00
lea edx, [esp + 0x14]
lea ecx, [esp + 4]
push edx
mov word [esp + 8], 0
call fcn.00406e2f
lea eax, [esp + 4]
mov ecx, 0x443d10
push eax
mov byte [esp + 0x34], 1
call fcn.00404f80
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00419d4d
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x410e4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x432e30
cmp edx, dword [eax]
je 0x410e6f
add eax, 8
inc ecx
cmp eax, 0x432ec0
jl 0x410e60
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x432e30]
jne 0x410f9d
mov eax, dword [0x445dbc]
cmp eax, 1
je 0x410f77
test eax, eax
jne 0x410ea0
cmp dword [0x432a04], 1
je 0x410f77
cmp edx, 0xfc
je 0x410f9d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410ed7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004110d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004111c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410f1a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004111c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a158
push edi
call fcn.00413980
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004110d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004110e0
lea eax, [ebp - 0xa0]
push 0x42a138
push eax
call fcn.004110e0
push dword [esi + 0x432e34]
lea eax, [ebp - 0xa0]
push eax
call fcn.004110e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004138e8
add esp, 0x2c
pop edi
jmp 0x410f9d
lea eax, [ebp + 8]
lea esi, [esi + 0x432e34]
push 0
push eax
push dword [esi]
call fcn.004111c0
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 0x418d40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040d210
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x418e0b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x418e0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x418dbe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418dc9
or bh, 8
and edi, 0x8000000
je 0x418de4
mov eax, dword [0x44755c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x418e0b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4191e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41920b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41922f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41924a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41eac8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41eb0a
call fcn.00422d6d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41eb0a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41eb01
xor eax, eax
jmp 0x41eb12
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041eb18
pop edi
pop esi
pop ebx
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x75906d44
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xd434c13
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401cb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x432865
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
lea ecx, [edi + 0x2f4]
mov dword [esp + 0x18], 7
call fcn.00427c45
lea ecx, [edi + 0x2f0]
mov byte [esp + 0x18], 6
call fcn.00427c45
lea ecx, [edi + 0x2ec]
mov byte [esp + 0x18], 5
call fcn.00427c45
lea ecx, [edi + 0x2e8]
mov byte [esp + 0x18], 4
call fcn.00427c45
lea ecx, [edi + 0x294]
mov byte [esp + 0x18], 3
call fcn.0042588d
lea ecx, [edi + 0x258]
mov byte [esp + 0x18], 2
call fcn.0042e2b9
lea esi, [edi + 0x1dc]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x70]
mov byte [esp + 0x18], 0xa
call fcn.00427c45
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 9
call fcn.00427c45
lea ecx, [esi + 0x68]
mov byte [esp + 0x18], 8
call fcn.00427c45
mov ecx, esi
mov byte [esp + 0x18], 1
call fcn.0042720e
lea esi, [edi + 0x5c]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x15c]
mov byte [esp + 0x18], 0x27
call fcn.00427c45
lea ecx, [esi + 0x158]
mov byte [esp + 0x18], 0x26
call fcn.00427c45
lea ecx, [esi + 0x154]
mov byte [esp + 0x18], 0x25
call fcn.00427c45
lea ecx, [esi + 0x150]
mov byte [esp + 0x18], 0x24
call fcn.00427c45
lea ecx, [esi + 0x14c]
mov byte [esp + 0x18], 0x23
call fcn.00427c45
lea ecx, [esi + 0x148]
mov byte [esp + 0x18], 0x22
call fcn.00427c45
lea ecx, [esi + 0x144]
mov byte [esp + 0x18], 0x21
call fcn.00427c45
lea ecx, [esi + 0x140]
mov byte [esp + 0x18], 0x20
call fcn.00427c45
lea ecx, [esi + 0x13c]
mov byte [esp + 0x18], 0x1f
call fcn.00427c45
lea ecx, [esi + 0x138]
mov byte [esp + 0x18], 0x1e
call fcn.00427c45
lea ecx, [esi + 0x134]
mov byte [esp + 0x18], 0x1d
call fcn.00427c45
lea ecx, [esi + 0x130]
mov byte [esp + 0x18], 0x1c
call fcn.00427c45
lea ecx, [esi + 0x12c]
mov byte [esp + 0x18], 0x1b
call fcn.00427c45
lea ecx, [esi + 0x128]
mov byte [esp + 0x18], 0x1a
call fcn.00427c45
lea ecx, [esi + 0x124]
mov byte [esp + 0x18], 0x19
call fcn.00427c45
lea ecx, [esi + 0x120]
mov byte [esp + 0x18], 0x18
call fcn.00427c45
lea ecx, [esi + 0x11c]
mov byte [esp + 0x18], 0x17
call fcn.00427c45
lea ecx, [esi + 0x118]
mov byte [esp + 0x18], 0x16
call fcn.00427c45
lea ecx, [esi + 0x114]
mov byte [esp + 0x18], 0x15
call fcn.00427c45
lea ecx, [esi + 0x110]
mov byte [esp + 0x18], 0x14
call fcn.00427c45
lea ecx, [esi + 0x10c]
mov byte [esp + 0x18], 0x13
call fcn.00427c45
lea ecx, [esi + 0x108]
mov byte [esp + 0x18], 0x12
call fcn.00427c45
lea ecx, [esi + 0x104]
mov byte [esp + 0x18], 0x11
call fcn.00427c45
lea ecx, [esi + 0x100]
mov byte [esp + 0x18], 0x10
call fcn.00427c45
lea ecx, [esi + 0xfc]
mov byte [esp + 0x18], 0xf
call fcn.00427c45
lea ecx, [esi + 0xf8]
mov byte [esp + 0x18], 0xe
call fcn.00427c45
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 0xd
call fcn.00427c45
lea ecx, [esi + 0xf0]
mov byte [esp + 0x18], 0xc
call fcn.00427c45
lea ecx, [esi + 0xec]
mov byte [esp + 0x18], 0xb
call fcn.00427c45
mov ecx, esi
mov byte [esp + 0x18], 0
call fcn.0042720e
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call fcn.0042720e
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x406a10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
jne 0x406a32
mov eax, 0x80
pop esi
add esp, 0x48
ret 0x14
push ebx
push ebp
lea eax, [esi + 0x2dc]
push edi
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ebp, [esi + 0x2d0]
push 0
push ebp
call edi
mov ebx, dword [esp + 0x5c]
lea edx, [esi + 0x2cc]
mov ecx, ebx
and ecx, 0xff
push ecx
push edx
call edi
mov ax, word [esp + 0x60]
xor ecx, ecx
mov cl, ah
mov byte [esp + 0x1b], al
mov ax, word [esp + 0x64]
xor edx, edx
mov dl, ah
mov byte [esp + 0x1d], al
push 0
push 0
lea eax, [esp + 0x20]
mov byte [esp + 0x22], cl
push 6
push eax
mov ecx, esi
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 6
mov byte [esp + 0x2c], dl
call fcn.00406780
xor ecx, ecx
mov byte [esp + 0x1f], al
mov cl, ah
mov eax, dword [esp + 0x18]
lea edx, [esi + 0x1cc]
mov dword [esi + 0x2d4], 8
mov byte [esp + 0x1e], cl
mov ecx, dword [esp + 0x1c]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov edi, dword [esi + 0x2d4]
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x406b6a
lea edx, [esp + 0x64]
push 0
push edx
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x406b14
mov eax, dword [esp + 0x64]
test eax, eax
jbe 0x406b14
push 5
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
lea eax, [esi + 0x74]
lea edx, [esp + 0x60]
push eax
push edx
lea eax, [esp + 0x20]
push edi
mov dword [esp + 0x6c], 0
push eax
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406b6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x406b6a
mov edx, dword [esi + 0x84]
push 0x14
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x60]
push 0
push eax
lea eax, [esi + 0x74]
push eax
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esi + 0xc8]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x406be9
mov cx, word [ebp]
lea edi, [esi + 0xcc]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.00406ec0
test eax, eax
je 0x406bdf
cmp byte [edi], bl
jne 0x406bdf
mov al, byte [edi + 1]
mov dl, al
and dl, 0x7f
cmp dl, 6
jne 0x406bdf
test al, 0x80
je 0x406bb7
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x10], eax
jmp 0x406bf1
mov eax, dword [esp + 0x68]
test eax, eax
je 0x406bca
xor ecx, ecx
mov ch, byte [edi + 2]
mov cl, byte [edi + 3]
mov word [eax], cx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x406bf1
xor edx, edx
mov dh, byte [edi + 4]
mov dl, byte [edi + 5]
mov word [eax], dx
jmp 0x406bf1
mov dword [esp + 0x10], 0x81
jmp 0x406bf1
mov dword [esp + 0x10], 0x82
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x48
ret 0x14
Function at 0x406f60
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov dword [esp + 4], esi
or ecx, 0xffffffff
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x406f7d
xor eax, eax
pop esi
add esp, 0xc
ret 8
mov eax, dword [esp + 0x14]
push ebx
push ebp
cmp eax, 1
push edi
lea ebp, [esi + 0xc]
jb 0x407083
cmp eax, 0x400
ja 0x407083
mov dword [ebp + 4], eax
mov edi, str..COM
xor eax, eax
lea ebx, [ebp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov edx, dword [ebp + 4]
push edx
call fcn.00418f05
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
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 eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x10]
test al, al
jne 0x407012
mov esi, dword [esp + 0x10]
mov byte [esp + 0x20], al
jmp 0x407088
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x14]
test al, al
jne 0x407028
mov esi, dword [esp + 0x10]
mov byte [esp + 0x20], al
jmp 0x407088
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x407058
lea esi, [ebp + 0x20]
push esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
cmp eax, 1
je 0x407047
xor bl, bl
jmp 0x407071
mov ecx, dword [esp + 0x24]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
cmp eax, 1
je 0x40705c
xor bl, bl
jmp 0x407071
push esi
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCommState]
cmp eax, 1
sete bl
test bl, bl
jne 0x407079
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 4]
mov esi, dword [esp + 0x10]
mov byte [esp + 0x20], bl
jmp 0x407088
mov byte [esp + 0x20], 0
mov edi, dword [esp + 0x20]
and edi, 0xff
je 0x4070f3
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4070d2
push 0x64
push 0x64
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4070d2
push 3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4070d2
push 0xa
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0
push 0
push esi
push 0x406530
push 0
push 0
mov dword [esi + 0x2d8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret 8