joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x5670cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x57f258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x57f258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x57e0e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5670d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ec88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x416030]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
je 0x401159
push 0x4165ec
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
je 0x401159
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x2c], ebx
push 8
call sub.acdb17.dll_private:_static_void____stdcall_AcHeapOperators::allocRawMem_unsigned_int_
mov dword [esp + 8], eax
push 1
push ebx
mov ecx, eax
mov dword [esp + 0x1c], ebx
call sub.acdb17.dll_public:_void___thiscall_AcDbDatabase::constructor_bool__bool_
cmp eax, ebx
mov dword [esi + 0x2c], eax
jne 0x401196
mov byte [0x4165f0], 1
mov byte [esi + 0x30], bl
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret
push 0x4165ec
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret

Function at 0x4048a0
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [0x416630], eax
jne 0x4048ba
pop ecx
ret
push esi
lea eax, [esp + 4]
push eax
push 0
push 0x416600
push 0x404910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x4048e9
mov ecx, dword [0x416630]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4057d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ea7b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x416030]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x410a78
mov dword [esp + 0x14], 0
cmp dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
je 0x405831
push 0x4165ec
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x405831
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x2c], 0
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040ab10
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x40ab30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40deb2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x416030]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 8], 0
jge 0x40ab66
xor eax, eax
mov edx, dword [esp + 0x40]
test edx, edx
je 0x40abd1
cmp eax, dword [ecx + 0x18]
jae 0x40abd1
push edx
push eax
lea eax, [esp + 0x14]
push eax
add ecx, 4
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], 8
mov dword [esp + 0x30], 1
jb 0x40ab96
mov eax, dword [eax + 4]
jmp 0x40ab99
add eax, 4
mov esi, dword [esp + 0x38]
push eax
mov ecx, esi
call fcn.0040aaa0
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 0xc
mov esi, dword [esp + 0x38]
push 0x410980
mov ecx, esi
call fcn.0040aaa0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 0xc

Function at 0x40cee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40e6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
mov eax, dword [0x416030]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
push 0x410980
lea ecx, [esp + 0x34]
call fcn.0040aaa0
push 0x410980
lea ecx, [esp + 0xc]
mov dword [esp + 0x64], 0
call fcn.0040aaa0
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x6c], 1
call fcn.0040c9a0
lea ecx, [esp + 8]
mov byte [esp + 0x60], 0
call fcn.0040ab10
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], 0xffffffff
call fcn.0040ab10
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x5c
ret 4
Function at 0x40d38f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x416030]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040d324
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40d3de
cmp dword [ebp - 0x1c], 5
jb 0x40d3f6
jmp 0x40d3f2
cmp dword [ebp - 0x10], 1
jne 0x40d3f6
cmp dword [ebp - 0x1c], 4
ja 0x40d3f2
jne 0x40d3f6
cmp dword [ebp - 0x18], 0
jbe 0x40d3f6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4106d4
call fcn.004053e0
test eax, eax
jge 0x40d417
mov byte [0x4166b8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d51a
add ebp, 0x78
leave
ret

Function at 0x40d51a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416030]
jne 0x40d524
repz ret
jmp fcn.0040db10
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x51f251ac
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x2d3e1461
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x3002c9bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30003210
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3002c9e4
xor eax, eax
jmp 0x3002ca18
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push 0
push 0
push 0x3000325c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
leave
ret 4

Function at 0x3002ca7a
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x300032cc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3002caaa
xor eax, eax
jmp 0x3002cad9
push edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push 0x30003294
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x3002caa6
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x3002cadc
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 0x40e
lea eax, [ebp - 0x61a]
push esi
push eax
mov dword [ebp - 0x620], esi
mov word [ebp - 0x61c], si
call fcn.3006a130
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.3006a130
mov edi, dword [ebp + 8]
add esp, 0x18
cmp edi, esi
je 0x3002cc48
call fcn.3002ca7a
test eax, eax
je 0x3002cb63
cmp dword [ebp + 0xc], esi
je 0x3002cb63
call fcn.3003dc3a
test eax, eax
je 0x3002cc53
push 0x30003508
call fcn.3003dcd4
jmp 0x3002cc53
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x620]
push ecx
push esi
push 0x2001f
and eax, 0x10000000
push esi
neg eax
push esi
sbb eax, eax
push esi
neg eax
add eax, 0x80000001
push 0x300032cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x3002cbaa
call fcn.3003dc3a
test eax, eax
je 0x3002cc53
push 0x300034e8
jmp 0x3002cb59
cmp dword [ebp + 0xc], esi
jne 0x3002cbc5
push 0x30003270
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x3002cc53
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x3002cc53
dec eax
cmp word [ebp + eax*2 - 0x20c], 0x5c
jne 0x3002cbd8
push 0x74
mov word [ebp + eax*2 - 0x20c], si
push 0x300034cc
lea eax, [ebp - 0x20c]
push eax
push 0x300034b4
lea eax, [ebp - 0x61c]
push 0x208
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call fcn.3005a04d
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push esi
push 0x30003270
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x3002cc53
push esi
push 0x30303030
call fcn.300436bb
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.30069876
leave
ret 8

Function at 0x3002e71b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call int.3006aa0d
test eax, eax
je 0x3002e733
xor eax, eax
inc eax
jmp 0x3002e7b9
push esi
push edi
xor esi, esi
push esi
push esi
push 0x80
push 2
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3005ed81
mov edi, eax
cmp edi, 0xffffffff
jne 0x3002e772
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.3003dc3a
test eax, eax
je 0x3002e7b0
push dword [ebp - 4]
push 0x30003988
jmp 0x3002e7a9
push ebx
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
pop ebx
jne 0x3002e7b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.3003dc3a
test eax, eax
je 0x3002e7b0
push dword [ebp - 4]
push 0x30003968
call fcn.3003dd59
pop ecx
pop ecx
xor eax, eax
jmp 0x3002e7b7
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x3002ec58
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 0x3002ecc7
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 0x3002ec98
cmp eax, edi
jbe 0x3002ecf4
call fcn.3003dc3a
test eax, eax
je 0x3002ecb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x30003ab8
call fcn.3003dd59
pop ecx
pop ecx
push 0
push 0x30303030
call fcn.300436bb
xor eax, eax
jmp 0x3002ee45
push 1
push 0x1c
push ebx
push 0
mov dword [ebp + 8], SysStringLen
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x3002ecf4
call fcn.3003dc3a
test eax, eax
je 0x3002ecb4
push 0x30003a90
call fcn.3003dcd4
jmp 0x3002ecb4
push edi
push ebx
push 0x3002271c
call fcn.3005b58e
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 0x30003210
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x3002ed3c
call fcn.3003dc3a
test eax, eax
je 0x3002ed38
push 0x30003a6c
call fcn.3003dcd4
and dword [esi + 8], 0
mov eax, dword [esi]
and eax, 7
dec eax
je 0x3002edfe
dec eax
je 0x3002edba
dec eax
dec eax
je 0x3002ed73
call fcn.3003dc3a
test eax, eax
je 0x3002ecc0
mov eax, dword [esi]
and eax, 7
push eax
push 0x30003a44
call fcn.3003dd59
pop ecx
pop ecx
jmp 0x3002ecc0
push edi
push ebx
push 0x3002276c
call fcn.3005b58e
cmp dword [0x3008c610], 0
je 0x3002ed92
mov eax, dword [0x3008c614]
mov dword [esi + 4], eax
jmp 0x3002ed99
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x3002edae
mov dword [esi + 0x218], 0x3000331c
jmp 0x3002ee2e
mov dword [esi + 0x218], 0x30003340
jmp 0x3002ee2e
push edi
push ebx
push 0x30022758
call fcn.3005b58e
cmp dword [0x3008c610], 0
je 0x3002edd9
mov eax, dword [0x3008c614]
mov dword [esi + 4], eax
jmp 0x3002ede0
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x3002edf2
mov dword [esi + 0x218], 0x3000330c
jmp 0x3002ee2e
mov dword [esi + 0x218], 0x3000332c
jmp 0x3002ee2e
push edi
push ebx
push 0x30022744
call fcn.3005b58e
cmp dword [0x3008c610], 0
je 0x3002ee1d
mov eax, dword [0x3008c614]
mov dword [esi + 4], eax
jmp 0x3002ee24
mov dword [esi + 4], 0x32
mov dword [esi + 0x218], 0x300032fc
cmp dword [ebp + 0xc], 0
je 0x3002ee42
push esi
call fcn.3002ea39
test eax, eax
je 0x3002ecc0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x3002f3ba
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 0x3002f3e6
push 0x30003240
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x3002f442
push ebx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push eax
mov ebx, 0x30003240
push ebx
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x3002f41a
cmp eax, 2
jne 0x3002f435
mov eax, dword [esi]
and eax, 0x10000000
push eax
push edi
call fcn.3002f2f6
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 0x3002f441
push 0
push 0x30303030
call fcn.300436bb
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x30030958
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 0x30030a21
push esi
push edi
push eax
call fcn.3005a04d
mov esi, eax
inc esi
mov eax, esi
shl eax, 2
push eax
call fcn.30043209
mov edi, eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 8], edi
call fcn.3005b50c
mov eax, edi
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], edi
mov edi, dword [ebx]
je 0x30030a11
jmp 0x300309a1
mov eax, dword [ebp + 8]
cmp word [eax], cx
je 0x300309c2
cmp word [eax], 0x7c
je 0x300309b3
inc eax
inc eax
cmp word [eax], cx
jne 0x300309a6
cmp word [eax], cx
je 0x300309c2
mov word [eax], cx
inc eax
inc eax
mov dword [ebp + 8], eax
jmp 0x300309c5
mov dword [ebp + 8], ecx
push dword [ebp - 4]
call fcn.3003dde1
cmp eax, 0xffffffff
jne 0x300309dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x30030a05
cmp edi, dword [ebx]
je 0x300309e8
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.3005b50c
push edi
call fcn.3005a04d
lea edi, [edi + eax*2]
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
mov dword [ebp - 4], eax
jne 0x3003099e
cmp edi, dword [ebx]
pop edi
pop esi
jne 0x30030a19
mov dword [ebx], ecx
push dword [ebp - 8]
call fcn.30043266
pop ebx
leave
ret 4
Function at 0x30030a26
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x30022344]
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 0x30030c67
mov eax, dword [esi]
test eax, eax
je 0x30030c67
push eax
call fcn.3005a04d
mov edi, eax
inc edi
mov eax, edi
shl eax, 2
push eax
mov dword [ebp - 0x468], edi
call fcn.30043209
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x46c], ebx
je 0x30030c6a
push edi
push ebx
push dword [esi]
call fcn.3005b50c
mov dword [ebp - 0x464], ebx
jmp 0x30030a9b
cmp word [ebx], 0x3b
je 0x30030aa1
inc ebx
inc ebx
cmp word [ebx], 0
jne 0x30030a93
cmp word [ebx], 0
mov edi, ebx
je 0x30030ab1
and word [ebx], 0
inc ebx
inc ebx
jmp 0x30030ab3
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 0x30030c3d
and dword [ebp - 0x470], 0
jmp 0x30030aec
movzx eax, word [edi]
test ax, ax
je 0x30030b0e
cmp ax, 0x5c
je 0x30030af8
dec edi
dec edi
cmp edi, dword [ebp - 0x46c]
jae 0x30030ade
jmp 0x30030b0e
push dword [ebp - 0x464]
and word [edi + 2], 0
call fcn.3005a04d
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.3005a04d
mov edi, eax
add edi, dword [ebp - 0x470]
mov eax, 0x104
cmp edi, eax
jae 0x30030c16
and word [ebp - 0x20c], 0
cmp dword [ebp - 0x470], 0
je 0x30030b6b
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x464]
call fcn.3005b50c
mov eax, 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.3005b58e
lea eax, [ebp - 0x20c]
push eax
call fcn.300410a4
test eax, eax
jne 0x30030c16
mov eax, dword [ebp - 0x460]
lea ecx, [edi + eax + 1]
cmp ecx, dword [ebp - 0x468]
jle 0x30030bd6
push dword [ebp - 0x474]
push dword [esi]
call fcn.300432d5
test eax, eax
je 0x30030c5c
add dword [ebp - 0x468], 0x100
add dword [ebp - 0x474], 0x400
mov dword [esi], eax
mov eax, dword [ebp - 0x460]
test eax, eax
je 0x30030be9
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.3005b50c
mov eax, dword [esi]
add eax, edi
push eax
call fcn.3005a04d
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 0x30030b21
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
mov dword [ebp - 0x464], ebx
jne 0x30030a9b
cmp dword [ebp - 0x460], ebx
jne 0x30030c5c
push dword [esi]
call fcn.30043266
and dword [esi], ebx
push dword [ebp - 0x46c]
call fcn.30043266
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30069876
leave
ret 4
Function at 0x30030e42
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 0x30030e5f
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 0x300311d0
Capabilities:
Connect to http server

Disassembly:
push ebx
push esi
xor ebx, ebx
call fcn.3003dc3a
test eax, eax
mov esi, 0x300be014
je 0x300311ef
push esi
push 0x30004388
call fcn.3003dd59
pop ecx
pop ecx
mov eax, dword [0x300bea1c]
test eax, eax
je 0x300311fd
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, 0x30002a3d
push eax
push eax
push ecx
push esi
push dword [0x300bdfe0]
call dword [sym.imp.WININET.dll_InternetConnectA]
xor ecx, ecx
cmp eax, ecx
pop esi
mov dword [0x300bdfe4], eax
mov dword [0x300c0c78], 1
mov dword [0x300bdfec], ecx
pop ebx
jne 0x30031266
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x3003127f
call fcn.3003dc3a
test eax, eax
je 0x30031263
push 0x30004370
call fcn.3003dcd4
xor eax, eax
ret
push ecx
push ecx
push 0x1427
push dword [0x300d2760]
mov dword [0x300c0c78], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
ret

Function at 0x3003141b
Capabilities:
Send data

Disassembly:
mov eax, dword [0x300bea2c]
push edi
xor edi, edi
cmp eax, edi
jne 0x3003143f
push edi
push edi
push 0x1427
push dword [0x300d2760]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
pop edi
ret
mov ecx, dword [0x300bea20]
push esi
push 0x300bea28
push dword [0x300bea24]
add ecx, eax
push ecx
push dword [0x300bdfe8]
xor esi, esi
inc esi
mov dword [0x300c0c78], esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x30031497
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x300314bf
call fcn.3003dc3a
test eax, eax
je 0x30031493
push edi
push 0x300043f0
call fcn.3003dd59
pop ecx
pop ecx
xor eax, eax
jmp 0x300314c1
cmp dword [0x300bdfb4], 3
mov dword [0x300c0c78], edi
jne 0x300314ac
mov dword [0x300d2754], esi
push edi
push edi
push 0x1427
push dword [0x300d2760]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, esi
pop esi
pop edi
ret