joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3002e95f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb04
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
lea ebx, [edi + 0x21c]
cmp dword [ebx], ecx
mov dword [ebp - 0xb00], ecx
jne 0x3002e9b6
push 5
push 5
push 0x44c
push ebx
call fcn.30059d41
test eax, eax
jne 0x3002e9d5
call fcn.3003daba
test eax, eax
je 0x3002e9af
push 0x300039e8
call fcn.3003db54
xor eax, eax
jmp 0x3002eb59
mov eax, dword [ebx]
push dword [eax]
push ecx
push eax
call fcn.3005997a
test eax, eax
jne 0x3002e9d5
call fcn.3003daba
test eax, eax
je 0x3002e9af
push 0x300039c0
jmp 0x3002e9aa
push edi
call fcn.3002c73d
test eax, eax
je 0x3002e9af
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
lea eax, [edi + 0xc]
push ecx
push eax
call fcn.3005b354
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x300039b0
call fcn.3005b3d6
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xafc], eax
je 0x3002eb2d
test dword [ebp - 0x8a8], 0xffffffef
je 0x3002eaf6
push 0x44c
lea eax, [ebp - 0x658]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x658]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.3005b354
push esi
lea eax, [ebp - 0x658]
push eax
push 0x30003970
call fcn.3005b3d6
push esi
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.3005b3d6
push esi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.3002d940
test eax, eax
jne 0x3002eaad
push eax
push 0x30303030
call fcn.30043574
jmp 0x3002eb20
lea eax, [ebp - 0xaf8]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xb04], eax
je 0x3002eaea
test dword [ebp - 0xaf8], 0xffffffef
je 0x3002eaea
mov ecx, dword [ebx]
lea eax, [ebp - 0x658]
push eax
call fcn.300403e0
test eax, eax
je 0x3002eb69
push dword [ebp - 0xb04]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x8a8]
push eax
push dword [ebp - 0xafc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x3002eb20
push dword [ebp - 0xafc]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0xafc], 0xffffffff
cmp dword [ebp - 0xafc], 0xffffffff
jne 0x3002ea2b
mov dword [ebp - 0xb00], 1
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0xb00], 0
pop esi
jne 0x3002eb53
push edi
call fcn.3002e7d8
mov eax, dword [ebp - 0xb00]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret 4
call fcn.3003daba
test eax, eax
je 0x3002eb37
push 0x30003988
call fcn.3003db54
jmp 0x3002eb37
Function at 0x3002eb7e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test dword [esi], 0x10000000
push edi
mov edi, 0x104
lea ebx, [esi + 0xc]
je 0x3002ebed
push edi
push ebx
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
mov dword [ebp - 8], eax
je 0x3002ebbe
cmp eax, edi
jbe 0x3002ec1a
call fcn.3003daba
test eax, eax
je 0x3002ebda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x30003a80
call fcn.3003dbd9
pop ecx
pop ecx
push 0
push 0x30303030
call fcn.30043574
xor eax, eax
jmp 0x3002ed6b
push 1
push 0x1c
push ebx
push 0
mov dword [ebp + 8], SysStringLen
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x3002ec1a
call fcn.3003daba
test eax, eax
je 0x3002ebda
push 0x30003a58
call fcn.3003db54
jmp 0x3002ebda
push edi
push ebx
push 0x30022644
call fcn.3005b3d6
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + 8]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
push 0x300031d8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x3002ec62
call fcn.3003daba
test eax, eax
je 0x3002ec5e
push 0x30003a34
call fcn.3003db54
and dword [esi + 8], 0
mov eax, dword [esi]
and eax, 7
dec eax
je 0x3002ed24
dec eax
je 0x3002ece0
dec eax
dec eax
je 0x3002ec99
call fcn.3003daba
test eax, eax
je 0x3002ebe6
mov eax, dword [esi]
and eax, 7
push eax
push 0x30003a0c
call fcn.3003dbd9
pop ecx
pop ecx
jmp 0x3002ebe6
push edi
push ebx
push 0x30022694
call fcn.3005b3d6
cmp dword [0x3008b610], 0
je 0x3002ecb8
mov eax, dword [0x3008b614]
mov dword [esi + 4], eax
jmp 0x3002ecbf
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x3002ecd4
mov dword [esi + 0x218], 0x300032e4
jmp 0x3002ed54
mov dword [esi + 0x218], 0x30003308
jmp 0x3002ed54
push edi
push ebx
push 0x30022680
call fcn.3005b3d6
cmp dword [0x3008b610], 0
je 0x3002ecff
mov eax, dword [0x3008b614]
mov dword [esi + 4], eax
jmp 0x3002ed06
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x3002ed18
mov dword [esi + 0x218], 0x300032d4
jmp 0x3002ed54
mov dword [esi + 0x218], 0x300032f4
jmp 0x3002ed54
push edi
push ebx
push 0x3002266c
call fcn.3005b3d6
cmp dword [0x3008b610], 0
je 0x3002ed43
mov eax, dword [0x3008b614]
mov dword [esi + 4], eax
jmp 0x3002ed4a
mov dword [esi + 4], 0x32
mov dword [esi + 0x218], 0x300032c4
cmp dword [ebp + 0xc], 0
je 0x3002ed68
push esi
call fcn.3002e95f
test eax, eax
je 0x3002ebe6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x3002f2e0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
xor eax, eax
and edi, 7
cmp dword [ebp + 0xc], eax
mov dword [ebp - 4], 4
jne 0x3002f30c
push 0x30003208
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x3002f368
push ebx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push eax
mov ebx, 0x30003208
push ebx
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x3002f340
cmp eax, 2
jne 0x3002f35b
mov eax, dword [esi]
and eax, 0x10000000
push eax
push edi
call fcn.3002f21c
mov dword [ebp + 8], eax
or dword [ebp + 8], edi
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x3002f367
push 0
push 0x30303030
call fcn.30043574
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x3003087e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x30030947
push esi
push edi
push eax
call fcn.30059e93
mov esi, eax
inc esi
mov eax, esi
shl eax, 2
push eax
call fcn.300430c2
mov edi, eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 8], edi
call fcn.3005b354
mov eax, edi
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], edi
mov edi, dword [ebx]
je 0x30030937
jmp 0x300308c7
mov eax, dword [ebp + 8]
cmp word [eax], cx
je 0x300308e8
cmp word [eax], 0x7c
je 0x300308d9
inc eax
inc eax
cmp word [eax], cx
jne 0x300308cc
cmp word [eax], cx
je 0x300308e8
mov word [eax], cx
inc eax
inc eax
mov dword [ebp + 8], eax
jmp 0x300308eb
mov dword [ebp + 8], ecx
push dword [ebp - 4]
call fcn.3003dc61
cmp eax, 0xffffffff
jne 0x30030903
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x3003092b
cmp edi, dword [ebx]
je 0x3003090e
mov word [edi], 0x7c
inc edi
inc edi
mov eax, edi
sub eax, dword [ebx]
mov ecx, esi
sar eax, 1
sub ecx, eax
push ecx
push edi
push dword [ebp - 4]
call fcn.3005b354
push edi
call fcn.30059e93
lea edi, [edi + eax*2]
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
mov dword [ebp - 4], eax
jne 0x300308c4
cmp edi, dword [ebx]
pop edi
pop esi
jne 0x3003093f
mov dword [ebx], ecx
push dword [ebp - 8]
call fcn.3004311f
pop ebx
leave
ret 4
Function at 0x3003094c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x460], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x30030b8d
mov eax, dword [esi]
test eax, eax
je 0x30030b8d
push eax
call fcn.30059e93
mov edi, eax
inc edi
mov eax, edi
shl eax, 2
push eax
mov dword [ebp - 0x468], edi
call fcn.300430c2
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x46c], ebx
je 0x30030b90
push edi
push ebx
push dword [esi]
call fcn.3005b354
mov dword [ebp - 0x464], ebx
jmp 0x300309c1
cmp word [ebx], 0x3b
je 0x300309c7
inc ebx
inc ebx
cmp word [ebx], 0
jne 0x300309b9
cmp word [ebx], 0
mov edi, ebx
je 0x300309d7
and word [ebx], 0
inc ebx
inc ebx
jmp 0x300309d9
xor ebx, ebx
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x478], eax
je 0x30030b63
and dword [ebp - 0x470], 0
jmp 0x30030a12
movzx eax, word [edi]
test ax, ax
je 0x30030a34
cmp ax, 0x5c
je 0x30030a1e
dec edi
dec edi
cmp edi, dword [ebp - 0x46c]
jae 0x30030a04
jmp 0x30030a34
push dword [ebp - 0x464]
and word [edi + 2], 0
call fcn.30059e93
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x468]
lea eax, [eax*4 + 0x400]
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x430]
push eax
call fcn.30059e93
mov edi, eax
add edi, dword [ebp - 0x470]
mov eax, 0x104
cmp edi, eax
jae 0x30030b3c
and word [ebp - 0x20c], 0
cmp dword [ebp - 0x470], 0
je 0x30030a91
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x464]
call fcn.3005b354
mov eax, 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.3005b3d6
lea eax, [ebp - 0x20c]
push eax
call fcn.30040f5b
test eax, eax
jne 0x30030b3c
mov eax, dword [ebp - 0x460]
lea ecx, [edi + eax + 1]
cmp ecx, dword [ebp - 0x468]
jle 0x30030afc
push dword [ebp - 0x474]
push dword [esi]
call fcn.3004318e
test eax, eax
je 0x30030b82
add dword [ebp - 0x468], 0x100
add dword [ebp - 0x474], 0x400
mov dword [esi], eax
mov eax, dword [ebp - 0x460]
test eax, eax
je 0x30030b0f
mov ecx, dword [esi]
mov word [ecx + eax*2], 0x3b
inc eax
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x468]
sub ecx, eax
lea edi, [eax + eax]
mov eax, dword [esi]
push ecx
add eax, edi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.3005b354
mov eax, dword [esi]
add eax, edi
push eax
call fcn.30059e93
add dword [ebp - 0x460], eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x30030a47
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
mov dword [ebp - 0x464], ebx
jne 0x300309c1
cmp dword [ebp - 0x460], ebx
jne 0x30030b82
push dword [esi]
call fcn.3004311f
and dword [esi], ebx
push dword [ebp - 0x46c]
call fcn.3004311f
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret 4
Function at 0x30030d68
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x30030d85
xor eax, eax
inc eax
leave
ret
mov eax, dword [ebp - 4]
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
leave
ret

Function at 0x300310f6
Capabilities:
Connect to http server

Disassembly:
push ebx
push esi
xor ebx, ebx
call fcn.3003daba
test eax, eax
mov esi, 0x300bcfe4
je 0x30031115
push esi
push 0x30004350
call fcn.3003dbd9
pop ecx
pop ecx
mov eax, dword [0x300bd9ec]
test eax, eax
je 0x30031123
mov ebx, 0x800000
neg eax
push 1
sbb eax, eax
push ebx
and eax, 0x16b
add eax, 0x50
push 3
movzx ecx, ax
mov eax, 0x30002a15
push eax
push eax
push ecx
push esi
push dword [0x300bcfb0]
call dword [sym.imp.WININET.dll_InternetConnectA]
xor ecx, ecx
cmp eax, ecx
pop esi
mov dword [0x300bcfb4], eax
mov dword [0x300bfc48], 1
mov dword [0x300bcfbc], ecx
pop ebx
jne 0x3003118c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x300311a5
call fcn.3003daba
test eax, eax
je 0x30031189
push 0x30004338
call fcn.3003db54
xor eax, eax
ret
push ecx
push ecx
push 0x1427
push dword [0x300d1730]
mov dword [0x300bfc48], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
ret

Function at 0x30031341
Capabilities:
Send data

Disassembly:
mov eax, dword [0x300bd9fc]
push edi
xor edi, edi
cmp eax, edi
jne 0x30031365
push edi
push edi
push 0x1427
push dword [0x300d1730]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
pop edi
ret
mov ecx, dword [0x300bd9f0]
push esi
push 0x300bd9f8
push dword [0x300bd9f4]
add ecx, eax
push ecx
push dword [0x300bcfb8]
xor esi, esi
inc esi
mov dword [0x300bfc48], esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x300313bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x300313e5
call fcn.3003daba
test eax, eax
je 0x300313b9
push edi
push 0x300043b8
call fcn.3003dbd9
pop ecx
pop ecx
xor eax, eax
jmp 0x300313e7
cmp dword [0x300bcf84], 3
mov dword [0x300bfc48], edi
jne 0x300313d2
mov dword [0x300d1724], esi
push edi
push edi
push 0x1427
push dword [0x300d1730]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, esi
pop esi
pop edi
ret
Function at 0x300321f6
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.300320bc
test eax, eax
je 0x30032257
push dword [0x3008b53c]
call fcn.30040f5b
test eax, eax
jne 0x30032252
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.3003daba
test eax, eax
je 0x30032236
push dword [0x3008b53c]
push 0x30004584
call fcn.3003dbd9
pop ecx
pop ecx
call fcn.3003daba
test eax, eax
je 0x3003224e
push dword [ebp - 4]
push 0x30004560
call fcn.3003dbd9
pop ecx
pop ecx
xor eax, eax
jmp 0x30032269
xor eax, eax
inc eax
jmp 0x30032269
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x300365ad
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 8

Function at 0x30039c0d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x30039c30
push 0x14
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x30039d13
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.3003515f
mov eax, dword [0x300cb508]
cmp eax, dword [0x300cb504]
mov esi, 0x447
je 0x30039c9a
push 1
push 0x66
push 4
push edi
call fcn.30037452
push 1
push 0xa2
push 0x3ed
push edi
call fcn.30037452
push 1
push 0xa3
push 3
push edi
call fcn.30037452
push 1
push 0xb0
push esi
push edi
call fcn.30037452
push 1
push 0xb1
push 0x453
push edi
call fcn.30037452
cmp dword [ebx + 0x34], 0
je 0x30039cd0
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 4
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 4
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x30039cfb
mov eax, dword [ebx + 8]
test byte [eax], 2
je 0x30039cfb
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [ebp + 0xc]
and dword [ebx + 0x28], 0
push ebx
push edi
call fcn.30039af2
push 0x3ec
push edi
call fcn.300365ad
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x3003cb0d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x3008b490], ebx
je 0x3003cb48
mov ecx, dword [esi + 0x3008b494]
cmp ecx, dword [ebp + 0x10]
jne 0x3003cb48
xor eax, eax
inc eax
jmp 0x3003cc25
push edi
push eax
push 0x300016c0
push 0x30004d54
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [esi + 0x3008b4a0]
add esp, 0x14
cmp eax, ebx
je 0x3003cb9d
cmp byte [eax], bl
je 0x3003cb9d
push edi
lea eax, [ebp - 0x108]
push eax
push 0x300041fc
call fcn.3005b427
push edi
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x3008b4a0]
call fcn.3005b427
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.3006b3fb
test eax, eax
je 0x3003cc02
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x114]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x3003cc02
push 4
pop edi
push edi
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
push dword [esi + 0x3008b4a4]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x3003cc06
xor eax, eax
jmp 0x3003cc24
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x3008b494], eax
xor eax, eax
inc eax
mov dword [esi + 0x3008b498], edi
mov dword [esi + 0x3008b490], eax
mov dword [esi + 0x3008b49c], ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret 0xc

Function at 0x3003d04d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call fcn.30059e02
mov esi, eax
inc esi
push esi
call fcn.300430c2
mov edi, eax
test edi, edi
je 0x3003d08a
push esi
push edi
push dword [ebp + 8]
call fcn.3005b376
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x3003cfe3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
leave
ret 4
Function at 0x3003d0a5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x3003d0ba
xor eax, eax
jmp 0x3003d121
push edi
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x3003d114
cmp eax, edi
je 0x3003d114
push edi
push eax
push edi
push 8
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x3003d114
push edi
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x3003d10f
push dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi]
mov dword [esi + 4], edi
call ebx
or dword [esi], 0xffffffff
jmp 0x3003d11e
xor eax, eax
inc eax
jmp 0x3003d120
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x3003d76f
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
cmp word [0x300d2400], 0
je 0x3003d7bd
push esi
push 0x300d2400
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x3003d7bc
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x14]
call fcn.30059e93
add eax, eax
push eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ebp
ret 0x14

Function at 0x3003dace
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push edi
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005ebd1
mov esi, eax
cmp esi, 0xffffffff
jne 0x3003db23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
je 0x3003db10
cmp eax, 0x21
je 0x3003db10
cmp eax, 0x36
jne 0x3003db4d
inc ebx
cmp ebx, 5
jge 0x3003db4d
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3003dad9
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.30059e02
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x3003dc61
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
Function at 0x3003de46
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x970
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x970]
push 0
push eax
mov dword [ebp - 0x934], 0x824
call sub.MSVCR80.dll_memset
add esp, 0xc
test esi, esi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x970], edi
mov dword [ebp - 0x960], eax
mov dword [ebp - 0x95c], 0x104
je 0x3003dff0
mov edi, 0x10000000
push edi
lea eax, [ebp - 0x934]
push eax
lea eax, [ebp - 0x92c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
je 0x3003dff0
lea eax, [ebp - 0x970]
push eax
push edi
push dword [ebp - 0x934]
lea eax, [ebp - 0x92c]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x3003dff0
cmp dword [ebp - 0x964], 3
je 0x3003defe
cmp dword [ebp - 0x964], 4
jne 0x3003dff0
push dword [ebp - 0x960]
call fcn.30059e02
mov edi, eax
mov esi, 0x30004c58
push esi
mov dword [ebp - 0x930], edi
call fcn.30059e02
mov ebx, dword [sym.imp.MSVCR80.dll__strnicmp]
push eax
lea eax, [ebp - 0x92c]
push esi
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x3003df55
mov esi, 0x30004c60
push esi
call fcn.30059e02
push eax
lea eax, [ebp - 0x92c]
push esi
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x3003dff0
push esi
call fcn.30059e02
lea eax, [ebp + eax - 0x92c]
jmp 0x3003df6d
test cl, cl
je 0x3003dff0
inc eax
mov cl, byte [eax]
cmp cl, 0x2f
jne 0x3003df64
test cl, cl
je 0x3003dff0
mov eax, dword [ebp - 0x960]
lea esi, [edi + eax]
mov edi, 0x30004f78
push edi
call fcn.30059e02
cmp dword [ebp - 0x930], eax
jl 0x3003dfa9
push eax
mov ecx, esi
sub ecx, eax
push edi
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x3003dfa9
xor eax, eax
inc eax
jmp 0x3003dff2
mov edi, 0x30004f6c
push edi
call fcn.30059e02
cmp dword [ebp - 0x930], eax
jl 0x3003dfca
push eax
sub esi, eax
push edi
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x3003dfa4
mov esi, 0x30004f5c
push esi
call fcn.30059e02
cmp dword [ebp - 0x930], eax
jne 0x3003dff0
push esi
push dword [ebp - 0x960]
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x3003dfa4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret 4