joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bf693
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x20], eax
and dword [ebp - 8], 0
jmp 0x100bf6c3
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x100bf6e1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x18], eax
jmp 0x100bf6bc
and dword [ebp - 0x1c], 0
and dword [ebp - 8], 0
jmp 0x100bf6f2
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x100bf749
mov eax, dword [ebp - 0x1c]
sub eax, 0x61c88647
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
xor eax, ecx
mov ecx, dword [ebp - 0x20]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor eax, ecx
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x1c]
xor eax, ecx
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0xc]
xor eax, ecx
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
jmp 0x100bf6eb
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
leave
ret
Function at 0x100c2d3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8986
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x2c]
call fcn.10001714
and dword [ebp - 4], 0
mov byte [ebp - 0x2d], 0
push 0x208
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.100771d0
add esp, 0xc
push 1
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x23
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100c2e56
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x258]
call fcn.1000173d
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x264]
lea ecx, [ebp - 0x2c]
call fcn.100017d6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.100017ab
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100c2e18
push 0x100e09cc
lea ecx, [ebp - 0x2c]
call fcn.10009426
jmp 0x100c2e25
push 0x100e09f4
lea ecx, [ebp - 0x2c]
call fcn.10009426
lea eax, [ebp - 0x2c]
push eax
call fcn.100c19eb
pop ecx
movzx eax, al
test eax, eax
jne 0x100c2e45
lea eax, [ebp - 0x2c]
push eax
call fcn.100c28f1
pop ecx
mov byte [ebp - 0x2d], al
jmp 0x100c2e49
mov byte [ebp - 0x2d], 1
push 0x100e0a18
lea ecx, [ebp - 0x2c]
call fcn.10009426
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001773
mov eax, dword [ebp - 0x25c]
or eax, 1
mov dword [ebp - 0x25c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100017ab
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100771ba
leave
ret
Function at 0x100c2e97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c89b6
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 0x31], 0
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.100c2d3c
pop ecx
pop ecx
and dword [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x30]
call fcn.100094ad
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100c2f34
push 1
lea eax, [ebp - 0x50]
push eax
call fcn.100c2d3c
pop ecx
pop ecx
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x50]
call fcn.100094ad
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.100017ab
cmp dword [ebp - 0x10], 0xffffffff
je 0x100c2f65
push 0
lea eax, [ebp - 0x54]
push eax
push 0x10
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100c2f5c
cmp dword [ebp - 0x54], 0x10
jne 0x100c2f5c
mov byte [ebp - 0x31], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x55], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100017ab
mov al, byte [ebp - 0x55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100771ba
leave
ret 4
Function at 0x100c2f93
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c89e3
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x31], 0
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.100c2d3c
pop ecx
pop ecx
and dword [ebp - 4], 0
or dword [ebp - 0x10], 0xffffffff
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x30]
call fcn.100094ad
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100c3087
push 1
lea eax, [ebp - 0x50]
push eax
call fcn.100c2d3c
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
call fcn.100c064f
pop ecx
movzx eax, al
test eax, eax
jne 0x100c305e
lea eax, [ebp - 0x50]
push eax
call fcn.100c064f
pop ecx
movzx eax, al
test eax, eax
je 0x100c305e
push 0
lea ecx, [ebp - 0x30]
call fcn.100094ad
push eax
lea ecx, [ebp - 0x50]
call fcn.100094ad
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100c305e
lea ecx, [ebp - 0x50]
call fcn.100094ad
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x50]
call fcn.100094ad
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.100017ab
cmp dword [ebp - 0x10], 0xffffffff
je 0x100c30d5
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x10
jb 0x100c30cc
cmp dword [ebp - 0x54], 0xffffffff
je 0x100c30cc
push 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x54]
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100c30cc
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x54]
jne 0x100c30cc
mov byte [ebp - 0x31], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x59], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100017ab
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100771ba
leave
ret 4
Function at 0x100c4b97
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
mov eax, dword [0x10115e50]
and eax, 1
jne 0x100c4bdd
mov eax, dword [0x10115e50]
or eax, 1
mov dword [0x10115e50], eax
mov ecx, 0x10115e4c
call fcn.10014b4b
push 0x100cf08f
call fcn.10077c75
pop ecx
mov ecx, 0x10115e4c
call fcn.10003bcb
movzx eax, al
test eax, eax
je 0x100c4c30
and word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.100771d0
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x10115e4c
call fcn.10003c7e
push 0x10115e4c
mov ecx, dword [ebp + 8]
call fcn.10003be1
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100771ba
leave
ret

Function at 0x100c4c5b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
mov eax, dword [0x10115e58]
and eax, 1
jne 0x100c4ca1
mov eax, dword [0x10115e58]
or eax, 1
mov dword [0x10115e58], eax
mov ecx, 0x10115e54
call fcn.10014b4b
push 0x100cf080
call fcn.10077c75
pop ecx
mov ecx, 0x10115e54
call fcn.10003bcb
movzx eax, al
test eax, eax
je 0x100c4cf4
and word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.100771d0
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x10115e54
call fcn.10003c7e
push 0x10115e54
mov ecx, dword [ebp + 8]
call fcn.10003be1
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100771ba
leave
ret
Function at 0x100c511a
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.10009256
movzx eax, al
test eax, eax
jne 0x100c5149
push 4
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.100094ad
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
leave
ret 4
Function at 0x102ff06d
Capabilities:
Packed with generic packer

Disassembly:
push dword [esp + 4]
pushfd
mov word [esp + 0x7a2], bx
pushfd
push dword [esp + 4]
mov byte [esp + 4], dh
mov dword [esp + 0x80], ebx
pushfd
lea esp, [esp + 0x40]
call fcn.10061b8e
mov ax, 0x25c1
lea eax, [esp - 0x4e627907]
pushal
lea eax, [esp + 0x60]
call fcn.1033abe9

Function at 0x10302ec0
Capabilities:
Encode data using xor

Disassembly:
mov word [esp + 0xa6a], 0xe9
call fcn.102fde55
salc
xchg byte [edi - 0x29990001], ch
xor eax, 0xf70b85db
xchg esi, eax
sbb byte [esi + 0x76], dl
push 0x456b63c8
inc esi
lahf
mov edi, dword [ebp + ebx*8 + 0x1b7bd4da]
mov dl, 0xc5
pushfd
dec esi
sub dword [edx], esi
in eax, 0xf2
pop ds
scasb al, byte es:[edi]
fldenv [esi]
pop esi
mov ebp, 0x9027a1ab
fimul dword [edx + 0x18]
lcall 0x2557, 0xfc09ca29
and dh, bh
shl byte [eax + 0x53], cl
js 0x10302ecb
invalid

Function at 0x103036b5
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 0xa6a], ax
not ax
pushfd
mov word [esp + 0xa70], di
rdtsc
cwde
mov al, 0x64
mov word [esp + 0xab0], 0x53
rdtsc
mov word [esp + 0xab2], 0x79
lahf
movzx dx, bl
movzx dx, dl
mov word [esp + 0xab4], si
mov byte [esp + 4], al
mov word [esp + 0xab6], 0x69
movzx ax, dl
mov word [esp + 0xab8], 0x6e
movzx edx, dl
movzx eax, cl
mov word [esp + 0xaba], 0x74
rdtsc
pushfd
bswap ax
lea eax, [ecx*8 + 0x706b5b61]
mov word [esp + 0xac0], cx
setns dl
not eax
mov dword [esp + 0x38], 0x72
cdq
mov eax, dword [esp + 0x38]
seto dh
pushfd
mov dword [esp + 0x3c], 0x6f
not dl
movsx dx, bl
mov dh, cl
not dl
mov edx, dword [esp + 0x3c]
jmp 0x1031edb6
mov word [esp + 0xac6], ax
jmp loc.102f7b86

Function at 0x1030bf44
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 0xaa0], si
not dl
cwde
lahf
mov word [esp + 0xaa2], 0x69
rdtsc
lea eax, [edx - 0x206208d3]
mov word [esp + 0xaa4], 0x6e
jmp 0x10330dc1
setbe ah
cdq
cdq
mov word [esp + 0xaa6], 0x74
xchg ah, dl
rdtsc
movzx ax, dl
mov word [esp + 0xaa8], cx
pop eax
not al
mov dword [esp + 0x1c], 0x72
movzx ax, bl
rdtsc
xchg dx, ax
cdq
mov eax, dword [esp + 0x1c]
jmp 0x103367e4
push 0xe3423b6e
mov dword [esp + 0x20], 0x6f
setb dh
bswap edx
jmp loc.102f7905
Function at 0x4f6ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x68176018
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x68188590]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xa7a8]
mov edi, dword [eax + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004f6a30
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x30], 0
jb 0x4f6aff
mov eax, dword [eax + 4]
jmp 0x4f6b02
add eax, 4
mov ecx, dword [esp + 0x38]
mov edx, dword [edi]
mov edx, dword [edx + 0x5c]
push ecx
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esi + 8]
push ecx
push eax
push edi
call edx
cmp dword [esp + 0x24], 0x10
mov edi, eax
jb 0x4f6b2e
mov eax, dword [esp + 0x10]
push eax
call fcn.0051ed44
add esp, 4
call dword [0x6817a04c]
sub eax, dword [esi + 0xa2a4]
mov ecx, eax
test ecx, ecx
jle 0x4f6b5a
mov eax, edi
xor edx, edx
div ecx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4
Function at 0x4f9d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x68176518
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x68188590]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xa7a8]
mov edi, dword [eax + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004f6a30
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x30], 0
jb 0x4f9d9f
mov eax, dword [eax + 4]
jmp 0x4f9da2
add eax, 4
mov edx, dword [edi]
mov edx, dword [edx + 0x20c]
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esi + 8]
push ecx
push eax
push edi
call edx
cmp dword [esp + 0x24], 0x10
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
jb 0x4f9dd4
mov eax, dword [esp + 0x10]
push eax
call fcn.0051ed44
add esp, 4
mov eax, dword [esi + 0xa75c]
cmp edi, eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov ecx, esi
jbe 0x4f9dfa
sub edi, eax
push edi
jmp 0x4f9dfc
push 0
call fcn.004f8dc0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x50c4c4
Capabilities:
Create thread

Disassembly:
sub esp, 0x194
mov eax, dword [0x68188590]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x50c525
call fcn.004f1f30
test eax, eax
je 0x50c590
call fcn.004f1f30
cmp dword [eax + 0xc], 0
je 0x50c590
call fcn.004f1f30
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x50c590
push 0x6817de78
push 0x2714
call fcn.004f1fb0
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0051f4e2
add esp, 0x194
ret
push 0x18e
lea ecx, [esp + 0xa]
push 0
push ecx
mov word [esp + 0x10], 0
call fcn.0051f6e0
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x202
call dword [0x6817a22c]
mov eax, dword [esi + 0x114]
push 0
push eax
mov byte [esi + 4], 1
call dword [0x6817a0a4]
test eax, eax
jne 0x50c574
mov ecx, dword [esi + 0x114]
push ecx
call dword [0x6817a0cc]
push 0
push 0
push esi
push 0x6814e8a0
push 0
push 0
call fcn.005218be
add esp, 0x18
mov dword [esi + 0xb90], eax
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0051f4e2
add esp, 0x194
ret
Function at 0x51b4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc5000]
push edi
jmp 0x51b4ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51b4c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b4b0
mov eax, 1
add ebx, ebx
jne 0x51b4d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51b4e4
jne 0x51b503
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b503
dec eax
add ebx, ebx
jne 0x51b4f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51b4c8
add ebx, ebx
jne 0x51b4ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51b555
xor ecx, ecx
sub eax, 3
jb 0x51b51b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51b58a
sar eax, 1
mov ebp, eax
jmp 0x51b526
add ebx, ebx
jne 0x51b526
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b4f4
inc ecx
add ebx, ebx
jne 0x51b534
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b4f4
add ebx, ebx
jne 0x51b541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51b536
jne 0x51b552
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51b536
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51b574
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51b566
jmp 0x51b4b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51b574
add edi, ecx
jmp 0x51b4b6
pop esi
mov edi, esi
mov ecx, 0x73d8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51b592
cmp byte [edi], 0x26
jne 0x51b592
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 0x51b597
lea edi, [esi + 0x118000]
mov eax, dword [edi]
or eax, eax
je 0x51b60f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11fa58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11fb5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51b5c4
mov ecx, edi
jns 0x51b5f3
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 + 0x11fb60]
or eax, eax
je 0x51b609
mov dword [ebx], eax
add ebx, 4
jmp 0x51b5e1
call dword [esi + 0x11fb70]
mov ebp, dword [esi + 0x11fb64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x51b643
sub esp, 0xffffff80
jmp 0x474a09
Function at 0x10023fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100c3da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100b8837
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10025f90
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10024014
jmp dword [ecx*4 + 0x1002417c]
mov al, byte [esi]
test al, al
je 0x10024042
cmp al, 0x20
je 0x1002402e
cmp al, 0xa1
jne 0x10024042
cmp byte [esi + 1], al
jne 0x10024042
test al, 0x80
je 0x1002403a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10024042
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10024021
test ecx, ecx
je case.default.0x10024014
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10024014
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10024088
cmp dl, 0xa1
jne 0x1002407c
cmp byte [eax + 1], 0xa1
jne 0x1002407c
test ecx, ecx
jne 0x10024074
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002409c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x100240b6
jmp 0x1002409c
cmp dl, 0x20
jne 0x1002409a
test ecx, ecx
jne 0x10024093
mov edi, eax
mov ecx, 1
jmp 0x1002409c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002405c
cmp ecx, 1
jne case.default.0x10024014
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10024014
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10024014
mov al, byte [esi]
test al, al
je 0x1002410e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x100240f4
mov cl, byte [esi + 1]
test cl, cl
je 0x1002410e
cmp al, 0xa1
jne 0x100240e4
cmp cl, al
je 0x100240f1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10026220
inc esi
jmp 0x10024106
cmp al, 0x20
je 0x10024106
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10026260
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100240cd
push 0
lea ecx, [esp + 0x14]
call fcn.10026260
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100363f0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10024141
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x101ed050
call fcn.10026190
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100b87c9
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10025780
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x100c3eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x10213728]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.10025250
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10025822
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100258db
mov edx, dword [esi + 8]
push edx
call fcn.10035020
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x10025872
cmp eax, 0x80000301
jne 0x10025840
mov eax, dword [esi]
jmp 0x1002584d
push 0
push esi
push 0x7d1
call fcn.1003a650
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100258d0
jmp 0x100258ca
cmp eax, 0x80000004
jne 0x100258a1
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100258d0
jmp 0x100258ca
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x100258d0
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100258d0
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.100b87c9
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret