joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100036f0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100171b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x11
push 2
xor edi, edi
push 2
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x10003732
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006195
mov esp, ebp
pop ebp
ret 8
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x9800000c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push ecx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push eax
call edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0
push 0
push 0
push 0
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.1000617f
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x20]
push edi
mov byte [edi + edx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov ebx, eax
call fcn.1000618a
add esp, 4
test ebx, ebx
je 0x1000371e
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push 0x30
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10003857
mov edx, dword [esi + 0x40]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10003850
cmp eax, 0xffffffff
jne 0x10003847
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003850
mov dword [ebp - 0x18], 0
jmp 0x10003857
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop ebx
call fcn.10006195
mov esp, ebp
pop ebp
ret 8
Function at 0x10003bf0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [eax + 0x14]
push ebx
test eax, eax
jne 0x10003c13
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10003c2c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
xor eax, eax
pop ebx
ret
push edi
lea eax, [esi + 0x19c]
push eax
lea ecx, [esi + 0x1d8]
mov ebx, 1
push ecx
mov dword [esi + 0x60], ebx
mov ecx, esi
mov eax, esi
mov dword [esi + 0x64], ebx
call fcn.10004af0
mov edx, dword [esi + 0x40]
xor edi, edi
push edi
push edi
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10003c75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10003c75
xor edi, edi
mov eax, dword [esi + 0x48]
push eax
call fcn.10002c70
add esp, 4
test edi, edi
pop edi
je 0x10003c90
mov eax, 0x80004005
call fcn.10001280
mov eax, ebx
pop ebx
ret

Function at 0x10003ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esp, [esp]
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x40]
push 0
push 0x598
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x10003d72
cmp edi, 0x10
jne 0x10003cf8
mov edx, dword [ebx + 0x70]
mov ecx, eax
mov eax, 0x10015418
sub edx, eax
cmp ecx, 4
jb 0x10003daa
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10003cf8
sub ecx, 4
add eax, 4
jmp 0x10003ce0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebx + 0x1c0]
mov edx, dword [ebx + 0x1c8]
mov eax, dword [ebx + 0x70]
lea esi, [ebx + 0x1d8]
cmp edi, 0x18
jl 0x10003d26
push ecx
push edi
push eax
mov edi, edx
call fcn.10005070
jmp 0x10003d30
cmp edi, 0xc
jne 0x10003da0
call fcn.10004f20
cmp eax, 2
jne 0x10003cb0
mov edx, dword [ebx + 0x48]
push edx
call fcn.10002c70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10003d54
mov eax, 0x4c7
mov ecx, 1
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x34], 4
pop edi
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x38], eax
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
cmp edi, 0xffffffff
jne 0x10003cb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003dc7
cmp eax, 0x2744
je 0x10003cb0
cmp eax, 0x2746
je 0x10003cb0
jmp 0x10003d54
push 0xd
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x10003d39
xor eax, eax
pop edi
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 5
mov dword [ebx + 0x3c], eax
pop esi
mov dword [ebx + 0x38], eax
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x10003f60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [esi + 0x64]
cmp eax, 3
je 0x10004048
lea edi, [esi + 0x15c]
push edi
call fcn.10002ba0
mov ecx, dword [esi + 0x64]
cmp ecx, 1
je 0x10003f98
mov edx, dword [esi + 0x64]
test edx, edx
jne 0x10004042
mov dword [esi + 0x64], 2
mov dword [edi], 0
mov eax, ebx
call fcn.10004160
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10003fd3
cmp dword [esi + 0x3c], 0
je 0x10003fcc
mov ecx, dword [esi + 0x40]
push 0
push 0x10
push 0x10015418
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x60], 0
cmp dword [esi + 0x30], 0
je 0x10003ffb
mov edx, dword [esi + 0x48]
push edx
call fcn.10002c70
mov eax, dword [esi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10004010
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x10004032
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], 0xffffffff
mov edi, esi
call fcn.10004060
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [edi], 0
push 0x139f
mov dword [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10004430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x264]
push ecx
call edi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0
lea ebx, [esi + 0x18]
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov word [esi + 0x28], ax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov word [esi + 0x28], 0xca
cmp ecx, 3
je 0x10004490
mov eax, esi
call fcn.10003f60
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, esi
call fcn.10003500
mov ecx, dword [esi + 0x264]
push 0x1770
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100044e9
cmp eax, 0x102
je 0x100044d5
cmp eax, 0xffffffff
jne 0x100044de
mov edx, dword [esi + 0x264]
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x264]
push eax
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0x264]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x10004530
push 0
push 0
call fcn.10006b9b
add esp, 0x18
pop edi
mov dword [esi + 0x268], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100055f0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
mov dword [esi], vtable.CShellManager.0
je 0x100056a3
mov eax, dword [esi + 0x30]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push eax
call edi
mov ecx, dword [esi + 0x28]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x2c]
push 0
push edx
call edi
mov eax, dword [esi + 0x34]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x34]
push 0
push ecx
call edi
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x10005654
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000565e
push eax
call edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10005668
push eax
call edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10005672
push eax
call edi
mov edx, dword [esi + 0x18]
push edx
call ebx
mov eax, dword [esi + 0x1c]
push eax
call ebx
mov ecx, dword [esi + 0x20]
push ecx
call ebx
mov edx, dword [esi + 0x24]
push edx
call ebx
mov eax, dword [esi + 0x28]
push eax
call ebx
mov ecx, dword [esi + 0x2c]
push ecx
call ebx
mov edx, dword [esi + 0x34]
push edx
call ebx
mov eax, dword [esi + 0x30]
push eax
call ebx
pop edi
mov ecx, dword [esi + 0xc]
push ecx
mov dword [esi], vtable.CManager.0
call ebx
pop esi
pop ebx
ret

Function at 0x100056c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
cmp al, 0xc9
je 0x100056fa
mov edx, dword [ebp + 0xc]
cmp edx, 1
jne 0x100056e8
test al, al
jne 0x100056e8
mov eax, dword [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop ebp
ret 8
mov ecx, dword [ecx + 0x1c]
push 0
lea eax, [ebp + 8]
push eax
push edx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret 8

Function at 0x10005c90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10005cc7
cmp dword [0x1001855c], eax
je 0x10005cc7
cmp dword [0x10019294], eax
jne 0x10005cc7
push eax
push eax
push eax
push 0x10005ba0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x10019294], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10005cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0xff
push str.192.168.50.142
call fcn.100069e8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0
push 0
push 0
push 0x10005ba0
push 0
push 0
mov dword [0x10018554], ecx
mov dword [0x10018558], edx
mov dword [0x1001855c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x10019294], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
pop ebp
ret
Function at 0x10005d40
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10005ba0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
ret

Function at 0x10006195
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100171b0]
jne 0x1000619f
repz ret
jmp fcn.100070b6

Function at 0x1000af7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100171b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10008f97
and dword [ebp - 0x14], 0
cmp dword [0x1001923c], 0
mov dword [ebp - 0x18], eax
jne 0x1000b032
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000b0da
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000b0da
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001923c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10019240], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10019244], eax
call edi
push eax
call esi
mov dword [0x1001924c], eax
test eax, eax
je 0x1000b032
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10019248], eax
mov eax, dword [0x10019248]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000b08b
cmp dword [0x1001924c], ecx
je 0x1000b08b
push eax
call esi
push dword [0x1001924c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000b08b
test ebx, ebx
je 0x1000b08b
call edi
test eax, eax
je 0x1000b082
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000b082
test byte [ebp - 8], 1
jne 0x1000b08b
or dword [ebp + 0x10], 0x200000
jmp 0x1000b0be
mov eax, dword [0x10019240]
cmp eax, dword [ebp - 0x18]
je 0x1000b0be
push eax
call esi
test eax, eax
je 0x1000b0be
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000b0be
mov eax, dword [0x10019244]
cmp eax, dword [ebp - 0x18]
je 0x1000b0be
push eax
call esi
test eax, eax
je 0x1000b0be
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001923c]
call esi
test eax, eax
je 0x1000b0da
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000b0dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006195
leave
ret
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x4085a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4085b5
pop dword [ebp - 0x28]
mov eax, 0x4085b5
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x754ef699
add dword [ebp - 0x38], 0xd9034eb2
mov dword [ebp - 0x34], 0xf476533e
add dword [ebp - 0x34], 0x3dbcf907
mov dword [ebp - 0x30], 0xc5316e3c
add dword [ebp - 0x30], 0x871ad5f2
mov dword [ebp - 0x2c], 0xed88d31c
sub dword [ebp - 0x2c], 0xed88d31c
lea eax, [ebp - 0x38]
push eax
mov eax, 0xafa5cb56
add eax, 0x509c651e
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xdb8beee4
add dword [ebp - 0x38], 0x98e67a72
mov dword [ebp - 0x34], 0xfe0c8b89
sub dword [ebp - 0x34], 0xbca02a14
mov dword [ebp - 0x30], 0xa22ffb99
sub dword [ebp - 0x30], 0x3ec08f2d
mov dword [ebp - 0x2c], 0x4a2eba65
add dword [ebp - 0x2c], 0xb5d1459b
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x8d113d1e
add eax, 0x7330f406
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3f68c
push 0
call eax
mov ecx, 0x4ec8
xor edx, edx
add edx, eax
mov ebx, 0x1e23ffd2
sub ebx, 0x1de0bbd2
add ebx, dword [ebp - 0x28]
mov esi, 0x8bec06b2
add esi, 0x1c79ba09
mov dword [ebp - 0x10], 0x9c443d4
mov edi, dword [ebx]
mov dword [ebp - 0x14], 0xe09aafad
xor edi, esi
xor dword [ebp - 0x1c], 0x2da243b7
mov dword [edx], edi
add dword [ebp - 0x14], 0xa558912a
add edx, 0x7f44ce45
add edx, 0x80bb31bf
add ebx, 0x3e8cc0d9
sub ebx, 0x3e8cc0d5
loop 0x4086ce
add eax, 0x4a7adfcc
sub eax, 0x4a79b1d9
mov ebx, eax
add eax, 0xda0153e3
sub eax, 0xda0153de
mov ecx, 0xc0c494cb
sub ecx, 0xc08494cb
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
mov ebx, ecx
mov dword [ebp - 8], 1
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push str.JavaHome
push ebx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401105
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004021b8
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.JavaHome
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401104
push esi
mov ecx, edi
call fcn.004017a5
push esi
call fcn.004021c1
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004021a7
mov esp, ebp
pop ebp
ret
Function at 0x40118e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x288
mov eax, 0x40de09
call fcn.0040d78b
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x230]
push eax
push 0x20119
xor ebx, ebx
mov dword [ebp - 0x244], esi
push ebx
push edx
mov dword [ebp - 0x240], ebx
and dword [ebp - 0x218], ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4011d8
xor al, al
jmp 0x4013fe
xor ecx, ecx
lea eax, [ebp - 0x220]
push ecx
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
push ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x4011d1
xor ecx, ecx
mov byte [ebp - 0x23c], cl
mov edi, ecx
test eax, eax
je 0x4013ec
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0xff
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4013dc
lea eax, [ebp - 0x234]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4013dc
push esi
push ecx
mov ecx, dword [ebp - 0x234]
call fcn.00401080
pop ecx
pop ecx
test eax, eax
jne 0x4013d2
and dword [ebp - 0x264], eax
lea ecx, [ebp - 0x274]
mov word [ebp - 0x274], ax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x260], 7
call fcn.004017a5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x284]
xor eax, eax
inc eax
or ebx, eax
lea eax, [ebp - 0x274]
push eax
mov dword [ebp - 0x240], ebx
call fcn.00401115
mov edx, 0x41635c
mov ecx, edx
sub eax, edx
mov edx, dword [eax + ecx]
mov esi, dword [ecx]
cmp edx, esi
jne 0x401307
add ecx, 4
cmp ecx, 0x41636c
jl 0x4012ef
xor al, al
jmp 0x40130a
setl al
test al, al
jne 0x401380
and dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x25c]
xor eax, eax
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x214]
push eax
call fcn.004017a5
lea eax, [ebp - 0x25c]
or ebx, 2
push eax
lea ecx, [ebp - 0x294]
call fcn.00401115
mov edx, 0x41636c
mov ecx, edx
sub eax, edx
mov edx, dword [eax + ecx]
mov esi, dword [ecx]
cmp edx, esi
jne 0x401370
add ecx, 4
cmp ecx, 0x41637c
jl 0x401358
xor al, al
jmp 0x401373
setl al
test al, al
je 0x401380
mov byte [ebp - 0x235], 0
jmp 0x401389
xor eax, eax
inc eax
mov byte [ebp - 0x235], al
test bl, 2
je 0x40139c
lea ecx, [ebp - 0x25c]
and ebx, 0xfffffffd
call fcn.00401ffb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
and ebx, 0xfffffffe
call fcn.00401ffb
mov eax, dword [ebp - 0x23c]
cmp byte [ebp - 0x235], 0
mov esi, dword [ebp - 0x244]
push 1
movzx eax, al
pop ecx
cmove eax, ecx
mov dword [ebp - 0x23c], eax
jmp 0x4013d8
mov eax, dword [ebp - 0x23c]
test al, al
jne 0x4013ec
inc edi
push 0
pop ecx
cmp edi, dword [ebp - 0x218]
jb 0x40122b
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x23c]
call fcn.0040d746
ret