joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3004fd39
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.30086bea
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x1046
lea eax, [ebp - 0x104a]
push edi
push eax
mov dword [ebp - 0x1050], edi
xor ebx, ebx
mov word [ebp - 0x104c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp esi, edi
mov dword [ebp - 0x1058], 0x824
jne 0x3004fd99
mov dword [ebp - 0x1050], 0x80004003
jmp 0x3004fe2f
push edi
push edi
push edi
push edi
push 0x30004adc
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, edi
mov dword [ebp - 0x1054], eax
je 0x3004fe08
push dword [esi]
push eax
call fcn.3004fc89
mov ebx, eax
cmp ebx, edi
je 0x3004fe08
push edi
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x104c]
push eax
push 0x21
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x3004fe12
mov eax, dword [esi]
cmp eax, edi
je 0x3004fde9
push eax
call dword [sym.imp.MSO.dll_Ordinal_3057]
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.MSO.dll_Ordinal_3054]
cmp eax, edi
mov dword [esi], eax
jne 0x3004fe12
mov dword [ebp - 0x1050], 0x8007000e
jmp 0x3004fe12
mov dword [ebp - 0x1050], 0x80004005
cmp ebx, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x3004fe1f
push ebx
call esi
cmp dword [ebp - 0x1054], edi
je 0x3004fe2f
push dword [ebp - 0x1054]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1050]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30085f59
leave
ret 4

Function at 0x30050b9c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x1c]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
jne 0x30050bc3
cmp ebx, edi
jne 0x30050bc5
mov edi, 0x80004003
jmp 0x30050c6f
mov dword [eax], edi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x30050bde
mov edi, 0x80040e96
jmp 0x30050c6f
push esi
push 0x30
call dword [sym.imp.MSO.dll_Ordinal_815]
cmp eax, edi
je 0x30050bf7
push edi
mov ecx, eax
call fcn.300507be
mov esi, eax
jmp 0x30050bf9
xor esi, esi
cmp esi, edi
jne 0x30050c04
mov edi, 0x8007000e
jmp 0x30050c6e
mov eax, dword [esi]
push esi
call dword [eax + 4]
cmp ebx, edi
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
je 0x30050c1d
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edi, dword [sym.imp.MSO.dll_Ordinal_3054]
mov dword [esi + 0x14], ebx
call edi
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
push dword [ebx]
call edi
push 0x30005018
mov dword [esi + 0x20], eax
call edi
push dword [ebp + 0x18]
mov dword [esi + 0x24], eax
call edi
push dword [ebp + 0x14]
mov dword [esi + 0x28], eax
call edi
push dword [ebp + 0x20]
mov ecx, dword [ebp - 4]
push esi
mov dword [esi + 0x2c], eax
call fcn.3004ff35
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 0x1c
Function at 0x3005c8d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push eax
push dword [0x300b5f94]
mov ebx, ecx
push edi
mov dword [ebp - 0x250], eax
call esi
cmp eax, 0xffffffff
jne 0x3005c925
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
test eax, eax
mov dword [ebp - 0x250], eax
jl 0x3005ca72
push 0
push 0
push dword [0x300b5f94]
push edi
call esi
push 0
lea eax, [ebp - 0x254]
push eax
mov esi, 0x248
push esi
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3005c95b
cmp dword [ebp - 0x254], esi
je 0x3005c96d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jl 0x3005ca72
mov eax, dword [0x300b5f94]
add eax, 0x248
xor ecx, ecx
test eax, eax
setge cl
push 4
mov edi, 0x30005bd8
lea esi, [ebp - 0x24c]
dec ecx
mov dword [ebx + 0x1494], ecx
mov eax, dword [0x300b5f94]
add eax, 0x248
mov dword [ebx + 0x1490], eax
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x3005c9c2
mov dword [ebx + 0x2158], 1
jmp 0x3005c9f5
push 4
pop ecx
mov edi, 0x30005be8
lea esi, [ebp - 0x24c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x3005c9eb
cmp dword [ebx + 0x2158], 2
je 0x3005c9f5
mov dword [ebp - 0x250], 0x80040231
jmp 0x3005c9f5
mov dword [ebp - 0x250], 0x80040210
cmp dword [ebp - 0x250], 0
jl 0x3005ca72
mov eax, dword [ebp - 0x23c]
mov dword [ebx + 0x1f20], eax
mov eax, dword [ebp - 0x238]
mov dword [ebx + 0x1f24], eax
mov eax, dword [ebp - 0x234]
mov dword [ebx + 0x1f28], eax
mov eax, dword [ebp - 0x230]
mov dword [ebx + 0x1f2c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebx + 0x1f44], eax
lea eax, [ebp - 0x228]
push eax
push 0x104
lea eax, [ebx + 0x1f50]
push eax
call fcn.3001b99e
mov eax, dword [ebp - 0xc]
push 5
mov dword [ebx + 0x1f48], eax
mov eax, dword [ebp - 8]
lea edi, [ebx + 0x1f30]
pop ecx
lea esi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1f4c], eax
cmp dword [ebp - 0x250], 0x800300fd
pop edi
pop esi
pop ebx
jne 0x3005ca8b
mov dword [ebp - 0x250], 0x80040210
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x250]
xor ecx, ebp
call fcn.30085f59
leave
ret 4
Function at 0x3005cdb9
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1484], ebx
jne 0x3005cddd
inc ebx
jmp 0x3005ce4d
lea eax, [esi + 0x1e]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.3001b99e
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
jne 0x3005ce0e
mov ebx, 0x800700a1
jmp 0x3005ce42
and word [eax + 2], bx
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x3005ce4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
mov ebx, eax
test ebx, ebx
jge 0x3005ce4d
and dword [esi + 0x14], 0
mov dword [esi + 0x10], 0xa00000
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.30085f59
leave
ret
Function at 0x30075d5d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
mov edi, ecx
push edi
push 0x30075c68
push esi
push esi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
jne 0x30075da5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x30075d93
call esi
mov esi, eax
jmp 0x30075dab
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x30075dab
mov dword [edi + 0x80], eax
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x3007b23e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x34], eax
jne 0x3007b25d
xor al, al
jmp 0x3007b276
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x3007b20e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x3007b9f1
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
call fcn.30085e93
test eax, eax
jne 0x3007ba1e
call fcn.30085bc1
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x300bb8d0
call fcn.3007abad
test eax, eax
je 0x3007ba12
push esi
call fcn.3007acd0
test eax, eax
je 0x3007ba12
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
push esi
mov ebx, 0x300bdd14
push 0x300bb840
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.3007ada3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x30007ed0
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov dword [0x300bdd44], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
movsw word es:[edi], word [esi]
xor esi, esi
mov dword [ebp - 0x10], esi
call fcn.3007ac89
mov edi, eax
cmp edi, esi
je 0x3007bac2
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push 0x30007eb8
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x3007baea
push 0xffffffffffffffff
push 0x30007ea4
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x3007baea
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.3007ac89
mov edi, eax
test edi, edi
jne 0x3007ba86
xor esi, esi
mov ecx, ebx
call fcn.3007b23e
push 1
push 4
mov ecx, ebx
call fcn.3007b31e
push esi
push 0x3a98
push esi
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x3007bb14
mov dword [ebp - 0x10], 0x80004001
xor esi, esi
jmp 0x3007bb33
cmp dword [ebp - 0x2c], 0x113
jne 0x3007bb0a
call fcn.3005e0f9
call fcn.3005e18a
jmp 0x3007bb14
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
jne 0x3007baf5
mov ecx, ebx
call fcn.3007b360
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.3007b7ea
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [0x300bdd10], esi
pop ebx
je 0x3007bb61
call dword [sym.imp.MSO.dll_Ordinal_1916]
push dword [0x300bdd10]
call dword [sym.imp.MSO.dll_Ordinal_894]
mov dword [0x300bdd10], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.30085f59
leave
ret 0x10

Function at 0x3007bfd2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x3007bfeb
push 0x80004005
call fcn.3001b8c2
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x3007bfed
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x3007c533
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.3007bf45
mov edi, eax
cmp edi, esi
je 0x3007c593
lea ecx, [ebp - 0x208]
call fcn.3007bee0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30085f59
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x3007c5b1
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.3007c533
cmp eax, esi
jne 0x3007c5f9
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x3007c59b
lea ecx, [ebp - 0x208]
call fcn.3007bee0
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.3007bee0
mov eax, esi
jmp 0x3007c582
Function at 0x3007d874
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x300a6d1a
call fcn.30086a01
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
call dword [str.fX_b0]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x428], ebx
jne 0x3007d8e3
call fcn.3007be15
mov esi, eax
jmp 0x3007d9e5
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x3007d906
call fcn.3007be15
jmp 0x3007d9d7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x3007d8fc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x41c], edi
jae 0x3007d962
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x3007d948
lea ecx, [ebp - 0x418]
call fcn.30020478
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.30025094
mov eax, esi
call fcn.30086a5a
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.3007c943
mov dword [ebp - 4], 1
jmp 0x3007d989
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x3007d99a
mov esi, 0x8007000e
jmp 0x3007d9d9
call dword [str.fX_b0]
push edi
push ebx
push edi
push dword [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x3007d8fc
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.3007d711
mov esi, eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x3007d94d
lea ecx, [ebp - 0x418]
call fcn.30020478
jmp 0x3007d94d
Function at 0x300820a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
push ebx
push dword [esi + 0x11c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x300820ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x3008216d
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ebx
push ebx
mov dword [ebp - 0x28], eax
setge cl
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x11c]
dec ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30082128
cmp dword [ebp - 8], 0x18
je 0x30082144
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x30082191
mov dword [ebp - 4], 0x8003001d
jmp 0x30082191
push 2
push ebx
push dword [ebp + 8]
push dword [esi + 0x11c]
call edi
cmp eax, 0xffffffff
je 0x30082167
push dword [esi + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x30082183
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x30082191
mov dword [ebp - 4], 0x80030019
jmp 0x30082191
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x30082d63
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp byte [esi + 0x30], 0
jne 0x30082e64
push ebx
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x24]
lea eax, [ebp - 0x1c]
lea ecx, [esi + 8]
push eax
call fcn.30082546
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
lea eax, [esi + 8]
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.30082414
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.3003183d
test al, al
jne 0x30082e62
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x14]
push ebx
mov dword [ebp - 8], edi
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x30082dfe
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x30082dfe
call edi
push eax
call fcn.30043dd4
test eax, eax
mov dword [ebp - 4], eax
jl 0x30082e42
mov dword [ebp - 4], 0x80030019
jmp 0x30082e42
lea ecx, [ebp - 0x14]
call fcn.300823ee
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x18
push eax
mov eax, dword [esi + 0x14]
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30082e28
cmp dword [ebp - 0xc], 0x18
je 0x30082e42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
test eax, eax
mov dword [ebp - 4], eax
jl 0x30082e42
mov dword [ebp - 4], 0x8003001d
lea ecx, [ebp - 0x14]
call fcn.300823ee
mov ebx, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
lea ecx, [ebp - 0x14]
call fcn.30080427
cmp dword [ebp - 4], 0
jge 0x30082d99
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x30084350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
lea edi, [esi + 8]
push edi
push dword [edi + 4]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
call fcn.30082414
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.30082546
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x1c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.300825f6
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, ebx
or eax, dword [ebp - 0x1c]
je 0x30084496
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], ebx
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x300843e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x3008447c
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 0x14]
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x30084409
cmp dword [ebp - 0xc], 0x18
je 0x30084423
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
test eax, eax
mov dword [ebp - 4], eax
jl 0x30084496
mov dword [ebp - 4], 0x8004022d
cmp dword [ebp - 4], 0
jl 0x30084496
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.30083147
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
adc dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
mov edx, eax
or edx, ecx
je 0x30084469
cmp dword [ebp - 0x1c], ecx
jne 0x30084455
cmp ebx, eax
je 0x3008445f
cmp dword [ebp - 0x24], ecx
jne 0x30084469
cmp dword [ebp - 0x20], eax
jne 0x30084469
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
jmp 0x300843ab
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], ecx
mov ebx, eax
jmp 0x300843ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
test eax, eax
mov dword [ebp - 4], eax
jl 0x30084496
mov dword [ebp - 4], 0x8004022d
mov eax, dword [esi + 0x14]
cmp dword [eax + 8], 0
je 0x300844bf
mov ecx, dword [esi + 0x18]
inc ecx
imul ecx, ecx, 0x18
add eax, ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax]
jne 0x300844b7
mov edx, dword [ebp - 0x10]
cmp edx, dword [eax + 4]
je 0x300844bf
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30085a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x474], eax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x30085a8c
xor eax, eax
jmp 0x30085bb2
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x30085aa8
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push ebx
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
mov edi, 0x30008550
push edi
call fcn.30085a25
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x30085ae8
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x30085b9a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000853c
push ebx
call edi
push 0x3000851c
push ebx
mov dword [ebp - 0x478], eax
call edi
cmp eax, esi
mov dword [ebp - 0x470], eax
je 0x30085b9a
cmp dword [ebp - 0x474], esi
mov ebx, 0x30008508
mov edi, 0x300084b8
je 0x30085b72
cmp dword [ebp - 0x478], esi
je 0x30085b9a
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x474]
call dword [ebp - 0x478]
cmp eax, esi
jne 0x30085b6b
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
cmp eax, esi
je 0x30085b9e
cmp eax, 0x642
je 0x30085b9e
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
test eax, eax
je 0x30085b9e
xor eax, eax
jmp 0x30085bb0
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x300bde08], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30085f59
leave
ret 4
Function at 0x30085c8e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x30008450
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], ebx
xor esi, esi
mov dword [ebp - 0x218], 0x208
mov word [ebp - 0x210], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x300085d4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x214], ebx
je 0x30085d19
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x30085d44
cmp eax, 0x208
ja 0x30085d44
shr eax, 1
mov esi, eax
je 0x30085d44
lea eax, [ebp + esi*2 - 0x212]
cmp word [eax], 0x5c
je 0x30085d44
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x30085d37
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov word [ebp + esi*2 - 0x210], bx
call fcn.30085c00
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30085f59
leave
ret 4

Function at 0x30085d6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x30008580
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x30008560
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x218]
shr eax, 1
cmp dword [ebp - 0x214], esi
mov word [ebp + eax*2 - 0x210], si
je 0x30085df6
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x300085f0
call fcn.30085a25
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
pop esi
jne 0x30085e28
push 0x300085e4
call fcn.30085c8e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30085f59
leave
ret