joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fd52
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ecd8c], 0
push esi
jne 0x47fcc0
call fcn.0047fbd4
test eax, eax
je 0x47fd03
mov eax, dword [0x4ecd8c]
cmp eax, 1
jne 0x47fce1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x47fd03
pop esi
ret
push eax
call dword [0x4ecd94]
test eax, eax
jne 0x47fd4b
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 0x47fd07
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4ecd8c]
call dword [0x4ecd94]
mov edi, eax
test edi, edi
je 0x47fd2c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x47fd48
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4ecd8c]
call dword [0x4ecd90]
add edi, 0x10
cmp edi, esi
jb 0x47fd34
mov eax, edi
pop edi
pop esi
ret
jmp 0x47fcad

Function at 0x481d90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x481dc8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00484647
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00484550
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x481e93
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x481e00
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x481e93
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x481e22
mov eax, dword [0x4ce544]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x481e40
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x481e54
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00484647
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00484647
add esp, 0x20c
ret
Function at 0x4825d0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.00484d50
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x48273b
cmp dword [esp + 0x2c20], edi
je 0x48273b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push 0x4cd418
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.00412750
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x482714
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00484550
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x482707
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.00484550
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00484340
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00412840
test eax, eax
jne 0x482707
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x48271e
inc ebx
cmp ebx, 0x10
jl 0x482620
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.00484647
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00484647
add esp, 0x2c14
ret
Function at 0x4829e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x482be1
cmp dword [esp + 0x2f8], 0
je 0x482be1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00484550
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x4c9e8c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x482ba8
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x482b9b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x482b69
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x4cd4ac
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x482b5e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00484550
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.004828d0
add esp, 0x14
test eax, eax
je 0x482b5e
cmp byte [esp + 0x24], 0
je 0x482b22
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x482b5e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x482b51
mov cl, byte [esi + eax]
test cl, cl
je 0x482b51
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x482b36
jmp 0x482b55
test edx, edx
jne 0x482b56
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x482a80
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x482be1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00412840
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.00484647
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00484647
add esp, 0x2ec
ret
Function at 0x482f80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x4830fd
cmp ebp, 0x20
jb 0x4830fd
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00484550
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4c9efc
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4830fd
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x483010
sub eax, edx
cmp eax, 0x40
jne 0x4830fd
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x48304e
mov cl, byte [esi + eax]
test cl, cl
je 0x48304e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x483036
jmp 0x483052
test edx, edx
jne 0x483053
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x48308b
mov cl, byte [edx + eax]
test cl, cl
je 0x48308b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x483070
jmp 0x48308f
test esi, esi
jne 0x483090
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00484550
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.00482050
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x4830fd
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.00412840
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00484647
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00484647
add esp, 0x50c
ret
Function at 0x483120
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00484550
push 0x80
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.00482050
lea eax, [esp + 0x1a0]
mov edx, edi
mov ecx, eax
add esp, 0x10
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x48318b
mov cl, byte [edx + eax]
test cl, cl
je 0x48318b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x483170
jmp 0x48318f
test esi, esi
jne 0x483190
dec eax
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x198]
push eax
call fcn.00417160
push 0xff
lea ecx, [esp + 0x95]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x9c], 0
call fcn.00484550
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4c9efc
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x100
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x48326b
mov ecx, edi
lea eax, [esp + 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x483233
test dl, dl
je 0x48322f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x483233
add eax, 2
add ecx, 2
test dl, dl
jne 0x483213
xor eax, eax
jmp 0x483238
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48326b
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x483246
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [esp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x483275
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
push 1
push 0x4c9efc
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x294]
pop esi
pop ebx
xor ecx, esp
call fcn.00484647
add esp, 0x290
ret

Function at 0x484647
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e97d0]
jne 0x484651
repz ret
jmp fcn.004929b6
Function at 0x4aba23
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.00494b9e
and dword [ebp - 4], 0
cmp dword [0x4ee334], 0
mov ebx, eax
jne 0x4abad4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4abb85
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4abb85
push eax
call fcn.00494b2c
mov dword [esp], 0x4cc6ac
push edi
mov dword [0x4ee334], eax
call esi
push eax
call fcn.00494b2c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ee338], eax
call esi
push eax
call fcn.00494b2c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ee33c], eax
call esi
push eax
call fcn.00494b2c
pop ecx
mov dword [0x4ee344], eax
test eax, eax
je 0x4abad4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00494b2c
pop ecx
mov dword [0x4ee340], eax
mov eax, dword [0x4ee340]
cmp eax, ebx
je 0x4abb2c
cmp dword [0x4ee344], ebx
je 0x4abb2c
push eax
call fcn.00494ba7
push dword [0x4ee344]
mov esi, eax
call fcn.00494ba7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4abb2c
test edi, edi
je 0x4abb2c
call esi
test eax, eax
je 0x4abb23
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4abb23
test byte [ebp - 0xc], 1
jne 0x4abb2c
or dword [ebp + 0x10], 0x200000
jmp 0x4abb65
mov eax, dword [0x4ee338]
cmp eax, ebx
je 0x4abb65
push eax
call fcn.00494ba7
pop ecx
test eax, eax
je 0x4abb65
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4abb65
mov eax, dword [0x4ee33c]
cmp eax, ebx
je 0x4abb65
push eax
call fcn.00494ba7
pop ecx
test eax, eax
je 0x4abb65
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ee334]
call fcn.00494ba7
pop ecx
test eax, eax
je 0x4abb85
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4abb87
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xb27908
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0xb8d2a0]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0xb27912
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0xb27958
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0xb27937
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0xb27977
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00b57590
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0xb27a07
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0xb279bd
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0xb279d3
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0xb279fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0xb279ac
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0xb314f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0xb31627
cmp byte [edi + 0x3d], bl
je 0xb31627
call fcn.00b23a9d
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push esi
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
call fcn.00b2eb38
pop ecx
pop ecx
test al, al
je 0xb31546
xor al, al
jmp 0xb31629
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.00b25e0c
lea ebp, [edi + 0x40]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.00b230bc
mov ecx, eax
call fcn.00b23f9b
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00b2307c
add esi, eax
lea ecx, [esp + 0x2c]
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.00b230bc
mov ecx, eax
call fcn.00b23f9b
mov ecx, dword [edi + 0x38]
push eax
push ebp
call fcn.00b2eebc
sub eax, ebx
je 0xb315ae
sub eax, 1
je 0xb315b1
dec eax
sub eax, 1
jne 0xb3161a
inc eax
jmp 0xb31618
mov byte [edi + 0x3d], bl
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.00b230bc
mov ecx, eax
call fcn.00b23f9b
mov esi, dword [esp + 0x1c]
sub esi, eax
je 0xb315f6
push dword [edi + 0x4c]
lea eax, [esp + 0x28]
push esi
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.00b230bc
mov ecx, eax
call fcn.00b23f9b
push eax
call fcn.00b6115c
add esp, 0x10
cmp esi, eax
jne 0xb31616
cmp byte [edi + 0x3d], bl
je 0xb31614
test esi, esi
jne 0xb31555
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.00b23651
jmp 0xb31555
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x28]
call fcn.00b22bd8
mov al, bl
jmp 0xb31629
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb3258a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx]
mov edx, dword [ebx + 0x3c]
movzx ebp, word [esi + 0x14]
add ebp, esi
mov eax, dword [ebp + 0x20]
mov ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
call fcn.00b323c1
lea edx, [ebp + 0x18]
mov dword [esp + 0x28], eax
mov ecx, ebx
call fcn.00b324ce
mov ebx, dword [ebp + 0x3c]
mov edi, eax
and dword [esp + 0x34], 0
xor eax, eax
inc eax
mov dword [esp + 0x2c], edi
add ebp, 0x40
mov dword [esp + 0x30], ebx
cmp ax, word [esi + 6]
mov esi, ecx
mov dword [esp + 0x20], eax
jae 0xb3269c
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.00b323c1
mov edx, ebp
mov dword [esp + 0x14], eax
mov ecx, esi
call fcn.00b324ce
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x28], eax
je 0xb32653
lea ecx, [edi + edx]
cmp ecx, eax
ja 0xb3264f
lea edx, [esp + 0x24]
mov ecx, esi
call fcn.00b324ed
test eax, eax
je 0xb326b9
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0xb32677
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x24]
mov edi, 0x2000000
test edi, eax
je 0xb32667
test edi, ebx
je 0xb32667
or ebx, eax
jmp 0xb3266f
or ebx, eax
and ebx, 0xfdffffff
mov edi, ecx
sub edi, edx
add edi, dword [esp + 0x1c]
mov eax, dword [esi]
add ebp, 0x28
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
movzx eax, word [eax + 6]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0xb325e6
xor eax, eax
inc eax
lea edx, [esp + 0x24]
mov dword [esp + 0x34], eax
mov ecx, esi
call fcn.00b324ed
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor eax, eax
jmp 0xb326b1
Function at 0xb42cb4
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0xb42cdf
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0xb42cdf
cmp al, 0xc0
je 0xb42cdf
cmp al, 0xcc
je 0xb42cdf
add edx, 2
cmp dx, cx
jb 0xb42cc4
pop esi
ret

Function at 0xb4578e
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, edx
mov edx, dword [esp + 0x10]
lea esi, [edi + 4]
push esi
call fcn.00b4572b
mov edx, dword [esp + 0x10]
pop ecx
push 4
sub edx, edi
pop ecx
mov al, byte [edx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0xb457a9
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0xb457b7
pop edi
pop esi
ret

Function at 0xb47a12
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0xb47a2a
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0xb47a1d
pop esi
ret

Function at 0xb47a2c
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
or eax, edx
push esi
mov esi, dword [esp + 8]
or eax, esi
test al, 3
jne 0xb47a47
shr esi, 2
push esi
call fcn.00b47a12
pop ecx
pop esi
ret
test esi, esi
je 0xb47a58
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0xb47a4d
pop esi
ret

Function at 0xb47a5a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov esi, edx
mov ebx, ecx
test edi, edi
jle 0xb47a7e
sub ebx, esi
movzx edx, byte [ebx + esi]
movzx ecx, byte [esi]
xor edx, ecx
or eax, edx
inc esi
sub edi, 1
jne 0xb47a6d
pop edi
pop esi
pop ebx
ret
Function at 0xb4fdef
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
je 0xb4fee9
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
jne 0xb4fe10
test esi, esi
jne 0xb4fee9
cmp edx, 3
je 0xb4fe46
cmp edx, 4
je 0xb4fe46
cmp edx, 5
je 0xb4fe46
cmp edx, 6
je 0xb4fe46
cmp edx, 7
je 0xb4fe46
cmp edx, 8
je 0xb4fe46
cmp edx, 0xa
je 0xb4fe46
cmp edx, 0xb
je 0xb4fe46
cmp edx, 0xc
je 0xb4fe46
cmp edx, 0xd
jne 0xb4fee9
xor ebx, ebx
mov byte [edi + 0x114], dl
push ecx
mov byte [edi + 0x115], bl
call fcn.00b4fdd2
mov ebp, eax
pop ecx
test ebp, ebp
jne 0xb4feee
cmp byte [edi + 0x114], 6
lea ecx, [edi + 0x70]
jne 0xb4fee9
cmp esi, 0x40
ja 0xb4fe8c
cmp dword [esp + 0x14], ebx
je 0xb4feb5
push esi
push dword [esp + 0x18]
push ecx
call fcn.00b57590
add esp, 0xc
jmp 0xb4feb2
mov edx, dword [esp + 0x14]
mov ecx, edi
push esi
call fcn.00b54cd1
mov ebp, eax
pop ecx
test ebp, ebp
jne 0xb4fee5
lea edx, [edi + 0x70]
mov ecx, edi
call fcn.00b54dac
mov ebp, eax
test ebp, ebp
jne 0xb4fee5
push 0x20
pop esi
lea ecx, [edi + 0x70]
cmp esi, 0x40
jae 0xb4fecd
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push ebx
push eax
call fcn.00b57b10
add esp, 0xc
mov al, byte [ebx + edi + 0x70]
xor al, 0x5c
mov byte [edi + ebx + 0xb0], al
xor byte [ebx + edi + 0x70], 0x36
inc ebx
cmp ebx, 0x40
jb 0xb4fecd
mov eax, ebp
jmp 0xb4feee
mov eax, 0xffffff53
pop edi
pop esi
pop ebp
pop ebx
ret