joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aab1d
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4aac50
push esi
push edi
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0x50
jb 0x4aac27
push edi
call fcn.004bae68
pop ecx
push esi
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aac29
cmp dword [ebp - 0xc], edi
jne 0x4aac29
mov edi, dword [ebp + 0xc]
mov esi, ebx
push 0x14
add edi, 4
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0x424b4c48
jne 0x4aac22
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x18], ecx
jne 0x4aac22
mov eax, dword [ebx + 0x24]
cmp eax, ecx
ja 0x4aac22
mov edx, dword [ebx + 0x28]
add eax, edx
cmp eax, ecx
ja 0x4aac22
xor edi, edi
inc edi
cmp dword [ebx + 0x2c], edi
jne 0x4aac22
lea eax, [edx + 1]
push eax
call fcn.004bae68
push dword [ebx + 0x28]
mov esi, eax
mov eax, dword [ebx + 0x24]
add eax, ebx
push eax
push esi
call fcn.004bebf0
mov al, byte [ebx + 0x30]
xor ecx, ecx
mov edx, dword [ebx + 0x28]
add esp, 0x10
mov byte [ebp + 0xb], al
mov eax, ecx
test edx, edx
jle 0x4aac0b
mov cl, byte [ebp + 0xb]
xor byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x4aac00
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 8], edi
mov byte [esi + eax], cl
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x54], esi
mov eax, dword [ebx + 0x28]
mov dword [ecx + 0x58], eax
jmp 0x4aac29
mov esi, dword [ebp - 4]
jmp 0x4aac29
mov esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x4aac43
test esi, esi
je 0x4aac43
push esi
call fcn.004bbca6
pop ecx
pop edi
pop esi
test ebx, ebx
je 0x4aac50
push ebx
call fcn.004bbca6
pop ecx
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4aad8e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], ebx
cmp dword [esi + 0x14], 8
jb 0x4aadb8
mov eax, dword [esi]
jmp 0x4aadba
mov eax, esi
lea ecx, [ebp - 0x48]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4aae82
push edi
push eax
call fcn.004bc2f0
mov edi, eax
mov dword [ebp - 0x58], edi
pop ecx
test edi, edi
je 0x4aae81
cmp dword [esi + 0x14], 8
jb 0x4aadec
mov esi, dword [esi]
push edi
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4aae7a
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
push eax
push 0x50f8e4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4aae7a
cmp dword [ebp - 0x4c], ebx
je 0x4aae7a
mov eax, dword [ebp - 0x50]
push 0x3a
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
xor eax, eax
push eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push eax
mov dword [ebp - 0x44], ecx
call fcn.004bf240
push esi
push edi
push ebx
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push 0x50de60
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x40]
push eax
call fcn.00405d70
mov ecx, dword [ebp - 0x54]
add esp, 0x28
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00407560
mov edi, dword [ebp - 0x58]
mov bl, 1
push edi
call fcn.004bbc6e
pop ecx
pop edi
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
Function at 0x4ad187
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.004bf240
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4ad248
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4ad1db
sub ecx, edx
sar ecx, 1
je 0x4ad210
cmp word [ebp + ecx*2 - 0x212], 0x5c
jne 0x4ad210
lea ecx, [ecx*2 - 2]
cmp ecx, 0x20a
jae 0x4ad258
xor eax, eax
mov word [ebp + ecx - 0x210], ax
push 0x6c
call fcn.00481836
mov esi, eax
pop ecx
test esi, esi
je 0x4ad242
push 0x160
sub esp, 0x18
lea eax, [ebp - 0x210]
mov ecx, esp
push eax
call fcn.00406c40
mov ecx, esi
call fcn.004aca4d
mov dword [0x55b35c], eax
jmp 0x4ad248
mov dword [0x55b35c], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
call fcn.004bfbbc
int3

Function at 0x4adb8a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4adc71
test ebx, ebx
je 0x4adc71
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4adc71
push 0x7ff
lea eax, [ebp - 0x803]
mov byte [ebp - 0x804], 0
push 0
push eax
call fcn.004bf240
add esp, 0xc
cmp edi, 0x800
ja 0x4adc71
lea eax, [ebp - 0x804]
push eax
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4adc71
and dword [ebp - 0x80c], 0
lea eax, [ebp - 0x80c]
and dword [ebp - 0x808], 0
push eax
lea eax, [ebp - 0x808]
push eax
push 0x50f8e4
lea eax, [ebp - 0x804]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4adc71
mov eax, dword [ebp - 0x808]
mov si, word [eax + 0xa]
mov dx, word [eax + 8]
mov cx, word [eax + 0xe]
mov ax, word [eax + 0xc]
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
push 0x50de60
push dword [ebp + 0x10]
push ebx
call fcn.004c2ce6
add esp, 0x1c
mov al, 1
jmp 0x4adc73
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x4adc84
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
test ebx, ebx
je 0x4add46
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4add46
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4add46
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4add46
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ecx], esi
mov dword [edx], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4add46
push edi
push eax
call fcn.004bae68
mov edi, eax
pop ecx
test edi, edi
je 0x4add45
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4add3e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x50f8e4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4add3e
cmp dword [ebp - 8], esi
jbe 0x4add3b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [ecx + 0xc]
mov dword [edx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x10]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor esi, esi
inc esi
push edi
call fcn.004bbca6
pop ecx
pop edi
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4adf2e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
lea edi, [ebp - 0x16]
mov word [ebp - 0x18], ax
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push str.LIEBAO_ENABLE_UPLOAD_DUMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x18], 0x30
pop edi
setne al
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x4ae550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f49c8
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.004bf2f0
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x102c], edi
call fcn.00495963
mov byte [edi + 0xc4], 0
xor ecx, ecx
mov dword [edi + 0xdc], 7
mov dword [edi + 0xd8], 0
mov dword [ebp - 4], 0
mov word [edi + 0xc8], cx
mov word [edi + 0xe0], cx
lea ecx, [edi + 0xe4]
push 6
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.h_lvse
mov byte [ebp - 4], 1
mov byte [ecx], 0
call fcn.004038d0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
push 1
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x1024]
mov byte [ebp - 4], 3
mov dword [ebp - 0x1028], 0
call fcn.00426042
test eax, eax
jne 0x4ae7c0
mov esi, dword [ebp - 0x1024]
lea eax, [ebp - 0x1014]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1014], 4
push eax
lea eax, [ebp - 0x1018]
push eax
push 0
push str.ProxyEnable
push esi
call ebx
test eax, eax
jne 0x4ae7c6
cmp dword [ebp - 0x1018], 4
jne 0x4ae7c6
cmp dword [ebp - 0x1028], eax
je 0x4ae7c6
test esi, esi
je 0x4ae69e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1024], 0
push 1
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x1024]
mov dword [ebp - 0x1020], 0
call fcn.00426042
test eax, eax
jne 0x4ae7c0
push 0xffe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.004bf240
mov esi, dword [ebp - 0x1024]
lea eax, [ebp - 0x1014]
add esp, 0xc
mov dword [ebp - 0x1014], 0x1000
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1018]
push eax
push 0
push str.ProxyServer
push esi
call ebx
test eax, eax
jne 0x4ae7c6
mov eax, dword [ebp - 0x1018]
cmp eax, 1
je 0x4ae72e
cmp eax, 2
jne 0x4ae7c6
mov ecx, dword [ebp - 0x1014]
test ecx, ecx
je 0x4ae752
test cl, 1
jne 0x4ae7c6
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x1012], 0
je 0x4ae75b
jmp 0x4ae7c6
xor eax, eax
mov word [ebp - 0x1010], ax
shr ecx, 1
add ecx, ecx
cmp ecx, 0x1000
jae 0x4ae7bb
xor eax, eax
mov word [ebp + ecx - 0x1010], ax
cmp word [ebp - 0x1010], ax
jne 0x4ae77e
xor ecx, ecx
jmp 0x4ae796
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ae787
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1010]
push eax
lea ecx, [edi + 0xc8]
call fcn.00407560
cmp dword [edi + 0xd8], 0
je 0x4ae7c6
mov byte [edi + 0xc4], 1
jmp 0x4ae7c6
call fcn.004bfbbc
mov esi, dword [ebp - 0x1024]
test esi, esi
je 0x4ae7d1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x4ae7f0
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4ac4
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x3c]
mov dword [esi], 0x501cd0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x50ddb1
mov dword [ebp - 0x814], esi
mov byte [ecx], 0
call fcn.004038d0
lea ecx, [esi + 0x54]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push 0x50ddb1
mov byte [ecx], 0
call fcn.004038d0
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 6
mov dword [ecx + 0x10], 0
push str.h_lvse
mov byte [ecx], 0
call fcn.004038d0
mov byte [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov byte [esi + 0x98], 0
mov byte [esi + 0x99], 0
mov byte [esi + 0x9a], 0
mov byte [esi + 0x9b], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xc8], 0xf
mov dword [esi + 0xc4], 0
mov byte [esi + 0xb4], 0
mov dword [esi + 0xe0], 0xf
mov dword [esi + 0xdc], 0
mov byte [esi + 0xcc], 0
mov dword [esi + 0xf8], 0xf
mov dword [esi + 0xf4], 0
mov byte [esi + 0xe4], 0
mov dword [esi + 0x110], 0xf
mov dword [esi + 0x10c], 0
mov byte [esi + 0xfc], 0
mov dword [esi + 0x128], 0xf
mov dword [esi + 0x124], 0
mov byte [esi + 0x114], 0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x12c]
call fcn.004ae550
lea ecx, [esi + 0x228]
mov byte [ebp - 4], 0xb
call fcn.004aea90
lea eax, [esi + 0x324]
mov byte [ebp - 4], 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x810]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x810], 0
jne 0x4aea4d
xor eax, eax
jmp 0x4aea5f
lea eax, [ebp - 0x810]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aea56
sub eax, edx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [esi + 0xb4]
call fcn.004038d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x4af490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
cmp dword [ebp + 0x14], ebx
jne 0x4af4a2
int3
cmp byte [ebp + 0x10], bl
je 0x4af4b0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], ebx
ja 0x4af4b0
int3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4af4bb
mov eax, dword [eax]
push 0x50fac8
push eax
call fcn.004c0ed5
mov esi, eax
add esp, 8
test esi, esi
je 0x4af559
push edi
push 2
push 0
push esi
call fcn.004c13fe
push esi
call fcn.004c1811
push 0
push 0
push esi
mov edi, eax
call fcn.004c13fe
add esp, 0x1c
test edi, edi
jle 0x4af54f
mov dl, byte [ebp + 0x10]
test dl, dl
je 0x4af508
mov ecx, dword [ebp + 0x1c]
lea eax, [edi + 0x18]
mov dword [ecx], eax
jmp 0x4af50f
mov eax, dword [ebp + 0x1c]
mov ecx, eax
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
cmp eax, dword [ecx]
jb 0x4af54f
test dl, dl
je 0x4af53b
mov ebx, dword [ebp + 0x14]
push 0x18
push ebx
push edi
push dword [ebp + 0xc]
call fcn.004af560
push esi
push edi
lea eax, [ebx + 0x18]
push 1
push eax
call fcn.004c12c3
add esp, 0x20
jmp 0x4af54a
push esi
push edi
push 1
push dword [ebp + 0x14]
call fcn.004c12c3
add esp, 0x10
mov ebx, 1
push esi
call fcn.004c0d4e
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4af7d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test edi, edi
jne 0x4af7e2
int3
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov edx, esi
mov ecx, dword [eax]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4af802
int3
xor ebx, ebx
cmp ecx, esi
je 0x4af812
add ebx, dword [ecx + 0x10]
add ecx, 0x18
cmp ecx, esi
jne 0x4af808
test bl, 7
je 0x4af821
shr ebx, 3
lea ebx, [ebx*8 + 8]
push ebx
call fcn.004bc2f0
push ebx
mov esi, eax
push 0
push esi
call fcn.004bf240
mov ecx, dword [ebp - 4]
add esp, 0x10
push ebx
push esi
push dword [ebp + 8]
call fcn.004af930
push edi
push ebx
push 1
push esi
call fcn.004c2abe
push edi
call fcn.004c35ff
push esi
call fcn.004bbc6e
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4af870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4d18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4af90f
cmp dword [ebx + 0x68], 0x10
lea edi, [ebx + 0x54]
jb 0x4af8b4
mov ecx, dword [edi]
jmp 0x4af8b6
mov ecx, edi
push eax
push dword [ebx + 0x64]
push 1
push ecx
call fcn.004c2abe
push dword [ebp - 0x2c]
mov esi, eax
call fcn.004c35ff
add esp, 0x14
cmp esi, 8
je 0x4af90f
push 0x50ddb1
lea ecx, [ebp - 0x28]
call fcn.00402570
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push edi
lea eax, [ebx + 0x3c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
push 6
call fcn.004b47f0
cmp dword [ebp - 0x14], 0x10
jb 0x4af90f
push dword [ebp - 0x28]
call fcn.0048185e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 4
Function at 0x4b0520
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x288
mov dword [ebp - 0x38], eax
call fcn.004bc2f0
add esp, 4
mov dword [ebp - 0x34], 0x288
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4b0580
push edi
call fcn.004bbc6e
push dword [ebp - 0x34]
call fcn.004bc2f0
add esp, 8
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4b0634
push 8
lea eax, [edi + 0x194]
mov ecx, ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004b13f0
mov ebx, eax
cmp esi, ebx
je 0x4b05cb
cmp dword [esi + 0x14], 0x10
jb 0x4b05b2
push dword [esi]
call fcn.0048185e
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.00403240
cmp dword [ebp - 0x1c], 0x10
jb 0x4b05dc
push dword [ebp - 0x30]
call fcn.0048185e
add esp, 4
xor eax, eax
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebp - 0x18]
push 0xa
push eax
lea eax, [edi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call fcn.004c6d8c
mov edx, eax
add esp, 0xc
cmp byte [edx], 0
jne 0x4b061c
xor ecx, ecx
jmp 0x4b062a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b0621
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x38]
push edx
call fcn.004038d0
test edi, edi
je 0x4b0641
push edi
call fcn.004bbc6e
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
Function at 0x4b09d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], eax
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x4b0a19
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [ebp - 0x113]
push 0x103
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.004bf240
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x114], 0
jne 0x4b0a5d
xor al, al
jmp 0x4b0c09
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
lea edx, [ecx + 1]
mov byte [ebp - 0x230], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b0a81
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004038d0
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
cmp byte [edx], 0
jne 0x4b0abc
xor ecx, ecx
jmp 0x4b0aca
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b0ac1
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.004038d0
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4b0bee
push esi
call fcn.004bae68
add esp, 4
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
mov ebx, eax
mov dword [ebp - 0x244], ebx
cmovae ecx, dword [ebp - 0x230]
push ebx
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4b0be5
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x512e68
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4b0be5
mov eax, dword [ebp - 0x234]
push 0x103
push 0
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
lea eax, [ebp - 0x217]
push eax
mov dword [ebp - 0x240], ecx
mov byte [ebp - 0x218], 0
call fcn.004bf240
mov eax, dword [ebp - 0x240]
push esi
push edi
push ebx
movzx eax, ax
push eax
push str._d._d._d._d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004c6bdd
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
add esp, 0x28
push eax
call fcn.0041ecb0
push dword [ebp - 0x244]
call fcn.004bbca6
add esp, 4
mov bl, 1
jmp 0x4b0bf0
push ebx
call fcn.004bbca6
add esp, 4
xor bl, bl
cmp dword [ebp - 0x21c], 0x10
jb 0x4b0c07
push dword [ebp - 0x230]
call fcn.0048185e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret