joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424aa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x94
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [str.S_1_16_8192]
mov ecx, dword [0x49cf40]
mov edx, dword [0x49cf44]
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x70], eax
mov eax, dword [0x49cf48]
push esi
xor esi, esi
mov dword [esp + 0x80], eax
xor eax, eax
push 0x40
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x7c], ecx
mov ecx, dword [0x49cf4c]
mov dword [esp + 0x80], edx
mov edx, dword [0x49cf50]
lea eax, [esp + 0x38]
push esi
push eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], esi
call fcn.00467480
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x424c2e
mov eax, dword [esp + 0x14]
push edi
lea edx, [esp + 0x10]
push edx
push 1
push 2
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x424c26
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x7c]
push edx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x424c1f
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0x10]
add eax, 8
push eax
lea eax, [esp + 0x20]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x424c14
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebp
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edx, dword [esp + 0x28]
push edx
mov esi, eax
call edi
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
pop edi
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004673e3
add esp, 0x94
ret
Function at 0x42d6b0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
mov esi, dword [esp + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0042d4e0
lea ecx, [esp + 4]
call fcn.0042d5a0
lea eax, [esp + 0x5c]
push eax
call fcn.0042cce0
mov ecx, dword [esp + 0x74]
add esp, 4
pop esi
xor ecx, esp
call fcn.004673e3
add esp, 0x70
ret
Function at 0x42ea20
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42ea93
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
push esi
push esi
push 0x10
neg edx
lea eax, [esp + 0x14]
push eax
sbb edx, edx
push esi
and edx, 2
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret 4

Function at 0x42eaa0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 1
xor edi, edi
call fcn.0042ea20
mov eax, dword [esp + 0xc]
push eax
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42ead1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.0042ea20
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x431530
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x228], eax
push edi
mov edi, dword [esp + 0x234]
test edi, edi
je 0x431623
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x431623
mov eax, edi
lea edx, [eax + 2]
jmp 0x431570
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431570
sub eax, edx
push esi
sar eax, 1
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.00467480
push esi
push edi
lea edx, [esp + 0x3c]
push 0x103
push edx
call fcn.00468300
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov word [esp + esi*2 + 0x46], cx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
add esp, 0x1c
mov word [esp + esi*2 + 0x28], ax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea ecx, [esp + 8]
lea edx, [esp + 0x28]
mov eax, 0x614
push ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
pop esi
inc eax
pop edi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004673e3
add esp, 0x22c
ret 4
mov ecx, dword [esp + 0x22c]
pop edi
xor ecx, esp
xor al, al
call fcn.004673e3
add esp, 0x22c
ret 4
Function at 0x431640
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
sub esp, 0x434
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
mov ebx, dword [esp + 0x440]
push esi
push edi
mov edi, dword [esp + 0x444]
test edi, edi
je 0x43177d
test ebx, ebx
je 0x43177d
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x43177d
push ebx
call esi
test eax, eax
je 0x43177d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431696
sub eax, edx
sar eax, 1
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call fcn.00467480
push esi
push edi
lea edx, [esp + 0x40]
push 0x103
push edx
call fcn.00468300
xor eax, eax
add esp, 0x1c
mov word [esp + esi*2 + 0x2c], ax
xor ecx, ecx
mov eax, ebx
mov word [esp + esi*2 + 0x2e], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4316e5
sub eax, edx
sar eax, 1
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x23c]
push 0x103
push edx
call fcn.00468300
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
add esp, 0x10
mov word [esp + esi*2 + 0x234], ax
mov word [esp + esi*2 + 0x236], cx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
mov dword [esp + 0xc], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 0x234]
mov ecx, 0x614
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 2
mov word [esp + 0x20], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
jmp 0x43177f
xor al, al
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004673e3
add esp, 0x434
ret 8
Function at 0x4356f0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4356f9
ret
push esi
push 0
push 0x8000027
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x435732
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x43e010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x495978
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ba190]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00445846
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x24], 0
call fcn.0044574f
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
push 0xf00021
sub ecx, edx
push ecx
sub eax, edi
push eax
push edx
mov edx, dword [esi + 4]
push edi
push edx
call dword [sym.imp.GDI32.dll_PatBlt]
push ebx
mov ecx, esi
call fcn.0044574f
lea ecx, [esp + 0x10]
call fcn.004456bc
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x10], vtable.CBrush.0
call fcn.00402300
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc

Function at 0x4446e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x444709
cmp dword [edi + 0x54], 0
jne 0x444709
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0044d460
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004446a6
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4460a4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x495de4
call fcn.0046b797
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4460c9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44610f
lea ecx, [ebp - 0x10]
call fcn.004019f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004448ac
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401170
mov eax, esi
call fcn.0046b86f
ret 8
Function at 0x44bd3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44bd85
call fcn.0044d460
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44bd85
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44bda1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044b8b6
mov esi, eax
test edi, edi
je 0x44bd9f
test ebx, ebx
je 0x44bd9f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x451376
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4513a1
call fcn.0044d460
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4513c4
push eax
push dword [esi + 4]
call fcn.004512fc
push esi
push eax
mov ecx, 0x4bf1c0
call fcn.00450fa9
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x452694
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4526dc
call fcn.0044d460
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4526dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x45271f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x452708
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x452708
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x45271c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4673e3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ba190]
jne 0x4673ed
repz ret
jmp fcn.00472dcc
Function at 0x467b4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x467b7d
call fcn.0046a248
mov dword [eax], esi
call fcn.0046a235
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00467658
add esp, 0x14
push 0x16
pop eax
jmp 0x467bd2
test dword [ebp + 0xc], 0xfffffff9
jne 0x467b59
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x467baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046a25b
pop ecx
call fcn.0046a235
mov eax, dword [eax]
jmp 0x467bd2
test al, 0x10
jne 0x467bd0
test al, 1
je 0x467bd0
test byte [ebp + 0xc], 2
je 0x467bd0
call fcn.0046a248
mov dword [eax], 5
call fcn.0046a235
mov dword [eax], 0xd
jmp 0x467ba1
xor eax, eax
pop esi
pop ebp
ret

Function at 0x47b3d3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046fb6c
and dword [ebp - 4], 0
cmp dword [0x4c006c], 0
mov ebx, eax
jne 0x47b484
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47b535
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a5dac
push edi
call esi
test eax, eax
je 0x47b535
push eax
call fcn.0046fafa
mov dword [esp], 0x4a5d9c
push edi
mov dword [0x4c006c], eax
call esi
push eax
call fcn.0046fafa
mov dword [esp], 0x4a5d88
push edi
mov dword [0x4c0070], eax
call esi
push eax
call fcn.0046fafa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c0074], eax
call esi
push eax
call fcn.0046fafa
pop ecx
mov dword [0x4c007c], eax
test eax, eax
je 0x47b484
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046fafa
pop ecx
mov dword [0x4c0078], eax
mov eax, dword [0x4c0078]
cmp eax, ebx
je 0x47b4dc
cmp dword [0x4c007c], ebx
je 0x47b4dc
push eax
call fcn.0046fb75
push dword [0x4c007c]
mov esi, eax
call fcn.0046fb75
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47b4dc
test edi, edi
je 0x47b4dc
call esi
test eax, eax
je 0x47b4d3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47b4d3
test byte [ebp - 0xc], 1
jne 0x47b4dc
or dword [ebp + 0x10], 0x200000
jmp 0x47b515
mov eax, dword [0x4c0070]
cmp eax, ebx
je 0x47b515
push eax
call fcn.0046fb75
pop ecx
test eax, eax
je 0x47b515
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47b515
mov eax, dword [0x4c0074]
cmp eax, ebx
je 0x47b515
push eax
call fcn.0046fb75
pop ecx
test eax, eax
je 0x47b515
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c006c]
call fcn.0046fb75
pop ecx
test eax, eax
je 0x47b535
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47b537
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x481c30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x481c60
push esi
call fcn.00485280
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x481c59
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x481ce3
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x481ccf
mov eax, dword [esi + 8]
test eax, eax
je 0x481c84
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x18c]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x481ccb
cmp eax, 2
je 0x481ccf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x481c77
cmp eax, 3
je 0x481caa
cmp eax, 1
jne 0x481c77
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x481c77
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x481c77
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00481d10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x481d03
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00481d10
add esp, 4
pop esi
ret
Function at 0x401040
Capabilities:
Delete file
Print debug messages

Disassembly:
sub esp, 0x210
push esi
push edi
mov edi, dword [esp + 0x21c]
test edi, edi
je 0x40112e
cmp dword [esp + 0x220], 1
jne 0x401089
push edi
lea eax, [esp + 0x1c]
push str._log:__s_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
add esp, 0x210
ret
push 0x409044
push 0x409478
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40112e
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0xe]
and eax, 0xffff
push eax
push 0x409478
call fcn.00401140
add esp, 8
test al, al
je 0x4010d7
push 0x409478
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x12]
mov eax, dword [esp + 0x10]
and ecx, 0xffff
push edi
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x16]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x16]
push eax
mov eax, dword [esp + 0x18]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str.__04d__02d__02d__02d:_02d:_02d___s_n
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x28
pop edi
pop esi
add esp, 0x210
ret
Function at 0x402200
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x360
push ebx
push ebp
push esi
push edi
push 0x409178
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
xor ebp, ebp
add esp, 8
cmp esi, ebp
je 0x402358
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push esi
mov ebx, eax
call edi
add esp, 0x1c
cmp ebx, ebp
jle 0x40234e
cmp ebx, 0x500000
jge 0x40234e
mov edi, dword [0x41a23c]
lea ecx, [ebx + 1]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [0x41a23c]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x14
rep stosd dword es:[edi], eax
mov ecx, 0xd0
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, 0x64
push str.c:proxyData
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x158]
mov eax, 0x3c
push 0x40917c
push ecx
mov dword [esp + 0x154], ebp
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x158], ebp
mov dword [esp + 0x15c], 1
mov dword [esp + 0x268], eax
mov dword [esp + 0x264], eax
mov dword [esp + 0x26c], ebp
mov dword [esp + 0x270], ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [0x41a23c]
add esp, 0xc
lea eax, [esp + 0x10]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x37c]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
mov dword [esp + 0x40], ebx
call sub.CImage.dllT_CHECKEX13x
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
xor eax, eax
pop edi
cmp ecx, edx
pop esi
pop ebp
pop ebx
setg al
add esp, 0x360
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret
Function at 0x402370
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406adb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.00406520
push edi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x272c]
lea ecx, [esp + 4]
push eax
call fcn.00406918
push 0x5c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x2730]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40242a
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2718]
mov dword fs:[0], ecx
add esp, 0x2724
ret
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x402485
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x402477
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 0x2710
push ecx
push edi
call ebx
sub esi, 0x2710
jne 0x402451
jmp 0x402485
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push esi
push eax
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2724]
pop esi
pop ebx
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret