joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2c00
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4d2c39
cmp dword [esi + 0xc], 0
jne 0x4d2c39
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test eax, eax
mov dword [esi + 0xc], eax
pop esi
setne al
pop ebp
ret 0x18
xor al, al
pop esi
pop ebp
ret 0x18

Function at 0x4d2c40
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4d2c50
xor al, al
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp eax, 1
sete al
pop ebp
ret 0xc

Function at 0x4d2cc0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4d2cd0
xor al, al
pop ebp
ret 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffff
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, 1
sete al
pop ebp
ret 0x10

Function at 0x4d2d00
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x4d2d2a
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d2d2a
push 0
push eax
push 0
push 0
push 0x16
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
sete al
pop ebp
ret 4
xor al, al
pop ebp
ret 4

Function at 0x4d2d30
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4d2d63
test eax, eax
je 0x4d2d63
cmp dword [ebp + 0xc], 0
je 0x4d2d63
push 0
lea edx, [ebp + 0xc]
push edx
push eax
push 0
push 0x16
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, 1
sete al
pop ebp
ret 8
xor al, al
pop ebp
ret 8

Function at 0x4d2d70
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 0xc]
test esi, esi
je 0x4d2de8
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00556180
add esp, 0xc
mov dword [ebp - 0x108], 0xff
lea eax, [ebp - 0x108]
push 0
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0x13
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4d2de8
lea eax, [ebp - 0x104]
push eax
call fcn.00560096
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00553cca
mov esp, ebp
pop ebp
ret
Function at 0x4d2e30
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ecx + 0xc]
test edi, edi
je 0x4d2eb7
test esi, esi
je 0x4d2eb7
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00556180
add esp, 0xc
mov dword [ebp - 0x88], 0x7f
lea eax, [ebp - 0x88]
push 0
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push 5
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4d2eb7
lea eax, [ebp - 0x84]
push eax
call fcn.00560096
add esp, 4
mov dword [esi], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00553cca
mov esp, ebp
pop ebp
ret 4

Function at 0x4d2ed0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4d2ee0
xor al, al
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp eax, 1
sete al
pop ebp
ret 0xc
Function at 0x4dc100
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595eb5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004ca9e0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4dc193
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 8], 0x71c71c7
je 0x4dc30b
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x1c], 0
call fcn.00553ee1
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 7
lea eax, [edx + 2]
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4dc1f0
sub edx, dword [ebp - 0x18]
sar edx, 1
push edx
push ecx
lea ecx, [esi + 0xc]
call fcn.00425790
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
movss xmm3, dword [edi]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x5e2f00]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x5e2f00]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x4dc2aa
divss xmm0, xmm3
call fcn.004a6e40
call fcn.005545d0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x4dc289
cmp ebx, 0x200
jae 0x4dc287
shl ebx, 3
cmp ebx, ecx
jae 0x4dc289
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.004cab20
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ca9e0
mov ecx, dword [edi + 8]
mov edx, dword [eax]
jmp 0x4dc2ad
mov edx, dword [ebp - 0x28]
mov ebx, dword [edx + 4]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x20]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x1c]
jne 0x4dc2db
mov dword [ecx + eax*8], esi
jmp 0x4dc2ea
cmp edi, edx
jne 0x4dc2e4
mov dword [ecx + eax*8], esi
jmp 0x4dc2ee
cmp dword [ecx + eax*8 + 4], ebx
jne 0x4dc2ee
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.unordered_map_set_too_long
call fcn.0053ec92
int3
Function at 0x4dc859
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 8], esi
je 0x4dc8ef
cmp dword [edi + 0xc], esi
je 0x4dc8ef
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], esi
je 0x4dc8a8
test eax, eax
je 0x4dc8ac
push esi
push eax
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], vtable.McCryptoLib::CWinError.0
call fcn.004dc4fa
test eax, eax
jne 0x4dc8b3
mov byte [edi + 4], 1
jmp 0x4dc8eb
test eax, eax
je 0x4dc87e
mov eax, reloc.OLEAUT32.dll_VariantCopyInd
jmp 0x4dc8f4
lea ecx, [ebp - 8]
call fcn.004dc4fa
mov ecx, eax
call fcn.004dc431
push eax
push str.McCryptoLib::CMcCryptoHashWin::AddToHash
push 0x90
push str.E:BT6fe319c2_d716_427d_b487_43780f257bfaCoreTechMcCryptoLib_srcwindowswin_hash.cpp
push str.__S:__d____S___s:_Error_trying_to_add_data_for_hashing
push 2
call fcn.004dc512
add esp, 0x18
lea ecx, [ebp - 8]
call fcn.004dc4fa
mov esi, eax
mov eax, esi
jmp 0x4dc8f4
mov eax, reloc.WS2_32.dll_listen
pop edi
pop esi
leave
ret 8

Function at 0x4dfad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59638d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0x8000
push 0x5c2ad8
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x4dfb2d
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x4dfb42
xor ecx, ecx
jmp 0x4dfb56
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dfb47
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.004de870
test esi, esi
je 0x4dfb6b
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e0980
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596590
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CoreTech::CBaseIniReader.0
mov dword [ebp - 4], 0
call fcn.004224a0
mov ebx, eax
test ebx, ebx
je 0x4e0ae3
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 4], eax
mov dword [ebp - 4], 1
call fcn.004224a0
mov ebx, eax
test ebx, ebx
je 0x4e0ae3
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi], vtable.CoreTech::CObfuscatedIniReader.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0x11
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0xa
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x20], 0x3f400000
mov dword [edi + 0x24], 0x3e800000
mov dword [edi + 0x28], 0x40100000
mov dword [edi + 0x2c], 0x26
mov dword [edi + 0x30], 0
mov al, byte [ebp + 8]
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0x11
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xa
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x50], 0x3f400000
mov dword [edi + 0x54], 0x3e800000
mov dword [edi + 0x58], 0x40100000
mov dword [edi + 0x5c], 0x26
mov dword [edi + 0x60], 0
mov byte [edi + 0x74], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0042d790
int3
Function at 0x4e1c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4e1ccb
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x8000
push 0x5c2ad8
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 4]
test eax, eax
jns 0x4e1cd8
test esi, esi
je 0x4e1ccb
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 8
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0056043d
add esp, 0x10
mov edi, eax
test esi, esi
je 0x4e1cf4
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4e2b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
mov esi, ecx
test eax, eax
je 0x4e2c4e
xor ecx, ecx
cmp cx, word [eax]
je 0x4e2c4e
cmp dword [esi + 0x28], ecx
je 0x4e2bb0
mov eax, 0xb7
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0xa0
push edi
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], eax
test ecx, ecx
je 0x4e2be6
cmp ecx, 0xffffffff
je 0x4e2be6
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jne 0x4e2c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ebx, eax
mov dword [esi + 0x28], 0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 3
jne 0x4e2c20
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 2
je 0x4e2c2a
cmp edi, 1
jne 0x4e2c43
push 0
lea ecx, [ebp - 8]
mov word [ebp - 4], 0xfeff
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4e41e0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
mov eax, dword [esi + 0x34]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
test eax, eax
je 0x4e420c
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi + 0x54]
mov ebx, 0x57
mov ecx, esi
call dword [0x5a0478]
mov ecx, dword [ebp - 4]
call esi
mov esi, dword [ebp - 4]
test al, al
je 0x4e42d9
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4e42d9
xor ecx, ecx
cmp cx, word [eax]
je 0x4e42d9
mov ecx, esi
call fcn.004e2c60
mov ebx, eax
test ebx, ebx
je 0x4e425b
cmp ebx, 0xb7
jne 0x4e42d9
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e1320
mov edi, dword [ebp - 8]
mov ebx, eax
test ebx, ebx
jne 0x4e42d9
test edi, edi
jne 0x4e428b
lea ebx, [eax + 0xe]
jmp 0x4e42d9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4290
sub ecx, edx
lea eax, [ebp - 0x10]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [esi + 0x44], 1
mov dword [ebp - 0xc], eax
je 0x4e42cd
xor ecx, ecx
cmp cx, word [edi]
je 0x4e42cd
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4e42d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test eax, eax
je 0x4e42f3
cmp eax, 0xffffffff
je 0x4e42f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4e4300
push edi
call fcn.0055e7dd
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4e430e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4e7070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596c7d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x61094c]
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 ecx, dword [ebp + 0x10]
mov eax, ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
xor edi, 8
and al, 8
cmove edi, ecx
test ebx, ebx
jne 0x4e70b5
xor eax, eax
jmp 0x4e7122
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x5c2a68
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test eax, eax
jns 0x4e70e3
xor edi, edi
jmp 0x4e7115
push ebx
push esi
lea eax, [ebp - 0x28]
push 0x5bd2d4
push eax
call fcn.004abfd0
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00424580
test esi, esi
je 0x4e7120
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
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.00553cca
mov esp, ebp
pop ebp
ret

Function at 0x4e7750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e7775
xor ecx, ecx
cmp cx, word [eax]
je 0x4e7775
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e7775
test al, 0x10
je 0x4e7775
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x4e7c90
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596dbd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x4e7db5
xor eax, eax
cmp ax, word [esi]
je 0x4e7db5
mov ecx, 0x5bd2f8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e7cfd
test dx, dx
je 0x4e7cf9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e7cfd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e7cd7
xor eax, eax
jmp 0x4e7d02
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e7db5
mov ecx, 0x5c944c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e7d37
test dx, dx
je 0x4e7d33
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e7d37
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e7d11
xor eax, eax
jmp 0x4e7d3c
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e7db5
push esi
call fcn.004e7750
add esp, 4
test al, al
je 0x4e7db5
push esi
lea eax, [ebp - 0x28]
push str._s.
push eax
call fcn.004abfd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call fcn.004e7290
add esp, 0x14
test al, al
jne 0x4e7d8b
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00424580
mov al, bl
jmp 0x4e7db7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.00424580
mov al, bl
jmp 0x4e7db7
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret
Function at 0x4e8350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5961cd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x61094c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004224a0
mov edi, eax
test edi, edi
je 0x4e8486
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
xor edi, edi
nop dword [eax]
lea edx, [edi + 1]
test edx, edx
js 0x4e847c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4e83d8
push edx
lea ecx, [ebp - 0x10]
call fcn.004d5640
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x4e83ec
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004d5500
mov esi, dword [ebp - 0x10]
push esi
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x4e8435
push dword [esi - 8]
push esi
call fcn.005605c9
add esp, 8
test eax, eax
js 0x4e847c
cmp eax, dword [esi - 8]
jg 0x4e847c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, dword [esi - 0xc]
ja 0x4e83b0
add esi, 0xfffffff0
push esi
call fcn.004df740
mov ebx, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x4e8447
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x5bb3b8
call fcn.004e0820
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e8468
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0042d790
push 0x80004005
call fcn.0042d790
int3

Function at 0x4e9890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.004d0d20
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
push edi
push dword [esi]
push dword [ebp + 0x10]
push 0
push dword [ebp - 4]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp ebx, 0xea
jne 0x4e9903
push dword [esi]
call fcn.00469710
mov dword [esi], 0
push 0x5af620
push dword [edi]
call fcn.0055458b
add esp, 0xc
mov dword [esi], eax
push edi
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 4]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e992a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10