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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419510]
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.0040aec6
and dword [ebp - 0x14], 0
cmp dword [0x430590], 0
mov dword [ebp - 0x18], eax
jne 0x410ed6
push 0x4038dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410f7e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4038d0
push ebx
call edi
test eax, eax
je 0x410f7e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4038c0
push ebx
mov dword [0x430590], eax
call edi
push eax
call esi
push 0x4038ac
push ebx
mov dword [0x430594], eax
call edi
push eax
call esi
push 0x403890
push ebx
mov dword [0x430598], eax
call edi
push eax
call esi
mov dword [0x4305a0], eax
test eax, eax
je 0x410ed6
push 0x403878
push ebx
call edi
push eax
call esi
mov dword [0x43059c], eax
mov eax, dword [0x43059c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410f2f
cmp dword [0x4305a0], ecx
je 0x410f2f
push eax
call esi
push dword [0x4305a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410f2f
test ebx, ebx
je 0x410f2f
call edi
test eax, eax
je 0x410f26
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410f26
test byte [ebp - 8], 1
jne 0x410f2f
or dword [ebp + 0x10], 0x200000
jmp 0x410f62
mov eax, dword [0x430594]
cmp eax, dword [ebp - 0x18]
je 0x410f62
push eax
call esi
test eax, eax
je 0x410f62
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410f62
mov eax, dword [0x430598]
cmp eax, dword [ebp - 0x18]
je 0x410f62
push eax
call esi
test eax, eax
je 0x410f62
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430590]
call esi
test eax, eax
je 0x410f7e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410f80
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408b01
leave
ret
Function at 0x4135a0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.00411990
cmp dword [0x7b432c], 0x37
jne 0x41363a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x810]
push eax
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 ecx, dword [0x7b5320]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x43537c]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x4138c0
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b432c]
sub esp, 0x974
push ebx
push ebp
push esi
mov esi, dword [0x43537c]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x413abf
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4138f6
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7b432c], 0x1c
jne 0x41390d
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x42c210]
mov ebx, dword [0x42c218]
mov ebp, dword [0x42c21c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42c214]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x413956
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7b429c], edi
mov eax, dword [esp + 0x1c]
add dword [0x7b429c], eax
mov eax, dword [0x7b429c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0x7b432c], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x4139ed
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x7b432c], 0x979
mov dword [0x7b42a0], 0xff6b3619
mov dword [0x7b42a4], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x413a37
push 0
lea ecx, [esp + 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0x7b432c]
cmp eax, 0x93
je 0x413a5d
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x413950
cmp eax, 0x8d4
jne 0x413a74
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0x7b432c], 0x17
jne 0x413aae
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x40]
push edx
push 0x404080
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x4138f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x974
ret
Function at 0x43cf5a
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43ccda
and ecx, ecx
call fcn.0043cf78
xor dword [edx], esi
mov ecx, ecx
inc edx
cmp edx, eax
jne fcn.0043cf5a
sub ecx, edi
ret
Function at 0x853b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x894c60]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00871950
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x853bcf
cmp dword [ebp + 0xc], 0
jne 0x853bd9
jmp 0x853caa
cmp dword [ebp + 0x10], 0
je 0x853c2e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x853bf7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x853c32
jmp 0x853caa
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [0x886244]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0087053b
add esp, 0xc
push 0x88f14c
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0086ffe2
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x853c7e
jmp 0x853caa
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00870858
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00870290
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0086fd66
mov esp, ebp
pop ebp
ret
Function at 0x853fe0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0x3e8
call dword [0x88625c]
push 0x88f1ec
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0086ffe2
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x854034
jmp 0x854156
push 2
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00870ccf
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.00870ef1
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.008659fc
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00870ccf
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.00870858
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
je 0x8540a3
jmp 0x85412c
call dword [0x886248]
push eax
call fcn.00870c11
add esp, 4
push 0x32
push 0xa
call fcn.00853f10
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jge 0x8540cd
jmp 0x85412c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
push ecx
call fcn.00853f60
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.00870290
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [0x88623c]
push 0x88f284
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0086ffe2
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x854116
jmp 0x854156
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.00870197
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x85413e
mov eax, dword [ebp - 4]
push eax
call fcn.00870290
add esp, 4
cmp dword [ebp - 8], 0
je 0x854156
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.008659f1
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x8571f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x857225
cmp dword [ebp + 0xc], 0xa
jae 0x857236
mov dword [ebp - 0x10], 0xffffffff
jmp 0x85730d
mov eax, dword [ebp + 0xc]
shl eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.0086fdc4
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00857130
add esp, 0x14
test eax, eax
je 0x857306
push 0x88e27c
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0086ffe2
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x85729b
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x85730d
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call fcn.00870197
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x8572c7
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x85730d
call dword [0x886248]
xor edx, edx
mov ecx, 0x1f4
div ecx
mov dword [ebp - 0x20], edx
call dword [0x886248]
xor edx, edx
mov ecx, 0x3e8
div ecx
add edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00870197
add esp, 0x10
jmp 0x85730d
mov dword [ebp - 0x10], 0xfffffffd
cmp dword [ebp - 0x14], 0
je 0x85731f
mov edx, dword [ebp - 0x14]
push edx
call fcn.00870290
add esp, 4
cmp dword [ebp - 4], 0
je 0x857331
mov eax, dword [ebp - 4]
push eax
call fcn.0086fe8e
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x85aa20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x85aa30
xor eax, eax
jmp 0x85abcd
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x85ab8e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x88d5c0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x88d5c0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x88d5c0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x88d5c0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x88d5c0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x88d5c0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x88d5c0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x88d5c0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x85aa39
cmp dword [ebp + 0x10], 0
je 0x85abc7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x88d5c0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x85ab94
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x410c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x410c7e
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x410c8a
mov al, 1
jmp 0x410e03
mov dword [ebp - 0x20], 8
call fcn.00413280
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x14], eax
call fcn.00413280
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004132b0
add esp, 8
movzx eax, al
test eax, eax
je 0x410ccd
xor al, al
jmp 0x410e03
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.0040e6b0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x48]
call fcn.00412980
mov ecx, eax
call fcn.0040f930
mov esi, eax
lea ecx, [ebp - 0x48]
call fcn.004152f0
add esi, eax
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00412980
mov ecx, eax
call fcn.0040f930
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
call fcn.00415870
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x410d41
cmp dword [ebp - 0x10], 1
je 0x410d48
cmp dword [ebp - 0x10], 3
je 0x410dd4
jmp 0x410de5
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00412980
mov ecx, eax
call fcn.0040f930
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0xc], edx
je 0x410da4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00412980
mov ecx, eax
call fcn.0040f930
push eax
call fcn.0041d1c9
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x410da4
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x48]
call fcn.0040f2d0
mov al, byte [ebp - 1]
jmp 0x410e03
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x410dc0
mov byte [ebp - 2], 1
lea ecx, [ebp - 0x48]
call fcn.0040f2d0
mov al, byte [ebp - 2]
jmp 0x410e03
cmp dword [ebp - 0xc], 0
jne 0x410dd2
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.004124f0
jmp 0x410df6
mov byte [ebp - 3], 1
lea ecx, [ebp - 0x48]
call fcn.0040f2d0
mov al, byte [ebp - 3]
jmp 0x410e03
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040f2d0
mov al, byte [ebp - 4]
jmp 0x410e03
jmp 0x410cd9
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4239ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423830
Function at 0x41d635
Capabilities:
Parse pe header

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

Function at 0x4297bf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e708
push 0x43e700
push str.FlsAlloc
push 0x1e
call fcn.0042962c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4297f3
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a134]
call esi
jmp 0x4297f9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42983d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e718
push 0x43e710
push str.FlsGetValue
push 0x20
call fcn.0042962c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429874
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x405d20
Capabilities:
Query environment variable

Disassembly:
pop edi
pop esi
mov byte [eax], dl
jl 0x405ca5
push esp
add byte [ebp + 0x7f], bl
adc byte [eax], al
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + eax*4]
push edx
inc ebp
mov cl, 0x89
adc byte [esi + eax*2 + 0x4102c0ad], ah
movsb byte es:[edi], byte [esi]
inc esi
lodsd eax, dword [esi]
rol byte [edx], 0x41
add bh, bh
dec edi
or al, 0x8b
push ecx
adc cl, ch
dec esi
adc byte [edx], dh
mov cl, 0xc0
cli
or bl, byte [esi + 0x5d]
ret 0x10
cmp byte [edx], 0
jne 0x405c8d
jb 0x405d19
or al, 0x7f
inc esi
add al, 0x29
sal byte [esp - 0x80], 0x3f
cmp ah, byte [ecx + 0x1c4e8b1f]
or dword [esi + 0x10], eax
push eax
jns 0x405cfa
jecxz 0x405cd3
xchg ecx, eax
dec eax
add byte [eax + 0x8468b50], cl
and byte [ecx], dh
jnp 0x405d37
add byte [eax + 0x13], dl
push esi
cdq
sbb dword [eax], 0xc
mov edx, dword [ebp + 0x7b]
mov dl, dh
adc byte [edi - 0x48], bl
jl 0x405d7d
add dword [eax], eax
mov byte [edx], cl
pop esi
pop ebp
ret 0x5e10
xchg byte [eax - 0x6f7b6f8d], dl
nop
push ebp
mov ebp, esp
push ecx
in eax, 0xa3
call 0xd377b9
test eax, eax
punpckhwd mm7, mm5
add byte [esi], bl
add byte [edi + 0x3d], bh
in al, dx
or byte [ecx - 0x5b], al
inc ecx
movsd dword es:[edi], dword [esi]
adc al, 0xf
mov esi, gs
mov dword [ebx], esp
add byte [ecx + 0x410384], ah
test dword [edi + ecx - 0x7b], edi
loope 0x405ccc
cmp dword [eax + eax], 0x695705c7
inc ecx
add byte [ecx], al
add byte [eax], al
add bh, bh
adc eax, 0x9cc05c
cmp al, 0
mov dword [0x416957], 1
call dword [0x9cc05c]
mov esi, eax
test esi, esi
je 0x405db3
mov eax, dword [0x410358]
sub al, al
jne 0x405d4a
push eax
push 0x406a10
int 4
call fcn.0040a8fc
add esp, 0xc
mov dword [0x417058], eax
xor eax, eax
aas
test byte [edi - 0x12ffff55], ch
scasd eax, dword es:[edi]
stosd dword es:[edi], eax
add byte [eax], al
in eax, dx
pop eax
jo 0x405dc1
add byte [ebx], dh
sar byte [edi], 0x84
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [0x90c105]
push eax
add eax, 0x500090c1
call 0x405e50
mov edi, dword [ebp + 0x10]
cmp edi, 0xc
cmp bh, bh
je 0x405e4c
lea esi, [eax*4 + 0xbc0004]
int3
nop
or al, 0x90
nop
push ebp
mov esi, dword [ebp + 0x51]
into
inc ebp
or al, 0x13
mov ebx, dword [ebp + 0x10]
push esi
test ebx, ebx
push edi
jge 0x405e79
mov ebx, 1
cmp word [eax], 0
jne 0x405e74
pop ss
js 0x405e72
add byte [esi + eax + 0x45], dh
push es
inc ebp
add eax, 0x68
jmp 0x405e66
sub edx, dword [edi + 0xc]
retf 0x2c0

Function at 0x40a322
Capabilities:
Encode data using xor

Disassembly:
call fcn.0040a1de
mov ecx, 0x220
call 0x40a322
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x40a325
ljmp 0xf3b6:0xda8d5821
Function at 0x40a5d0
Capabilities:
Encode data using xor

Disassembly:
pop ebx
mov ebp, esp
pop esp
in al, dx
sbb byte [ebx - 0x75], dl
pop ebp
cmp dh, ah
fist dword [edi - 0x39]
inc ebp
mov bl, 0
add byte [ecx], ah
jge 0x40a5f9
mov eax, dword [ebp + 0xc]
xor ebp, dword [edx + ecx*2]
cmp byte [eax], al
je 0x40a5f9
mov esi, ebx
std
add al, 0x43
mov ecx, 0x8df775c9
add al, 0x48
lea eax, [eax + ecx*2]
add al, 0
add byte [eax], al
push esi
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
adc al, ah
add al, 0x8b
dec esi
test ebx, ebx
mov dword [ebp - 0xc], edi
xor byte [esi], dh
rol dword [ebp + 0xc], 0x99
imul dword [ebx]
invalid