joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410b9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435300]
jne 0x410ba6
repz ret
jmp fcn.00416801

Function at 0x420f99
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418059
xor ebx, ebx
cmp dword [0x4397bc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42106e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x420fd9
xor eax, eax
jmp 0x421132
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x420fd2
push eax
call fcn.00417ff6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4397bc], eax
call esi
push eax
call fcn.00417ff6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4397c0], eax
call esi
push eax
call fcn.00417ff6
mov dword [0x4397c4], eax
lea eax, [ebp - 8]
push eax
call fcn.004164af
test eax, eax
pop ecx
pop ecx
je 0x42103c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410efd
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42106e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00417ff6
cmp eax, ebx
pop ecx
mov dword [0x4397cc], eax
je 0x42106e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00417ff6
pop ecx
mov dword [0x4397c8], eax
mov eax, dword [0x4397c8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4210e7
cmp dword [0x4397cc], esi
je 0x4210e7
push eax
call fcn.00418062
pop ecx
call eax
cmp eax, ebx
je 0x4210b4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4397cc]
call fcn.00418062
pop ecx
call eax
test eax, eax
je 0x4210b4
test byte [ebp - 0x18], 1
jne 0x4210e7
lea eax, [ebp - 0xc]
push eax
call fcn.004164e6
test eax, eax
pop ecx
je 0x4210cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410efd
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4210de
or dword [ebp + 0x10], 0x200000
jmp 0x421118
or dword [ebp + 0x10], 0x40000
jmp 0x421118
mov eax, dword [0x4397c0]
cmp eax, esi
je 0x421118
push eax
call fcn.00418062
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x421118
mov eax, dword [0x4397c4]
cmp eax, esi
je 0x421118
push dword [ebp - 4]
push eax
call fcn.00418062
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4397bc]
call fcn.00418062
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40468a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.00414803
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040420b
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x4046c8
cmp eax, 0x2f
jne 0x4046f6
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x4046f6
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x4046e8
cmp eax, 0x5c
je 0x4046e8
dec esi
test esi, esi
jg 0x4046d5
test esi, esi
je 0x404798
xor eax, eax
mov word [edi + esi*2], ax
mov ecx, edi
call fcn.00403092
test eax, eax
je 0x4046e4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40472b
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00404402
test eax, eax
je 0x40472b
xor esi, esi
jmp 0x4047bb
mov ecx, edi
call fcn.00403092
test eax, eax
jne 0x404785
push edi
push 0xc
push 1
call fcn.00409684
add esp, 0xc
jmp 0x404724
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x404777
jmp 0x404776
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x40477d
cmp eax, 0x2f
je 0x40477d
inc esi
cmp word [edi + esi*2], cx
jne 0x404768
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x40472b
cmp esi, dword [ebp - 4]
jl 0x404745
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4047df
cmp dword [ebp - 4], 2
jne 0x4047c8
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x4047c8
cmp ax, 0x7a
ja 0x4047c8
cmp word [ebx + 2], 0x3a
jne 0x4047c8
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4047df
push ebx
push 0xc
push 1
call fcn.00409684
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408c93
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00407597
test eax, eax
jne 0x408cb1
push eax
push eax
push esi
push 0x4082d6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x422738]
mov ecx, esi
push dword [esi + 4]
call fcn.0040790b
push 0x2d
pop ecx
call fcn.00403ce0
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.0040790b
pop esi
ret
Function at 0x401410
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x3c], 0x6c9cca1e
cmp eax, 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], esi
je 0x40154b
xor eax, eax
mov ecx, dword [esp + 0x34]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x34], ecx
mov ecx, eax
mov edx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, 0x100
add eax, 1
mov dword [esp + 0x14], edx
cdq
idiv esi
mov edi, dword [esp + 0x24]
mov bl, byte [edi + edx]
movzx edi, bl
mov dword [esp + 0x10], esi
mov si, word [esp + 0x38]
and si, 0x131c
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
add ecx, edi
mov eax, ecx
mov dword [esp + 8], edx
cdq
mov ecx, dword [esp + 0x10]
idiv ecx
mov word [esp + 0x38], si
mov ecx, dword [esp + 0x24]
mov bh, byte [ecx + edx]
mov esi, dword [esp + 8]
mov byte [ecx + esi], bh
mov byte [ecx + edx], bl
imul ecx, dword [esp + 0x34], 0x5243e5a8
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 8]
mov bl, byte [esi + ebx]
mov esi, dword [esp + 0x3c]
xor esi, 0x6c9cca1f
movzx ebx, bl
add ebx, edi
and ebx, 0xff
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x24]
mov cl, byte [ecx + ebx]
mov ebx, dword [esp + 0x2c]
mov dword [esp], edx
mov edx, dword [esp + 0xc]
xor cl, byte [ebx + edx]
mov edx, dword [esp + 4]
xor edx, edi
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0xc]
mov byte [edx + edi], cl
add edi, esi
mov esi, dword [esp + 0x30]
cmp edi, esi
mov ecx, dword [esp]
mov edx, dword [esp + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
jne 0x401468
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401a90
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [esp + 0x28]
or edi, 0x40664af8
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0x30fa40c8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
mov ecx, 0x30fa41c8
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x30]
mov ebx, eax
sub ecx, esi
xor edx, 0x30fa40c9
mov esi, dword [esp + 0x14]
mov byte [esi + eax], bl
add eax, edx
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x401acd
xor eax, eax
mov ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
jmp 0x401b07
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, 0x100
mov si, word [esp + 0x22]
add si, word [esp + 0x22]
mov word [esp + 0x22], si
mov dword [esp + 4], eax
xor edi, edi
mov dword [esp], edx
mov edx, edi
mov edi, dword [esp + 0x1c]
div edi
mov ebx, dword [esp + 0x18]
movzx edx, byte [ebx + edx]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 4]
mov bl, byte [esi + edi]
movzx esi, bl
add ecx, esi
add ecx, edx
mov si, word [esp + 0x22]
mov eax, ecx
cdq
mov ecx, dword [esp]
idiv ecx
mov word [esp + 0x22], si
mov ecx, dword [esp + 0x14]
mov bh, byte [ecx + edx]
mov byte [ecx + edi], bh
mov byte [ecx + edx], bl
add edi, 1
cmp edi, 0x100
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
jne 0x401b07
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401ca0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
xor eax, eax
mov dword [esp + 0x40], 0x14f0444a
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
jmp 0x401d4d
mov eax, dword [esp + 0x40]
add eax, 0xeb0fbc09
mov ecx, dword [esp + 0x30]
sub ecx, eax
sete dl
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
sub eax, esi
sete dh
sub esi, 3
sete bl
mov edi, dword [esp + 0x30]
test edi, edi
sete bh
mov word [esp + 0x44], 0
mov edi, dword [esp + 0x2c]
sub edi, 0x1b
mov dword [esp + 0x28], eax
sete al
and al, bl
mov dword [esp + 0x48], 0x22200084
mov dword [esp + 0x4c], 0
or dl, bl
mov dword [esp + 0x50], 0xbd61a237
or bh, dl
and dh, bh
or al, dh
mov dword [esp + 0x48], 0x4ca7df7a
and al, 1
movzx eax, al
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
rdtsc
mov esi, edx
mov edi, eax
rdtsc
mov ebx, edx
mov ecx, eax
mov dword [esp + 0x50], 0x45941739
sub ecx, edi
mov eax, dword [esp + 0x18]
cmp eax, 0
mov edx, dword [esp + 0x10]
cmove edx, ecx
cmp eax, 0
mov edi, dword [esp + 0x14]
cmove edi, ecx
cmp edi, ecx
cmova edi, ecx
add eax, 1
cmp edx, ecx
cmovb edx, ecx
cmp eax, 0x64
mov ecx, edi
mov dword [esp + 0xc], eax
mov eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 4], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ecx
je 0x401cc7
jmp 0x401d4d
Function at 0x403000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
xor ecx, ecx
mov byte [ebp - 9], 0x82
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
je 0x40304a
jmp 0x403054
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x403025
mov eax, dword [ebp - 0x18]
mov cx, word [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx + eax]
xor cx, 0xffff
mov word [ebp - 0xc], cx
mov esi, eax
add esi, 1
cmp bl, 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
jne 0x403025
mov eax, dword [ebp - 0x14]
add esp, 0x10
pop esi
pop ebx
pop ebp
ret
xor eax, eax
mov cl, byte [ebp - 9]
add cl, 0x7e
mov edx, dword [ebp - 0x10]
mov ch, byte [edx]
mov si, word [ebp - 0xc]
xor si, 0x81b
mov word [ebp - 0xc], si
cmp ch, cl
mov dword [ebp - 0x14], eax
je 0x40304a
jmp 0x40301e
Function at 0x4031a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
call fcn.00402d70
mov ecx, eax
mov edx, dword [esp + 0x70]
mov esi, 0x27873d3a
sub esi, edx
mov dword [esp + 0x70], esi
mov esi, eax
mov edi, esp
mov dword [edi], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], esi
call fcn.00403110
mov bx, word [esp + 0x6e]
mov eax, dword [eax + 0x78]
mov ecx, eax
mov edx, dword [esp + 0x50]
add edx, eax
mov esi, dword [esp + 0x50]
mov eax, dword [esi + eax + 0x20]
add esi, eax
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0x2694a2a5
mov dword [esp + 0x40], eax
mov eax, edx
add eax, 0x18
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
cmp dword [eax + ecx + 0x18], 0
mov ecx, dword [esp + 0x54]
mov word [esp + 0x3a], bx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ecx
je 0x40326e
xor eax, eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
add ecx, dword [edx + 0x24]
mov esi, dword [esp + 0x48]
and esi, esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
jmp 0x4032cb
mov eax, dword [esp + 0x28]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [esp + 0x5f]
mov byte [esp + 0x5f], al
mov ecx, dword [esp + 0x1c]
add ecx, 1
cmp ecx, 0x20
setb al
mov dl, byte [esp + 0x1b]
cmp dl, 0
setne ah
mov dh, byte [esp + 0x1a]
and dh, ah
and dh, al
test dh, 1
mov dword [esp + 0x14], ecx
jne 0x403301
jmp 0x4032f2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
add eax, dword [ecx + 0x1c]
mov edx, dword [esp + 0x10]
movzx esi, word [edx]
mov edi, dword [esp + 0x44]
add edi, dword [eax + esi*4]
mov dword [esp + 0x28], edi
jmp 0x40326e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
xor edx, edx
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
add esi, dword [edi + ecx*4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], edx
jmp 0x403301
mov byte [esp + 0x5f], 0x86
mov al, byte [esp + 0x1a]
test al, 1
jne 0x4032ac
jmp 0x40332e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov dl, byte [ecx + eax]
mov esi, dword [esp + 0x58]
mov dh, byte [esi + eax]
cmp dl, dh
sete bl
cmp dl, 0
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], dh
je 0x4032f2
jmp 0x40327a
xor eax, eax
mov ecx, dword [esp + 0xc]
inc ecx
mov edx, dword [esp + 0x10]
add edx, 2
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0x5debd0c1
mov esi, dword [esp + 0x3c]
cmp ecx, dword [esi]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jb 0x4032cb
jmp 0x40326e
Function at 0x403da0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
lea eax, [fcn.00403da0]
mov dword [esp + 0x10], 0x433a36c7
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [esp], eax
mov word [esp + 6], 0xd05c
cmp word [esp + 6], 0xa1e0
jb 0x403de5
mov eax, dword [esp]
cmp word [eax], 0x5a4d
je 0x403de5
jmp 0x403e06
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp]
mov cx, word [esp + 0xe]
add cx, 0xee18
mov word [esp + 0xe], cx
mov edx, dword [esp]
mov eax, dword [eax + 0x3c]
cmp dword [edx + eax], 0x4550
je 0x403dde
mov eax, dword [esp + 0x10]
add eax, 0xbcc5b939
mov ecx, dword [esp]
add ecx, 0xfffff000
and ecx, eax
mov dword [esp + 8], ecx
mov dx, word [esp + 0xe]
add dx, 0x310
mov word [esp + 0xe], dx
jmp 0x403dbb
Function at 0x408213
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x408257
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x408226
jmp 0x408257
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x408247
pop esi
pop ebp
ret

Function at 0x408def
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x408e24
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x408e4e
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x408e4e
test edi, edi
je 0x408e1b
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x408e1b
test edi, edi
je 0x408e56
mov eax, edi
jmp 0x408e1d
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x408e1d
int3
Function at 0x40bf23
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonSize], eax
call fcn.00408def
pop ecx
mov ecx, dword [sym.TestBinarySearch.exe_gMozillaPoisonSize]
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40bf5b
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x4a89a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e451a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fb614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x34
call fcn.004cf4bd
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi], 0x4efcec
mov byte [edi + 4], 1
movups xmmword [edi + 8], xmm0
mov dword [edi + 8], 0x4efc60
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea esi, [edi + 0x20]
mov byte [ebp - 4], 2
push 0x10
mov dword [ebp - 0x14], esi
call fcn.004cf4bd
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
add esp, 8
movq qword [eax], xmm0
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], fcn.004b0380
mov dword [ecx], 0
mov dword [esi + 4], eax
mov eax, edi
mov dword [esi], ecx
mov dword [edi], 0x4efd40
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov word [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a8da0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4580
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4fb614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x4a8e07
mov dword [ebp - 4], 0
lea ecx, [esi + 8]
xor al, al
xchg byte [ecx], al
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4a8df5
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4a8df5
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x10
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004cf4f2
add esp, 8
mov ebx, dword [edi + 4]
mov dword [edi + 8], 0
test ebx, ebx
je 0x4a8e3f
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [fcn.004e85a4]
mov ecx, ebx
call esi
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4a8e3f
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [fcn.004e85a4]
mov ecx, ebx
call esi
push dword [edi + 0xc]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi + 0x18], 0xffffffe8
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0xffffffe8
mov dword [edi + 0x28], 0xffffffe8
mov dword [edi + 0x2c], 0xffffffe8
mov dword [edi + 0x30], 0xffffffe8
mov dword [edi + 0x34], 0xffffffe8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b13c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e50be
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4fb614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
mov esi, dword [0x4fc070]
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW_1]
push eax
call esi
mov ebx, eax
mov dword [edi + 4], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
mov ecx, edi
push 0
mov dword [edi], 0x4efa10
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.004aacd0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
test ebx, ebx
je 0x4b153f
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x4b1538
nop word [eax + eax]
push dword [ebx + esi*4]
lea ecx, [ebp - 0x30]
call fcn.004b72a0
mov dword [ebp - 4], 2
mov edx, dword [edi + 0xc]
cmp dword [edi + 4], edx
jne 0x4b14cb
mov ebx, edx
mov eax, 0xa
shr ebx, 1
cmp ebx, 0xa
cmovb ebx, eax
mov eax, dword [edi]
mov eax, dword [eax + 8]
cmp eax, 0x4aab80
je 0x4b14ab
mov ecx, edi
call eax
mov edx, eax
mov ecx, dword [edi]
lea eax, [edx + ebx]
push eax
mov ecx, dword [ecx + 4]
cmp ecx, fcn.004aab30
mov dword [ebp - 0x1c], ecx
mov ecx, edi
jne 0x4b14c8
call fcn.004aab30
jmp 0x4b14cb
call dword [ebp - 0x1c]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x2c]
shl ecx, 4
add ecx, dword [edi + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ecx], 0x4efc60
mov dword [ecx + 4], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
test edx, edx
je 0x4b1510
push edx
call fcn.004d4296
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 8]
mov dword [ecx + 4], eax
push ebx
push eax
call fcn.004d1d90
add esp, 0x10
inc dword [edi + 4]
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0x4efc60
test ebx, ebx
je 0x4b152b
push ebx
call fcn.004d427b
add esp, 4
mov ebx, dword [ebp - 0x14]
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x4b1470
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b22a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4580
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4fb614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x20
mov byte [esi], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004aa4a0
mov dword [esi + 0x10], 0x1b
xorps xmm0, xmm0
mov dword [esi + 0x14], 0x1f
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov dword [esi], eax
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x4b231b
mov eax, dword [esi]
movsx ecx, byte [eax]
mov eax, esi
add ecx, 0x2526005
cmp dword [esi + 0x14], 0x10
jb 0x4b232e
mov eax, dword [esi]
sub edi, eax
mov dword [ebp - 0x10], edi
mov edi, 0x1b
mov esi, dword [ebp - 0x10]
nop dword [eax + eax]
mov edx, ecx
lea eax, [eax + 1]
imul ecx, ecx, 0xd3f5
shr edx, 6
xor dl, byte [esi + eax - 1]
mov byte [eax - 1], dl
add ecx, 0x1e2f33da
sub edi, 1
jne 0x4b2340
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b5680
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x18]
test esi, esi
jne 0x4b5699
push dword [edi + 4]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor al, al
test esi, esi
je 0x4b56bf
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess_1]
cmp eax, 1
sete bl
cmp dword [edi + 0x18], 0
jne 0x4b56bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
mov al, bl
pop ebx
pop edi
pop esi
ret