joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d8b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x28]
mov dword [edi + 4], ebx
cmp byte [0x4ea120], bl
mov esi, ecx
mov dword [esp + 0x28], ebx
je 0x41d92f
mov eax, dword [edi]
mov ecx, dword [esi + 0x2c]
push ebx
push 0x1000
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
mov dword [esp + 0x28], eax
jg 0x41d921
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4e9b80], ebx
je 0x41d916
cmp byte [0x4e9bcc], bl
jne 0x41d916
push eax
push str.Socket_close_or_error
push str._s__code_d_
push 0x4e9bcc
call fcn.0042f6b4
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 4
mov dword [edi + 4], eax
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 4
lea edx, [esp + 0x28]
push edx
push 0x18
lea eax, [esp + 0x14]
push eax
call fcn.0041cca0
test eax, eax
jne 0x41d978
cmp dword [0x4e9b80], ebx
je 0x41d916
cmp byte [0x4e9bcc], bl
jne 0x41d916
push 1
push str.USB_connection_dropped
push str._s__code_d_
push 0x4e9bcc
call fcn.0042f6b4
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x41da3e
mov edx, dword [edi]
lea ecx, [esp + 0x28]
push ecx
push eax
push edx
mov ecx, esi
call fcn.0041cca0
test eax, eax
jne 0x41da22
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call ebx
push 2
push str.USB_dropped._Check_cable.
mov ecx, 0x4e9a90
mov ebp, eax
call fcn.00415960
cmp dword [esi + 0x70], 0
jne 0x41d9f8
cmp ebp, 0x1f
jne 0x41d9f8
mov ecx, esi
call fcn.0041d7e0
test al, al
je 0x41d9f8
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0041cca0
test eax, eax
jne 0x41da04
call ebx
push eax
push str.Read_data_retry_failed_error
mov ecx, 0x4e9a90
call fcn.00415960
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 4
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x1c]
je 0x41da16
push eax
push str.Read_incorrect_length
jmp 0x41d9ee
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 4
cmp dword [esp + 0xc], 0x45545257
jne 0x41da3e
mov eax, dword [esp + 0x28]
mov dword [edi + 4], eax
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 4
cmp dword [esp + 0xc], 0x45534c43
jne 0x41d924
cmp dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
jne 0x41d916
cmp dword [0x4e9b80], ebx
je 0x41d924
mov ecx, dword [esi + 0x28]
push ebx
push 1
push 0x87f8
push ecx
mov dword [esi + 0x30], 1
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 4
Function at 0x41e300
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4b6deb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x4de8bc]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4de8bc]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
lea eax, [esp + 0x40]
push eax
push 0x101
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x41e35e
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x41e446
mov ecx, dword [esp + 0x1e4]
xor ebx, ebx
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push ebx
push ebx
push ebx
push ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x258
mov dword [esp + 0x54], 0x190
mov dword [eax], ebx
mov eax, esp
mov dword [esp + 0x28], esp
lea edx, [esp + 0x48]
push ebx
mov ecx, edi
mov dword [eax], edx
call fcn.0041dc50
mov eax, 0x4b8da8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea esi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41e3c0
sub eax, esi
push eax
push 0x4b8da8
lea ecx, [esp + 0x1c]
call fcn.00405590
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x44]
push eax
mov dword [esp + 0x1e8], ebx
call fcn.004054b0
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x1dc], 0xffffffff
jb 0x41e410
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042e631
add esp, 4
mov esi, dword [edi + 4]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call 0x41cb70
push 0x4de29c
mov ecx, edi
call fcn.0041dfc0
test al, al
jne 0x41e444
push 0x4de2ac
mov ecx, edi
call fcn.0041dfc0
mov al, 1
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0042e636
add esp, 0x1d0
ret 4
Function at 0x41f200
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x234
mov eax, dword [0x4de8bc]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x244]
push 0x103
xor esi, esi
lea eax, [esp + 0x13d]
push esi
push eax
mov byte [esp + 0x144], 0
call fcn.0042f980
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x160]
push ecx
push edi
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x3c], esi
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x41f300
jbe 0x41f300
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ebx, [ebx]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
push ecx
push esi
push edi
mov dword [esp + 0x38], 0xff
call ebp
test eax, eax
jne 0x41f2f6
mov al, byte [esp + 0x3c]
cmp al, 0x4d
jne 0x41f2e2
cmp byte [esp + 0x3e], 0x62
jne 0x41f2f6
cmp byte [esp + 0x42], 0x20
jne 0x41f2f6
cmp byte [esp + 0x43], 0x53
jmp 0x41f2f2
cmp al, 0x54
jne 0x41f2f6
cmp byte [esp + 0x3e], 0x74
jne 0x41f2f6
cmp byte [esp + 0x41], 0x72
jne 0x41f2f6
mov bl, 1
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x41f2a0
pop ebp
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0042e636
add esp, 0x234
ret

Function at 0x423430
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push ebx
push edi
push 0xf00
xor ebx, ebx
mov dword [esp + 0xc], 0xf00
call fcn.0042e62c
mov edi, eax
add esp, 4
lea eax, [esp + 8]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x42347c
push edi
call fcn.0042f66f
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0042e62c
add esp, 8
lea edx, [esp + 8]
mov edi, eax
push edx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4234de
test edi, edi
push esi
mov esi, edi
je 0x4234dd
jmp 0x423490
lea eax, [esi + 0x10c]
push str.PdaNet_Broadband_Adapter
push eax
call fcn.00431240
add esp, 8
test eax, eax
jne 0x4234be
mov esi, dword [esi]
test esi, esi
jne 0x423490
pop esi
push edi
call fcn.0042f66f
add esp, 4
pop edi
mov eax, ebx
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x194]
mov dword [0x4de43c], ecx
mov dx, word [esi + 0x198]
mov word [0x4de440], dx
mov ebx, 1
pop esi
push edi
call fcn.0042f66f
add esp, 4
pop edi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x424760
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
movzx eax, word [esp + 8]
push esi
xor esi, esi
test eax, eax
jle 0x424798
mov ecx, dword [esp + 8]
lea edx, [eax - 1]
shr edx, 1
add ecx, 1
add edx, 1
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor eax, eax
mov ah, byte [ecx - 1]
add ecx, 2
movzx eax, ax
xor eax, edi
add esi, eax
sub edx, 1
jne 0x424780
pop edi
mov eax, esi
shr eax, 0x10
je 0x4247ac
nop
movzx esi, si
add esi, eax
mov eax, esi
shr eax, 0x10
jne 0x4247a0
mov eax, esi
not eax
pop esi
ret

Function at 0x425010
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x404
mov eax, dword [0x4de8bc]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [esp + 0x408], 6
jl 0x4250d1
cmp dword [0x4ea9a0], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x425049
call esi
mov dword [0x4ea9a0], eax
call esi
mov ecx, eax
sub ecx, dword [0x4ea9a0]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
push edx
lea edx, [esp + 8]
push 0x4bd47c
push edx
call fcn.0042f6b4
lea eax, [esp + 0x10]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x425077
sub eax, edx
mov edx, eax
lea eax, [esp + 4]
lea esi, [eax + 1]
jmp 0x425090
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x425090
lea ecx, [esp + 0x414]
push ecx
mov ecx, dword [esp + 0x414]
push ecx
mov ecx, 0x3ff
sub ecx, edx
sub eax, esi
push ecx
lea edx, [esp + eax + 0x10]
push edx
call fcn.0042f8f9
add esp, 0x10
test eax, eax
pop esi
je 0x4250d1
lea eax, [esp]
push eax
call fcn.00424fe0
add esp, 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
xor al, al
call fcn.0042e636
add esp, 0x404
ret

Function at 0x425850
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
movzx ecx, word [edx + 4]
test cx, cx
push esi
mov esi, dword [edx]
mov eax, 0xffff
je 0x42588d
movzx edx, byte [esi]
xor edx, eax
movzx ax, ah
and edx, 0xff
xor ax, word [edx*2 + 0x4de4e8]
add ecx, 0xffff
add esi, 1
test cx, cx
movzx eax, ax
jne 0x425865
not eax
pop esi
ret
Function at 0x427b10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0x20]
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], eax
movzx eax, word [esi + 4]
push edi
push eax
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], dl
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esi + 4]
mov word [esp + 0x12], ax
xor eax, eax
xor ecx, ecx
test edi, edi
jbe 0x427b6d
mov esi, dword [esi]
push ebx
movzx ebx, byte [esi + ecx + 1]
xor edx, edx
mov dh, byte [esi + ecx]
add ecx, 2
movzx edx, dx
xor edx, ebx
add eax, edx
cmp ecx, edi
jb 0x427b54
pop ebx
xor ecx, ecx
nop
movzx esi, byte [esp + ecx + 9]
xor edx, edx
mov dh, byte [esp + ecx + 8]
add ecx, 2
movzx edx, dx
xor edx, esi
add eax, edx
cmp ecx, 0xc
jb 0x427b70
mov ecx, eax
shr ecx, 0x10
pop edi
pop esi
je 0x427b9f
movzx eax, ax
add eax, ecx
mov ecx, eax
shr ecx, 0x10
jne 0x427b93
not eax
add esp, 0xc
ret

Function at 0x42a050
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b739b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4de8bc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
mov dword [esp + 0x10], edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00429b70
cmp dword [0x4eb1b4], 0
jne 0x42a0e9
push 0x14
call fcn.0042ed23
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x28], 0
je 0x42a0ca
mov ecx, eax
call fcn.00427fb0
mov esi, eax
jmp 0x42a0cc
xor esi, esi
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x402000
push 0
push 0
mov byte [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8
Function at 0x42a1f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b73de
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de8bc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax]
lea edi, [ebx + 0x38]
mov esi, edi
mov dword [esp + 0x38], 2
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
lea ecx, [ecx]
test esi, esi
mov ebp, dword [edi + 4]
je 0x42a24b
cmp esi, edi
je 0x42a250
call fcn.004309cc
cmp dword [esp + 0x20], ebp
je 0x42a28c
test esi, esi
jne 0x42a25f
call fcn.004309cc
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 4]
jne 0x42a26d
call fcn.004309cc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0042f66f
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004263c0
mov esi, dword [esp + 0x1c]
jmp 0x42a240
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax]
lea esi, [ebx + 0x48]
mov ebp, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
mov edi, edi
test ebp, ebp
mov eax, dword [esi + 4]
mov dword [esp + 0x28], eax
je 0x42a2af
cmp ebp, esi
je 0x42a2b4
call fcn.004309cc
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x20], ecx
je 0x42a2f4
test ebp, ebp
jne 0x42a2c7
call fcn.004309cc
mov edx, dword [esp + 0x20]
cmp edx, dword [ebp + 4]
jne 0x42a2d5
call fcn.004309cc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.0042f66f
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004263c0
mov ebp, dword [esp + 0x1c]
jmp 0x42a2a0
lea ecx, [ebx + 0x58]
call fcn.004264b0
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push esi
push ecx
push esi
lea edx, [esp + 0x34]
push edx
mov ecx, esi
mov byte [esp + 0x4c], 1
call fcn.00427210
mov eax, dword [esi + 4]
push eax
call fcn.0042e631
add esp, 4
xor ebp, ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push edi
push ecx
push edi
lea eax, [esp + 0x34]
push eax
mov ecx, edi
mov byte [esp + 0x4c], 0
call fcn.00427210
mov ecx, dword [edi + 4]
push ecx
call fcn.0042e631
add esp, 4
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
cmp dword [ebx + 0x20], 0x10
jb 0x42a368
mov edx, dword [ebx + 0xc]
push edx
call fcn.0042e631
add esp, 4
mov dword [ebx + 0x20], 0xf
mov dword [ebx + 0x1c], ebp
mov byte [ebx + 0xc], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4de8bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x4de88c]
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
mov ebx, eax
jne 0x42d329
mov dword [ebp - 8], esi
jmp 0x42d357
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x42d33f
mov dword [ebp - 8], esi
jmp 0x42d357
lea esi, [eax + eax]
mov eax, esi
call fcn.0042f0b0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.004011e0
mov dword [ebp - 8], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x42d362
xor esi, esi
jmp 0x42d38e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x42d377
xor esi, esi
jmp 0x42d38e
lea esi, [eax + eax]
mov eax, esi
call fcn.0042f0b0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.004011e0
mov esi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwarePdaNetAndroid
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42d3da
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0xc]
push eax
push edi
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e636
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42d400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4de8bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x4de88c]
mov edi, dword [ebp + 0xc]
test edi, edi
mov ebx, eax
jne 0x42d426
xor esi, esi
jmp 0x42d452
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x42d43b
xor esi, esi
jmp 0x42d452
lea esi, [eax + eax]
mov eax, esi
call fcn.0042f0b0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.004011e0
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwarePdaNetAndroid
push connect
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42d49d
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push eax
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e636
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42d4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4de8bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x4de88c]
mov edi, dword [ebp + 0xc]
test edi, edi
mov ebx, eax
jne 0x42d4e6
xor esi, esi
jmp 0x42d512
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x42d4fb
xor esi, esi
jmp 0x42d512
lea esi, [eax + eax]
mov eax, esi
call fcn.0042f0b0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.004011e0
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwarePdaNetAndroid
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42d55f
mov edx, dword [ebp + 0x10]
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e636
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42e1c0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4de8bc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042e01f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042f980
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42e20f
cmp dword [ebp - 0x1c], 5
jb 0x42e227
jmp 0x42e223
cmp dword [ebp - 0x10], 1
jne 0x42e227
cmp dword [ebp - 0x1c], 4
ja 0x42e223
jne 0x42e227
cmp dword [ebp - 0x18], 0
jbe 0x42e227
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4bec50
call fcn.00411820
test eax, eax
jge 0x42e248
mov byte [0x4e9ff8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e636
add ebp, 0x78
leave
ret
Function at 0x42e461
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4eb284], 0
push esi
jne 0x42e3cf
call fcn.0042e2ed
test eax, eax
je 0x42e412
mov eax, dword [0x4eb284]
cmp eax, 1
jne 0x42e3f0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42e412
pop esi
ret
push eax
call dword [0x4eb28c]
test eax, eax
jne 0x42e45a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42e416
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4eb284]
call dword [0x4eb28c]
mov edi, eax
test edi, edi
je 0x42e43d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42e459
lea edi, [esi + 0xff0]
push esi
push dword [0x4eb284]
call dword [0x4eb288]
add esi, 0x10
cmp esi, edi
jb 0x42e443
mov eax, esi
pop edi
pop esi
ret
jmp 0x42e3bc

Function at 0x42e636
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4de8bc]
jne 0x42e640
repz ret
jmp fcn.00431f25
Function at 0x42fae8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42fb25
cmp dword [ebp + 0x14], edi
je 0x42fb25
cmp ecx, edi
jne 0x42fb2c
call fcn.00433982
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004309a8
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42fb40
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42fb61
cmp ebx, 0xffffffff
je 0x42fb50
push ebx
push edi
push ecx
call fcn.0042f980
add esp, 0xc
cmp esi, edi
je 0x42fb0d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42fb0d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42fb7d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42fb84
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42fc75
test word [esi + 0xc], 0x10c
je 0x42fbd8
mov eax, dword [esi + 4]
test eax, eax
je 0x42fbd8
jl 0x42fcd6
cmp ebx, eax
mov edi, ebx
jb 0x42fba9
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42fc7d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042e9b7
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42fc6d
cmp ebx, dword [ebp - 0xc]
jb 0x42fc45
cmp dword [ebp - 0xc], 0
je 0x42fc02
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x42fbf7
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42fbfe
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42fc0d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x42fc0d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42fca9
push eax
push dword [ebp - 8]
push esi
call fcn.00437323
pop ecx
push eax
call fcn.00437dd8
add esp, 0xc
test eax, eax
je 0x42fce8
cmp eax, 0xffffffff
je 0x42fcd6
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42fc6d
push esi
call fcn.004376f7
cmp eax, 0xffffffff
pop ecx
je 0x42fcda
cmp dword [ebp - 4], 0
je 0x42fca9
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42fb8c
mov eax, dword [ebp + 0x14]
jmp 0x42fb27
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42fc94
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042f980
add esp, 0xc
call fcn.00433982
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42fb1d
cmp dword [ebp + 0xc], 0xffffffff
je 0x42fcbf
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042f980
add esp, 0xc
call fcn.00433982
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42fb1d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x42fb27
or dword [esi + 0xc], 0x10
jmp 0x42fcda