joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459858
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45986f
add esp, 0xfffffff0
call fcn.00403658
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ede0
mov eax, dword [0x472380]
cmp word [eax + 2], 0
jne 0x459897
mov eax, dword [0x472380]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045af48
mov eax, dword [0x472454]
cmp word [eax + 2], 0
jne 0x4598b1
mov eax, dword [0x472454]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b140
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4161c8]
call fcn.00403304
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4161c8]
call fcn.00403304
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42132c]
call fcn.004286dc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459a38
mov eax, dword [0x472270]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428aac
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b6f0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x472270]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cd78
test eax, eax
je 0x4599a6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f1c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cda0
test eax, eax
je 0x4599ba
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404458
mov eax, dword [0x47211c]
cmp byte [eax], 0
jne 0x4599ee
mov eax, ebx
call fcn.00459b60
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045b8cc
mov eax, ebx
call fcn.0045c290
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459a2e
call fcn.004036b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459de0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x473bec]
cmp dword [eax + 0x30], 0
je 0x459e8a
cmp dword [ebx + 0x94], 0
jne 0x459e84
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459d70
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459e84
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x459e4a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459e84
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418810
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459e59
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a9ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45aa21
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042d8
jmp 0x45aa2e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040423c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45baa8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45bae9
mov eax, esi
call fcn.00442248
test al, al
je 0x45bae9
mov eax, dword [ebx + 0x84]
call fcn.00441f44
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45bae9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441f44
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45c360
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
xor eax, eax
push ebp
push 0x45c417
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004044a8
mov dword [ebp - 8], eax
xor esi, esi
xor edi, edi
lea eax, [ebp - 0xc]
call fcn.004041e8
cmp esi, dword [ebp - 8]
jge 0x45c3f4
inc esi
mov eax, dword [ebp - 4]
mov bl, byte [eax + esi - 1]
cmp bl, 0x5c
je 0x45c3b8
cmp bl, 0x2f
jne 0x45c3da
inc edi
cmp edi, 1
jle 0x45c3da
mov eax, dword [ebp - 0xc]
call fcn.00408cb8
test al, al
jne 0x45c3da
push 0
mov eax, dword [ebp - 0xc]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004043d0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004044b0
cmp esi, dword [ebp - 8]
jl 0x45c3a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c41e
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040420c
lea eax, [ebp - 4]
call fcn.004041e8
ret
Function at 0x45c6b4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
mov eax, dword [ebp - 8]
call fcn.00404698
xor eax, eax
push ebp
push 0x45c82c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x45c71f
mov ebx, dword [ebp - 0x10]
jmp 0x45c811
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov edi, eax
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
mov eax, dword [ebp - 8]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
xor ebx, ebx
cmp edi, ebx
jbe 0x45c7ff
lea eax, [ebx + 4]
cmp edi, eax
jb 0x45c7ff
push 0
push 0
push ebx
push esi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call sub.kernel32.dll_ReadFile
add ebx, 5
mov eax, dword [ebp - 0x18]
add eax, ebx
cmp edi, eax
jb 0x45c7f0
push 0
push 0
push ebx
push esi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x473c74]
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
add dword [eax], edx
add ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0xffffffff
jmp 0x45c7f7
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x45c7ff
cmp edi, ebx
ja 0x45c756
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c833
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040420c
ret
Function at 0x46edd0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
mov eax, dword [ebp - 8]
call fcn.00404698
xor eax, eax
push ebp
push 0x46f00c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 4]
call fcn.00408ca8
test al, al
jne 0x46ee4c
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
mov eax, dword [ebp - 4]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x10], eax
push 2
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [0x4723f8]
cmp dword [eax], 0
jne 0x46efcd
mov eax, dword [0x4721a8]
push dword [eax]
push 0x46f024
mov eax, dword [0x4723a0]
push dword [eax]
push 0x46f044
push dword [ebp - 8]
push 0x46f058
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xa0]
call fcn.0040888c
push dword [ebp - 0xa0]
lea eax, [ebp - 0x18]
mov edx, 7
call fcn.00404568
push 1
push 0x3c
mov eax, dword [ebp + 0xc]
push eax
push esi
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.004044a8
push eax
mov eax, dword [ebp - 0x18]
call fcn.004046a8
push eax
mov eax, dword [0x472378]
mov eax, dword [eax]
call eax
mov edi, eax
cmp edi, 0x21
jae 0x46ef1d
push 0x3e8
call sub.kernel32.dll_Sleep_1
jmp 0x46ee8c
mov bl, byte [esi]
lea eax, [ebp - 0x59]
xor ecx, ecx
mov edx, 0x40
call fcn.00402d48
lea edx, [esi + 1]
lea eax, [ebp - 0x59]
mov ecx, 0x20
call fcn.00407064
cmp bl, 0x31
jne 0x46efaa
lea eax, [ebp - 0x9a]
xor ecx, ecx
mov edx, 0x40
call fcn.00402d48
sub edi, 0x21
lea eax, [ebp - 0x9a]
push eax
push edi
lea eax, [esi + 0x21]
push eax
mov eax, dword [0x472180]
mov eax, dword [eax]
call eax
lea edx, [ebp - 0x59]
lea eax, [ebp - 0x9a]
mov ecx, 0x20
call fcn.004084e0
test eax, eax
je 0x46ef93
push 0x3e8
call sub.kernel32.dll_Sleep_1
jmp 0x46ee8c
push 0
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [esi + 0x21]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
add dword [ebp - 0x10], edi
cmp bl, 0x32
jne 0x46ee8c
lea edx, [ebp - 0x59]
mov eax, 0x46f068
mov ecx, 0x20
call fcn.004084e0
test eax, eax
jne 0x46ee8c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f013
lea eax, [ebp - 0xa0]
call fcn.004041e8
lea eax, [ebp - 0x18]
call fcn.004041e8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040420c
ret
Function at 0x401a00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401a60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401b4d
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401a94
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401b46
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401a80
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401b8a
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b6a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401b3f
sub eax, 0x40
and eax, 0xffffffbf
je 0x401b3f
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401b54
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401a9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x402050
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4020a5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40209e
test esi, esi
je 0x40209e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402080
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4022c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4022f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4022ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4022e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401040
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x40f29f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x28]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x20], 3
call fcn.0040e27a
mov eax, dword [esp + 0x28]
cmp dword [eax - 8], esi
jle 0x4010e5
push ebx
mov ebx, dword [esp + 0x30]
mov al, byte [esi + eax]
xor ecx, ecx
mov cl, bh
xor cl, al
push ecx
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::SetAt
mov edx, dword [esp + 0xc]
movzx ax, byte [esi + edx]
add eax, ebx
mov ebx, 0x58bf
lea ecx, [eax + eax*2]
shl ecx, 4
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x2c]
sub ebx, edx
inc esi
cmp esi, dword [eax - 8]
jl 0x4010a0
pop ebx
lea eax, [esp + 8]
lea ecx, [esp + 0x28]
push eax
call fcn.0040e27a
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x28]
xor edi, edi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x401179
mov cl, byte [edi + eax]
push 0x414040
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x10]
mov esi, dword [esp + 0x30]
and esi, 0xff
call sub.MFC42.DLL_CString::operator_1
mov eax, 0x4ec4ec4f
lea ecx, [esp + 0xc]
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
add dl, 0x41
push edx
push 0
call sub.MFC42.DLL_CString::SetAt
mov eax, esi
mov ecx, 0x1a
cdq
idiv ecx
lea ecx, [esp + 0xc]
add dl, 0x41
push edx
push 1
call sub.MFC42.DLL_CString::SetAt
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x28]
inc edi
cmp edi, dword [eax - 8]
jl 0x401109
mov esi, dword [esp + 0x24]
lea eax, [esp + 8]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4027c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x420]
mov dword [esp + 0x18], ebx
lea ebp, [esp + 0x1c]
push 0
mov byte [ebx + edi], bl
call esi
mov eax, ebx
xor edx, edx
div dword [esp + 0x428]
mov ecx, dword [esp + 0x424]
xor eax, eax
push 0
mov al, byte [edx + ecx]
mov dword [ebp], eax
call esi
push 0
call esi
inc ebx
add ebp, 4
cmp ebx, 0x100
jl 0x4027f2
push 0
call esi
push 0
call esi
lea edx, [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x14]
xor eax, eax
mov al, byte [edi + ebp]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
add eax, edx
add eax, ecx
mov ebx, eax
and ebx, 0x800000ff
jns 0x40285e
dec ebx
or ebx, 0xffffff00
inc ebx
push 0
mov dword [esp + 0x1c], ebx
call esi
push 0
call esi
push 0
call esi
mov dl, byte [edi + ebp]
mov al, byte [ebx + edi]
push 0
mov byte [esp + 0x17], dl
mov byte [edi + ebp], al
call esi
mov cl, byte [esp + 0x13]
inc ebp
mov byte [ebx + edi], cl
mov ecx, dword [esp + 0x14]
add ecx, 4
cmp ebp, 0x100
mov dword [esp + 0x14], ecx
jl 0x402839
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret

Function at 0x4028b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
xor ebx, ebx
call edi
push ebp
call edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], ebp
cmp eax, ebp
jbe 0x402966
push esi
mov esi, dword [esp + 0x18]
inc ebx
and ebx, 0x800000ff
jns 0x4028ea
dec ebx
or ebx, 0xffffff00
inc ebx
push 0
call edi
push 0
call edi
mov al, byte [ebx + esi]
mov ecx, eax
and ecx, 0xff
add ebp, ecx
and ebp, 0x800000ff
jns 0x40290f
dec ebp
or ebp, 0xffffff00
inc ebp
mov dl, byte [esi + ebp]
push 0
mov byte [ebx + esi], dl
mov byte [esi + ebp], al
call edi
xor eax, eax
xor ecx, ecx
mov al, byte [ebx + esi]
mov cl, byte [esi + ebp]
add eax, ecx
and eax, 0x800000ff
jns 0x402936
dec eax
or eax, 0xffffff00
inc eax
push 0
mov dword [esp + 0x1c], eax
call edi
push 0
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dl, byte [edx + esi]
xor byte [eax + ecx], dl
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4028d9
pop esi
push 0
call edi
push 0
call edi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402b50
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
sub esp, 0x44
mov dl, byte [esp + 0x48]
mov cl, 0x41
mov byte [esp], cl
mov byte [esp + 1], 0x42
mov byte [esp + 2], 0x43
mov byte [esp + 3], 0x44
mov byte [esp + 4], 0x45
mov byte [esp + 5], 0x46
mov byte [esp + 6], 0x47
mov byte [esp + 7], 0x48
mov byte [esp + 8], 0x49
mov byte [esp + 9], 0x4a
mov byte [esp + 0xa], 0x4b
mov byte [esp + 0xb], 0x4c
mov byte [esp + 0xc], 0x4d
mov byte [esp + 0xd], 0x4e
mov byte [esp + 0xe], 0x4f
mov byte [esp + 0xf], 0x50
mov byte [esp + 0x10], 0x51
mov byte [esp + 0x11], 0x52
mov byte [esp + 0x12], 0x53
mov byte [esp + 0x13], 0x54
mov byte [esp + 0x14], 0x55
mov byte [esp + 0x15], 0x56
mov byte [esp + 0x16], 0x57
mov byte [esp + 0x17], 0x58
mov byte [esp + 0x18], 0x59
mov byte [esp + 0x19], 0x5a
mov byte [esp + 0x1a], 0x61
mov byte [esp + 0x1b], 0x62
mov byte [esp + 0x1c], 0x63
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x1e], 0x65
mov byte [esp + 0x1f], 0x66
mov byte [esp + 0x20], 0x67
mov byte [esp + 0x21], 0x68
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], 0x6a
mov byte [esp + 0x24], 0x6b
mov byte [esp + 0x25], 0x6c
mov byte [esp + 0x26], 0x6d
mov byte [esp + 0x27], 0x6e
mov byte [esp + 0x28], 0x6f
mov byte [esp + 0x29], 0x70
mov byte [esp + 0x2a], 0x71
mov byte [esp + 0x2b], 0x72
mov byte [esp + 0x2c], 0x73
mov byte [esp + 0x2d], 0x74
mov byte [esp + 0x2e], 0x75
mov byte [esp + 0x2f], 0x76
mov byte [esp + 0x30], 0x77
mov byte [esp + 0x31], 0x78
mov byte [esp + 0x32], 0x79
mov byte [esp + 0x33], 0x7a
mov byte [esp + 0x34], 0x30
mov byte [esp + 0x35], 0x31
mov byte [esp + 0x36], 0x32
mov byte [esp + 0x37], 0x33
mov byte [esp + 0x38], 0x34
mov byte [esp + 0x39], 0x35
mov byte [esp + 0x3a], 0x36
mov byte [esp + 0x3b], 0x37
mov byte [esp + 0x3c], 0x38
mov byte [esp + 0x3d], 0x39
mov byte [esp + 0x3e], 0x2b
mov byte [esp + 0x3f], 0x2f
mov byte [esp + 0x40], 0
lea eax, [esp]
cmp cl, dl
je 0x402cb4
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402ca1
or eax, 0xffffffff
add esp, 0x44
ret
lea ecx, [esp]
sub eax, ecx
add esp, 0x44
ret