joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aacd9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x52de80]
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 0x4aad03
mov eax, dword [esi]
jmp 0x4aad05
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 0x4aadcd
push edi
push eax
call fcn.004bc250
mov edi, eax
mov dword [ebp - 0x58], edi
pop ecx
test edi, edi
je 0x4aadcc
cmp dword [esi + 0x14], 8
jb 0x4aad37
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 0x4aadc5
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
push eax
push 0x50c8cc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4aadc5
cmp dword [ebp - 0x4c], ebx
je 0x4aadc5
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.004bf1a0
push esi
push edi
push ebx
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push 0x50c6d0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x40]
push eax
call fcn.00402db0
mov ecx, dword [ebp - 0x54]
add esp, 0x28
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004064c0
mov edi, dword [ebp - 0x58]
mov bl, 1
push edi
call fcn.004bbbce
pop ecx
pop edi
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
Function at 0x4ad0e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x52de80]
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.004bf1a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4ad1a4
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4ad137
sub ecx, edx
sar ecx, 1
je 0x4ad16c
cmp word [ebp + ecx*2 - 0x212], 0x5c
jne 0x4ad16c
lea ecx, [ecx*2 - 2]
cmp ecx, 0x20a
jae 0x4ad1b4
xor eax, eax
mov word [ebp + ecx - 0x210], ax
push 0x6c
call fcn.0048156c
mov esi, eax
pop ecx
test esi, esi
je 0x4ad19e
push 0x160
sub esp, 0x18
lea eax, [ebp - 0x210]
mov ecx, esp
push eax
call fcn.004045b0
mov ecx, esi
call fcn.004ac998
mov dword [0x55917c], eax
jmp 0x4ad1a4
mov dword [0x55917c], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
call fcn.004bfb1c
int3

Function at 0x4adae6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x52de80]
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 0x4adbcd
test ebx, ebx
je 0x4adbcd
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4adbcd
push 0x7ff
lea eax, [ebp - 0x803]
mov byte [ebp - 0x804], 0
push 0
push eax
call fcn.004bf1a0
add esp, 0xc
cmp edi, 0x800
ja 0x4adbcd
lea eax, [ebp - 0x804]
push eax
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4adbcd
and dword [ebp - 0x80c], 0
lea eax, [ebp - 0x80c]
and dword [ebp - 0x808], 0
push eax
lea eax, [ebp - 0x808]
push eax
push 0x50c8cc
lea eax, [ebp - 0x804]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4adbcd
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 0x50c6d0
push dword [ebp + 0x10]
push ebx
call fcn.004c2ba4
add esp, 0x1c
mov al, 1
jmp 0x4adbcf
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4adbe0
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 0x4adca2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4adca2
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4adca2
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4adca2
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 0x4adca2
push edi
push eax
call fcn.004badc8
mov edi, eax
pop ecx
test edi, edi
je 0x4adca1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4adc9a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x50c8cc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4adc9a
cmp dword [ebp - 8], esi
jbe 0x4adc97
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.004bbc06
pop ecx
pop edi
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ade8a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52de80]
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.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4ae4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4098
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.004bf250
mov eax, dword [0x52de80]
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.00495698
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.004025a0
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.00425fcb
test eax, eax
jne 0x4ae710
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 0x4ae716
cmp dword [ebp - 0x1018], 4
jne 0x4ae716
cmp dword [ebp - 0x1028], eax
je 0x4ae716
test esi, esi
je 0x4ae5ee
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.00425fcb
test eax, eax
jne 0x4ae710
push 0xffe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.004bf1a0
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 0x4ae716
mov eax, dword [ebp - 0x1018]
cmp eax, 1
je 0x4ae67e
cmp eax, 2
jne 0x4ae716
mov ecx, dword [ebp - 0x1014]
test ecx, ecx
je 0x4ae6a2
test cl, 1
jne 0x4ae716
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x1012], 0
je 0x4ae6ab
jmp 0x4ae716
xor eax, eax
mov word [ebp - 0x1010], ax
shr ecx, 1
add ecx, ecx
cmp ecx, 0x1000
jae 0x4ae70b
xor eax, eax
mov word [ebp + ecx - 0x1010], ax
cmp word [ebp - 0x1010], ax
jne 0x4ae6ce
xor ecx, ecx
jmp 0x4ae6e6
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ae6d7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1010]
push eax
lea ecx, [edi + 0xc8]
call fcn.004064c0
cmp dword [edi + 0xd8], 0
je 0x4ae716
mov byte [edi + 0xc4], 1
jmp 0x4ae716
call fcn.004bfb1c
mov esi, dword [ebp - 0x1024]
test esi, esi
je 0x4ae721
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.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4ae740
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4194
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x52de80]
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], 0x500e20
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 0x50c74d
mov dword [ebp - 0x814], esi
mov byte [ecx], 0
call fcn.004025a0
lea ecx, [esi + 0x54]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push 0x50c74d
mov byte [ecx], 0
call fcn.004025a0
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.004025a0
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.004ae4a0
lea ecx, [esi + 0x228]
mov byte [ebp - 4], 0xb
call fcn.004ae9e0
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 0x4ae99d
xor eax, eax
jmp 0x4ae9af
lea eax, [ebp - 0x810]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae9a6
sub eax, edx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [esi + 0xb4]
call fcn.004025a0
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.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4af3e0
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 0x4af3f2
int3
cmp byte [ebp + 0x10], bl
je 0x4af400
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], ebx
ja 0x4af400
int3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4af40b
mov eax, dword [eax]
push 0x50ca38
push eax
call fcn.004c0e35
mov esi, eax
add esp, 8
test esi, esi
je 0x4af4a9
push edi
push 2
push 0
push esi
call fcn.004c135d
push esi
call fcn.004c1770
push 0
push 0
push esi
mov edi, eax
call fcn.004c135d
add esp, 0x1c
test edi, edi
jle 0x4af49f
mov dl, byte [ebp + 0x10]
test dl, dl
je 0x4af458
mov ecx, dword [ebp + 0x1c]
lea eax, [edi + 0x18]
mov dword [ecx], eax
jmp 0x4af45f
mov eax, dword [ebp + 0x1c]
mov ecx, eax
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
cmp eax, dword [ecx]
jb 0x4af49f
test dl, dl
je 0x4af48b
mov ebx, dword [ebp + 0x14]
push 0x18
push ebx
push edi
push dword [ebp + 0xc]
call fcn.004af4b0
push esi
push edi
lea eax, [ebx + 0x18]
push 1
push eax
call fcn.004c1222
add esp, 0x20
jmp 0x4af49a
push esi
push edi
push 1
push dword [ebp + 0x14]
call fcn.004c1222
add esp, 0x10
mov ebx, 1
push esi
call fcn.004c0cae
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4af720
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 0x4af732
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 0x4af752
int3
xor ebx, ebx
cmp ecx, esi
je 0x4af762
add ebx, dword [ecx + 0x10]
add ecx, 0x18
cmp ecx, esi
jne 0x4af758
test bl, 7
je 0x4af771
shr ebx, 3
lea ebx, [ebx*8 + 8]
push ebx
call fcn.004bc250
push ebx
mov esi, eax
push 0
push esi
call fcn.004bf1a0
mov ecx, dword [ebp - 4]
add esp, 0x10
push ebx
push esi
push dword [ebp + 8]
call fcn.004af880
push edi
push ebx
push 1
push esi
call fcn.004c297c
push edi
call fcn.004c351f
push esi
call fcn.004bbbce
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4af7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f43e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52de80]
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 0x4af85f
cmp dword [ebx + 0x68], 0x10
lea edi, [ebx + 0x54]
jb 0x4af804
mov ecx, dword [edi]
jmp 0x4af806
mov ecx, edi
push eax
push dword [ebx + 0x64]
push 1
push ecx
call fcn.004c297c
push dword [ebp - 0x2c]
mov esi, eax
call fcn.004c351f
add esp, 0x14
cmp esi, 8
je 0x4af85f
push 0x50c74d
lea ecx, [ebp - 0x28]
call fcn.00401f90
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.004b4750
cmp dword [ebp - 0x14], 0x10
jb 0x4af85f
push dword [ebp - 0x28]
call fcn.00481594
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.004bc11d
mov esp, ebp
pop ebp
ret 4
Function at 0x4b0470
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x52de80]
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.004bc250
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 0x4b04d0
push edi
call fcn.004bbbce
push dword [ebp - 0x34]
call fcn.004bc250
add esp, 8
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4b0584
push 8
lea eax, [edi + 0x194]
mov ecx, ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004b1340
mov ebx, eax
cmp esi, ebx
je 0x4b051b
cmp dword [esi + 0x14], 0x10
jb 0x4b0502
push dword [esi]
call fcn.00481594
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.00402150
cmp dword [ebp - 0x1c], 0x10
jb 0x4b052c
push dword [ebp - 0x30]
call fcn.00481594
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.004c698c
mov edx, eax
add esp, 0xc
cmp byte [edx], 0
jne 0x4b056c
xor ecx, ecx
jmp 0x4b057a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b0571
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x38]
push edx
call fcn.004025a0
test edi, edi
je 0x4b0591
push edi
call fcn.004bbbce
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
Function at 0x4b0920
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f452b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x52de80]
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 0x4b0969
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.004bf1a0
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 0x4b09ad
xor al, al
jmp 0x4b0b59
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 0x4b09d1
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004025a0
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 0x4b0a0c
xor ecx, ecx
jmp 0x4b0a1a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b0a11
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.004025a0
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 0x4b0b3e
push esi
call fcn.004badc8
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 0x4b0b35
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x510cd0
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4b0b35
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.004bf1a0
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.004c67d9
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
add esp, 0x28
push eax
call fcn.0041eff0
push dword [ebp - 0x244]
call fcn.004bbc06
add esp, 4
mov bl, 1
jmp 0x4b0b40
push ebx
call fcn.004bbc06
add esp, 4
xor bl, bl
cmp dword [ebp - 0x21c], 0x10
jb 0x4b0b57
push dword [ebp - 0x230]
call fcn.00481594
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.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4b22b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov byte [ebp - 0x805], 0
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x81c], ecx
lea esi, [eax + 0xb4]
mov ecx, dword [ebp + 0x18]
push edi
or edi, 0xffffffff
mov dword [ebp - 0x814], ecx
cmp dword [esi + 0x14], 0x10
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x80c], edi
jb 0x4b2310
mov esi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call ebx
push eax
push esi
push str._s_send__x.gz
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.004c67d9
add esp, 0x14
test eax, eax
js 0x4b241a
lea eax, [ebp - 0x804]
push 0x51599c
push eax
call fcn.004e6861
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b2414
push dword [ebp + 0x10]
push dword [ebp - 0x81c]
push ebx
call fcn.004e644e
push ebx
mov esi, eax
call fcn.004e675f
add esp, 0x10
test esi, esi
je 0x4b23fa
push dword [ebp - 0x814]
mov ebx, dword [ebp - 0x818]
lea eax, [ebp - 0x80c]
push dword [ebp + 0x14]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x804]
push eax
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [ebx], ax
jne 0x4b23bf
xor ecx, ecx
jmp 0x4b23d3
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b23c4
sub ecx, esi
sar ecx, 1
push ecx
push ebx
mov ecx, edx
call fcn.004064c0
mov eax, dword [ebp - 0x810]
add eax, 0x12c
push eax
call fcn.004b4a80
mov edi, dword [ebp - 0x80c]
mov byte [ebp - 0x805], 1
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0x805], 0
jne 0x4b24ec
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [ebp - 0x810]
cmp dword [eax + 0xdc], 0
je 0x4b24ec
cmp dword [eax + 0xe0], 0x10
lea esi, [eax + 0xcc]
jb 0x4b243e
mov esi, dword [esi]
call ebx
push eax
push esi
push str._s_send__x.gz
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.004c67d9
add esp, 0x14
test eax, eax
js 0x4b24ec
lea eax, [ebp - 0x804]
push 0x51599c
push eax
call fcn.004e6861
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b24ec
push dword [ebp + 0x10]
push dword [ebp - 0x81c]
push ebx
call fcn.004e644e
push ebx
mov esi, eax
call fcn.004e675f
add esp, 0x10
test esi, esi
je 0x4b24df
push dword [ebp - 0x814]
lea eax, [ebp - 0x80c]
push dword [ebp + 0x14]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x804]
push eax
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x818]
call fcn.004045b0
mov eax, dword [ebp - 0x810]
add eax, 0x12c
push eax
call fcn.004b4a80
mov edi, dword [ebp - 0x80c]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 0x18