joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468180
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x4fe080]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
lea eax, [esp + 0xc]
push edi
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
mov ebp, dword [esi + 0x16c]
or edi, 0xffffffff
mov ebx, dword [esi]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4681e2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push esi
call fcn.00451c70
add esp, 8
cmp edi, 0xffffffff
jne 0x468206
push str.Error_accept__ing_server_connect
push ebx
call fcn.004433b0
add esp, 8
mov eax, 0x1e
jmp 0x46825e
push str.Connection_accepted_from_server_n
push ebx
call fcn.00443480
push 1
mov byte [esi + 0x28f], 0
push edi
mov dword [esi + 0x16c], edi
call fcn.00471df0
mov byte [esi + 0x179], 1
add esp, 0x10
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x46825c
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x46825c
push esi
call fcn.004686e0
add esp, 4
mov eax, 0x2a
jmp 0x46825e
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047b06c
add esp, 0x88
ret

Function at 0x46a720
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov eax, edx
xor esi, esi
push edi
mov edi, dword [esp + 0x10]
shr eax, 0x1f
add eax, edx
mov ebx, dword [edi]
cmp eax, 2
je 0x46a75a
push str.Couldnt_set_desired_mode
push ebx
call fcn.004433b0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x46a771
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00443480
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 0x13
jne 0x46a789
push edi
call fcn.0046a4c0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x46a79d
push edi
call fcn.004695f0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x46a7b5
push 0xd
push 1
push edi
call fcn.0046a030
add esp, 0xc
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x46a7c9
push 0xe
push 1
push edi
call fcn.0046a030
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x46f8c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4fe080]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004827e9
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x46f925
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x46f925
lea eax, [esp]
push eax
call dword [0x4fddf8]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0047b06c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.0047b06c
add esp, 0x108
ret
Function at 0x474600
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x474610
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x4fddec]
mov edi, eax
add esp, 4
test edi, edi
jne 0x474637
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x474650
lea ecx, [ecx]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x474640
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4746ca
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4746be
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x4fddf0]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4746f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x4fe080]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x474795
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movdqu xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.00474800
lea eax, [esp + 0x28]
push 8
push eax
call fcn.00477cd0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4747a8
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047b06c
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0047b06c
add esp, 0x24
ret
Function at 0x477ec0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4fddec]
mov edi, eax
add esp, 4
test edi, edi
jne 0x477ee7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x477f2f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x477f33
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x477f93
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec ebx
jne 0x477f54
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x477fc7
jmp 0x477fa0
mov eax, dword [esi + 4]
push 1
push 0x4e4a46
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4e4a47
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x477fa0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x479410
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4d1834
call fcn.004838b1
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x479508
cmp byte [esi + 0x46], bl
je 0x479508
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x47944c
xor al, al
jmp 0x47950a
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.0040382f
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x479479
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4794a0
dec eax
je 0x4794a4
dec eax
dec eax
je 0x4794f6
xor bl, bl
jmp 0x4794f8
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x4794b4
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x4794dc
cmp eax, 0x10
jae 0x4794c3
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.0047c496
add esp, 0x10
cmp ebx, eax
jne 0x47949c
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x4794f6
test ebx, ebx
jne 0x47946d
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00403486
jmp 0x479467
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401b55
mov al, bl
jmp 0x47950a
mov al, 1
call fcn.0048386f
ret
Function at 0x47990f
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x4d1886
call fcn.004838b1
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x479931
xor eax, eax
jmp 0x479ab9
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x47995d
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x47995d
dec dword [edx]
mov ax, bx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x479ab9
cmp dword [edi + 0x50], 0
je 0x479ab6
mov ecx, edi
call fcn.004795a1
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x479990
push dword [edi + 0x50]
push ebx
call fcn.00479225
pop ecx
pop ecx
test al, al
je 0x479ab6
movzx esi, bx
jmp 0x479ab6
push ecx
movzx eax, bx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0xf
call fcn.0040382f
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jae 0x4799c3
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp ecx, 0x10
jae 0x4799d1
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x48]
push eax
call dword [edx + 0x1c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x479aaa
cmp eax, 1
jg 0x479a8e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jb 0x479a1e
mov dword [ebp - 0x2c], eax
jmp 0x479a24
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
je 0x479a56
cmp ecx, 0x10
jae 0x479a37
lea eax, [ebp - 0x28]
push dword [edi + 0x50]
push edx
push 1
push eax
call fcn.0047c496
mov edx, dword [ebp - 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x479a86
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea ebx, [ebp - 0x34]
mov byte [edi + 0x46], 1
cmp dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 8]
jne 0x479a83
test edx, edx
jne 0x4799bb
cmp dword [ebp - 0x18], 0x20
jae 0x479a89
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.00403486
jmp 0x4799b2
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x479aa7
cmp eax, 3
jne 0x479aaa
push dword [edi + 0x50]
push dword [ebp - 0x34]
call fcn.00479225
pop ecx
pop ecx
test al, al
je 0x479aa7
movzx esi, bx
movzx esi, si
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401b55
mov ax, si
call fcn.0048386f
ret 4

Function at 0x485a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4a1c69
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00488280
mov dword [ebp - 0x14], eax
cmp dword [0x50b040], esi
jne 0x4a1d5c
push 0x800
push esi
push 0x4ebe30
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a1ce9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a1e3c
push esi
push esi
push 0x4ebe30
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a1e3c
push 0x4ebe48
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a1e3c
push eax
call ebx
push 0x4ebe54
push edi
mov dword [0x50b040], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4ebe64
push edi
mov dword [0x50b044], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4ebe78
push edi
mov dword [0x50b048], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x50b050], eax
test eax, eax
je 0x4a1d59
push 0x4ebe94
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x50b04c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a1d81
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a1d74
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a1d96
push 4
pop eax
jmp 0x4a1e3e
cmp dword [ebp - 0x14], esi
je 0x4a1d96
push dword [0x50b040]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a1d7b
mov eax, dword [0x50b04c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a1df4
cmp dword [0x50b050], edi
je 0x4a1df4
push eax
call ebx
push dword [0x50b050]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a1df4
test eax, eax
je 0x4a1df4
call ecx
test eax, eax
je 0x4a1de9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a1de9
test byte [ebp - 8], 1
jne 0x4a1df4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a1e24
mov eax, dword [0x50b044]
cmp eax, edi
je 0x4a1e21
push eax
call ebx
test eax, eax
je 0x4a1e21
call eax
mov esi, eax
test esi, esi
je 0x4a1e21
mov eax, dword [0x50b048]
cmp eax, edi
je 0x4a1e21
push eax
call ebx
test eax, eax
je 0x4a1e21
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x50b040]
call ebx
test eax, eax
je 0x4a1e3c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a1e3e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b06c
mov esp, ebp
pop ebp
ret
Function at 0x4bbed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
push str.Unspecified_error.
call fcn.004b3d20
add esp, 4
push 0x44
push 0
lea eax, [ebp - 0x268]
push eax
call fcn.0047bb20
add esp, 0xc
mov dword [ebp - 0x268], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x220]
push ecx
call fcn.0047bb20
add esp, 0xc
mov dx, word [0x4e6048]
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.0047bb20
add esp, 0xc
push 0x4edfd4
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004a0948
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x210]
add ecx, 0x9c
call fcn.004b6210
push eax
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.004a0948
add esp, 0xc
push 0x4edfd8
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004a0948
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.004a0948
add esp, 0xc
push 0x4edfd4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004a0948
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x268]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x210]
add ecx, 0x9c
call fcn.004c3000
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x21c], 0
je 0x4bc034
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0
cmp dword [ebp - 0x224], 0
jne 0x4bc051
push 0x4edfe0
call fcn.004b3d20
add esp, 4
mov eax, 1
jmp 0x4bc0a5
cmp dword [ebp + 0xc], 0
je 0x4bc06c
push 0xffffffffffffffff
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], 0
je 0x4bc07f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x220]
mov dword [ecx], edx
jmp 0x4bc096
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], 0
push 0x4ecd90
call fcn.004b3d20
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c7ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3354
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.004c9260
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4c7b1e
mov eax, 1
jmp 0x4c7b6c
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x220]
call fcn.004b5a10
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004c2b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004b5bb0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret
Function at 0x4c84a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d35be
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4fe080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004b5ab0
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp + 0xc]
call fcn.004c3000
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4c85b9
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.004c3000
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c85b9
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x4d5e10
mov edx, dword [ebp - 0x24]
push edx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
and eax, 0xffff
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
shr edx, 0x10
and edx, 0xffff
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
mov word [ebp - 0x10], cx
movzx edx, word [ebp - 0x10]
push edx
movzx eax, word [ebp - 0x14]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
movzx edx, word [ebp - 0x1c]
push edx
push 0x4ee1dc
lea eax, [ebp - 0x28]
push eax
call fcn.004c3720
add esp, 0x18
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.004c26a0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004b5bb0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004b5bb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4c8610
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d35f1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4fe080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b5ab0
mov byte [ebp - 4], 1
push 0
push 0x3a
lea ecx, [ebp + 8]
call fcn.004c92a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x4c8666
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x5c
lea ecx, [ebp + 8]
call fcn.004c92a0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4c8691
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004c2b60
jmp 0x4c86c6
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 8]
call fcn.004c3e40
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004c2b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004b5bb0
push 0
lea ecx, [ebp - 0x14]
call fcn.004c3000
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4c8714
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4c8714
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b5bb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004b5bb0
mov eax, dword [ebp - 0x2c]
jmp 0x4c8790
lea ecx, [ebp - 0x14]
call fcn.004c3000
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
and edx, 0x10
jne 0x4c8755
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b5bb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004b5bb0
mov eax, dword [ebp - 0x34]
jmp 0x4c8790
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4c875d
jmp 0x4c876b
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4c866c
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b5bb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004b5bb0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret