joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410aa7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040aa83
and dword [ebp - 0x14], 0
cmp dword [0x4359ac], 0
mov dword [ebp - 0x18], eax
jne 0x410b5a
push 0x403e78
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410c02
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e6c
push ebx
call edi
test eax, eax
je 0x410c02
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e5c
push ebx
mov dword [0x4359ac], eax
call edi
push eax
call esi
push 0x403e48
push ebx
mov dword [0x4359b0], eax
call edi
push eax
call esi
push 0x403e2c
push ebx
mov dword [0x4359b4], eax
call edi
push eax
call esi
mov dword [0x4359bc], eax
test eax, eax
je 0x410b5a
push 0x403e14
push ebx
call edi
push eax
call esi
mov dword [0x4359b8], eax
mov eax, dword [0x4359b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410bb3
cmp dword [0x4359bc], ecx
je 0x410bb3
push eax
call esi
push dword [0x4359bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410bb3
test ebx, ebx
je 0x410bb3
call edi
test eax, eax
je 0x410baa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410baa
test byte [ebp - 8], 1
jne 0x410bb3
or dword [ebp + 0x10], 0x200000
jmp 0x410be6
mov eax, dword [0x4359b0]
cmp eax, dword [ebp - 0x18]
je 0x410be6
push eax
call esi
test eax, eax
je 0x410be6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410be6
mov eax, dword [0x4359b4]
cmp eax, dword [ebp - 0x18]
je 0x410be6
push eax
call esi
test eax, eax
je 0x410be6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4359ac]
call esi
test eax, eax
je 0x410c02
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410c04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085bd
leave
ret
Function at 0x427b80
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe44
cmp dword [0x7b9714], 0x37
jne 0x427c16
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [esp + 0x644]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x7ba708]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + esi]
mov edx, dword [0x7b967c]
mov byte [edx + esi], cl
add esp, 0xe44
ret
Function at 0x427e60
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b9714]
sub esp, 0x28c
push ebx
push ebp
push esi
mov esi, dword [0x7b967c]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x428057
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x427e96
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7b9714], 0x1c
jne 0x427ead
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [esi + 4]
mov edx, dword [0x4312c4]
mov eax, dword [esi]
mov ebp, dword [0x4312c0]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4312c8]
mov dword [esp + 0x30], edx
mov edx, dword [0x4312cc]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov ebx, 0x20
jmp 0x427ef6
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
mov ecx, eax
shl edx, 4
add edx, dword [esp + 0x34]
shr ecx, 5
add ecx, dword [esp + 0x28]
add eax, esi
xor edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [0x7b9680], edi
mov eax, dword [esp + 0x1c]
add dword [0x7b9680], eax
mov ecx, dword [0x7b9680]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x2c]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, ebp
cmp dword [0x7b9714], 0x1be
mov dword [esp + 0x10], ecx
lea edi, [esi + eax]
jne 0x427fb8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shr eax, 5
add eax, dword [esp + 0x30]
xor ecx, edi
mov dword [0x7b9688], 0xff6b3619
mov dword [0x7b968c], 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
add esi, 0x61c88647
dec ebx
jne 0x427ef0
cmp dword [0x7b9714], 0x8d4
jne 0x42800c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0x7b9714], 0x17
jne 0x428046
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x48]
push ecx
push 0x403ef8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x427e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28c
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x7fb1320e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x5d775d86
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0xb26058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b261a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb2607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2606a
add dl, dl
jne 0xb26089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb260dc
xor eax, eax
add dl, dl
jne 0xb26096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2617d
add dl, dl
jne 0xb260a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb260d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb26075
mov eax, 1
add dl, dl
jne 0xb260ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb260e1
sub eax, ebx
mov ebx, 1
jne 0xb26128
mov ecx, 1
add dl, dl
jne 0xb2610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb26119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb26105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb26075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb2613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb2614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb26136
cmp eax, 0x7d00
jae 0xb2616d
cmp eax, 0x500
jb 0xb26168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb26075
cmp eax, 0x7f
ja 0xb26170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb26075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb2619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb26075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4064a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
push esi
mov esi, eax
mov eax, 0xaaaaaaab
push edi
mov edi, edx
mul ebx
mov eax, edx
shr eax, 1
mov dword [ebp + 8], eax
mov edx, eax
je 0x406531
nop word [eax + eax]
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movsx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
movzx eax, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movsx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
movzx eax, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movsx eax, byte [edi + 2]
add edi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x4064d0
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2]
sub ebx, eax
sub ebx, 1
je 0x40658e
sub ebx, 1
jne 0x4065b9
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movsx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
movzx eax, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movsx eax, byte [edi + 1]
and eax, 0xf
pop edi
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
sub esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movsx eax, byte [edi]
and eax, 3
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
sub esi, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40af90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449130
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4610bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042328c
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00422861
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x41e6f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x18
test eax, eax
je 0x41e887
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x24]
push edi
cmp eax, 4
jb 0x41e733
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x41e718
mov dword [esp + 0x34], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
test eax, eax
je 0x41e883
cmp eax, 8
jb 0x41e868
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x41e765
cmp edi, ebx
jae 0x41e868
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x41e776
cmp edi, edx
jae 0x41e868
cmp eax, 0x40
jb 0x41e81c
mov edi, eax
mov ecx, eax
and edi, 0x3f
mov eax, esi
sub eax, ebx
mov dword [esp + 0x24], edi
sub ecx, edi
mov dword [esp + 0x10], eax
mov edi, edx
mov dword [esp + 0x20], ecx
sub edi, ebx
lea ecx, [ebx + 0x10]
mov ebx, dword [esp + 0x10]
mov eax, edx
sub eax, esi
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x20]
nop
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edx + ebp]
lea eax, [eax + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x60], xmm1
movups xmm1, xmmword [edi + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [ebx + ecx - 0x40], xmm1
mov ebx, dword [esp + 0x1c]
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [esp + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x41e7b0
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
jb 0x41e864
jmp 0x41e820
mov edi, edx
sub edi, ebx
and eax, 0xfffffff8
lea ecx, [ebx + ebp]
mov dword [esp + 0x20], eax
mov eax, esi
sub eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
nop word [eax + eax]
movq xmm1, qword [ecx + edi]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
add ebp, 8
pxor xmm1, xmm0
movq qword [ecx + edx - 8], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x41e840
mov edx, dword [esp + 0x18]
cmp ebp, eax
jae 0x41e883
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + esi - 1], cl
sub eax, 1
jne 0x41e871
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x422528
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x422549
jl 0x422540
test edi, edi
jne 0x422549
xor eax, eax
xor edx, edx
jmp 0x42260a
cmp dword [ebx + 0x38], 0
je 0x42255e
push eax
push edi
push dword [ebp + 8]
call fcn.00408be0
jmp 0x42260a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4225a5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4225a5
cmp eax, edi
jb 0x42257f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00424aa0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4225ab
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4225ff
mov ecx, ebx
call fcn.00421e9f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4225ea
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004334f1
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4225ff
jmp 0x4225bd
test edx, edx
je 0x4225ff
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004334f1
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x42417b
Capabilities:
Parse pe header

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

Function at 0x439999
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451ae8
push 0x451ae0
push str.FlsAlloc
push 0x1e
call fcn.00439806
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4399cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b150]
call esi
jmp 0x4399d3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x439a17
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451af8
push 0x451af0
push str.FlsGetValue
push 0x20
call fcn.00439806
mov esi, eax
add esp, 0x10
test esi, esi
je 0x439a4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43cc13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ca84

Function at 0x43d00d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004242e0
mov eax, dword [0x4610bc]
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.0043aebd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43d04f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43d1ab
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00447d40
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 + 0x465258]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0043e004
mov ecx, dword [esi*4 + 0x465258]
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 0x43d1a4
cmp eax, dword [edi + ecx + 0x24]
jne 0x43d1a4
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 0x43d1a4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043e004
add esp, 0x14
test edx, edx
jl 0x43d1a4
jg 0x43d11a
test eax, eax
jb 0x43d1a4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43d1a4
jl 0x43d134
cmp dword [ebp - 0x1008], eax
ja 0x43d1a4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43d152
test ebx, ebx
je 0x43d18b
cmp ecx, edi
jae 0x43d18b
mov al, byte [ecx]
cmp al, 0xd
jne 0x43d16c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43d178
cmp byte [ecx + 1], 0xa
jne 0x43d178
inc ecx
jmp 0x43d178
movzx eax, al
movsx eax, byte [eax + 0x461350]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43d152
cmp edx, ebx
jne 0x43d152
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43d1a9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00423272
leave
ret
Function at 0x43d4a2
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 + 0x465258]
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 0x43d4e2
cmp byte [ebx], 0xa
jne 0x43d4e2
or byte [eax + edi + 0x28], 4
jmp 0x43d4e7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43d5e5
mov al, byte [edx]
cmp al, 0x1a
je 0x43d5c7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43d516
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43d53b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43d545
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 0x43d4f8
jmp 0x43d5e5
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 0x43d5c2
cmp dword [ebp - 0xc], 0
je 0x43d5c2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x465258]
test byte [eax + edi + 0x28], 0x48
je 0x43d59c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43d587
mov byte [esi], dl
jmp 0x43d598
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x465258]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43d5e5
cmp byte [ebp - 1], 0xa
jne 0x43d5ab
cmp esi, ebx
jne 0x43d5ab
mov byte [esi], 0xa
jmp 0x43d5e4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043e022
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43d5e5
mov byte [esi], 0xd
jmp 0x43d5e4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x465258]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43d5e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43d5e5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret