joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x76c
push edi
push ecx
lea edi, [ebp - 0x76c]
mov ecx, 0x1db
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jne 0x405898
xor eax, eax
jmp 0x405a79
cmp dword [ebp + 0xc], 0
jne 0x4058a5
xor eax, eax
jmp 0x405a79
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x25]
push edx
call fcn.004482d0
add esp, 0x10
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
push 0x200
push 0
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00446ea0
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
call fcn.00446f30
add esp, 4
push eax
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00446850
add esp, 0xc
push 0x100
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x764]
push eax
call fcn.00407cd0
add esp, 0xc
mov cl, byte [ebp + 0x14]
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x18], 0
jmp 0x40593e
mov edx, dword [ebp - 0x18]
add edx, 0x10
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jge 0x405a18
mov ecx, dword [ebp + 8]
push ecx
push 0x10
push 1
lea edx, [ebp - 0x644]
push edx
call fcn.004482d0
add esp, 0x10
cmp eax, 0x10
je 0x405999
push 0x400
push 0
lea eax, [ebp - 0x644]
push eax
call fcn.00446ea0
add esp, 0xc
push 0x118
push 0
lea ecx, [ebp - 0x764]
push ecx
call fcn.00446ea0
add esp, 0xc
xor eax, eax
jmp 0x405a79
lea edx, [ebp - 0x644]
push edx
lea eax, [ebp - 0x644]
push eax
push 0
lea ecx, [ebp - 0x764]
push ecx
call fcn.00408060
add esp, 0x10
mov dword [ebp - 0x76c], 0
jmp 0x4059d3
mov edx, dword [ebp - 0x76c]
add edx, 1
mov dword [ebp - 0x76c], edx
cmp dword [ebp - 0x76c], 0x10
jge 0x405a13
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x76c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x76c]
mov dl, byte [ebp + edx - 0x644]
mov byte [ecx + eax], dl
movsx eax, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x76c]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [edx + ecx]
add eax, ecx
mov byte [ebp - 0x1d], al
jmp 0x4059c4
jmp 0x405935
mov edx, dword [ebp + 8]
push edx
push 1
push 1
lea eax, [ebp - 0x31]
push eax
call fcn.004482d0
add esp, 0x10
movsx ecx, byte [ebp - 0x25]
movsx edx, byte [ebp - 0x31]
cmp ecx, edx
jne 0x405a44
movsx eax, byte [ebp - 0x25]
movsx ecx, byte [ebp - 0x1d]
cmp eax, ecx
je 0x405a74
push 0x400
push 0
lea edx, [ebp - 0x644]
push edx
call fcn.00446ea0
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x764]
push eax
call fcn.00446ea0
add esp, 0xc
xor eax, eax
jmp 0x405a79
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x405aa8]
call fcn.004490a0
pop eax
pop edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449130
add esp, 0x76c
cmp ebp, esp
call fcn.00449100
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push ecx
lea edi, [ebp - 0x128]
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
push 0x4a7358
push 0x4a735c
call fcn.0044abc0
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x40f393
mov esi, esp
push 0
push 0
push str.serverset.txt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00449100
push 0
call fcn.0044cc70
jmp 0x40f48f
lea eax, [ebp - 0x11c]
push eax
push 0x4a7394
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.0044ccf0
add esp, 0xc
mov edx, dword [ebp - 0x114]
push edx
call fcn.0044a850
add esp, 4
mov eax, dword [ebp - 0x11c]
push eax
push str.serverset__d_serverlist.list
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0044ae60
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
mov ecx, 0x4cdf90
call fcn.00416850
mov eax, dword [ebp - 0x11c]
push eax
push str.serverset__d_serverlist_Public.list
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0044ae60
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
mov ecx, 0x4cdf90
call fcn.00416990
mov ecx, dword [ebp - 8]
call fcn.0040f9d0
test eax, eax
jne 0x40f42b
mov dword [0x4dd8d0], 1
mov eax, dword [0x4dd8d0]
cmp eax, dword [ebp - 0x11c]
jne 0x40f444
mov dword [ebp - 0x128], 1
jmp 0x40f44e
mov dword [ebp - 0x128], 0
cmp dword [ebp - 0x128], 0
jne 0x40f468
push 0
push 0x4d
push 0x4a73dc
call fcn.00409790
add esp, 0xc
movzx ecx, word [ebp + 0xc]
push ecx
movzx edx, word [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040ed90
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0043b6b0
push edx
mov ecx, ebp
push eax
lea edx, [0x40f4c0]
call fcn.004490a0
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449130
add esp, 0x128
cmp ebp, esp
call fcn.00449100
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415080
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov esi, esp
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.00449100
cmp dword [ebp - 4], 0
jle 0x415113
mov esi, esp
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.00449100
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x4150ff
jmp 0x415113
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x4150ce
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x415138]
call fcn.004490a0
pop eax
pop edx
pop esi
add esp, 0x18
cmp ebp, esp
call fcn.00449100
mov esp, ebp
pop ebp
ret
Function at 0x4154c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.00449100
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x415510
xor eax, eax
jmp 0x415573
mov eax, 2
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov esi, esp
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00449100
mov word [ebp - 0x1a], ax
mov esi, esp
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.00449100
cmp eax, 0xffffffff
jne 0x415559
jmp 0x41555e
mov eax, dword [ebp - 8]
jmp 0x415573
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.00449100
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4155a0]
call fcn.004490a0
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449130
add esp, 0x20
cmp ebp, esp
call fcn.00449100
mov esp, ebp
pop ebp
ret
Function at 0x4155f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.00449100
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x415643
xor eax, eax
jmp 0x4156d0
xor eax, eax
mov word [ebp - 0x1c], ax
xor ecx, ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov word [ebp - 0xe], cx
mov edx, 2
mov word [ebp - 0x1c], dx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov esi, esp
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00449100
mov word [ebp - 0x1a], ax
mov esi, esp
push 0x10
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call fcn.00449100
cmp eax, 0xffffffff
jne 0x4156a1
jmp 0x4156bb
mov esi, esp
push 3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp esi, esp
call fcn.00449100
mov eax, dword [ebp - 8]
jmp 0x4156d0
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.00449100
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4156fc]
call fcn.004490a0
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449130
add esp, 0x20
cmp ebp, esp
call fcn.00449100
mov esp, ebp
pop ebp
ret

Function at 0x415720
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x18], ax
xor ecx, ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov word [ebp - 0xa], cx
mov dword [ebp - 0x24], 0x10
push 0
push 0
call fcn.004155f0
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
ja 0x415776
jmp 0x4157b9
mov esi, esp
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.00449100
cmp eax, 0xffffffff
jne 0x41579a
jmp 0x4157b9
mov esi, esp
movzx edx, word [ebp - 0x16]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call fcn.00449100
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, dword [ebp - 0x2c]
jmp 0x4157ce
mov esi, esp
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.00449100
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4157fc]
call fcn.004490a0
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449130
add esp, 0x2c
cmp ebp, esp
call fcn.00449100
mov esp, ebp
pop ebp
ret
Function at 0x4161e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push edi
push ecx
lea edi, [ebp - 0x424]
mov ecx, 0x109
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0x400
jg 0x416220
mov dword [ebp - 0x41c], 1
jmp 0x41622a
mov dword [ebp - 0x41c], 0
cmp dword [ebp - 0x41c], 0
jne 0x416244
push 0
push 0x2c
push 0x4a82cc
call fcn.00409790
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x40c]
push edx
call fcn.00446850
add esp, 0xc
mov dword [ebp - 0x414], 0
jmp 0x416285
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x414]
cmp ecx, dword [ebp + 0xc]
jge 0x4162d7
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 0xc]
jne 0x4162a8
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
movsx ecx, byte [eax + ecx]
mov edx, dword [ebp - 0x414]
movsx eax, byte [ebp + edx - 0x40c]
xor eax, ecx
mov ecx, dword [ebp - 0x414]
mov byte [ebp + ecx - 0x40c], al
jmp 0x416267
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x40c]
push edx
call fcn.00448ad0
add esp, 0x10
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 1
jne 0x41630d
mov dword [ebp - 0x420], 1
jmp 0x416317
mov dword [ebp - 0x420], 0
cmp dword [ebp - 0x420], 0
jne 0x416331
push 0
push 0x37
push 0x4a82f8
call fcn.00409790
add esp, 0xc
cmp dword [ebp - 0x418], 1
jne 0x416346
mov dword [ebp - 0x424], 1
jmp 0x416350
mov dword [ebp - 0x424], 0
mov eax, dword [ebp - 0x424]
push edx
mov ecx, ebp
push eax
lea edx, [0x416388]
call fcn.004490a0
pop eax
pop edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449130
add esp, 0x424
cmp ebp, esp
call fcn.00449100
mov esp, ebp
pop ebp
ret 8
Function at 0x4163b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004482d0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x4163ef
xor eax, eax
jmp 0x416460
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
jmp 0x416416
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jge 0x41645b
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 0xc]
jne 0x416436
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
movsx eax, byte [edx + eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov byte [eax], dl
jmp 0x4163fe
mov eax, 1
add esp, 0x10
cmp ebp, esp
call fcn.00449100
mov esp, ebp
pop ebp
ret 8

Function at 0x437b20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov esi, esp
push 0
push str.._Log
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp esi, esp
call fcn.00449100
mov eax, dword [ebp + 0x10]
push eax
call fcn.0044a6e0
add esp, 4
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
mov esi, esp
push ecx
push str.AgentServer__d
push 0x4dd668
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00449100
call fcn.00437ca0
test eax, eax
jne 0x437b98
xor eax, eax
jmp 0x437c44
call fcn.00437e10
test eax, eax
jne 0x437ba8
xor eax, eax
jmp 0x437c44
push 0x50bc
call fcn.004464c0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x437bcb
mov ecx, dword [ebp - 0xc]
call fcn.00437fa0
mov dword [ebp - 0x18], eax
jmp 0x437bd2
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [0x4dd6bc], eax
movzx ecx, word [ebp - 4]
push ecx
mov ecx, dword [0x4dd6bc]
call fcn.00438410
mov ecx, dword [0x4dd6bc]
call fcn.00439160
mov edx, dword [0x4dd6bc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x437c2c
mov esi, esp
push 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx]
call eax
cmp esi, esp
call fcn.00449100
mov dword [ebp - 0x1c], eax
jmp 0x437c33
mov dword [ebp - 0x1c], 0
mov dword [0x4dd6bc], 0
call fcn.00437c60
xor eax, eax
pop esi
add esp, 0x1c
cmp ebp, esp
call fcn.00449100
mov esp, ebp
pop ebp
ret 0x10
Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x5c0d1632
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x5f954672
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4061c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x6c
mov eax, dword [0x828208]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0xf003f
mov ebx, edx
mov dword [esp + 0x20], 0
mov edi, ecx
mov esi, 0xfffffffe
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREClassesInstallerProducts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406238
cmp eax, 0x522
je 0x40622b
push str.FAIL_opening__SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x406293
push str.FAIL_ERROR_PRIVILEGE_NOT_HELD__SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x406293
push 0x50
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0048ff50
add esp, 0xc
mov dword [esp + 0x1c], 0x50
push str.SOFTWAREClassesInstallerProducts
push str.OPENED_HKEY_LOCAL_MACHINE_s
push edi
call fcn.0040adc0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
mov edx, dword [esp + 0x14]
mov ecx, edi
push ebp
push dword [esp + 0x84]
push ebx
call fcn.004062c0
add esp, 0xc
mov esi, eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x74]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048980e
add esp, 0x6c
ret
Function at 0x4067b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x801c
call fcn.0048a3a0
mov eax, dword [0x828208]
xor eax, esp
mov dword [esp + 0x8018], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x7fff
mov dword [esp + 0x14], eax
mov edi, ecx
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0048ff50
add esp, 0xc
mov dword [esp + 0x14], 0x7fff
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 1
push eax
push 0xf003f
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406851
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push str.Version
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406878
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x406878
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4068e5
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406880
sub ecx, edx
lea eax, [ecx + 1]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.Display_Name
push dword [esp + 0x20]
call ebx
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4068b0
sub ecx, edx
lea eax, [ecx + 1]
push eax
push dword [esp + 0x14]
push 1
push 0
push str.Version
push dword [esp + 0x20]
call ebx
test eax, eax
jne 0x4068e5
push esi
push str.Registry_creation_is_Success_at__s_n
push edi
call fcn.0040abf0
add esp, 0xc
jmp 0x4068f5
push eax
push esi
push str.Registry_creation_or_setting_a_value_Failed_at__s:_nError_Code:__d_n
push edi
call fcn.0040abf0
add esp, 0x10
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x8024]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048980e
mov esp, ebp
pop ebp
ret
Function at 0x406920
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
mov dword [esp + 8], edx
push eax
push 0xf003f
push 0
push str.SOFTWAREDELLFirmwareUpdate
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406975
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREDELLFirmwareUpdate
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406993
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.StageUpdateStatus
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4069b6
push eax
push str.SOFTWAREDELLFirmwareUpdate
push str.Registry_creation_or_setting_a_value_Failed_at__s:_nError_Code:__d_n
push esi
call fcn.0040abf0
add esp, 0x10
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret
push str.SOFTWAREDELLFirmwareUpdate
push str.Registry_creation_is_Success_at__s_n
push esi
call fcn.0040abf0
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret
Function at 0x409460
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x828208]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
xor esi, esi
lea eax, [esp + 0xc]
push edi
test ecx, ecx
je 0x40949b
push ecx
push 0x8489e0
push 0x8487d0
push str._s__s__s
push eax
call fcn.00402130
add esp, 0x14
jmp 0x4094b3
push 0x8489e0
push 0x8487d0
push str._s__s
push eax
call fcn.00402130
add esp, 0x10
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x100
test eax, eax
mov edi, 1
lea eax, [esp + 0x14]
push eax
push edi
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [esp + 0x20]
cmovne esi, edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0xc]
test eax, eax
cmovne esi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
test eax, eax
cmovne esi, edi
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0048980e
add esp, 0x114
ret