joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401005
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x401b30
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x20]
add esi, edi
add eax, edi
mov ecx, dword [esi + 0x1c]
add ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x24]
add ecx, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
jbe 0x401b86
mov ebp, eax
mov eax, dword [ebp]
add eax, edi
push eax
call fcn.004010aa
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, ecx
je 0x401b8e
mov eax, dword [esi + 0x18]
inc ebx
add ebp, 4
cmp ebx, eax
jb 0x401b65
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [edx + ebx*2]
mov eax, dword [eax + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401055
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
jmp 0x401870
sub esp, 8
mov eax, dword [esp + 0x14]
push esi
push edi
xor edi, edi
xor esi, esi
cmp eax, edi
mov dword [esp + 8], edi
jbe 0x4019b1
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebx, dword [0x47f55c]
lea eax, [esi + 1]
xor edx, edx
div ebx
xor eax, eax
mov esi, edx
xor edx, edx
mov al, byte [esi + ecx]
add eax, edi
div ebx
mov eax, dword [0x47f568]
mov ebx, dword [0x47f578]
mov ebp, ebx
mov edi, edx
mov edx, eax
imul edx, eax
sub ebp, edx
mov edx, dword [0x47f56c]
sub ebp, edx
sub ebp, 3
imul ebp, ebx
mov ebx, dword [0x47f574]
imul ebx, edx
inc ebx
imul ebx, dword [0x47f570]
add ebx, 2
imul ebx, edx
mov edx, 2
add ebx, esi
sub edx, eax
add ebx, ebp
imul edx, dword [0x47f574]
add edx, ebx
mov ebx, 1
mov al, byte [edx + ecx]
mov dl, byte [edi + ecx]
mov byte [esi + ecx], dl
mov byte [esp + 0x14], al
mov byte [edi + ecx], al
mov eax, dword [0x47f56c]
lea edx, [eax + eax]
mov eax, dword [0x47f568]
mov dword [esp + 0x1c], edx
mov edx, eax
imul edx, eax
sub ebx, edx
mov edx, dword [0x47f578]
imul ebx, eax
dec edx
mov ebp, dword [esp + 0x1c]
imul edx, dword [0x47f570]
add ebx, edx
mov edx, dword [0x47f574]
sub ebx, edx
add edx, eax
add ebx, ebp
mov ebp, dword [esp + 0x10]
lea eax, [edx + eax*2]
mov edx, dword [0x47f578]
add ebx, ebp
mov ebp, dword [esp + 0x20]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
shl eax, 1
add ebx, ebp
mov ebp, eax
xor eax, eax
and edx, 0xff
mov al, byte [esi + ecx]
add eax, edx
xor edx, edx
div dword [0x47f55c]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
imul eax, dword [0x47f570]
sub edx, ebp
mov ebp, ecx
add ebp, edx
mov dl, byte [eax + ebp]
mov al, byte [ebx]
xor al, dl
mov edx, dword [esp + 0x24]
mov byte [ebx], al
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x40188f
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x408b39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x48c2c8
cmp edx, dword [eax]
je 0x408b5b
add eax, 8
inc ecx
cmp eax, 0x48c358
jl 0x408b4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x48c2c8]
jne 0x408c89
mov eax, dword [0x48fe08]
cmp eax, 1
je 0x408c63
test eax, eax
jne 0x408b8c
cmp dword [0x48bde0], 1
je 0x408c63
cmp edx, 0xfc
je 0x408c89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408bc3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408d50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408e40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408c06
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408e40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43d40c
push edi
call fcn.0040b990
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408d50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408d60
lea eax, [ebp - 0xa0]
push 0x43d3ec
push eax
call fcn.00408d60
push dword [esi + 0x48c2cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408d60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b8fa
add esp, 0x2c
pop edi
jmp 0x408c89
lea eax, [ebp + 8]
lea esi, [esi + 0x48c2cc]
push 0
push eax
push dword [esi]
call fcn.00408e40
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 0x413660
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.004044b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41372b
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 0x41372b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4136de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4136e9
or bh, 8
and edi, 0x8000000
je 0x413704
mov eax, dword [0x491c1c]
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 0x41372b
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 0x413b00
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 0x413b2b
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 0x413b4f
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 0x413b6a
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 0x41fd1c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41fd54
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00423172
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042314a
jmp 0x41fd60
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x421b1e
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 0x421b60
call fcn.004347c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x421b60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x421b57
xor eax, eax
jmp 0x421b68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00421b6e
pop edi
pop esi
pop ebx
ret 4
Function at 0x15c3680
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f8000]
push edi
jmp 0x15c369a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x15c36a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15c3690
mov eax, 1
add ebx, ebx
jne 0x15c36b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x15c36c4
jne 0x15c36e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15c36e3
dec eax
add ebx, ebx
jne 0x15c36d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x15c36a8
add ebx, ebx
jne 0x15c36df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x15c3735
xor ecx, ecx
sub eax, 3
jb 0x15c36fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x15c376a
sar eax, 1
mov ebp, eax
jmp 0x15c3706
add ebx, ebx
jne 0x15c3706
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15c36d4
inc ecx
add ebx, ebx
jne 0x15c3714
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15c36d4
add ebx, ebx
jne 0x15c3721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x15c3716
jne 0x15c3732
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x15c3716
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x15c3754
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x15c3746
jmp 0x15c3696
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x15c3754
add edi, ecx
jmp 0x15c3696
pop esi
mov edi, esi
mov ecx, 0x44c04f
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x15c378f
cmp byte [edi], 0x82
jne 0x15c3774
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x15c3772
lea edi, [esi + 0x9e2000]
mov eax, dword [edi]
or eax, eax
je 0x15c37e0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa1d91c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa1d958]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x15c3795
mov ecx, edi
jns 0x15c37c4
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa1d95c]
or eax, eax
je 0x15c37da
mov dword [ebx], eax
add ebx, 4
jmp 0x15c37b2
call dword [esi + 0xa1d96c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x15c3811
cmp al, 0xef
ja 0x15c3804
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x15c37e6
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x15c37f3
mov ebp, dword [esi + 0xa1d960]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x15c3845
sub esp, 0xffffff80
jmp 0xfac3e7
Function at 0x401b50
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.0044cf50
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push edi
push eax
push str..PhysicalDrive_d
lea edx, [ebp - 0x10c]
xor esi, esi
call fcn.004024f0
add esp, 8
push esi
push esi
push 3
push esi
push 3
push esi
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x37cc], edi
cmp edi, 0xffffffff
je 0x401d8d
xor eax, eax
push 0x2710
push eax
lea edx, [ebp - 0x37bc]
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
push edx
mov dword [ebp - 0x37d0], esi
mov dword [ebp - 0x37c0], eax
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0xc
lea edx, [ebp - 0x37c8]
push edx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401d80
mov eax, dword [ebp - 0x37b0]
push esi
lea edi, [ebp - 0x8dc]
lea ecx, [ebp - 0x37bc]
call fcn.004019e0
mov eax, dword [ebp - 0x37ac]
push esi
lea edi, [ebp - 0xcc4]
lea ecx, [ebp - 0x37bc]
call fcn.004019e0
mov eax, dword [ebp - 0x37a8]
push esi
lea edi, [ebp - 0x10ac]
lea ecx, [ebp - 0x37bc]
call fcn.004019e0
mov eax, dword [ebp - 0x37a4]
push 1
lea edi, [ebp - 0x4f4]
lea ecx, [ebp - 0x37bc]
call fcn.004019e0
add esp, 0x10
cmp byte [0x45f978], 0
jne 0x401d37
movsx eax, byte [ebp - 0x4f4]
mov edi, dword [sym.imp.MSVCR100.dll_isalnum]
push eax
call edi
add esp, 4
test eax, eax
jne 0x401cb3
movsx ecx, byte [ebp - 0x4e1]
push ecx
call edi
add esp, 4
test eax, eax
je 0x401d37
xor eax, eax
jmp 0x401cc0
mov cl, byte [ebp + eax - 0x8dc]
mov byte [eax + 0x45f578], cl
inc eax
test cl, cl
jne 0x401cc0
xor eax, eax
jmp 0x401ce0
mov cl, byte [ebp + eax - 0xcc4]
mov byte [eax + 0x45f178], cl
inc eax
test cl, cl
jne 0x401ce0
xor eax, eax
jmp 0x401d00
mov cl, byte [ebp + eax - 0x4f4]
mov byte [eax + 0x45f978], cl
inc eax
test cl, cl
jne 0x401d00
xor eax, eax
jmp 0x401d20
mov cl, byte [ebp + eax - 0x10ac]
mov byte [eax + 0x45ed78], cl
inc eax
test cl, cl
jne 0x401d20
mov esi, 1
push 0x2710
lea edx, [ebp - 0x37bc]
push 0
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x37cc]
add esp, 0xc
push 0
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0
push 0
push 0x700a0
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [ebp - 0x37cc]
jmp 0x401d86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret 4
Function at 0x402440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x94
xor edi, edi
lea eax, [ebp - 0xa0]
push edi
push eax
mov esi, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x4024c3
call fcn.00401830
test eax, eax
jne 0x4024da
push esi
call fcn.00401f60
test eax, eax
jne 0x4024da
push esi
call fcn.00401b50
test eax, eax
jne 0x4024da
push esi
call fcn.004016c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test edi, edi
jne 0x4024d8
mov ecx, esi
call fcn.00401e00
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x4024c5
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
Function at 0x402510
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.004026d0
push 0x103
mov esi, eax
lea eax, [ebp - 0x13f]
push 0
push eax
mov byte [ebp - 0x140], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 0x140]
push ecx
push 0x104
push str.C:Windowsiconcache_kr.dll
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edi, dword [sym.imp.MSVCR100.dll_printf]
lea edx, [ebp - 0x140]
push edx
call edi
add esp, 4
push 0x45aa1c
call edi
add esp, 4
push 0x31
lea eax, [ebp - 0x37]
push 0
push eax
mov byte [ebp - 0x38], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
test esi, esi
je 0x4025c9
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4025dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
push str.OpenProcess___failed:__d
push ecx
call edi
lea edx, [ebp - 0x38]
add esp, 0xc
push edx
call edi
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x45aa3c
push str.kernel32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.LoadLibraryW
push str.kernel32.dll
mov dword [ebp - 0x144], eax
call edi
push eax
call ebx
push 0x45aa6c
push str.kernel32.dll
call edi
push eax
call ebx
push str.DbgUiRemoteBreakin
push str.ntdll.dll
call edi
push eax
call ebx
lea eax, [ebp - 0x140]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402633
push 4
push 0x3000
sub eax, edx
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
lea eax, [ebp - 0x140]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402658
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
sub eax, ecx
push eax
lea eax, [ebp - 0x140]
push eax
push edi
push esi
call ebx
lea eax, [ebp - 0x38]
lea ecx, [eax + 1]
jmp 0x402680
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402680
push 0
sub eax, ecx
push eax
lea ecx, [ebp - 0x38]
push ecx
push edi
push esi
call ebx
mov edx, dword [ebp - 0x144]
push 0
push 0
push edi
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
Function at 0x4026d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402716
push str.Error:_Unable_to_create_toolhelp_snapshot_
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402704
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x402740
mov ecx, str.lostsaga.exe
lea eax, [ebp - 0x10c]
jmp 0x402750
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402770
test dl, dl
je 0x40276c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402770
add eax, 2
add ecx, 2
test dl, dl
jne 0x402750
xor eax, eax
jmp 0x402775
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402797
lea ecx, [ebp - 0x130]
push ecx
push esi
call edi
test eax, eax
jne 0x402740
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop edi
xor ecx, ebp
pop esi
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d848
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
mov eax, dword [0x45e380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea ebx, [esi + 3]
lea eax, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00405180
push 0x38
lea eax, [ebp - 0x48]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], str.cmd.exe
jb 0x40283f
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
jmp 0x402845
lea edx, [ebp + 8]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x402883
cmp dword [ebp + 0x1c], 0x10
jb 0x40286f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
mov esi, dword [ebp - 0x10]
jb 0x4028bd
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4028d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x45e380]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40297d
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402940
test dl, dl
je 0x40293c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402940
add eax, 2
add ecx, 2
test dl, dl
jne 0x402920
xor eax, eax
jmp 0x402945
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40296b
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x40296b
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402914
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c8e4
mov esp, ebp
pop ebp
ret