joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40331a
mov eax, dword [ebp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40333f
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x417e50
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call fcn.00405832
add esp, 0xc
pop ebp
ret

Function at 0x403350
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x417e54
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00405b15
add esp, 0xc
test eax, eax
je 0x403384
xor eax, eax
jmp 0x403465
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00406692
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.004068b4
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00406692
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.0040647c
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405e08
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00405e9c
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.00403470
add esp, 8
push 0x417e5c
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00405b15
add esp, 0xc
test eax, eax
je 0x40341e
xor eax, eax
jmp 0x403465
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040607a
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00405e9c
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0
je 0x403462
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00406546
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403e30
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x24], 2
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0x3a98
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403eb7
mov dword [ebp - 0x10], 0xffffffff
jmp 0x403fae
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6f
jne 0x403ef1
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 0x6f
jne 0x403f06
cmp dword [ebp - 0x1c], 3
jb 0x403e8a
cmp dword [ebp - 0x2c], 0
jne 0x403f9c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x403f9a
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x34], 6
jne 0x403f8c
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1c], 0
je 0x403f8c
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov cx, word [ecx + 4]
mov word [edx + 4], cx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [ecx + 4]
mov byte [edx + 3], al
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + 5]
mov byte [ecx + 2], dl
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0xc]
mov cl, byte [edx + 6]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [ecx + 7]
mov byte [edx], al
jmp 0x403f9a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
jmp 0x403f16
jmp 0x403fa7
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x403fae
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x403fc7
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x404450
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404620
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x404498
mov eax, dword [ebp - 0x41c]
jmp 0x404608
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004092d0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004092d0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x404503
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 5
jge 0x404568
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
movzx eax, word [edx + 0x41be70]
test eax, eax
jne 0x404525
jmp 0x4044f4
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004057c3
add esp, 0xc
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x118
add eax, 0x41be70
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405832
add esp, 0xc
jmp 0x4044f4
mov dword [ebp - 0x424], 0
jmp 0x404583
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x424], edx
cmp dword [ebp - 0x424], 5
jge 0x4045cd
mov eax, dword [ebp - 0x424]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x41be70]
test ecx, ecx
jne 0x4045a5
jmp 0x404574
push 1
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x424]
imul ecx, ecx, 0x118
add ecx, 0x41be70
push ecx
call fcn.00405280
add esp, 0x10
jmp 0x404574
push 0x41cc40
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.00405832
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404602
mov dword [ebp - 0x41c], 2
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004057b4
mov esp, ebp
pop ebp
ret
Function at 0x4048b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c0
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x9c0], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x9be]
push ecx
call fcn.004092d0
add esp, 0xc
lea edx, [ebp - 0x9c0]
mov dword [ebp - 0x19c], edx
cmp dword [ebp + 0x14], 0
je 0x4048fd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x19c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x19c]
mov word [edx], cx
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404948
xor eax, eax
jmp 0x404a39
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffff
jne 0x404968
xor eax, eax
jmp 0x404a39
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x4049a8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1bc], eax
push 2
push 4
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x4049b5
jmp 0x404a0d
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1a8], eax
mov ecx, 2
mov word [ebp - 0x1ac], cx
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1aa], ax
push 0x10
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x404a03
jmp 0x404a0d
mov dword [ebp - 0x1b8], 1
cmp dword [ebp - 0x1b8], 0
jne 0x404a33
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x404a33
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004057b4
mov esp, ebp
pop ebp
ret
Function at 0x404c70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x404ca4
jmp 0x404d60
mov dword [ebp - 0x18], 0
jmp 0x404cb6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x404cd3
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
not ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
mov byte [edx], cl
jmp 0x404cad
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00406acf
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
movzx edx, word [ebp + 0x10]
add edx, 5
mov eax, dword [ebp - 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov edx, dword [0x41b074]
mov dword [ecx], edx
mov al, byte [0x41b078]
mov byte [ecx + 4], al
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
add eax, 7
push eax
call fcn.00409ea0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 7
mov dword [ebp + 0x10], ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x404d55
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x404d59
jmp 0x404d60
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x404d78
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406e9a
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x405620
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040ff10
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
push 0x417f1c
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00405b15
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x40566a
xor eax, eax
jmp 0x405701
push 0
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x405687
xor eax, eax
jmp 0x405701
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x4056e1
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4056b7
jmp 0x4056e1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.0040607a
add esp, 0x10
mov eax, dword [ebp - 0x1014]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1014], eax
jmp 0x405687
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405e9c
add esp, 4
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x4056fc
xor eax, eax
jmp 0x405701
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004057b4
mov esp, ebp
pop ebp
ret

Function at 0x4057b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a04c]
jne 0x4057be
repz ret
jmp fcn.00407138
Function at 0x41031f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040af64
and dword [ebp - 4], 0
cmp dword [0x41bbac], 0
mov ebx, eax
jne 0x4103d0
push 0x414b98
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410481
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x414b8c
push edi
call esi
test eax, eax
je 0x410481
push eax
call fcn.0040aef2
mov dword [esp], 0x414b7c
push edi
mov dword [0x41bbac], eax
call esi
push eax
call fcn.0040aef2
mov dword [esp], 0x414b68
push edi
mov dword [0x41bbb0], eax
call esi
push eax
call fcn.0040aef2
mov dword [esp], 0x414b4c
push edi
mov dword [0x41bbb4], eax
call esi
push eax
call fcn.0040aef2
pop ecx
mov dword [0x41bbbc], eax
test eax, eax
je 0x4103d0
push 0x414b34
push edi
call esi
push eax
call fcn.0040aef2
pop ecx
mov dword [0x41bbb8], eax
mov eax, dword [0x41bbb8]
cmp eax, ebx
je 0x410428
cmp dword [0x41bbbc], ebx
je 0x410428
push eax
call fcn.0040af6d
push dword [0x41bbbc]
mov esi, eax
call fcn.0040af6d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410428
test edi, edi
je 0x410428
call esi
test eax, eax
je 0x41041f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41041f
test byte [ebp - 0xc], 1
jne 0x410428
or dword [ebp + 0x10], 0x200000
jmp 0x410461
mov eax, dword [0x41bbb0]
cmp eax, ebx
je 0x410461
push eax
call fcn.0040af6d
pop ecx
test eax, eax
je 0x410461
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410461
mov eax, dword [0x41bbb4]
cmp eax, ebx
je 0x410461
push eax
call fcn.0040af6d
pop ecx
test eax, eax
je 0x410461
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41bbac]
call fcn.0040af6d
pop ecx
test eax, eax
je 0x410481
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410483
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8003b13
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x800438c], 0x30
mov dword [0x8004394], 0x8003424
mov dword [0x8004390], 2
mov dword [0x8004398], 0
mov dword [0x800439c], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b56
mov dword [0x80043a0], eax
mov dword [0x80043b4], 0x80041cc
mov dword [0x80043ac], 0xf
mov dword [0x80040ee], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043a4], eax
mov dword [0x80043b8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040f6], ebp
mov dword [0x80043a8], eax
push 0x800438c
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x800440c], eax
push 0
push dword [0x80040ee]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004404], eax
push 1
push dword [0x8004404]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004404]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c14
xor edi, edi
lea ebx, [0x80043bc]
jmp 0x8003c2c
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c1e
jmp 0x8003c40
mov eax, dword [0x80043c4]
call 0x8002b1f
ret

Function at 0x40100b
Capabilities:
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x4010ad
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x40102e
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011b8
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401048
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011b8
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x401134
mov word [ebx], 0x5c
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011b8
mov dword [ebp - 0x108], eax
push 0x401023
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4011ad
push 0x3e8
call eax
test eax, eax
je 0x4011ad
push eax
push 0x40
push 0x3000
push 0x10000
push 0
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x40119a
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x4010a7]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40108c]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40104d]
push 0x10
push 0x4010a7
push eax
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x11000
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov dword [ebp - 0x48], 0
jmp 0x1103f
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 0x10]
shr edx, 6
cmp dword [ebp - 0x48], edx
jae 0x1105f
mov eax, dword [ebp - 0x48]
shl eax, 6
add eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.000110c0
jmp 0x11036
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x40
div ecx
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x110ab
push 0x40
push 0
lea edx, [ebp - 0x40]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
shl ecx, 6
add ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x40]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.000110c0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x3d83d
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x30], edx
pushfd
jmp 0x3d838
call fcn.000425eb
xchg edx, ecx
mov dword [ebp - 0x58], eax
lea edx, [eax*4 + 0x4b77e3bc]
add dx, sp
mov ecx, dword [ebp - 0x38]
pushal
pushfd
inc dx
xor dx, 0x64ae
mov dword [ebp - 0x3c], ecx
movsx dx, bl
test cl, cl
sub dh, 0x39
sub edx, 0x9ccd363a
mov edx, dword [ebp - 0x58]
push 0xae9e223b
cmc
mov dword [ebp - 0x34], edx
pushfd
cmp dword [ebp - 0x58], 0
mov byte [esp], 6
jmp 0x460e9
jmp 0x4d9e1
Function at 0x41bae
Capabilities:
Execute anti-debugging instructions

Disassembly:
lahf
push 0x9c7f42d3
call fcn.0003c1ab
pushfd
push edi
pushal
jmp 0x450fa
pushfd
movzx cx, bl
mov dword [ebp - 0x20], 0
bswap cx
pushfd
mov dword [ebp - 0x1c], 0
call fcn.000498f5
not eax
mov ch, byte [esp]
cdq
mov dword [ebp - 0x2c], 0
not dl
pop edx
mov dword [ebp - 0x24], 0x40
mov cx, 0x3b0d
bswap edx
push 0x4b68f601
mov edx, dword [ebp + 8]
xchg al, ch
lea eax, [esi - 0x3a49f738]
mov dword [ebp - 0x28], edx
movzx ax, cl
lea esp, [esp + 0x24]
js 0x395e1
mov dword [ebp - 0x20], 0
pushal
mov dword [ebp - 0x1c], 0
bswap ax
mov dword [esp + 0x1c], 0
jmp 0x4e0f5
lea esp, [esp + 8]
jbe 0x467d4
pushfd
jmp 0x4b103
mov dword [ebp - 4], 0x2000
rdtsc
movzx cx, bl
seto dl
pushal
mov dword [ebp - 0x30], 0x18
jmp 0x3cd2f
lea esp, [esp + 0x28]
jmp 0x509c3
jmp 0x43f9b
mov dword [esp + 0x18], 0
bswap ecx
lahf
setle ch
not ah
mov dword [esp + 0x14], 0x20
pushal
lea ecx, [edi + 0x517d565]
lahf
bswap cx
mov dword [esp + 0x30], 3
cwde
cwde
mov dword [esp + 0x2c], 1
movsx cx, bl
mov dword [esp + 0x28], 0x80
jmp 0x392a9
push es
mov ebx, 0x3c067647
dec eax
push es
sbb bl, bl
mov eax, dword [0x27dbabd1]
neg byte [edi]
call fcn.0004dd63
lcall 0xb69a, 0xa4880902
inc edi
xor ch, byte [ecx]
dec dword [eax]
mov al, byte [0xb5d4c2a6]
fdivr qword [ebp - 0x166f910]
xchg ebp, eax
arpl word [ebp + edi*8 - 0x699fea8c], bx
fnstcw word [esi + 0x3fd528d9]
push eax
sub dword [edi + ebx*4], edi
dec eax
bound eax, qword [esi + 0x743fba4f]
sbb byte [ebx + 0x41bd91a0], 0x8c
wait
fisttp qword [ebx]
out dx, eax
sub al, 0x26
jp 0x509b2
in eax, 0x31
xchg edx, eax
test dword [esp + ebp*4 - 0x62], ecx
aad 0xb2
rcl dword [ebx], 0xd2
inc ecx
fisttp qword [eax]
invalid

Function at 0x467b9
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 8]
jbe 0x467d4
setge dh
pushal
lahf
pushal
mov dword [ebp - 4], 0x2000
lea esp, [esp + 0x40]

Function at 0x469f4
Capabilities:
Execute anti-debugging instructions

Disassembly:
movsx edx, bl
mov dword [ebp - 4], 0x2000
pushfd
pushal
call fcn.00049f07
cmp dword [ebp - 4], 0x2000
pushfd
mov byte [esp], 0xaf
push 0x9778f9c8
push dword [esp]
lea esp, [esp + 0x30]
jbe 0x467d4
jmp 0x39a08
lea esp, [esp + 0x28]
je 0x47857
pushal
stc
pushfd
jmp 0x3addc
Function at 0x495e6
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp], bh
mov dword [esp], 0xcc0617c2
push eax
lea esp, [esp + 0x24]
jmp loc.000173e4
push 0x9d2a58cb
rdtsc
xchg dh, ch
mov dword [ebp - 0x24], 0
rdtsc
setb al
mov word [esp], 0xcb4d
push esi
mov dword [esp + 0xc], 0
cwde
call fcn.0004c0ec
ja 0x49596
sub ecx, dword [ebx + 0x3b]
wait
mov dh, 0x84
pushal
lea ebx, [ebx - 0x456c44dc]
add esp, dword [edi]
inc ecx
invalid

Function at 0x4afcf
Capabilities:
Execute anti-debugging instructions

Disassembly:
lahf
mov dword [esp + 0xc], 1
movzx dx, cl
mov dword [esp + 8], 0x80
pushal
sets al
setae ah
call fcn.0004a02e
movsx edx, cl
xchg dx, ax
movsx eax, cl
pushfd
mov dword [ebp - 0x30], 0x18
lahf
mov dword [ebp - 0x2c], 0
bswap eax
cwde
movsx dx, cl
lea edx, [esi*4 + 0x28892421]
mov dword [ebp - 0x24], 0x40
cwde
xchg edx, ecx
not dl
mov edx, dword [ebp + 8]
lea ecx, [ebx - 0x1e4dada5]
xchg al, ch
mov dword [ebp - 0x28], edx
xchg ecx, eax
pushal
mov al, cl
mov dword [ebp - 0x20], 0
cdq
mov dword [ebp - 0x1c], 0
bswap dx
mov dword [esp + 0x20], 0
xchg cl, dh
xchg al, dl
mov dh, 0xce
mov dword [esp + 0x1c], 0
rdtsc
lea edx, [ecx - 0x2b7a19b]
lahf
setp al
mov dword [esp + 0x18], 0x20
lea ecx, [ebx*8 - 0x309cbf39]
rdtsc
mov dword [esp + 0x14], 3
cdq
xchg al, cl
mov dword [esp + 0x10], 1
movzx dx, dl
cdq
mov dh, byte [esp]
setbe ah
mov dword [esp + 0xc], 0x80
lea edx, [ebp*8 - 0x6046272f]
push 0xc180c734
xchg cl, ah
mov dword [esp + 0xc], 0
not cl
lea edx, [0x7b80e83]
lea ecx, [edi + 0x33c7016c]
jmp 0x491be
lea eax, [ebp - 0x3c]
pushal
call fcn.0004db0c
lea esp, [esp + 0x30]
jbe 0x467d4
rdtsc
movsx eax, al
movsx dx, cl
mov dword [ebp - 4], 0x2000
mov ecx, esp
mov dword [ebp - 0x30], 0x18
bswap edx
rdtsc
mov dword [ebp - 0x2c], 0
cwde
lahf
bswap edx
mov ecx, 0x3a108580
mov dword [ebp - 0x24], 0x40
xchg dh, al
pushal
push 0xbe35613c
lahf
mov edx, dword [ebp + 8]
jmp 0x51dcb
mov dword [esp], edx
xchg cx, ax
mov dword [ebp - 0x28], edx
cwde
movsx ax, bl
mov dword [ebp - 0x20], 0
cwde
mov dword [ebp - 0x1c], 0
cdq
mov dword [esp + 0x20], 0
cdq
xchg dx, ax
cwde
mov dword [esp + 0x1c], 0
pop eax
movsx ecx, al
not cx
lea ecx, [ebx + 0x300e61a]
mov dword [esp + 0x14], 0x20
rdtsc
movsx ax, al
movsx eax, bl
mov dword [esp + 0x10], 3
not ax
jmp 0x38a6d