joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30024819
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x300930a4]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], eax
je 0x300249ca
test byte [ebp + 0xc], 8
je 0x300249ca
lea eax, [ebp - 0x118]
push eax
call fcn.3001b2e3
test eax, eax
je 0x300249ca
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
push 0x30003588
call fcn.3004cb62
push esi
lea eax, [ebp - 0x118]
push eax
push 0x30003580
call fcn.3004cb62
push 1
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
je 0x300249c8
push 0x30003568
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebx
je 0x300249c8
push dword [ebp + 8]
sub esi, edi
push ebx
push 0x43a
mov dword [ebp - 0x120], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x300249c8
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push edi
mov dword [ebp + 0xc], ebx
call dword [0x3009f008]
push 0x106
push dword [ebp + 0xc]
call fcn.30050e9f
cmp eax, ebx
mov dword [ebp - 0x11c], eax
je 0x300249c1
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push edi
call dword [0x3009f008]
test eax, eax
je 0x300249b6
xor esi, esi
test dword [ebp + 0xc], 0xfffffffc
jbe 0x300249b6
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x11c]
push dword [eax + esi*4]
push edi
call dword [0x3009f014]
test eax, eax
jle 0x30024971
push 0x30003580
lea eax, [ebp - 0x14]
push eax
call fcn.30031ce4
test eax, eax
jne 0x30024971
push 0xc
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x11c]
push dword [eax + esi*4]
push edi
call dword [0x3009f010]
test eax, eax
jne 0x3002497e
mov eax, dword [ebp + 0xc]
inc esi
shr eax, 2
cmp esi, eax
jb 0x30024928
jmp 0x300249b6
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x120]
add eax, ecx
lea ecx, [ebp + 8]
push ecx
push ebx
push ebx
push eax
push 0x10000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
cmp esi, ebx
je 0x300249b6
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x11c]
call fcn.30050db4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.3005f839
leave
ret 8
Function at 0x30024e76
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x300930a4]
mov dword [ebp + 0x9c], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0xac]
call fcn.30032438
test eax, eax
je 0x30025000
push edi
push 0x104
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x78]
call fcn.3004cb0a
lea eax, [ebp - 0x68]
push eax
call fcn.30022807
mov edi, eax
cmp byte [edi], 0x5c
jne 0x30024fff
push ebx
lea eax, [ebp - 0x6c]
push eax
push 0x20019
xor ebx, ebx
push ebx
lea eax, [ebp - 0x68]
mov byte [edi], bl
push eax
push dword [ebp - 0x74]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30024ffe
push esi
mov esi, dword [ebp + 0xa8]
mov eax, dword [esi + 0xc]
sub eax, ebx
je 0x30024fcf
dec eax
je 0x30024fb2
dec eax
je 0x30024f99
dec eax
jne 0x30024ff4
push 1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], ebx
call fcn.30031b87
test eax, eax
je 0x30024ff4
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x70]
push ebx
push ebx
call edi
mov dword [ebp + 0xac], eax
add eax, eax
push 0x106
push eax
mov dword [ebp + 0xa8], eax
call fcn.30050e9f
cmp eax, ebx
mov dword [esi + 4], eax
je 0x30024f8a
push dword [ebp + 0xac]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x70]
push ebx
push ebx
call edi
mov eax, dword [ebp + 0xa8]
mov dword [esi + 8], eax
mov dword [esi], 1
cmp dword [ebp - 0x70], ebx
je 0x30024ff4
push dword [ebp - 0x70]
call fcn.30050db4
jmp 0x30024ff4
push 3
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x6c]
call fcn.30031b87
test eax, eax
je 0x30024ff4
jmp 0x30024fee
xor ebx, ebx
inc ebx
push ebx
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x6c]
call fcn.30031b87
test eax, eax
je 0x30024ff4
mov dword [esi], ebx
jmp 0x30024ff4
lea eax, [ebp - 0x7c]
push eax
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30024ff4
mov dword [esi], 1
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
mov ecx, dword [ebp + 0x9c]
call fcn.3005f839
add ebp, 0xa0
leave
ret 8
Function at 0x30025015
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x30002d1c
call fcn.30032438
test eax, eax
jne 0x30025033
leave
ret
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
xor esi, esi
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x3002505c
xor eax, eax
jmp 0x30025157
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x3002508d
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.3004fc1e
test eax, eax
jne 0x30025098
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x30025055
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
jbe 0x3002513c
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x30025116
push dword [ebp - 8]
call fcn.30021fbe
test eax, eax
je 0x30025109
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x30025109
push 3
push 0x30062588
push 0x30062584
push 0x300627a8
push dword [ebp - 0x14]
call fcn.30031b87
test eax, eax
push dword [ebp - 0x14]
jne 0x3002512c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jb 0x300250a4
jmp 0x3002513c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.3004fd1c
jmp 0x30025055
mov dword [0x30062580], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.3004fd1c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30025239
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x300930a4]
push ebx
push esi
mov esi, dword [ebp + 0xa0]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x30062568], ebx
mov dword [ebp + 0x90], eax
je 0x3002527d
mov eax, dword [esi + 0x3006256c]
cmp eax, dword [ebp + 0xa4]
jne 0x3002527d
xor eax, eax
inc eax
jmp 0x30025356
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
call fcn.3004cb0a
mov eax, dword [esi + 0x30062578]
cmp eax, ebx
je 0x300252c0
cmp byte [eax], bl
je 0x300252c0
push edi
lea eax, [ebp - 0x74]
push eax
push 0x30002938
call fcn.3004cb62
push edi
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0x30062578]
call fcn.3004cb62
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.30032438
test eax, eax
jne 0x300252d9
xor eax, eax
jmp 0x30025355
push dword [ebp - 0x78]
call fcn.30022807
mov edi, eax
cmp byte [edi], 0x5c
jne 0x300252d5
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x20006
push ebx
push ebx
mov byte [edi], bl
push ebx
push dword [ebp - 0x78]
inc edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x300252d5
mov eax, dword [esi + 0x3006257c]
cmp eax, ebx
je 0x30025317
cmp byte [eax], bl
jne 0x30025319
mov eax, edi
push 4
pop edi
push edi
lea ecx, [ebp + 0xa4]
push ecx
push edi
push ebx
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x300252d5
mov eax, dword [ebp + 0xa4]
mov dword [esi + 0x3006256c], eax
xor eax, eax
inc eax
mov dword [esi + 0x30062570], edi
mov dword [esi + 0x30062568], eax
mov dword [esi + 0x30062574], ebx
pop edi
mov ecx, dword [ebp + 0x90]
pop esi
pop ebx
call fcn.3005f839
add ebp, 0x94
leave
ret 0xc

Function at 0x300253bb
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7e4]
sub esp, 0x864
mov eax, dword [0x300930a4]
push esi
mov esi, dword [ebp + 0x7ec]
test esi, esi
mov dword [ebp + 0x7e0], eax
je 0x30025481
call fcn.30022690
test eax, eax
je 0x30025406
push 0x300035cc
call fcn.3002272a
push esi
call fcn.3002272a
push 0x30002980
call fcn.3002272a
cmp dword [0x300984cc], 0
jne 0x30025419
push esi
call fcn.300218b4
test eax, eax
je 0x30025423
push esi
call fcn.30021966
test eax, eax
jne 0x30025481
push 0x824
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.3004cb0a
cmp dword [ebp + 0x7f0], 0
je 0x30025446
lea eax, [ebp - 0x44]
push eax
call fcn.30021abb
jmp 0x30025481
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x64], 0xa
mov dword [ebp - 0x7c], 0x100
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
jne 0x30025481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x7e0]
pop esi
call fcn.3005f839
add ebp, 0x7e4
leave
ret 8
Function at 0x30025776
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x3002580d
push edi
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x3002580c
push edi
call fcn.3002282c
cmp eax, edi
je 0x3002580c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
sub eax, edi
sar eax, 1
push eax
push edi
push esi
push dword [0x300984e4]
mov dword [ebp - 8], eax
call ebx
mov esi, eax
inc esi
push esi
lea eax, [ebp - 4]
push eax
call fcn.3004fc1e
test eax, eax
je 0x3002580b
mov edi, dword [ebp - 4]
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
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 [0x300984e4]
call ebx
test eax, eax
je 0x30025803
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push dword [ebp - 4]
call fcn.3004fd1c
pop ebx
pop edi
pop esi
leave
ret 8

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

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

Function at 0x300259f3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x30025a19
xor eax, eax
jmp 0x30025a7e
push ebx
push 0x106
push esi
call fcn.30050e9f
mov ebx, eax
cmp ebx, edi
jne 0x30025a2f
xor eax, eax
jmp 0x30025a7d
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x30025a75
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x30002938
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x30025a75
mov esi, dword [ebp - 0xc]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.30021f91
test eax, eax
je 0x30025a75
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 0x14]
xor edi, edi
inc edi
and eax, edi
mov dword [ecx], eax
push ebx
call fcn.30050db4
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x30025f26
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x300930a4]
push ebx
push esi
push edi
mov dword [ebp + 0x8c], eax
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
je 0x30025f66
lea eax, [ebp - 0x78]
push eax
push 0x3000379c
call edi
push 0x3000378c
call fcn.300241ad
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x30026000
push 0x30003778
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x30025ff7
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x30025fa9
lea eax, [ebp - 0x78]
push eax
push 0x3000376c
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x30025fc3
lea eax, [ebp - 0x78]
push eax
push 0x30003760
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x30025fdd
lea eax, [ebp - 0x78]
push eax
push 0x30003758
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x30025ff7
lea eax, [ebp - 0x78]
push eax
push 0x3000374c
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x80]
push eax
push 0x20019
push ebx
push 0x30003718
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30026074
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x30003710
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x3002606b
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x78]
push eax
dec esi
call fcn.3004b73a
cmp byte [eax + esi], 0x5c
jne 0x30026060
lea eax, [ebp - 0x78]
push eax
call fcn.3004b73a
mov byte [eax + esi], bl
lea eax, [ebp - 0x78]
push eax
push 0x30003704
call edi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
pop ebx
call fcn.3005f839
add ebp, 0x90
leave
ret
Function at 0x3002608a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x3002609b
xor eax, eax
jmp 0x30026108
cmp dword [ebp + 0x10], esi
push ebx
je 0x300260d4
push 0x106
push dword [ebp + 0x10]
call fcn.30050e9f
mov ebx, eax
cmp ebx, esi
jne 0x300260b8
xor eax, eax
jmp 0x30026107
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
shr ecx, 2
mov edi, ebx
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 0x300260d7
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 0x300260f5
push ebx
call dword [ebp + 8]
jmp 0x30026104
lea eax, [ebp - 4]
push eax
push dword [0x30093938]
call fcn.300510f3
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret 0xc
Function at 0x30028714
Capabilities:
Check if file exists
Get file attributes

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 0x300287e2
push esi
push edi
push eax
call fcn.3004b7c1
mov esi, eax
inc esi
mov eax, esi
push 0x106
shl eax, 2
push eax
call fcn.30050e9f
mov edi, eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 8], edi
call fcn.3004cae8
mov eax, edi
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], edi
mov edi, dword [ebx]
je 0x300287d2
jmp 0x30028762
mov eax, dword [ebp + 8]
cmp word [eax], cx
je 0x30028783
cmp word [eax], 0x7c
je 0x30028774
inc eax
inc eax
cmp word [eax], cx
jne 0x30028767
cmp word [eax], cx
je 0x30028783
mov word [eax], cx
inc eax
inc eax
mov dword [ebp + 8], eax
jmp 0x30028786
mov dword [ebp + 8], ecx
push dword [ebp - 4]
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x3002879e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x300287c6
cmp edi, dword [ebx]
je 0x300287a9
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.3004cae8
push edi
call fcn.3004b7c1
lea edi, [edi + eax*2]
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
mov dword [ebp - 4], eax
jne 0x3002875f
cmp edi, dword [ebx]
pop edi
pop esi
jne 0x300287da
mov dword [ebx], ecx
push dword [ebp - 8]
call fcn.30050db4
pop ebx
leave
ret 4
Function at 0x300287e7
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3f4]
sub esp, 0x474
mov eax, dword [0x300930a4]
and dword [ebp - 0x6c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3fc]
test edi, edi
mov dword [ebp + 0x3f0], eax
je 0x300289de
mov eax, dword [edi]
test eax, eax
je 0x300289de
push eax
call fcn.3004b7c1
mov esi, eax
inc esi
mov eax, esi
push 0x106
shl eax, 2
push eax
mov dword [ebp + 0x3fc], esi
call fcn.30050e9f
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x74], ebx
je 0x300289e1
push esi
push ebx
push dword [edi]
call fcn.3004cae8
mov dword [ebp - 0x70], ebx
jmp 0x30028861
cmp word [ebx], 0x3b
je 0x30028867
inc ebx
inc ebx
cmp word [ebx], 0
jne 0x30028859
cmp word [ebx], 0
mov esi, ebx
je 0x30028877
and word [ebx], 0
inc ebx
inc ebx
jmp 0x30028879
xor ebx, ebx
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x300289bd
and dword [ebp - 0x78], 0
jmp 0x300288a6
mov ax, word [esi]
test ax, ax
je 0x300288bf
cmp ax, 0x5c
je 0x300288af
dec esi
dec esi
cmp esi, dword [ebp - 0x74]
jae 0x30028898
jmp 0x300288bf
push dword [ebp - 0x70]
and word [esi + 2], 0
call fcn.3004b7c1
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x3fc]
lea eax, [eax*4 + 0x400]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.3004b7c1
mov esi, eax
add esi, dword [ebp - 0x78]
mov eax, 0x104
cmp esi, eax
jae 0x3002899f
and word [ebp + 0x1e8], 0
cmp dword [ebp - 0x78], 0
je 0x3002890d
push eax
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x70]
call fcn.3004cae8
mov eax, 0x104
push eax
lea eax, [ebp + 0x1e8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.3004cb2a
lea eax, [ebp + 0x1e8]
push eax
call fcn.30025906
test eax, eax
jne 0x3002899f
mov eax, dword [ebp - 0x6c]
lea ecx, [esi + eax + 1]
cmp ecx, dword [ebp + 0x3fc]
jle 0x30028965
push dword [ebp - 0x7c]
push dword [edi]
call fcn.30050ed2
test eax, eax
je 0x300289d6
add dword [ebp + 0x3fc], 0x100
add dword [ebp - 0x7c], 0x400
mov dword [edi], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x30028975
mov ecx, dword [edi]
mov word [ecx + eax*2], 0x3b
inc eax
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 0x3fc]
sub ecx, eax
lea esi, [eax + eax]
mov eax, dword [edi]
push ecx
add eax, esi
push eax
lea eax, [ebp + 0x1e8]
push eax
call fcn.3004cae8
mov eax, dword [edi]
add eax, esi
push eax
call fcn.3004b7c1
add dword [ebp - 0x6c], eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x300288cf
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
mov dword [ebp - 0x70], ebx
jne 0x30028861
cmp dword [ebp - 0x6c], ebx
jne 0x300289d6
push dword [edi]
call fcn.30050db4
and dword [edi], ebx
push dword [ebp - 0x74]
call fcn.30050db4
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x3f0]
pop edi
pop esi
pop ebx
call fcn.3005f839
add ebp, 0x3f4
leave
ret 4
Function at 0x30028bb6
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 0x30028bd3
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 0x30028f4e
Capabilities:
Connect to http server

Disassembly:
push ebx
push esi
xor ebx, ebx
call fcn.30022690
test eax, eax
mov esi, 0x30093c2c
je 0x30028f6d
push esi
push 0x30003cd0
call fcn.300227ad
pop ecx
pop ecx
mov eax, dword [0x30094634]
test eax, eax
je 0x30028f7b
mov ebx, 0x800000
push 1
push ebx
neg eax
push 3
sbb eax, eax
mov ecx, 0x30002830
push ecx
and eax, 0x16b
push ecx
add eax, 0x50
push eax
push esi
push dword [0x30093bf8]
call dword [sym.imp.WININET.dll_InternetConnectA]
and dword [0x30093c04], 0
test eax, eax
pop esi
mov dword [0x30093bfc], eax
mov dword [0x30096894], 1
pop ebx
jne 0x30028fe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x30028ffc
call fcn.30022690
test eax, eax
je 0x30028fdd
push 0x30003cb8
call fcn.3002272a
xor eax, eax
ret
and dword [0x30096894], 0
push 0
push 0
push 0x1427
push dword [0x3009e720]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
ret

Function at 0x30029194
Capabilities:
Send data

Disassembly:
mov eax, dword [0x30094644]
push edi
xor edi, edi
cmp eax, edi
jne 0x300291b8
push edi
push edi
push 0x1427
push dword [0x3009e720]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
pop edi
ret
mov ecx, dword [0x30094638]
push esi
push 0x30094640
push dword [0x3009463c]
add ecx, eax
push ecx
push dword [0x30093c00]
xor esi, esi
inc esi
mov dword [0x30096894], esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x30029210
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x30029238
call fcn.30022690
test eax, eax
je 0x3002920c
push edi
push 0x30003d38
call fcn.300227ad
pop ecx
pop ecx
xor eax, eax
jmp 0x3002923a
cmp dword [0x30093bcc], 3
mov dword [0x30096894], edi
jne 0x30029225
mov dword [0x3009e714], esi
push edi
push edi
push 0x1427
push dword [0x3009e720]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, esi
pop esi
pop edi
ret
Function at 0x30029fd5
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.30029e9d
test eax, eax
je 0x3002a036
push dword [0x30062614]
call fcn.30025906
test eax, eax
jne 0x3002a031
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.30022690
test eax, eax
je 0x3002a015
push dword [0x30062614]
push 0x30003f1c
call fcn.300227ad
pop ecx
pop ecx
call fcn.30022690
test eax, eax
je 0x3002a02d
push dword [ebp - 4]
push 0x30003ef8
call fcn.300227ad
pop ecx
pop ecx
xor eax, eax
jmp 0x3002a048
xor eax, eax
inc eax
jmp 0x3002a048
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