joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fc1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x402141
push str.STATIC
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402141
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0xe
je 0x402141
push str.IMAGES
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx eax, ax
push eax
xor esi, esi
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, esi
je 0x402141
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x402141
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x402141
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 0x10
jb 0x402141
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push dword [ebp - 0x10]
mov edi, eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40213a
cmp dword [ebp - 8], esi
je 0x40213a
lea eax, [ebp - 0xc]
push eax
push 0x4168d0
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x402141
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 4], esi
je 0x40212c
push dword [ebp - 4]
call fcn.00401e96
pop ecx
lea ecx, [ebp - 0x28]
push ecx
push 0x18
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 6
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 4]
push esi
push 0x172
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x402143
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4026db
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x412e71
call fcn.004127f0
sub esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004015ee
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 1
jg 0x402704
push 1
lea ecx, [ebp - 0x18]
call fcn.004013d6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0x18]
push eax
call esi
test eax, eax
jne 0x40272c
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40275f
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0x18]
call fcn.00402148
push eax
push ebx
call esi
lea ecx, [ebp - 0x18]
call fcn.004023b4
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0040153f
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402b27
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x412ef2
call fcn.004127f0
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040237b
and dword [ebp - 4], 0
push 0x4153bc
lea ecx, [ebp - 0x18]
call fcn.004023cc
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402c0e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00401506
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00401606
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004023cc
test byte [ebp - 0x268], 0x10
je 0x402bd9
push 0x4153b8
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x402bf1
push 0x4153b0
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x402bf1
push dword [ebp - 0x18]
call fcn.00402b27
pop ecx
jmp 0x402bed
push 0
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x402c2b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402c2b
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402b7d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402c2b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402c2b
xor esi, esi
inc esi
jmp 0x402c2d
xor esi, esi
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402c4b
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41a660], 0
je 0x402c58
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402c6e
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402c8c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402c88
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402b27
pop ecx
pop esi
ret

Function at 0x40304f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40306c
xor eax, eax
jmp 0x4030c5
test al, 0x10
je 0x40307d
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4030c5
mov eax, dword [0x41a5ec]
test eax, eax
je 0x4030b9
cmp eax, 2
jne 0x4030c2
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4030b9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x4030c2
push esi
call fcn.00403022
pop ecx
jmp 0x4030c5
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x4033ad
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x412fb2
call fcn.004127f0
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.0040237b
xor esi, esi
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
jg 0x4033e8
push esi
lea ecx, [ebp - 0x24]
call fcn.004013d6
mov ax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x24]
je 0x4033fc
cmp ax, 0x2f
jne 0x403405
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 0x10], ebx
mov esi, ebx
jmp 0x40342b
mov ax, word [edi + esi*2]
cmp ax, 0x2f
je 0x40341e
cmp ax, 0x5c
je 0x40341e
dec esi
test esi, esi
jg 0x403409
test esi, esi
je 0x4034c5
and word [edi + esi*2], 0
push edi
call fcn.00401b99
test eax, eax
pop ecx
je 0x40341a
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40345f
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040304f
test eax, eax
pop ecx
pop ecx
jne 0x4034f9
push edi
call fcn.00401b99
test eax, eax
pop ecx
je 0x4034c2
cmp esi, ebx
jge 0x4034e7
mov eax, dword [ebp - 0x10]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.msvcrt.dll_memcpy
xor edx, edx
add esp, 0xc
cmp word [ebx], dx
je 0x403490
inc esi
lea eax, [edi + esi*2]
jmp 0x4034a7
mov cx, word [eax]
cmp cx, 0x5c
je 0x4034ac
cmp cx, 0x2f
je 0x4034ac
inc esi
inc eax
inc eax
cmp word [eax], dx
jne 0x403495
push edi
mov word [edi + esi*2], dx
call fcn.00401b99
test eax, eax
pop ecx
je 0x4034c2
cmp esi, dword [ebp - 0x10]
jl 0x40346e
jmp 0x4034e7
push edi
jmp 0x4034ed
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x4034ec
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x4034ec
cmp ax, 0x7a
ja 0x4034ec
cmp word [ecx + 2], 0x3a
jne 0x4034ec
xor esi, esi
inc esi
jmp 0x4034fb
push ecx
push 0xc
push 1
call fcn.0040783e
add esp, 0xc
xor esi, esi
or dword [ebp - 4], 0xffffffff
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403cad
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [0x41a010], esi
je 0x403cd7
mov eax, 0x41a010
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 8]
je 0x403cd7
add eax, 0x10
inc edi
cmp dword [eax], esi
mov ecx, eax
jne 0x403cc6
shl edi, 4
mov eax, dword [edi + 0x41a01c]
cmp eax, esi
jne 0x403d98
cmp dword [0x41a248], 0xffffffff
jne 0x403cfc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x41a248], eax
cmp word [0x41a244], 0xffff
jne 0x403d13
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x41a244], ax
mov ax, word [0x41a240]
cmp ax, 0xffff
jne 0x403d2a
call fcn.00401daf
mov word [0x41a240], ax
mov ecx, dword [edi + 0x41a018]
cmp ecx, esi
push ebx
mov ebx, dword [edi + 0x41a014]
mov dword [ebp - 4], esi
je 0x403d64
mov edx, 0x419
cmp dword [0x41a248], edx
je 0x403d59
cmp word [0x41a244], dx
je 0x403d59
cmp ax, dx
jne 0x403d64
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi + 4]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
lea ecx, [esi + 1]
push ecx
push eax
push esi
push ebx
push 0
push dword [ebp - 4]
mov dword [edi + 0x41a01c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x41a01c]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4042da
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x413130
call fcn.004127f0
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.004015ee
xor esi, esi
inc esi
cmp dword [ebp - 0x14], 2
mov dword [ebp - 4], esi
jg 0x40430d
push 2
lea ecx, [ebp - 0x1c]
call fcn.004013d6
mov edi, dword [ebp - 0x1c]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call esi
xor ecx, ecx
cmp eax, ebx
mov word [edi], bx
mov dword [ebp - 0x18], ecx
jbe 0x404341
lea edi, [eax + 1]
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402148
push eax
push edi
call esi
lea ecx, [ebp - 0x1c]
call fcn.004023b4
mov ecx, dword [ebp - 0x18]
lea edi, [ecx + 0xf]
lea esi, [ecx + ecx]
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402148
push ebx
push dword [ebp + 0xc]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004023b4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40437f
inc ebx
cmp ebx, 0xfff
jl 0x404347
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004014d4
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4043b1
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x413142
call fcn.004127f0
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41a648], esi
jle 0x404415
mov eax, dword [0x41a64c]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.004014d4
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00403e20
mov eax, dword [0x41a64c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
pop ecx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41a648]
pop ecx
jl 0x4043c9
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x404e24
Capabilities:
Get common file path

Disassembly:
mov eax, 0x413247
call fcn.004127f0
sub esp, 0x2a4
push ebx
push esi
push edi
push 3
call fcn.00403cad
push 2
mov dword [0x41a5e4], eax
call fcn.00403cad
push 5
mov dword [0x41a5e0], eax
call fcn.00403cad
push 0x15
mov dword [0x41a5dc], eax
call fcn.00403cad
push 0x16
mov dword [0x41a5d8], eax
call fcn.00403cad
push 0x17
mov dword [0x41a5d4], eax
call fcn.00403cad
xor edi, edi
add esp, 0x18
mov dword [0x41a5d0], eax
mov dword [0x41a5c8], edi
mov dword [0x41a5cc], edi
xor ebx, ebx
mov esi, 0x41a640
push edi
push ebx
lea eax, [ebp - 0x2b0]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404f3f
push ebx
lea eax, [ebp - 0xa4]
push str.7zSfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.0040232b
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00401506
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401506
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402f84
cmp dword [edi + 0x41a280], ebx
jne 0x404f29
push dword [edi + 0x41a284]
lea ecx, [ebp - 0x24]
call fcn.00401506
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401506
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402f84
add edi, 8
cmp edi, 0x28
jb 0x404ef9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00401ca7
xor edi, edi
inc ebx
cmp ebx, 0x40
jl 0x404e97
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408719
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408721
mov dword [ecx*4 + 0x41a7a0], eax
inc ecx
cmp ecx, 0x100
jb 0x40871c
pop esi
ret

Function at 0x408748
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, ecx
mov ecx, edx
jbe 0x40876f
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41a7a0]
inc ecx
dec esi
jne 0x408755
pop esi
ret 4

Function at 0x40d770
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413b7f
call fcn.004127f0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 8
pop edi
mov edx, 0x41652c
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x416550
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040f40b
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f40b
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f40b
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f40b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40d77c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413b7f
call fcn.004127f0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 8
pop edi
mov edx, 0x41652c
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x416550
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040f40b
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f40b
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f40b
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f40b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40e512
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e538
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e538
xor al, al
jmp 0x40e558
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412970
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40fdc8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040fd7b
add esp, 0x1c
leave
ret
Function at 0x411ff8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x412011
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x412034
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x412039
inc esi
cmp esi, dword [ebp - 4]
jb 0x41202b
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x41212d
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x41206f
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x41209c
cmp cl, 0xff
je 0x41209c
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x412026
dec ecx
shl edx, cl
and edx, 7
je 0x412055
movzx ecx, byte [edx + 0x416854]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x41684c], 0
mov cl, byte [ebx + 4]
je 0x412097
test cl, cl
je 0x412097
cmp cl, 0xff
jne 0x412055
mov dword [ebp + 0xc], eax
jmp 0x412064
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x4120c5
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4120cc
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x412100
movzx edi, byte [edx + 0x416854]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4120eb
cmp al, 0xff
jne 0x4120fd
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x4120b7
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x412026
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x402990
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x405130], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40507c], ecx
mov dword [0x4050b0], 0x30
mov dword [0x4050b4], 2
mov dword [0x4050bc], 0
mov dword [0x4050c0], 0
mov dword [0x4050b8], 0x402f20
jmp 0x4029e3
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x4050c4], eax
mov dword [0x4050d0], 0xf
mov dword [0x4050d8], 0x4040ad
mov dword [0x405074], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4050c8], eax
mov dword [0x4050dc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4050cc], eax
push 0x4050b0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x405074]
push 0
push 0
push 0x24e
push 0x281
push 0xfffff448
push 0xffffec78
push 0x40000
push str.mini
push str.second
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405128], eax
xor eax, eax
jmp 0x402a82
push 5
push dword [0x405128]
call dword [sym.imp.user32.dll_ShowWindow]
test eax, eax
jne 0x402ab6
push 0
push 0x24f
push 0x282
push 0xfffff447
push 0xffffec77
push dword [0x405128]
call dword [sym.imp.user32.dll_MoveWindow]
push dword [0x405128]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4050e0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402aef
push 0x4050e0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4050e0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402ac2
mov eax, dword [0x4050e8]
jmp 0x402afc
call 0x40213f
ret