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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49b908
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x57af7c], 0
jne 0x49b8e2
push 0x581d18
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x49b8db
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x57af7c], 0
jne 0x49b8c3
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405958
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004056c8
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00409aa0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x49b920
call fcn.0040b990
mov eax, dword [ebp - 0xc]
call fcn.004056c8
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x49b844
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405958
jmp 0x49b87b
lea eax, [ebp - 4]
mov edx, 0x49b940
call fcn.004052d0
xor eax, eax
push ebp
push 0x49b871
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047d188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49b87b
mov eax, dword [ebp - 4]
call fcn.004056c8
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x57af7c], eax
cmp dword [0x57af7c], 0
jne 0x49b8ae
mov ecx, dword [0x57c7cc]
mov dl, 1
mov eax, dword [0x408cf0]
call fcn.0040f378
call fcn.00404c44
push 0x49b94c
mov eax, dword [0x57af7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581d30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b8e2
push 0x581d18
call sub.kernel32.dll_LeaveCriticalSection
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b90f
lea eax, [ebp - 0x18]
call fcn.00405238
lea eax, [ebp - 0xc]
call fcn.00405238
lea eax, [ebp - 4]
call fcn.00405238
ret
Function at 0x4b3534
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b36f5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x87], 0
je 0x4b3584
cmp dword [ebx + 0x5c], 0
je 0x4b3584
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1b0]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004aac58
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4b36df
cmp dword [ebx + 0x7c], 0
jne 0x4b35aa
mov dl, 1
mov eax, dword [0x41e450]
call fcn.0040429c
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4b36b8
lea eax, [ebp - 8]
mov edx, dword [ebx + 0xc]
call fcn.00405c74
mov eax, dword [ebp - 8]
push eax
movzx eax, byte [0x4b3704]
push eax
movzx eax, byte [0x4b3708]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x57c7fc]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x4964d4]
call fcn.00499258
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4b36b1
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1b0]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004aac58
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1b0]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004aac58
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x4a8d50]
call fcn.00406d10
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1b
jge 0x4b3684
mov edx, dword [0x57cb00]
movzx eax, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4b3695
cmp eax, 0x1007
jne 0x4b3691
mov byte [ebx + 0x74], 0x18
jmp 0x4b3695
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b36df
mov eax, dword [ebp - 4]
call fcn.004042cc
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1b0]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004aac58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b36fc
lea eax, [ebp - 8]
call fcn.00405ab4
ret
Function at 0x5319c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x531a49
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x581d7c
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x531a33
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040ea84
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x531a60
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x57ca70]
mov dl, 1
mov eax, dword [0x5311c4]
call fcn.0040f3b4
call fcn.00404c44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x531a50
lea eax, [ebp - 0x1c]
call fcn.00405238
ret

Function at 0x532018
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x532074]
cmp al, byte [ebx + 0x28]
je 0x53203c
mov esi, 0x401
mov eax, ebx
call fcn.00532164
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x532074]
cmp al, byte [ebx + 0x28]
jne 0x53206c
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5320f8
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00532018
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004044c8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x53215c
call fcn.00531908
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x53214e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004044c8
pop esi
pop ebx
ret

Function at 0x532180
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004056c8
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004039e8
test ebx, ebx
je 0x5321cf
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x5322ac
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x5322dd
mov ecx, dword [0x57c8c8]
mov dl, 1
mov eax, dword [0x5311c4]
call fcn.0040f378
call fcn.00404c44
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x53230a
mov ecx, dword [0x57c810]
mov dl, 1
mov eax, dword [0x5311c4]
call fcn.0040f378
call fcn.00404c44
xor eax, eax
push ebp
push 0x532386
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004044c8
cmp byte [ebp + 8], 0
je 0x532362
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00532214
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.005320f8
jmp 0x53237c
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00531bf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5323a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x532568
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00531eb4
xor eax, eax
push ebp
push 0x5326db
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x5326c5
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x5325b4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5325be
call fcn.00404cf0
jmp 0x5326e2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00423794
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x5326ba
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x53266d
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x53265a
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004044c8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00532520
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x5326f0]
cmp dl, byte [eax + 0x28]
je 0x5326c1
call fcn.0040f29c
jmp 0x5326c1
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004237b4
jmp 0x5326c1
cmp edi, ebx
jge 0x532689
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004237b4
jmp 0x5325be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00423794
cmp edx, dword [esp + 4]
jne 0x5326a9
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5325be
push ebp
call fcn.00532520
pop ecx
jmp 0x5326c1
push ebp
call fcn.00532520
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5326e2
mov eax, dword [ebp - 4]
call fcn.00531ec0
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5326f4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x532816
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00531eb4
xor eax, eax
push ebp
push 0x5327f9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x532744
call fcn.00404cf0
jmp 0x532800
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x5327e3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x5327e3
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004044c8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x5327e3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ea84
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x532830
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x57ca70]
mov dl, 1
mov eax, dword [0x5311c4]
call fcn.0040f3b4
call fcn.00404c44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x532800
mov eax, dword [ebp - 4]
call fcn.00531ec0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53281d
lea eax, [ebp - 0x28]
call fcn.00405238
ret
Function at 0x53287c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5329ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00531eb4
xor eax, eax
push ebp
push 0x5329d0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x5328e1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x5328e1
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x5329ba
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5328f4
call fcn.00404cf0
jmp 0x5329d7
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x53291b
cmp dword [ebp - 0x10], 0
jle 0x53291b
cmp ebx, dword [ebp - 0x10]
jle 0x53291b
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x5329ba
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x5329ba
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004044c8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x5329ba
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040ea84
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x532a08
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x57ca70]
mov dl, 1
mov eax, dword [0x5311c4]
call fcn.0040f3b4
call fcn.00404c44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5329d7
mov eax, dword [ebp - 4]
call fcn.00531ec0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5329f4
lea eax, [ebp - 0x2c]
call fcn.00405238
ret
Function at 0x57561c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x418], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x57576e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.005755c0
mov eax, ebx
call fcn.005755d8
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5756c6
inc esi
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x418]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x34]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x418]
call fcn.004056c8
push eax
mov eax, dword [ebx + 0x40]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5756b2
mov eax, ebx
call fcn.005755c0
mov eax, dword [ebp - 8]
mov dword [ebx + 0x40], eax
jmp 0x5756c0
mov eax, ebx
call fcn.005755c0
xor ebx, ebx
jmp 0x575750
inc dword [ebp - 4]
dec esi
jne 0x57566e
cmp dword [ebx + 0x38], 0
je 0x575747
mov dword [ebp - 0x10], 0x400
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x411]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebx + 0x38]
call fcn.004056c8
push eax
mov eax, dword [ebx + 0x40]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x57573c
cmp dword [ebp - 0xc], 1
jne 0x575731
cmp dword [ebp - 0x10], 0
jle 0x575727
lea edx, [ebp - 0x41c]
lea eax, [ebp - 0x411]
call fcn.0040b104
mov edx, dword [ebp - 0x41c]
lea eax, [ebx + 0x3c]
call fcn.0040528c
jmp 0x575747
lea eax, [ebx + 0x3c]
call fcn.00405238
jmp 0x575747
mov eax, ebx
call fcn.005755c0
xor ebx, ebx
jmp 0x575750
mov eax, ebx
call fcn.005755c0
xor ebx, ebx
jmp 0x575750
mov eax, ebx
call fcn.005755c0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x575775
lea eax, [ebp - 0x41c]
mov edx, 2
call fcn.0040525c
ret

Function at 0x575898
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056b8
xor eax, eax
push ebp
push 0x57598b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405238
lea eax, [ebp - 4]
mov ecx, 2
mov edx, 1
call fcn.00405770
lea eax, [ebp - 8]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405730
lea eax, [ebp - 4]
mov ecx, 2
mov edx, 1
call fcn.00405770
mov eax, dword [ebp - 8]
call fcn.00575780
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
add ecx, ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405730
lea eax, [ebp - 8]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405730
lea eax, [ebp - 4]
mov ecx, 2
mov edx, 1
call fcn.00405770
mov eax, dword [ebp - 8]
call fcn.00575780
mov ebx, eax
xor ebx, 0xff
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00405420
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00405504
cmp dword [ebp - 4], 0
jne 0x57591e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x575992
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040525c
ret
Function at 0x1005c7c0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1005c9ad
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4b000]
push edi
or ebp, 0xffffffff
jmp 0x1005c7ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1005c7f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1005c7e0
mov eax, 1
add ebx, ebx
jne 0x1005c803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1005c814
jne 0x1005c833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1005c833
dec eax
add ebx, ebx
jne 0x1005c820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1005c7f8
add ebx, ebx
jne 0x1005c82f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1005c885
xor ecx, ecx
sub eax, 3
jb 0x1005c84b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1005c8ba
sar eax, 1
mov ebp, eax
jmp 0x1005c856
add ebx, ebx
jne 0x1005c856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1005c824
inc ecx
add ebx, ebx
jne 0x1005c864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1005c824
add ebx, ebx
jne 0x1005c871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1005c866
jne 0x1005c882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1005c866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1005c8a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1005c896
jmp 0x1005c7e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1005c8a4
add edi, ecx
jmp 0x1005c7e6
pop esi
mov edi, esi
mov ecx, 0x606
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1005c8c2
cmp byte [edi], 0xa
jne 0x1005c8c2
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 al, bl
loop 0x1005c8c7
lea edi, [esi + 0x58000]
mov eax, dword [edi]
or eax, eax
je 0x1005c93f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5cc78]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5cd2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1005c8f4
mov ecx, edi
jns 0x1005c923
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5cd30]
or eax, eax
je 0x1005c939
mov dword [ebx], eax
add ebx, 4
jmp 0x1005c911
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1005c970
cmp al, 0xef
ja 0x1005c963
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1005c945
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1005c952
mov ebp, dword [esi + 0x5cd34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1005c9a4
sub esp, 0xffffff80
jmp 0x10022ba4