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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10024018]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.1000ad20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000ae7e
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x18], 0
je 0x1000ae6c
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x224]
jmp 0x1000af87
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000af10
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x18]
call fcn.1000ade0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000af04
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x244], 0
cmp dword [ebp - 0x18], 0
je 0x1000aef2
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x228]
jmp 0x1000af87
mov dword [ebp - 4], 0x100
jmp 0x1000ae85
mov dword [ebp - 0x248], 0
cmp dword [ebp - 0x18], 0
je 0x1000af37
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x25c]
call fcn.1000b150
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x258], 0
cmp dword [ebp - 0x18], 0
je 0x1000af7a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1001111a
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b0c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x1000b11f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000b0ec
mov eax, 1
jmp 0x1000b13d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000b11d
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 4]
jmp 0x1000b13d
jmp 0x1000b138
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x1000b138
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1000b13d
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x1000efb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call fcn.1000ee80
movzx eax, al
test eax, eax
je 0x1000efc6
xor al, al
jmp 0x1000efdb
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1000f120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], ecx
push 0x104
mov ecx, dword [ebp + 0xc]
call fcn.1000cf20
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x208
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xea
jne 0x1000f1e2
mov dword [ebp - 0x28], 0xffffffff
mov ecx, dword [ebp + 0xc]
call fcn.10002340
cmp dword [ebp - 0x28], 0xffffffff
jne 0x1000f18e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
mov dword [eax - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.1000cf20
mov dword [ebp - 4], eax
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov dword [ebp - 0x44], 0xffffffff
mov ecx, dword [ebp + 0xc]
call fcn.10002340
cmp dword [ebp - 0x44], 0xffffffff
jne 0x1000f206
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x44]
mov dword [edx - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [edx + ecx*2], ax
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000f230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c170
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10024018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push str.SOFTWAREMicrosoftVBA
push 0x80000002
call fcn.1000f430
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
push str.VBA7.1
mov edx, dword [ebp - 0x18]
push edx
call fcn.1000f430
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
call fcn.1000fa60
add esp, 8
call fcn.1000ef60
mov byte [ebp - 0x2d], al
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x1000f824
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDisableReflectionKey]
mov dword [ebp - 0x20], 1
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.Installed
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
call fcn.1000ef60
mov byte [ebp - 0x2e], al
movzx edx, byte [ebp - 0x2e]
test edx, edx
je 0x1000f861
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnableReflectionKey]
cmp dword [ebp - 0x14], 0
je 0x1000f8a1
cmp dword [ebp - 0x14], 0
jg 0x1000f875
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x34], ecx
jmp 0x1000f88d
mov edx, dword [ebp - 0x14]
and edx, 0xffff
or edx, 0x70000
or edx, 0x80000000
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
push 0x10020f78
lea ecx, [ebp - 0x28]
push ecx
call sub.MSVCR100.dll__CxxThrowException
jmp 0x1000f8dc
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
call fcn.1000f4c0
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
call fcn.1000f4c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c150
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10024018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push str.SOFTWAREMicrosoftVBA
push 0x80000002
call fcn.1000f3a0
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push str.VBA7.1
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1000f3a0
add esp, 0xc
call fcn.1000ef60
mov byte [ebp - 0x25], al
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x1000f996
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDisableReflectionKey]
mov dword [ebp - 0x14], 4
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push str.Installed
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000f9cc
mov edx, dword [ebp + 8]
mov dword [edx], 0
jmp 0x1000f9da
xor eax, eax
cmp dword [ebp - 0x24], 1
sete al
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
call fcn.1000ef60
mov byte [ebp - 0x26], al
movzx edx, byte [ebp - 0x26]
test edx, edx
je 0x1000f9f4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnableReflectionKey]
jmp 0x1000fa24
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
push ecx
call fcn.1000f4c0
add esp, 4
lea edx, [ebp - 0x1c]
push edx
call fcn.1000f4c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000fd30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push 0x44
push 0
lea eax, [ebp - 0x70]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x7c], 0xc
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x70]
push edx
push 0
push 0
push 8
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1000fde2
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000fde8
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1001111a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10024018]
jne 0x10011124
repz ret
jmp fcn.1001170a

Function at 0x100127e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push es
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.100124f9
ficomp dword [ebp + 0x458d0bdc]
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x10019680
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001b29a
push eax
mov dword fs:[0], esp
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
push esi
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x20], 0x10025500
push edi
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], eax
lea edi, [ebx + 0x34]
mov dword [ebx], vtable.TiXmlDocument.0
mov dword [edi], 0x10025500
mov byte [ebp - 4], 1
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], ecx
push 0x1001fca8
xor esi, esi
mov dword [ebx + 0x38], 4
mov byte [ebx + 0x44], al
mov byte [ebx + 0x2c], al
mov dword [ebx + 0x30], eax
call fcn.1001a8a0
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x477880
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x475015
lea edi, [esi - 0x74015]
push edi
or ebp, 0xffffffff
jmp 0x4778a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4778a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477898
mov eax, 1
add ebx, ebx
jne 0x4778bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4778b0
jne 0x4778cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4778b0
xor ecx, ecx
sub eax, 3
jb 0x4778e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x477952
mov ebp, eax
add ebx, ebx
jne 0x4778eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4778f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47791c
inc ecx
add ebx, ebx
jne 0x477908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4778fd
jne 0x477919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4778fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47793c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47792d
jmp 0x47789e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47793c
add edi, ecx
jmp 0x47789e
pop esi
mov edi, esi
mov ecx, 0x25e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47795a
cmp byte [edi], 2
jne 0x47795a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x47795f
lea edi, [esi + 0x75000]
mov eax, dword [edi]
or eax, eax
je 0x4779ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x77000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x770c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47798c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x770cc]
or eax, eax
je 0x4779c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4779a9
call dword [esi + 0x770d0]
popal
jmp 0x4011cb

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401f4a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x401feb
cmp dword [ebp - 4], 1
jne 0x401feb
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x401feb
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x402374
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea eax, [ebp - 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_settings
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x40254d
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyEnable
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x40254d
cmp dword [ebp - 0x14], 0
je 0x402520
mov dword [esp + 4], str.ProxyServer
mov eax, dword [ebp - 4]
mov dword [esp], eax
call fcn.00401f4a
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40244c
jmp 0x40254d
mov dword [esp + 4], 0x405358
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x40247e
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [ebp - 0x10], 0
jmp 0x4024db
mov dword [esp + 4], str.http
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4024db
lea eax, [ebp - 0x1c]
add dword [eax], 5
mov dword [esp + 4], 0x4050f6
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4024c2
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [ebp - 0x10], 0
mov dword [esp + 4], str.ProxyOverride
mov eax, dword [ebp - 4]
mov dword [esp], eax
call fcn.00401f4a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40250b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x40254d
mov dword [esp], 0x40536e
call sub.msvcrt.dll__strdup
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x40254d
mov dword [esp], str.DIRECT
call sub.msvcrt.dll__strdup
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [esp], 0x40536e
call sub.msvcrt.dll__strdup
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
je 0x40255e
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.msvcrt.dll_free
cmp dword [ebp - 0xc], 0
je 0x40256f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
cmp dword [ebp - 4], 0
je 0x402583
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x402588
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [esp], str.http_proxy
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402657
mov dword [esp + 8], 7
mov dword [esp + 4], str.http:__
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x402657
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, dword [ebp - 0x14]
dec eax
cmp byte [eax], 0x2f
jne 0x402657
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 7
jbe 0x402657
mov eax, dword [ebp - 0x14]
add eax, 7
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, dword [ebx]
dec eax
mov byte [eax], 0
mov dword [esp], 0x40536e
call sub.msvcrt.dll__strdup
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x24
pop ebx
pop ebp
ret

Function at 0x4031ce
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x4031e2
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x4031eb
mov dword [ebp - 8], 0
jmp 0x403264
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403216
mov dword [esp], str.Cannot_allocate_memory__removeAUClustersListFile_.
call fcn.00402948
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], str.updatedownload_netbeans.dirs
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.msvcrt.dll_remove
test eax, eax
je 0x40325d
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x40325d
mov dword [ebp - 8], 0xffffffff
jmp 0x403264
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
leave
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219