joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b32c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMalwarebytesmbam
push 0x80000001
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x443033
cmp byte [0x4e7ac4], al
push 4
setne al
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push str.dtopicon
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x442fb9
push dword [ebp - 0x1c]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4430a2
mov dword [ebp - 4], 0
call fcn.00403a40
mov ecx, eax
test ecx, ecx
je 0x4430bf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push str.Error_calling_RegSetValueExW__0x_08X_
push eax
call fcn.0040f680
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov edx, 0x33c
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbutils.cpp
push esi
call fcn.004413d0
add esp, 4
add esi, 0xfffffff0
mov dword [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x443028
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4430a2
mov dword [ebp - 4], 3
call fcn.00403a40
mov ecx, eax
test ecx, ecx
je 0x4430c9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 4
push str.Error_calling_RegCreateKeyExW__0x_08X_
push eax
call fcn.0040f680
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov edx, 0x345
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbutils.cpp
push esi
call fcn.004413d0
add esp, 4
add esi, 0xfffffff0
mov dword [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4430a2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403bb0
push 0x80004005
call fcn.00403bb0
int3
Function at 0x443880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b33d8
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
push 0
push eax
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x443904
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret
call fcn.00403a40
mov ecx, eax
test ecx, ecx
je 0x443a53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x443946
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.0041c0e0
jmp 0x443972
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443950
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.0040c650
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x220]
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
test ecx, ecx
js 0x443a49
cmp ecx, eax
jg 0x443a49
cmp word [esi + ecx*2], 0x5c
jne 0x4439b0
push 1
push ecx
lea ecx, [ebp - 0x220]
call fcn.00449c50
mov esi, dword [ebp - 0x220]
mov eax, dword [ebx]
lea edi, [esi - 0x10]
mov edx, dword [edi + 4]
cmp dword [eax - 0xc], edx
jl 0x4439f3
push edx
push 0
lea eax, [ebp - 0x228]
mov ecx, ebx
push eax
call fcn.00436730
mov byte [ebp - 4], 2
mov dword [ebp - 0x224], 1
test esi, esi
je 0x443a5d
push esi
push dword [eax]
call fcn.0048cdc7
add esp, 8
test eax, eax
jne 0x4439f3
mov bl, 1
jmp 0x4439f5
xor bl, bl
mov dword [ebp - 4], 1
or esi, 0xffffffff
test byte [ebp - 0x224], 1
je 0x443a29
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x443a29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 5
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x443a42
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x4438e8
push 0x80070057
call fcn.00403bb0
push 0x80004005
call fcn.00403bb0
push 0x80004005
call fcn.00403bb0
int3
Function at 0x443a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3421
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
call fcn.00403a40
mov ecx, eax
test ecx, ecx
je 0x443c11
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0x4b953c
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
or edi, 0xffffffff
test eax, eax
jne 0x443bcb
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x443afc
xor ecx, ecx
jmp 0x443b10
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443b01
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0040c650
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
test ecx, ecx
js 0x443c07
cmp ecx, eax
jg 0x443c07
cmp word [esi + ecx*2], 0x5c
jne 0x443b58
push 1
push ecx
lea ecx, [ebp - 0x14]
call fcn.00449c50
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx]
mov edx, dword [esi - 0xc]
cmp dword [eax - 0xc], edx
jl 0x443b96
push edx
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.00436730
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], 1
test esi, esi
je 0x443c1b
push esi
push dword [eax]
call fcn.0048cdc7
add esp, 8
test eax, eax
jne 0x443b96
mov bl, 1
jmp 0x443b98
xor bl, bl
mov dword [ebp - 4], 1
test byte [ebp - 0x1c], 1
je 0x443bc3
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x443bc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x443bcb
mov bl, 1
jmp 0x443bcd
xor bl, bl
add esi, 0xfffffff0
mov dword [ebp - 4], 6
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x443be9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403bb0
push 0x80004005
call fcn.00403bb0
push 0x80004005
call fcn.00403bb0
int3
Function at 0x44a7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3a47
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x48
call fcn.0046ec3e
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0xc]
mov dword [edi + 4], 1
lea ecx, [esi + 4]
mov dword [edi + 8], 1
xor eax, eax
mov dword [edi], vtable.std::_Ref_count_obj_class_MBAMService_.0
mov dword [esi], vtable.MBAMService.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x14], esi
mov word [ecx], ax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
push 0xb
mov byte [ebp - 4], 8
push str.MBAMService
mov byte [esi + 0x34], 1
call fcn.00407920
xorps xmm0, xmm0
mov eax, ebx
movq qword [ebx], xmm0
mov dword [ebx], esi
mov dword [ebx + 4], 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 0x44e5a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x44e658
push 0x228
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.00486d70
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x44e63f
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x230], edi
je 0x44e637
lea eax, [ebp - 0x238]
push eax
push esi
call ebx
test eax, eax
jne 0x44e605
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x220]
jmp 0x44e61d
push str.Process32First___failed
mov edx, 0x76
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetup_setuputils.cpp
call fcn.004413d0
add esp, 4
jmp 0x44e61d
push str.CreateToolhelp32Snapshot___failed
mov edx, 0x7d
mov ecx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetup_setuputils.cpp
call fcn.004413d0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046e70f
mov esp, ebp
pop ebp
ret
Function at 0x459b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4c80
mov eax, dword fs:[0]
push eax
push ebx
push ecx
push esi
mov eax, dword [0x4e706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00459660
mov ecx, dword [ebx + 8]
mov esi, eax
mov dword [ebp - 4], 0
mov word [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
movups xmm0, xmmword [ecx]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [esi + 0x20], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
push 0
mov byte [esi + 0x28], 0
call fcn.00456930
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x45f130
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5438
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 1
push str.MBSetup
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x45f224
lea ecx, [ebp - 0x30]
call fcn.0045ef40
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x45f18d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb4d8
call fcn.00410550
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_setuputilities.cpp
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f730
push 0x231
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_Error_on_WinHttpOpen:
mov ecx, eax
call fcn.0040f730
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004186b0
push eax
call fcn.0040faa0
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x45f220
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45f216
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f2a6
push edx
push ecx
call fcn.0046ec30
add esp, 8
xor eax, eax
jmp 0x45f28b
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0x14]
push 4
push eax
push 0x54
push edi
mov dword [ebp - 0x18], 0x2a0
mov dword [ebp - 0x14], 0xaa0
call esi
test eax, eax
jne 0x45f289
push 4
lea eax, [ebp - 0x18]
push eax
push 0x54
push edi
call esi
test eax, eax
jne 0x45f289
mov edx, str.Error_on_WinHttpSetOption_SECURE_PROTOCOLS_:
mov ecx, 0x4eb4d8
call fcn.0040f730
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004186b0
push eax
call fcn.0040faa0
add esp, 4
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x45f28b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret
call fcn.00489b7c
int3
Function at 0x471886
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4a045b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a0102

Function at 0x4a0466
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a028c
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40bc43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40bc52
pop dword [ebp - 0x1c]
mov eax, 0x24e01386
sub eax, 0x249f5734
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x36f31
push 0
mov eax, 0xf9bd39cb
sub eax, 0xf97c58f3
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xb83dcb37
add ecx, 0x47c272b7
xor edi, edi
add edi, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x1c]
mov esi, 0xba592880
xor dword [ebp - 0x14], 0x18cd7dae
mov ebx, dword [edx]
sub dword [ebp - 0xc], 0x47adbef2
sub ebx, esi
add dword [ebp - 0x10], 0x7c54d17b
mov dword [edi], ebx
mov dword [ebp - 0x10], 0x4079571d
add edi, 0x67cf5b1a
add edi, 0x9830a4ea
add edx, 0xcd3a6b79
add edx, 0x32c5948b
loop 0x40bca7
add eax, 0x2d06300c
add eax, 0xd2faba7f
mov ebx, eax
add eax, 0xca7ab086
sub eax, 0xca7ab081
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x408e00
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x408e21
jl 0x408e17
test esi, esi
jne 0x408e21
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x408ed4
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.00404630
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x408e91
jg 0x408e59
test esi, esi
je 0x408e91
cmp ebp, eax
jg 0x408e69
jl 0x408e63
cmp edi, esi
jae 0x408e69
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0040d290
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x408eb0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x408ec0
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x408e40
jl 0x408ec0
test edi, edi
jne 0x408e40
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x408f19
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x408f20
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0040d290
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x408f20
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x408f89
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408f4a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x408f74
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.0041555f
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x408f89
cmp edi, eax
ja 0x408f52
test edi, edi
je 0x408f89
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.0041555f
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x40cb88
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40cbc7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cbc7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cbc7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40cbc7
cmp dword [ecx + 0x74], 0xe
jbe 0x40cbc7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41e15b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432890
push 0x432888
push str.FlsAlloc
push 0x1e
call fcn.0041e025
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e18f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e160]
call esi
jmp 0x41e195
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e1d9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4328a0
push 0x432898
push str.FlsGetValue
push 0x20
call fcn.0041e025
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e210
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41fa89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f72b

Function at 0x41fa94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f8ba

Function at 0x41fe8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ccf0
mov eax, dword [0x48f4c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041e78e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41fed0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42002c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042ca50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x491490]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042105e
mov ecx, dword [esi*4 + 0x491490]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x420025
cmp eax, dword [edi + ecx + 0x24]
jne 0x420025
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420025
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042105e
add esp, 0x14
test edx, edx
jl 0x420025
jg 0x41ff9b
test eax, eax
jb 0x420025
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420025
jl 0x41ffb5
cmp dword [ebp - 0x1008], eax
ja 0x420025
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ffd3
test ebx, ebx
je 0x42000c
cmp ecx, edi
jae 0x42000c
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ffed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41fff9
cmp byte [ecx + 1], 0xa
jne 0x41fff9
inc ecx
jmp 0x41fff9
movzx eax, al
movsx eax, byte [eax + 0x48f780]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ffd3
cmp edx, ebx
jne 0x41ffd3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42002a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040bf45
leave
ret
Function at 0x4204fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x491490]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42053c
cmp byte [ebx], 0xa
jne 0x42053c
or byte [eax + edi + 0x28], 4
jmp 0x420541
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42063f
mov al, byte [edx]
cmp al, 0x1a
je 0x420621
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420570
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420595
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42059f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x420552
jmp 0x42063f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42061c
cmp dword [ebp - 0xc], 0
je 0x42061c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x491490]
test byte [eax + edi + 0x28], 0x48
je 0x4205f6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4205e1
mov byte [esi], dl
jmp 0x4205f2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x491490]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42063f
cmp byte [ebp - 1], 0xa
jne 0x420605
cmp esi, ebx
jne 0x420605
mov byte [esi], 0xa
jmp 0x42063e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042107c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42063f
mov byte [esi], 0xd
jmp 0x42063e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x491490]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42063b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42063f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret