joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403211
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00402a9c
push 0x41a688
lea ecx, [ebp - 0xc]
call fcn.00402aed
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4032ed
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401403
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004017a8
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402aed
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x4032bc
push 0x41a684
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4032d0
push 0x41a67c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4032d0
push edi
call fcn.00403211
pop ecx
jmp 0x4032cc
push 0
push edi
call esi
test eax, eax
je 0x403310
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403310
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403257
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x403310
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403310
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x403318
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40331e
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41ea6c], 0
je 0x403335
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x403351
xor eax, eax
inc eax
jmp 0x403382
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x40337b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x403377
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x403382
xor eax, eax
jmp 0x403382
push esi
call fcn.00403211
pop ecx
pop esi
leave
ret

Function at 0x403432
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004014eb
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403470
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402ad5
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x4035c5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.004014eb
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402ad5
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402ad5
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401184
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403ab0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402a9c
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403ae1
push esi
lea ecx, [ebp - 0x18]
call fcn.004011b7
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403af5
cmp ax, 0x2f
jne 0x403afe
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403b24
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403b17
cmp ax, 0x5c
je 0x403b17
dec esi
test esi, esi
jg 0x403b02
test esi, esi
je 0x403bd3
and word [edi + esi*2], 0
push edi
call fcn.00401e7e
test eax, eax
pop ecx
je 0x403b13
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403b5b
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040374e
test eax, eax
pop ecx
pop ecx
je 0x403b5b
xor esi, esi
jmp 0x403bf8
push edi
call fcn.00401e7e
test eax, eax
pop ecx
jne 0x403b75
push edi
push 0xc
push 1
call fcn.00409612
add esp, 0xc
jmp 0x403b54
cmp esi, ebx
jge 0x403bc7
mov eax, dword [ebp - 4]
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 ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403bad
jmp 0x403bac
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403bb3
cmp ax, 0x2f
je 0x403bb3
inc esi
cmp word [edi + esi*2], cx
jne 0x403b9c
push edi
mov word [edi + esi*2], cx
call fcn.00401e7e
test eax, eax
pop ecx
je 0x403b66
cmp esi, dword [ebp - 4]
jl 0x403b79
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403c18
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403c03
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403c03
cmp ax, 0x7a
ja 0x403c03
cmp word [ecx + 2], 0x3a
jne 0x403c03
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403c18
push ecx
push 0xc
push 1
call fcn.00409612
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404577
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00418f30
call fcn.0040243a
push 3
call fcn.00402490
push 0x28
mov dword [0x41e9b8], eax
call fcn.00402490
push 2
mov dword [0x41e9b4], eax
call fcn.00402490
push 5
mov dword [0x41e9b0], eax
call fcn.00402490
push 0x15
mov dword [0x41e9ac], eax
call fcn.00402490
push 0x16
mov dword [0x41e9a8], eax
call fcn.00402490
push 0x17
mov dword [0x41e9a4], eax
call fcn.00402490
xor ebx, ebx
add esp, 0x1c
mov dword [0x41e9a0], eax
mov dword [0x41e998], ebx
mov dword [0x41e99c], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40465b
push edi
lea eax, [ebp - 0x5c]
push 0x41b4d8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004036a2
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41e3b4], edi
jne 0x404653
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41e3b8]
call fcn.004036a2
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404635
inc edi
cmp edi, 0x40
jl 0x4045fa
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004014eb
push 2
mov ecx, esi
call fcn.00402ad5
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x404aae
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402ad5
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00401184
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00402ad5
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.00401184
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404b03
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404abe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404b0a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41e3e4], esi
jle 0x404b5e
mov eax, dword [0x41e3e8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004013d1
lea eax, [ebp - 0xc]
push eax
call fcn.0040469a
mov eax, dword [0x41e3e8]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41e3e4]
pop ecx
jl 0x404b1b
pop esi
leave
ret
Function at 0x4053df
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.004014eb
lea ecx, [ebp - 0x18]
call fcn.004014eb
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x405430
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x40543d
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404ecc
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401403
cmp dword [ebp - 8], edi
jne 0x405472
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4054b2
test dword [ebp + 0xc], 0x10000
jne 0x4054a0
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x405464
xor ebx, ebx
jmp 0x4054a9
Function at 0x40577c
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x40592e
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x4057a6
cmp ax, 0x2f
jne 0x40592e
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40592e
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404a5b
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4058f8
push edi
lea ecx, [ebp - 0x1c]
call fcn.004014eb
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401403
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402aed
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004014bc
mov esi, 0x41b904
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402aed
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402aed
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004014bc
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402aed
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402aed
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004014bc
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402aed
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402e4b
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x405909
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405909
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405934
push dword [ebp - 0x28]
call fcn.0040331e
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x405935
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x407574
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.00407527
add esp, 0x1c
leave
ret
Function at 0x4091b3
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.0040792c
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00407949
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407949
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407f92
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408e82
mov ecx, esi
mov edi, eax
call fcn.004082ff
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40a8c0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret
Function at 0x40aef0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x80
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
cmp ecx, 0x3f
jne 0x40af6d
xor eax, eax
cmp dword [ebx + 4], eax
jbe 0x40af20
jmp 0x40af10
mov cl, byte [ebx + eax + 8]
mov byte [ebx + eax + 0x24], cl
add eax, 1
cmp eax, dword [ebx + 4]
jb 0x40af10
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jbe 0x40af45
cmp eax, 0x20
jae 0x40b0c3
mov edx, dword [ebx + 0x20]
mov dl, byte [ecx + edx]
mov byte [eax + ebx + 0x24], dl
add ecx, 1
add eax, 1
cmp ecx, dword [ebx + 0x1c]
jb 0x40af27
cmp eax, 0x20
jae 0x40b0c3
mov ecx, 0x20
sub ecx, eax
push ecx
lea ebx, [eax + ebx + 0x24]
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
pop ebx
add esp, 0x80
ret
push esi
xor esi, esi
lea eax, [esi + 1]
xor edx, edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.004193e0
cmp edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov byte [esp + 8], 0
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jb 0x40b0b1
ja 0x40b00c
cmp eax, esi
jbe 0x40b0b1
push ebp
push edi
mov edi, edi
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0040abe0
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040abe0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov ebp, 8
lea edi, [esp + 0x10]
and esi, 0x3f
mov cl, byte [edi]
mov byte [esp + esi + 0x50], cl
add esi, 1
add edi, 1
add dword [esp + 0x48], 1
adc dword [esp + 0x4c], 0
sub ebp, 1
cmp esi, 0x40
jne 0x40b070
lea edx, [esp + 0x28]
xor esi, esi
call fcn.0040ab20
test ebp, ebp
ja 0x40b047
xor eax, eax
add byte [esp + eax + 0x10], 1
jne 0x40b085
add eax, 1
cmp eax, 8
jl 0x40b076
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jb 0x40b010
ja 0x40b0af
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x40b010
pop edi
pop ebp
add ebx, 0x24
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0040ac30
add esp, 8
pop esi
pop ebx
add esp, 0x80
ret

Function at 0x4122ca
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 0x4122f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4122f0
xor al, al
jmp 0x412310
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004193a0
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 0x418f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f32
cmp edx, 0x800
jae 0x41901b
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418ff0
mov dword [0x420dbc], 0x4196d0
call fcn.00419160
test eax, eax
jne 0x419038
mov dword [0x420dbc], 0x4195f0
ret
Function at 0x100018a0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Get file version info
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 1
jne 0x100019c7
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push str.start_iCCup_Maphack_Bot.exe
call fcn.100051f2
add esp, 4
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push str.Game.dll
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
push esi
call fcn.100019e3
add esp, 4
mov edi, eax
push edi
push esi
push dword [ebp + 0xc]
push str.Game.dll
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea eax, [ebp - 4]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push 0x10015bcc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov eax, dword [ebp + 8]
mov ecx, 0x1901
cmp word [eax + 0xc], cx
jne 0x100019ba
push ebx
mov ebx, dword [0x1001821c]
push 0xa
add ebx, 0x5c0d81
mov dword [ebp + 0xc], 0
call fcn.10005054
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push 0x40
push 5
push ebx
call edi
mov ecx, dword [ebx]
mov dword [esi], ecx
mov al, byte [ebx + 4]
mov byte [esi + 4], al
mov eax, ebx
sub eax, esi
mov byte [esi + 5], 0xe9
sub eax, 5
mov dword [esi + 5], eax
mov eax, 0x10001240
push 0
push dword [ebp + 0xc]
sub eax, ebx
mov byte [ebx], 0xe9
push 5
sub eax, 5
push ebx
mov dword [ebx + 1], eax
call edi
push 0
push 0
push 0
push 0x10001260
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a69a
Capabilities:
Encode data using xor

Disassembly:
xor dword [edi], eax
and edi, esp
popfd
int3
cld
out dx, eax
test al, 0x5a
mov bl, 0xdb
ja 0x40a62a
daa
adc ebx, dword [edx + 0x52]
test byte [ebx + 0x16], dh
xchg ebx, eax
sbb al, byte [esi - 0x46410c7e]
sbb eax, 0xd6f41afd
push ebp
jo 0x40a6f1
ljmp 0x99ed:0x3f707ee6
in al, 0x1c
or dh, byte [eax]
inc eax
and dword [eax], esi
xor eax, 0x529b136a
dec byte [ecx - 0x6b54c04f]
loope 0x40a69f
jl 0x40a663
push cs
xchg dword [ebx + 0x6b], ebp
inc ebx
mov dword [0x1406fa97], eax
test byte [eax], dh
loop 0x40a731
or al, 0xc7
and dword [esp + edi*2 + 0x24bc0bcc], ecx
adc al, 0xa8
lahf
into
pop ebp
mov cl, bh
movsd dword es:[edi], dword [esi]
salc
or byte [edx], dh
enter 0xffffffffffff9c52, 0x3a
aad 0x8f
loop 0x40a6f7
xor al, 0xd2
into
nop
mov al, byte [0xdfdc92b1]
pop edx
mov ah, 0xad
invalid
or eax, edi
xor ebp, dword [eax - 0x54]
invalid
inc ecx
aaa
invalid
inc ecx
aaa
invalid

Function at 0x46bb9a
Capabilities:
Encode data using xor

Disassembly:
dec eax
or al, 0x5f
sbb al, 0xf9
cld
adc dword [eax + 0x10], esp
xchg ecx, eax
dec eax
xchg edx, eax
fbld tbyte [esi]
mov ecx, 0x2d5b6738
add dword cs:[ebx - 0x77], edx
push edx
xchg esp, eax
call 0x6242b1f1
invalid