joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1d20
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov ecx, 0x73d240
call fcn.004ad010
test eax, eax
je 0x4a1e5f
mov eax, dword [esp + 0x20]
push ebx
test eax, eax
mov dword [esp + 0xc], 0
lea ebx, [edi + 0xc8]
jne 0x4a1d65
cmp word [ebx], 0
je 0x4a1d5e
mov dword [esp + 0xc], 1
mov word [ebx], 0
jmp 0x4a1d91
cmp word [ebx], 0
jne 0x4a1d73
mov dword [esp + 0xc], 1
push eax
push 0x4ed128
push 0x104
push ebx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov word [edi + 0x2ce], 0
mov ecx, dword [edi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esi, ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x25fc]
and esi, 0xffff
sub edx, ecx
shl esi, 0x10
and edx, 0xffff
or esi, edx
cmp word [ebx], 0
pop ebx
je 0x4a1e30
test eax, eax
jne 0x4a1e12
mov ecx, dword [edi + 4]
xor eax, eax
mov ax, word [edi + 0x25a8]
push 0
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push 0x4600004c
push str.HINT
push 4
lea ecx, [edi + 0x25f8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0x1a
call fcn.004d36e0
mov eax, dword [edi + 0x25fc]
push 0x2043
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4a1e43
test eax, eax
je 0x4a1e43
mov ecx, dword [edi + 0x25fc]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 8]
test eax, eax
je 0x4a1e5f
mov edx, esi
and esi, 0xffff
shr edx, 0x10
push edx
push esi
mov ecx, edi
call fcn.004a25e0
pop edi
pop esi
add esp, 0x14
ret 4

Function at 0x4a20c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
mov eax, dword [edi + 4]
cmp eax, 0x201
jne 0x4a20ed
mov eax, dword [edi + 0x14]
mov dword [esi + 0x131c], eax
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x1320], ecx
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
cmp eax, 0x20a
jne 0x4a20e5
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
shr eax, 8
test al, al
je 0x4a20e5
mov eax, dword [esi + 0x25ec]
test eax, eax
je 0x4a20e5
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4a20e5
push 0x12
call ebx
movsx edx, ax
shr edx, 0x10
je 0x4a2136
push 0
mov ecx, esi
call fcn.004a1620
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
mov eax, dword [edi + 8]
mov ecx, esi
shr eax, 0x10
push eax
call fcn.004a1620
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x4a2c40
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x40
push eax
push 0x73d31c
call fcn.004a2f80
push 0x40
push 0x4def54
push 0x73d31c
push 0x73d31c
call fcn.004a2ea0
mov al, byte [esp + 0x3c]
add esp, 0x1c
test al, al
jne 0x4a2ccb
mov ebx, dword [esp + 0x1c]
mov ebp, 0x10
mov eax, dword [0x4fe11c]
mov ecx, 8
mov esi, eax
mov edi, 0x73d2fc
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004a2de0
mov ecx, dword [0x4fe118]
mov edx, dword [0x4fe11c]
push 0x20
push ecx
push edx
call fcn.004a2ef0
mov edi, dword [0x4fe118]
add esp, 0x14
mov ecx, 8
mov esi, 0x73d2fc
add ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4a2c7f
jmp 0x4a2d24
mov eax, dword [esp + 0x1c]
mov ebp, 0x10
lea ebx, [eax + 0x2d0]
mov eax, dword [0x4fe118]
mov ecx, 8
mov esi, eax
mov edi, 0x73d2fc
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004a2de0
mov ecx, dword [0x4fe11c]
mov edx, dword [0x4fe118]
push 0x20
push ecx
push edx
call fcn.004a2ef0
mov edi, dword [0x4fe11c]
add esp, 0x14
mov ecx, 8
mov esi, 0x73d2fc
sub ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4a2cda
push 0x40
push 0x4def94
push 0x73d31c
push 0x73d31c
call fcn.004a2ea0
mov eax, dword [esp + 0x24]
push 0x40
push 0x73d31c
push eax
call fcn.004a2fc0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4a2d60
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0x40
push eax
push 0x73d2bc
call fcn.004a2f80
push 0x38
push str.91__
push 0x73d2bc
push 0x73d2bc
call fcn.004a2ea0
mov edi, dword [esp + 0x28]
add esp, 0x1c
xor esi, esi
movsx ecx, byte [esi + 0x4df08c]
mov edx, dword [0x4fe120]
push ecx
push 0x1c
push edx
call fcn.004a2f20
movsx eax, byte [esi + 0x4df08c]
mov ecx, dword [0x4fe124]
push eax
push 0x1c
push ecx
call fcn.004a2f20
push 0x30
push 0x4df05c
push 0x73d2bc
push edi
call fcn.004a2ea0
add esp, 0x28
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x4a2d92
pop edi
pop esi
ret

Function at 0x4a2de0
Capabilities:
Encrypt data using des

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x30
push 0x4defd4
push esi
push 0x73d28c
call fcn.004a2ea0
mov eax, dword [esp + 0x1c]
push 0x30
push eax
push 0x73d28c
call fcn.004a2ef0
push 0x73d28c
push esi
call fcn.004a2e30
push 0x20
push 0x4df004
push esi
push esi
call fcn.004a2ea0
add esp, 0x34
pop esi
ret

Function at 0x4a2ef0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x4a2f12
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x4a2f04
pop ebx
pop esi
ret
Function at 0x4a3090
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
push esi
push ebx
call fcn.004a3040
mov eax, esi
add esp, 0xc
cdq
sub eax, edx
xor esi, esi
mov edi, eax
mov eax, dword [esp + 0x14]
sar edi, 1
test edi, edi
mov dword [esp + 0x10], eax
jle 0x4a30e5
lea ecx, [esp + 0x10]
push ecx
call fcn.004a3010
mov cl, byte [esi + ebx]
add al, 0x11
xor al, cl
add esp, 4
xor al, 2
mov byte [esi + ebx], al
inc esi
cmp esi, edi
jl 0x4a30c7
mov byte [edi + ebx], 0
pop edi
pop esi
pop ebx
ret

Function at 0x4a36c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
test esi, esi
jle 0x4a36f0
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4fe154]
xor eax, edx
inc ecx
dec esi
jne 0x4a36d1
pop ebx
not eax
pop esi
ret

Function at 0x4a39e0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x48]
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x912
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esi + 8]
lea edx, [esi + 0x48]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x48]
mov eax, 0x800
mov dword [esp + 0x34], edx
lea ecx, [esi + 0x2148]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea edx, [esi + 0x2348]
mov eax, 0x80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
lea ecx, [esi + 0x1048]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 8]
mov dword [esp + 0x3c], ecx
push edx
lea ecx, [esi + 0x2048]
push eax
push edi
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x38], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4a3ab4
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x4a3a9e
cmp eax, 4
je 0x4a3a9e
cmp eax, 1
jne 0x4a3ab4
mov cx, word [esp + 0x20]
mov dword [esi + 4], eax
mov word [esi], cx
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x4a3ac0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4a3ad0
xor eax, eax
pop esi
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x2454], eax
je 0x4a3b17
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x4a3e10
push 0
push 0
mov dword [esi + 0x5ceb4], 8
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x4a4a60
Capabilities:
Send data

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x26c4]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x20], 2
cmp dword [edx + 4], 1
je 0x4a4aed
mov eax, dword [edi + 0x246c]
test eax, eax
je 0x4a4b1b
mov eax, dword [esi + 8]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0x2470]
mov eax, dword [edi + 0x246c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4a4ad6
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov eax, 1
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4a4b25
pop edi
mov eax, 1
pop esi
ret 4
cmp dword [esi], 0
jne 0x4a4b06
mov eax, dword [esi + 4]
test eax, eax
je 0x4a4b06
mov dword [esi + 0x14], eax
pop edi
mov eax, 1
pop esi
ret 4
push 1
push ecx
mov ecx, edi
mov dword [esi + 0x20], 0
call fcn.004a5e40
test eax, eax
je 0x4a4b25
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x4a54a0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
mov eax, dword [ebx + 0x26c4]
push esi
push edi
mov esi, dword [eax + ecx*4]
mov ecx, 0xa
xor eax, eax
lea ebp, [esi + 0x8038]
lea edx, [esi + 0x34]
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x2000
mov edi, edx
mov dword [ebp], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x8034]
lea edi, [esi + 0x8050]
test eax, eax
mov dword [esi + 0x804c], edx
mov dword [edi], 0x8000
je 0x4a5530
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
sub edx, ecx
mov ecx, dword [eax + 0x14]
sbb ecx, dword [eax + 0x1c]
sub edx, dword [eax + 8]
sbb ecx, dword [eax + 0xc]
mov eax, edx
add eax, 1
adc ecx, 0
ja 0x4a551b
cmp eax, 0x8000
jbe 0x4a552a
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x4a5571
mov dword [esp + 0x14], ecx
jmp 0x4a5571
mov eax, dword [ebx + 0x5ceb8]
mov ecx, dword [ebx + 0x5cebc]
cmp eax, 0xffffffff
jne 0x4a5545
cmp ecx, eax
je 0x4a5573
mov edx, dword [ebx + 0x5cec0]
sub eax, edx
mov edx, dword [ebx + 0x5cec4]
sbb ecx, edx
ja 0x4a555e
cmp eax, 0x8000
jbe 0x4a556d
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x4a5571
mov dword [esp + 0x14], ecx
mov dword [edi], eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], 9
cmp dword [ecx + 4], 1
je 0x4a55b8
mov edx, dword [esi + 0x18]
push esi
push 1
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x4a55ea
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [edi]
mov edx, dword [esi + 0x804c]
mov eax, dword [esi + 0x18]
push edi
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4a55ea
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4a5606
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
call fcn.004a59d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x4a5b10
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10000000
push 0
push 0
push 0
mov dword [ebp - 4], ecx
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [ebp + 8]
test eax, eax
mov dword [esi + 0x10], eax
je 0x4a5cac
mov eax, dword [esi + 0x1c]
xor edi, edi
add eax, 0x2348
xor ebx, ebx
push eax
mov dword [ebp + 8], 3
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4a5b67
mov edi, dword [esi + 0x1c]
add edi, 0x2348
mov ecx, dword [esi + 0x1c]
add ecx, 0x2048
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4a5b87
mov ebx, dword [esi + 0x1c]
add ebx, 0x2048
test edi, edi
jne 0x4a5bab
mov edx, dword [ebp - 4]
lea eax, [edx + 0x603b0]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4a5bab
mov eax, dword [ebp - 4]
lea edi, [eax + 0x603b0]
test ebx, ebx
jne 0x4a5bcf
mov ecx, dword [ebp - 4]
lea eax, [ecx + 0x604b0]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4a5bcf
mov edx, dword [ebp - 4]
lea ebx, [edx + 0x604b0]
mov ecx, dword [esi + 0x1c]
mov eax, 1
cmp dword [ecx + 4], eax
jne 0x4a5bdf
mov dword [ebp + 8], eax
mov edx, dword [esi + 0x10]
push 0x4a3ef0
push edx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
push esi
add eax, 0x2148
mov edx, dword [ecx + 0x26bc]
mov ecx, dword [ebp + 8]
push edx
mov dx, word [eax - 0x2148]
push ecx
push ebx
push edi
push edx
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 0x14], eax
je 0x4a5cac
mov ecx, dword [ebp - 4]
lea ebx, [ecx + 0x605b0]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x4a5c9b
test ebx, ebx
mov dword [ebp - 0x10], 3
jne 0x4a5c4c
mov dword [ebp - 0xc], ebx
jmp 0x4a5c82
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.004d4ce0
mov edx, dword [ebp + 8]
mov edi, esp
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], edi
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x10]
push 0xc
push eax
push 0x26
push ecx
mov dword [ebp - 8], 0x500e04
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, 1
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esp, [ebp - 0x1c]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5cc0
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x5154
call fcn.004d4ce0
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x246c]
push edi
test eax, eax
mov ebp, 0x4fe5e0
je 0x4a5ce4
mov ebp, str.POST
mov ax, word [0x500df0]
mov esi, dword [esp + 0x5168]
mov word [esp + 0x44], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x44]
mov dword [esp + 0x14], 0x4fe5cc
mov dword [esp + 0x18], 0
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x4ee3cc
push 0x7ff
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [ebx + 0x62854]
add esp, 0x14
test ecx, ecx
mov eax, 0x8400c300
je 0x4a5d4f
mov eax, 0x8408c300
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 4], 4
jne 0x4a5d5d
or eax, 0x803000
mov ecx, dword [esi + 0x14]
push esi
lea edx, [esp + 0x18]
push eax
push edx
push 0
lea eax, [esp + 0x54]
push str.HTTP_1.1
push eax
push ebp
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x18], eax
je 0x4a5e2b
mov dx, word [0x500df0]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x1047
lea edi, [esp + 0x1046]
mov word [esp + 0x1044], dx
push 0x208f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1048]
mov ecx, ebx
push eax
push esi
mov dword [esp + 0x28], 0x28
call fcn.004a5f40
lea edx, [esp + 0x1044]
lea ecx, [esp + 0x1044]
push edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esi + 0x18]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push 4
push eax
push 2
push ecx
mov dword [esp + 0x20], 0x3a98
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esi + 0x18]
push esi
push 1
lea edx, [esp + 0x24]
push 0
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5154
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5154
ret 4
Function at 0x4a6980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov ax, word [0x500df0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov word [esp + 0x18], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
xor ebp, ebp
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
shl edi, 1
mov ecx, edi
push 2
neg ecx
push ebp
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
push edx
call ebp
cmp edi, dword [esp + 0x10]
jne 0x4a6a55
lea eax, [esp + 0x18]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4a6a55
mov edx, dword [esp + 0x10]
mov ecx, 0xfffffffc
push 1
sub ecx, edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
add eax, ecx
push 1
push 0
neg eax
push eax
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x4a6a60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x26d4]
mov dword [esp + 0xc], edi
cmp eax, edi
jne 0x4a6a7d
mov dword [esp + 8], edi
jmp 0x4a6a8c
mov ecx, dword [esi + 0x26d8]
sub ecx, eax
sar ecx, 2
mov dword [esp + 8], ecx
mov edx, dword [esi + 4]
push 2
push edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 8], edi
je 0x4a6b33
mov edx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
call ebx
mov ebp, 4
mov eax, dword [esi + 0x26d4]
test eax, eax
je 0x4a6af6
mov ecx, dword [esi + 0x26d8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x4a6af6
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 4]
push 0x20
push ecx
push edx
call ebx
add ebp, 0x20
inc edi
jmp 0x4a6ac4
mov edx, dword [esi + 4]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
mov dword [esp + 0x24], ebp
call ebx
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
add esp, 4
lea ecx, [esp + 0x14]
shl eax, 1
push 0
push ecx
push eax
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push edx
call ebx
pop ebp
pop ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 8
ret
Function at 0x4a6ec0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x8050]
mov esi, ecx
push edi
cmp dword [eax + 4], 1
jne 0x4a6edc
mov ebp, dword [ebx]
mov eax, dword [esi + 0x26e0]
xor edi, edi
cmp eax, edi
je 0x4a6fb2
mov ecx, esi
call fcn.004a6980
mov edi, dword [ebx + 0x8034]
push 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
add ecx, eax
mov eax, dword [edi + 0xc]
adc eax, edx
mov edx, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 4]
sar edx, 0x1f
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4a6f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a7000
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 0
push edx
add ebx, 0x34
push ebp
push ebx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a7000
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x4a7000
mov ebp, dword [edi + 0x18]
add ebp, eax
mov eax, 0
mov dword [edi + 0x18], ebp
mov ebx, dword [edi + 0x1c]
adc ebx, eax
mov dword [edi + 0x1c], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x5cec0]
add edx, ecx
mov dword [esi + 0x5cec0], edx
mov ecx, dword [esi + 0x5cec4]
adc ecx, eax
mov dword [esi + 0x5cec4], ecx
mov ecx, esi
call fcn.004a6a60
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edi
push edx
add ebx, 0x34
push ebp
push ebx
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a7000
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x4a7000
mov ecx, dword [esi + 0x5cec0]
add ecx, eax
mov dword [esi + 0x5cec0], ecx
mov eax, dword [esi + 0x5cec4]
adc eax, edi
pop edi
mov dword [esi + 0x5cec4], eax
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x4a9020
Capabilities:
Get file version info

Disassembly:
mov eax, 0x400c
call fcn.004d4ce0
push esi
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x4018]
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4a90e9
cmp eax, 0x3fff
ja 0x4a90e9
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a90e9
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x4ef314
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a90e9
mov eax, dword [esp + 8]
xor edx, edx
mov esi, dword [esp + 0x4020]
mov edi, dword [esp + 0x401c]
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
push str._d._d._d._d
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
mov word [edi + esi*2 - 2], 0
mov eax, 1
pop edi
pop esi
add esp, 0x400c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x400c
ret

Function at 0x4a9100
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4218
call fcn.004d4ce0
push esi
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x4224]
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4a923b
cmp eax, 0x3fff
ja 0x4a923b
lea ecx, [esp + 0x220]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a923b
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x228]
push str.VarFileInfoTranslation
push ecx
mov dword [esp + 0x18], 4
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 8]
shr edx, 2
test edx, edx
jle 0x4a923b
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x4228]
xor ecx, ecx
push eax
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [esp + 0x28]
push 0x103
push eax
call esi
add esp, 0x18
lea ecx, [esp + 0x4230]
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x228]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a923b
mov edx, dword [esp + 0x4230]
push eax
mov eax, dword [esp + 0x4230]
dec edx
push 0x4ed128
push edx
push eax
call esi
add esp, 0x10
mov eax, 1
pop edi
pop esi
add esp, 0x4218
ret
pop edi
xor eax, eax
pop esi
add esp, 0x4218
ret