joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000de10
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], bl
mov byte [ebp - 8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 7]
stosd dword es:[edi], eax
lea edi, [ebp - 0x1b]
mov byte [ebp - 0x1c], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x2f]
mov byte [ebp - 0x30], bl
push 0x4f
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
cmp dword [ebp + 0xc], 0x36
lea edi, [ebp - 0x270]
mov dword [ebp - 0x274], ebx
rep stosd dword es:[edi], eax
jle 0x3000df41
push 0x3000ddb2
push 0x3000ddce
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, 0x104
cmp eax, ebx
push esi
je 0x3000de9c
lea ecx, [ebp - 0x134]
push ecx
call eax
jmp 0x3000dea9
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
je 0x3000df41
lea eax, [ebp - 0x134]
push esi
push eax
push 0x3000ddde
call fcn.3000f38f
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x3000df41
mov esi, dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0x248]
test eax, eax
je 0x3000df24
lea eax, [ebp - 8]
push 5
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.3000dd55
cmp eax, ebx
je 0x3000df24
lea ecx, [ebp - 0x1c]
push 0x11
push ecx
push eax
call fcn.3000dd55
cmp eax, ebx
je 0x3000df24
lea ecx, [ebp - 0x30]
push 0x11
push ecx
push eax
call fcn.3000dd55
test eax, eax
jne 0x3000df4a
lea eax, [ebp - 0x274]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x3000df3c
push edi
call esi
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x3000dee4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 0x3000ddfa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.DLL_wnsprintfA]
add esp, 0x18
push edi
call esi
push 1
pop eax
jmp 0x3000df43
Function at 0x3000e5db
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 0x3000e630
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
je 0x3000e61d
cmp eax, 0x21
je 0x3000e61d
cmp eax, 0x36
jne 0x3000e65a
inc ebx
cmp ebx, 5
jge 0x3000e65a
push 0xfa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x3000e5e6
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.300256b0
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 0x3000eb17
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x3002eaf4], esi
je 0x3000eb33
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x3000eb7b
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.300244ab
test eax, eax
je 0x3000eb7b
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 [0x30001154]
push dword [ebp - 4]
mov esi, eax
call fcn.300245ad
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3000f41b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
cmp dword [0x3002eaf4], ecx
mov dword [ebp - 4], ecx
je 0x3000f443
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_LoadStringW]
jmp 0x3000f4e6
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 0x3000f4d9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
call esi
test edi, edi
je 0x3000f4d9
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
call esi
test edi, edi
je 0x3000f4d9
test ebx, ebx
jle 0x3000f49f
movzx eax, word [edi]
dec ebx
lea edi, [edi + eax*2 + 2]
jne 0x3000f495
movzx eax, word [edi]
mov edx, dword [ebp + 0x14]
lea ecx, [eax + 1]
cmp edx, ecx
jge 0x3000f4af
dec edx
jmp 0x3000f4b1
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 0x3000f4e0
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 0x3000f5fe
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 0x3000f633
lea eax, [ebp - 0x10c]
push eax
push 0x3000f55c
call edi
push 0x3000f568
call fcn.3000fff2
xor ebx, ebx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x3000f6eb
push esi
push 0x3000f578
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x3000f6e1
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x3000f681
lea eax, [ebp - 0x10c]
push eax
push 0x3000f58c
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x3000f6a1
lea eax, [ebp - 0x10c]
push eax
push 0x3000f598
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x3000f6c1
lea eax, [ebp - 0x10c]
push eax
push 0x3000f5a4
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x3000f6e1
lea eax, [ebp - 0x10c]
push eax
push 0x3000f5ac
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 0x3000f5b8
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x3000f779
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x3000f5ec
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x3000f770
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x10c], bl
lea eax, [ebp - 0x10c]
push eax
call fcn.300256b0
cmp byte [ebp + eax - 0x10d], 0x5c
jne 0x3000f762
lea eax, [ebp - 0x10c]
push eax
call fcn.300256b0
mov byte [ebp + eax - 0x10d], bl
lea eax, [ebp - 0x10c]
push eax
push 0x3000f5f4
call edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
pop edi
pop ebx
leave
ret
Function at 0x3000f856
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
mov dword [ebp - 8], ebx
je 0x3000f93b
cmp dword [ebp + 8], ebx
je 0x3000f93b
mov esi, 0x8000
lea eax, [ebp - 4]
push esi
push eax
call fcn.300244ab
test eax, eax
je 0x3000f93b
push edi
mov edi, dword [ebp - 4]
mov ecx, 0x2000
xor eax, eax
push esi
rep stosd dword es:[edi], eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.3000f807
test eax, eax
pop edi
je 0x3000f92f
push ebx
push ebx
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call fcn.3000e868
mov esi, eax
cmp esi, 0xffffffff
jne 0x3000f8fc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
mov dword [ebp - 0xc], eax
je 0x3000f8e0
cmp eax, 0x21
je 0x3000f8e0
cmp eax, 0x36
jne 0x3000f92f
inc dword [ebp - 8]
cmp dword [ebp - 8], 5
jge 0x3000f8f4
push 0xfa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 8], 0x32
jl 0x3000f8ae
jmp 0x3000f92f
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 4]
call fcn.300256b0
push eax
push dword [ebp - 4]
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 ebx
push dword [ebp - 4]
call fcn.300245ad
mov eax, ebx
jmp 0x3000f93d
xor eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x3000ff14
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 0x80000001
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
je 0x3000ff44
xor eax, eax
jmp 0x3000ff6c
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 0x3000ff61
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x3000ff71
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 0x3000ff97
cmp dword [ebp + 0x10], esi
je 0x3000ffb7
push 0x106
push dword [ebp + 0x10]
call fcn.30024221
mov ebx, eax
cmp ebx, esi
jne 0x3000ff9b
xor eax, eax
jmp 0x3000ffea
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 0x3000ffba
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 0x3000ffd8
push ebx
call dword [ebp + 8]
jmp 0x3000ffe7
lea eax, [ebp - 4]
push eax
push dword [0x3002a66c]
call fcn.30027283
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x3000fff2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [0x3002eaec], 0
push esi
je 0x30010010
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x30010074
mov esi, 0x104
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x30010072
push edi
push dword [ebp + 8]
call fcn.300256b0
mov edi, eax
lea eax, [ebp - 0x104]
push eax
call fcn.300256b0
lea eax, [edi + eax + 2]
pop edi
cmp eax, esi
jg 0x30010072
lea eax, [ebp - 0x104]
push esi
push eax
push 0x3000fff0
call fcn.3000f38f
lea eax, [ebp - 0x104]
push esi
push eax
push dword [ebp + 8]
call fcn.3000f38f
lea eax, [ebp - 0x104]
push eax
jmp 0x30010008
xor eax, eax
pop esi
leave
ret 4

Function at 0x30010112
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 [0x3002ac18]
mov dword [ebp - 4], esi
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [0x3002eaf4], esi
je 0x300101d9
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 0x300101a0
push esi
push esi
push 0xffffffffffffffff
mov ebx, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push dword [ebp + 8]
push esi
push dword [0x3002eacc]
call ebx
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
lea eax, [ebp - 4]
push eax
call fcn.300244ab
test eax, eax
je 0x30010273
push edi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push dword [0x3002eacc]
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x3002ac18]
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 0x3001025f
push dword [ebp - 4]
jmp 0x3001025a
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 [0x3002ac18]
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 [0x3002eacc]
call ebx
mov edi, eax
lea eax, [ebp - 8]
inc edi
push edi
push eax
call fcn.300244ab
test eax, eax
je 0x30010273
mov eax, dword [0x3002ac18]
push esi
push esi
push edi
push dword [ebp - 8]
add eax, 0xb8
push 0xffffffffffffffff
push eax
push esi
push dword [0x3002eacc]
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.300245ad
cmp edi, esi
je 0x30010273
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 0x30010ebb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp byte [eax], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
je 0x30010f03
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.3000b821
test eax, eax
je 0x30010f03
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
je 0x30010f0a
xor eax, eax
jmp 0x3001108a
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.DLL_RegQueryInfoKeyA]
test eax, eax
jne 0x3001107f
push 0xa
pop eax
cmp dword [ebp - 4], eax
ja 0x30010f3a
mov dword [ebp - 4], eax
inc dword [ebp - 4]
push edi
mov edi, 0x106
push edi
push dword [ebp - 0x28]
call fcn.30024221
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x3001106e
push esi
push edi
push dword [ebp - 4]
call fcn.30024221
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x30011053
mov esi, 0x8000
push edi
push esi
call fcn.30024221
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x30011053
push dword [ebp + 8]
mov dword [ebp - 0x34], esi
push 0x30010eb4
push esi
push eax
call dword [sym.imp.SHLWAPI.DLL_wnsprintfA]
add esp, 0x10
push dword [ebp - 8]
call fcn.300256b0
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp + 8], ebx
jbe 0x30011021
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.DLL_RegEnumValueA]
test eax, eax
jne 0x30011016
cmp dword [ebp - 0xc], ebx
jne 0x30010ff8
push dword [ebp - 4]
push esi
push 0x30001864
call fcn.30025695
push esi
call fcn.300256b0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x3c]
call fcn.30010ad3
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x30]
jb 0x30010fac
mov esi, dword [ebp + 0xc]
cmp dword [esi], ebx
jne 0x3001103c
push edi
push 0x400
push 0xa
push 4
push esi
call fcn.300270ef
test eax, eax
je 0x30011053
lea eax, [ebp - 8]
push eax
push dword [esi]
call fcn.30027283
cmp eax, 0xffffffff
je 0x30011053
mov dword [ebp - 0x18], 1
push dword [ebp - 0x10]
call fcn.3002425c
cmp dword [ebp - 0x14], ebx
pop esi
je 0x30011069
push dword [ebp - 0x14]
call fcn.3002425c
cmp dword [ebp - 0x18], ebx
jne 0x3001107b
cmp dword [ebp - 8], ebx
je 0x3001107b
push dword [ebp - 8]
call fcn.3002425c
mov ebx, dword [ebp - 0x18]
pop edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x30011a7a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x30011b5a
mov eax, dword [edi]
test eax, eax
je 0x30011b5a
push ebx
push esi
push eax
call fcn.30025737
mov esi, eax
push 0x106
inc esi
lea eax, [esi + esi]
push eax
call fcn.30024221
mov ebx, eax
push esi
push ebx
mov dword [ebp - 8], ebx
push dword [edi]
call fcn.30025678
mov eax, ebx
mov dword [ebp - 4], ebx
mov ebx, dword [edi]
test eax, eax
je 0x30011b41
jmp 0x30011acc
mov eax, dword [ebp + 8]
mov cx, word [eax]
xor edx, edx
cmp cx, dx
je 0x30011ae3
cmp cx, 0x3b
je 0x30011ae3
inc eax
inc eax
mov cx, word [eax]
jmp 0x30011ad1
cmp word [eax], dx
je 0x30011af2
mov word [eax], dx
inc eax
inc eax
mov dword [ebp + 8], eax
jmp 0x30011af5
mov dword [ebp + 8], edx
push dword [ebp - 4]
call fcn.3000eb17
cmp eax, 0xffffffff
jne 0x30011b0d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x30011b37
mov eax, dword [edi]
cmp ebx, eax
je 0x30011b1a
mov word [ebx], 0x3b
inc ebx
inc ebx
mov ecx, ebx
sub ecx, eax
mov eax, esi
sar ecx, 1
sub eax, ecx
push eax
push ebx
push dword [ebp - 4]
call fcn.30025678
push ebx
call fcn.30025737
lea ebx, [ebx + eax*2]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x30011ac9
mov eax, dword [edi]
pop esi
cmp ebx, eax
pop ebx
jne 0x30011b52
push eax
call fcn.3002425c
and dword [edi], 0
push dword [ebp - 8]
call fcn.3002425c
pop edi
leave
ret 4
Function at 0x300124cb
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 0x300124e8
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 0x300124f7
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 0x30012512
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 0x30012535
push 1
pop eax
jmp 0x300125da
cmp dword [0x3002eab0], ebx
je 0x30012544
xor eax, eax
jmp 0x300125da
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 0x3001257c
push ebx
push 1
pop edi
push edi
call dword [sym.imp.WININET.DLL_InternetAutodial]
test eax, eax
je 0x3001256f
mov dword [0x3002d820], edi
jmp 0x300125c8
lea eax, [ebp - 4]
push ebx
push eax
call esi
test eax, eax
je 0x300125c8
jmp 0x30012567
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x82
push eax
push 0x30007e75
push ebx
push 0x70
push dword [0x3002eae4]
mov dword [ebp - 0x14], 0x83
mov dword [ebp - 0xc], 0x14
mov dword [ebp - 0x10], 0x80
call fcn.30007c23
test eax, eax
je 0x300125c8
lea eax, [ebp - 4]
push ebx
push eax
call esi
test eax, eax
je 0x300125c8
mov dword [0x3002d820], 1
mov eax, dword [0x3002d820]
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 0x300125e0
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 0x3001263f
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 0x30007e75
push 0
push 0x90
push dword [0x3002eae4]
call fcn.30007c23
leave
ret 4
Function at 0x3001290b
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [0x3002c398]
xor ecx, ecx
test eax, eax
je 0x3001291b
mov ecx, 0x800000
neg eax
sbb eax, eax
push 1
and eax, 0x16b
push ecx
push 3
add eax, 0x50
push 0x30012906
push 0x3001290a
push eax
push 0x3002b96c
push dword [0x3002b938]
call dword [sym.imp.WININET.DLL_InternetConnectA]
and dword [0x3002b944], 0
mov dword [0x3002b93c], eax
test eax, eax
mov dword [0x3002d810], 1
jne 0x30012972
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x3001298e
xor eax, eax
ret
and dword [0x3002d810], 0
push 0
push 0
push 0x1427
push dword [0x3002d814]
call dword [sym.imp.USER32.DLL_PostMessageA]
push 1
pop eax
ret

Function at 0x30012a77
Capabilities:
Send data

Disassembly:
mov eax, dword [0x3002c3ac]
push edi
xor edi, edi
cmp eax, edi
je 0x30012ac8
mov ecx, dword [0x3002c3a0]
push 0x3002c3a8
push dword [0x3002c3a4]
add ecx, eax
mov dword [0x3002d810], 1
push ecx
push dword [0x3002b940]
call dword [sym.imp.WININET.DLL_InternetWriteFile]
test eax, eax
jne 0x30012ac2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x30012adb
xor eax, eax
pop edi
ret
mov dword [0x3002d810], edi
push edi
push edi
push 0x1427
push dword [0x3002d814]
call dword [sym.imp.USER32.DLL_PostMessageA]
push 1
pop eax
pop edi
ret