joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000b96c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [0x30024c10]
add eax, 0xf3c
push eax
push 0x30024120
call fcn.3000b546
mov eax, dword [0x30024c10]
test byte [eax + 0x28], 1
je 0x3000b991
jmp fcn.3000b783
add eax, 0x1040
push eax
push 0x30024138
call fcn.3000b546
ret

Function at 0x3000bff4
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
mov dword [ebp - 0x68], 0x44
rep stosd dword es:[edi], eax
xor esi, esi
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], esi
cmp dword [0x300283c8], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
je 0x3000c047
mov edi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push esi
mov ebx, 0x300015dc
push esi
push ebx
call edi
mov dword [ebp - 0xc], eax
add eax, eax
push eax
lea eax, [ebp - 8]
push eax
call fcn.3001e1c4
test eax, eax
jne 0x3000c04e
xor eax, eax
jmp 0x3000c14c
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
call edi
push esi
push esi
push 0xffffffffffffffff
mov ebx, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push dword [ebp + 8]
push esi
push dword [0x300283a4]
call ebx
push 0x3000164c
mov dword [ebp - 0x10], eax
call fcn.3001f42f
push 0x3000163c
mov edi, eax
call fcn.3001f42f
mov ecx, dword [ebp - 0x10]
add ecx, edi
add eax, ecx
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 4]
lea edi, [eax + eax]
lea eax, [ebp - 4]
push edi
push eax
call fcn.3001e1c4
test eax, eax
je 0x3000c141
mov ecx, edi
mov edi, dword [ebp - 4]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x3000163c
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 8]
push 0x3000bfe4
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x10
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.3001f42f
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push dword [0x300283a4]
call ebx
push dword [ebp - 4]
push 0x3000164c
call fcn.3001f4bc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x3000c139
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x14], 1
call esi
push dword [ebp - 0x20]
call esi
push dword [ebp - 4]
call fcn.3001e2c6
push dword [ebp - 8]
call fcn.3001e2c6
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3000c153
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x3c], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
test esi, esi
rep stosd dword es:[edi], eax
je 0x3000c1ba
cmp dword [0x30028388], eax
je 0x3000c182
push esi
call fcn.3000bed4
test eax, eax
jne 0x3000c1ba
cmp dword [0x30028384], 0
je 0x3000c195
push esi
call fcn.3000bff4
test eax, eax
jne 0x3000c1ba
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3c
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], 0xa
call dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
test eax, eax
jne 0x3000c1ba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop edi
pop esi
leave
ret 4

Function at 0x3000c2d8
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x3000c34e
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x3000c343
cmp eax, edi
je 0x3000c343
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 0x3000c343
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 0x3000c33e
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi + 4]
call ebx
push dword [esi]
mov dword [esi + 4], edi
call ebx
or dword [esi], 0xffffffff
xor eax, eax
pop ebx
jmp 0x3000c350
push 1
pop eax
jmp 0x3000c350
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [esi], 0xffffffff
xor eax, eax
pop edi
pop esi
ret 4

Function at 0x3000c78b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x3000c820
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x3000c820
push edi
call fcn.3000e20f
cmp eax, edi
je 0x3000c820
sub eax, edi
push esi
push esi
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sar eax, 1
push esi
push esi
push eax
push edi
push esi
mov dword [ebp - 8], eax
push dword [0x300283a4]
call ebx
mov esi, eax
lea eax, [ebp - 4]
inc esi
push esi
push eax
call fcn.3001e1c4
test eax, eax
je 0x3000c820
mov edi, dword [ebp - 4]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
push eax
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
push eax
push dword [0x300283a4]
call ebx
test eax, eax
je 0x3000c818
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push dword [ebp - 4]
call fcn.3001e2c6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x3000d391
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x3000d3bb
xor eax, eax
jmp 0x3000d3be
and eax, 0x10
ret 4

Function at 0x3000d3d9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x3000d4ba
push edi
call fcn.3001f3a8
cmp eax, 0x104
jge 0x3000d4ba
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.3001f3a8
lea esi, [ebp + eax - 0x104]
lea eax, [ebp - 0x104]
push eax
call fcn.3000d3a8
test eax, eax
jne 0x3000d4b5
lea eax, [ebp - 0x104]
mov edi, esi
push eax
call fcn.3000e1ec
test ebx, ebx
mov esi, eax
je 0x3000d460
mov byte [edi], 0x5c
lea eax, [ebp - 0x104]
cmp esi, eax
jbe 0x3000d4ba
and byte [esi], 0
push 1
pop ebx
lea eax, [ebp - 0x104]
push eax
call fcn.3000d3a8
test eax, eax
je 0x3000d449
mov byte [esi], 0x5c
inc esi
xor edi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x3000d493
test al, al
je 0x3000d493
inc esi
jmp 0x3000d486
cmp byte [esi], 0x5c
jne 0x3000d49e
and byte [esi], 0
push 1
pop edi
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x3000d4ba
test edi, edi
jne 0x3000d480
push 1
pop eax
jmp 0x3000d4bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x3000dbd8
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 0x80
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x3000dc2d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
je 0x3000dc1a
cmp eax, 0x21
je 0x3000dc1a
cmp eax, 0x36
jne 0x3000dc57
inc ebx
cmp ebx, 5
jge 0x3000dc57
push 0xfa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x3000dbe3
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 8]
call fcn.3001f3a8
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 0x3000e110
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x300283c8], esi
je 0x3000e12c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x3000e174
push esi
push esi
push esi
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call ebx
mov edi, eax
lea eax, [ebp - 4]
inc edi
push edi
push eax
call fcn.3001e1c4
test eax, eax
je 0x3000e174
push esi
push esi
push edi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push dword [ebp - 4]
mov esi, eax
call fcn.3001e2c6
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x3000e7f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
cmp dword [0x300283c8], ecx
mov dword [ebp - 4], ecx
je 0x3000e81f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_LoadStringW]
jmp 0x3000e8c2
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, eax
push esi
shr eax, 4
and ebx, 0xf
inc eax
movzx eax, ax
push edi
push ecx
push eax
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceExA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x3000e8b5
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
call esi
test edi, edi
je 0x3000e8b5
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
call esi
test edi, edi
je 0x3000e8b5
test ebx, ebx
jle 0x3000e87b
movzx eax, word [edi]
dec ebx
lea edi, [edi + eax*2 + 2]
jne 0x3000e871
movzx eax, word [edi]
mov edx, dword [ebp + 0x14]
lea ecx, [eax + 1]
cmp edx, ecx
jge 0x3000e88b
dec edx
jmp 0x3000e88d
mov edx, eax
lea eax, [edx + edx]
lea esi, [edi + 2]
mov edi, dword [ebp + 0x10]
mov ecx, eax
mov ebx, ecx
mov dword [ebp - 4], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
and word [eax + ecx], 0
test edx, edx
jne 0x3000e8bc
mov eax, dword [ebp + 0x10]
and word [eax], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x3000e9d6
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
je 0x3000ea0b
lea eax, [ebp - 0x10c]
push eax
push 0x3000e934
call edi
push 0x3000e940
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor ebx, ebx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x3000eac4
push esi
push 0x3000e950
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x3000eaba
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x3000ea5a
lea eax, [ebp - 0x10c]
push eax
push 0x3000e964
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x3000ea7a
lea eax, [ebp - 0x10c]
push eax
push 0x3000e970
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x3000ea9a
lea eax, [ebp - 0x10c]
push eax
push 0x3000e97c
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x3000eaba
lea eax, [ebp - 0x10c]
push eax
push 0x3000e984
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop esi
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x3000e990
push reloc.OLEAUT32.DLL_SysReAllocString
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x3000eb48
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x3000e9c4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x3000eb3f
lea eax, [ebp - 0x10c]
push eax
call fcn.3001f3a8
cmp byte [ebp + eax - 0x10d], 0x5c
jne 0x3000eb31
lea eax, [ebp - 0x10c]
push eax
call fcn.3001f3a8
mov byte [ebp + eax - 0x10d], bl
lea eax, [ebp - 0x10c]
push eax
push 0x3000e9cc
call edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
pop edi
pop ebx
leave
ret
Function at 0x3000ec1f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.30021aab
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
mov dword [ebp - 4], ebx
je 0x3000ecb2
cmp dword [ebp + 8], ebx
je 0x3000ecb2
push edi
mov ecx, 0x2000
xor eax, eax
lea edi, [ebp - 0x8004]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x8004]
push 0x8000
push eax
push dword [ebp + 8]
call fcn.3000ebd0
test eax, eax
pop edi
je 0x3000ecb2
push ebx
push ebx
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call fcn.3000de60
mov esi, eax
cmp esi, 0xffffffff
jne 0x3000ecba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
mov dword [ebp + 8], eax
je 0x3000ec98
cmp eax, 0x21
je 0x3000ec98
cmp eax, 0x36
jne 0x3000ecb2
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x3000ecac
push 0xfa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x3000ec66
xor eax, eax
pop esi
pop ebx
leave
ret 8
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x8004]
push eax
call fcn.3001f3a8
push eax
lea eax, [ebp - 0x8004]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
jmp 0x3000ecb4

Function at 0x3000f2b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 1
pop esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
mov dword [ebp - 4], 4
push dword [ebp + 0xc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
je 0x3000f2e2
xor eax, eax
jmp 0x3000f30a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
je 0x3000f2ff
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x3000f30f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x3000f335
cmp dword [ebp + 0x10], esi
je 0x3000f355
push 0x106
push dword [ebp + 0x10]
call fcn.3001df79
mov ebx, eax
cmp ebx, esi
jne 0x3000f339
xor eax, eax
jmp 0x3000f388
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
pop edi
jmp 0x3000f358
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x3000f376
push ebx
call dword [ebp + 8]
jmp 0x3000f385
lea eax, [ebp - 4]
push eax
push dword [0x30024670]
call fcn.30020f83
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x3000f423
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push 0xfa0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x30024c10]
mov dword [ebp - 4], esi
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [0x300283c8], esi
je 0x3000f4ea
push 0x10
xor eax, eax
cmp dword [ebp + 8], esi
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
rep stosd dword es:[edi], eax
je 0x3000f4b1
push esi
push esi
push 0xffffffffffffffff
mov ebx, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push dword [ebp + 8]
push esi
push dword [0x300283a4]
call ebx
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
lea eax, [ebp - 4]
push eax
call fcn.3001e1c4
test eax, eax
je 0x3000f584
push edi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push dword [0x300283a4]
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x30024c10]
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp - 4]
add eax, 0xb8
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
cmp dword [ebp - 4], esi
mov edi, eax
je 0x3000f570
push dword [ebp - 4]
jmp 0x3000f56b
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
push esi
rep stosd dword es:[edi], eax
mov eax, dword [0x30024c10]
push esi
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push esi
push esi
add eax, 0xb8
push 0xffffffffffffffff
push eax
push esi
push dword [0x300283a4]
call ebx
mov edi, eax
lea eax, [ebp - 8]
inc edi
push edi
push eax
call fcn.3001e1c4
test eax, eax
je 0x3000f584
mov eax, dword [0x30024c10]
push esi
push esi
push edi
push dword [ebp - 8]
add eax, 0xb8
push 0xffffffffffffffff
push eax
push esi
push dword [0x300283a4]
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push dword [ebp - 8]
mov edi, eax
call fcn.3001e2c6
cmp edi, esi
je 0x3000f584
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x30010c89
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
test eax, eax
je 0x30010d42
push ebx
push ebp
push esi
push 0x106
push eax
call fcn.3001f42f
lea eax, [eax*4 + 4]
push eax
call fcn.3001df79
mov ebp, eax
push ebp
push dword [edi]
call fcn.3001f35a
mov ebx, dword [edi]
mov esi, ebp
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x30010d2a
mov ax, word [esi]
test ax, ax
je 0x30010cdb
cmp ax, 0x3b
je 0x30010cdb
inc esi
inc esi
jmp 0x30010cc9
cmp word [esi], 0
je 0x30010ce9
and word [esi], 0
inc esi
inc esi
jmp 0x30010ceb
xor esi, esi
push dword [esp + 0x14]
call fcn.3000e110
cmp eax, 0xffffffff
jne 0x30010d04
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x30010d22
cmp ebx, dword [edi]
je 0x30010d0f
mov word [ebx], 0x3b
inc ebx
inc ebx
push ebx
push dword [esp + 0x18]
call fcn.3001f35a
push ebx
call fcn.3001f42f
lea ebx, [ebx + eax*2]
test esi, esi
mov dword [esp + 0x14], esi
jne 0x30010cc9
mov eax, dword [edi]
cmp ebx, eax
jne 0x30010d39
push eax
call fcn.3001dfaa
and dword [edi], 0
push ebp
call fcn.3001dfaa
pop esi
pop ebp
pop ebx
pop edi
ret 4
Function at 0x30011537
Capabilities:
Check internet connectivity via wininet

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

Function at 0x30011563
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
call dword [sym.imp.WININET.DLL_InternetGetConnectedState]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x3001157e
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.WININET.DLL_InternetGetConnectedState]
lea eax, [ebp - 4]
push ebx
push eax
call esi
test eax, eax
je 0x300115a1
push 1
pop eax
jmp 0x30011646
cmp dword [0x30028380], ebx
je 0x300115b0
xor eax, eax
jmp 0x30011646
push edi
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test byte [ebp - 4], 0x40
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x300115e8
push ebx
push 1
pop edi
push edi
call dword [sym.imp.WININET.DLL_InternetAutodial]
test eax, eax
je 0x300115db
mov dword [0x300270f4], edi
jmp 0x30011634
lea eax, [ebp - 4]
push ebx
push eax
call esi
test eax, eax
je 0x30011634
jmp 0x300115d3
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x82
push eax
push 0x30007b91
push ebx
push 0x70
push dword [0x300283bc]
mov dword [ebp - 0x14], 0x83
mov dword [ebp - 0xc], 0x14
mov dword [ebp - 0x10], 0x80
call fcn.30007943
test eax, eax
je 0x30011634
lea eax, [ebp - 4]
push ebx
push eax
call esi
test eax, eax
je 0x30011634
mov dword [0x300270f4], 1
mov eax, dword [0x300270f4]
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x3001164c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x1c], 0
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push 0
push eax
call dword [sym.imp.WININET.DLL_InternetGetConnectedState]
test eax, eax
pop edi
je 0x300116ab
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0x7f
neg eax
sbb eax, eax
mov dword [ebp - 0x10], 0x80
and eax, 0x10
add eax, 0x7e
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x30007b91
push 0
push 0x90
push dword [0x300283bc]
call fcn.30007943
leave
ret 4
Function at 0x300118ff
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [0x30025c70]
xor ecx, ecx
test eax, eax
je 0x3001190f
mov ecx, 0x800000
neg eax
sbb eax, eax
push 1
and eax, 0x16b
push ecx
push 3
add eax, 0x50
push 0x300118fa
push 0x300118fe
push eax
push 0x30025964
push dword [0x30025930]
call dword [sym.imp.WININET.DLL_InternetConnectA]
and dword [0x3002593c], 0
mov dword [0x30025934], eax
test eax, eax
mov dword [0x300270e4], 1
jne 0x30011966
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x30011982
xor eax, eax
ret
and dword [0x300270e4], 0
push 0
push 0
push 0x1427
push dword [0x300270e8]
call dword [sym.imp.USER32.DLL_PostMessageA]
push 1
pop eax
ret

Function at 0x30011aba
Capabilities:
Send data

Disassembly:
mov eax, dword [0x30025c84]
push edi
xor edi, edi
cmp eax, edi
je 0x30011b0b
mov ecx, dword [0x30025c78]
push 0x30025c80
push dword [0x30025c7c]
add ecx, eax
mov dword [0x300270e4], 1
push ecx
push dword [0x30025938]
call dword [sym.imp.WININET.DLL_InternetWriteFile]
test eax, eax
jne 0x30011b05
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x30011b1e
xor eax, eax
pop edi
ret
mov dword [0x300270e4], edi
push edi
push edi
push 0x1427
push dword [0x300270e8]
call dword [sym.imp.USER32.DLL_PostMessageA]
push 1
pop eax
pop edi
ret