joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406900
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81133b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404bdc
call fcn.00407561
push 4
mov dword [esp + 0x18], 0
call fcn.00408406
mov edi, eax
add esp, 4
test edi, edi
je 0x406974
push ebx
call fcn.00407439
mov dword [edi], eax
call fcn.004071f8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407522
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406968
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040754a
pop ebx
jmp 0x406976
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408e71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x815520]
jne 0x408e7b
repz ret
jmp fcn.0040d5cc
Function at 0x412212
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x815520]
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.0040b571
and dword [ebp - 0x14], 0
cmp dword [0x81aa94], 0
mov dword [ebp - 0x18], eax
jne 0x4122c5
push 0x403a84
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41236d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403a78
push ebx
call edi
test eax, eax
je 0x41236d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403a68
push ebx
mov dword [0x81aa94], eax
call edi
push eax
call esi
push 0x403a54
push ebx
mov dword [0x81aa98], eax
call edi
push eax
call esi
push 0x403a38
push ebx
mov dword [0x81aa9c], eax
call edi
push eax
call esi
mov dword [0x81aaa4], eax
test eax, eax
je 0x4122c5
push 0x403a20
push ebx
call edi
push eax
call esi
mov dword [0x81aaa0], eax
mov eax, dword [0x81aaa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41231e
cmp dword [0x81aaa4], ecx
je 0x41231e
push eax
call esi
push dword [0x81aaa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41231e
test ebx, ebx
je 0x41231e
call edi
test eax, eax
je 0x412315
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412315
test byte [ebp - 8], 1
jne 0x41231e
or dword [ebp + 0x10], 0x200000
jmp 0x412351
mov eax, dword [0x81aa98]
cmp eax, dword [ebp - 0x18]
je 0x412351
push eax
call esi
test eax, eax
je 0x412351
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412351
mov eax, dword [0x81aa9c]
cmp eax, dword [ebp - 0x18]
je 0x412351
push eax
call esi
test eax, eax
je 0x412351
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81aa94]
call esi
test eax, eax
je 0x41236d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41236f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408e71
leave
ret
Function at 0x80efa0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9e834], 0x37
jne 0x80f039
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x410]
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_WriteConsoleInputW]
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_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x4042c4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0xb9f828]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81f884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80f2a0
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9e834]
sub esp, 0x434
push ebx
push ebp
push esi
mov esi, dword [0x81f884]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x80f499
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x80f2d6
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0xb9e834], 0x1c
jne 0x80f2ed
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 [0x816700]
mov ebx, dword [0x816708]
mov ebp, dword [0x81670c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x816704]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x80f336
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 [0xb9e7a4], edi
mov eax, dword [esp + 0x1c]
add dword [0xb9e7a4], eax
mov eax, dword [0xb9e7a4]
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 [0xb9e834], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x80f3cd
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 [0xb9e834], 0x979
mov dword [0xb9e7a8], 0xff6b3619
mov dword [0xb9e7ac], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x80f411
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
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 [0xb9e834]
cmp eax, 0x93
je 0x80f437
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x80f330
cmp eax, 0x8d4
jne 0x80f44e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
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 [0xb9e834], 0x17
jne 0x80f488
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x40]
push ecx
push 0x404250
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x80f2d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret
Function at 0x401cca
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov esi, ebx
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xea
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x3d
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x5e
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xe0
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 4
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xc4
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xb7
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xfe
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xe
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xd7
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x68
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x84
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x6b
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xd6
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x6b
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xe3
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x5a
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x64
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x63
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0x2e
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x3c
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x70
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x74
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x56
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x4b
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0xe2
push ebx
push ebx
push ebx
call edi
xor byte [esi + section..BSS], 0xce
push ebx
push ebx
push ebx
call edi
add byte [esi + section..BSS], 0x72
push ebx
push ebx
push ebx
call edi
inc byte [esi + section..BSS]
inc esi
cmp esi, 0x2d200
jb 0x401cd7
pop edi
pop esi
pop ebx
ret
Function at 0x401e43
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x10]
mov edi, dword [eax]
mov ebp, edi
xor ebp, 0x14d
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], 0x10
jb 0x401e65
mov esi, dword [esi]
shr edi, 2
xor ebx, ebx
mov dword [esp + 0x18], edi
test edi, edi
je 0x401ec2
mov dword [esp + 0x14], edi
mov edi, esi
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidAcl]
push 4
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00408b60
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebp, ebp, 0x5bd1e991
add edi, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov dword [esp + 0x10], eax
sub dword [esp + 0x14], 1
jne 0x401e78
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
and eax, 3
sub eax, 1
je 0x401ee8
sub eax, 1
je 0x401ede
sub eax, 1
jne 0x401ef6
movsx ebx, byte [esi + edi*4 + 2]
shl ebx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ebx, eax
movsx eax, byte [esi + edi*4]
xor eax, ebx
imul eax, eax, 0x5bd1e991
xor ebp, eax
mov eax, ebp
shr eax, 0xd
xor eax, ebp
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x10
ret

Function at 0x401f12
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x435018]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x465200]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x401f81
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.0040249b
test esi, esi
je 0x401f6e
lea ecx, [esp + 0x1c]
call fcn.00401e43
test eax, eax
je 0x401f6e
cmp eax, dword [esp + 0x14]
je 0x401f99
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402d59
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x401f49
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407f53
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402d59
jmp 0x401f83
Function at 0x4021e4
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x435018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.Cleared
call fcn.00401176
pop ecx
call fcn.00403974
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
clc
jae 0x402218
call 0x63db18
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x402226
call 0x3dcb8724
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x465200], eax
stc
jb 0x402244
call 0x541b560c
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_WindowFromDC]
push 8
call fcn.00407f61
pop ecx
push 4
mov edi, eax
call fcn.00407f61
pop ecx
lea esi, [edi + 4]
push esi
push ebx
push eax
push 0x4044be
push ebx
push ebx
mov dword [eax], 0x4021d7
call fcn.0040c76b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x402329
mov ecx, edi
call fcn.00401c8b
push 0xc
mov dword [ebp - 0x10], 0x422e28f6
mov dword [ebp - 0xc], 0x440762a0
mov dword [ebp - 8], 0x3f443958
call fcn.00404460
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push 0xc
push eax
push edi
lea esi, [edi + 0xc]
call fcn.00408b60
add esp, 0xc
push 3
call fcn.00402333
push eax
call fcn.00403b37
lea eax, [edi + 0xc]
mov dl, bl
pop ecx
cmp edi, eax
je 0x402306
mov esi, edi
lea ebx, [edi + 0xc]
movss xmm0, dword [esi]
mov cl, dl
comiss xmm0, dword [0x4327e8]
lea eax, [ecx + 1]
movzx edx, al
movzx eax, cl
cmovbe edx, eax
add esi, 4
cmp esi, ebx
jne 0x4022d8
lea esi, [edi + 0xc]
push 0
pop ebx
cmp dl, 5
jbe 0x402306
or ebx, 0xffffffff
test edi, edi
je 0x402318
sub esi, edi
and esi, 0xfffffffc
push esi
push edi
call fcn.00403f7b
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407f53
leave
ret
push 6
mov dword [esi], ebx
call fcn.004047b4
int3
Function at 0x405b69
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 0x405b8a
jl 0x405b81
test edi, edi
jne 0x405b8a
xor eax, eax
xor edx, edx
jmp 0x405c4b
cmp dword [ebx + 0x38], 0
je 0x405b9f
push eax
push edi
push dword [ebp + 8]
call fcn.00405c51
jmp 0x405c4b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405be6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405be6
cmp eax, edi
jb 0x405bc0
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408b60
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 0x405bec
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405c40
mov ecx, ebx
call fcn.00405280
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x405c2b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041050b
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 0x405c40
jmp 0x405bfe
test edx, edx
je 0x405c40
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041050b
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 0x40874a
Capabilities:
Parse pe header

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

Function at 0x415f1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ac7c
push 0x42ac74
push str.FlsAlloc
push 0x1e
call fcn.00415d4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415f51
push dword [ebp + 8]
mov ecx, esi
call dword [0x427164]
call esi
jmp 0x415f57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415f9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ac8c
push 0x42ac84
push str.FlsGetValue
push 0x20
call fcn.00415d4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415fd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x427164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419b56
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004197f8

Function at 0x419b61
Capabilities:
Read file on windows

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

Function at 0x419f5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408ab0
mov eax, dword [0x435018]
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.00417bb9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419f9d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a0f9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425a00
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 + 0x436d88]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b12b
mov ecx, dword [esi*4 + 0x436d88]
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 0x41a0f2
cmp eax, dword [edi + ecx + 0x24]
jne 0x41a0f2
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 0x41a0f2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b12b
add esp, 0x14
test edx, edx
jl 0x41a0f2
jg 0x41a068
test eax, eax
jb 0x41a0f2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a0f2
jl 0x41a082
cmp dword [ebp - 0x1008], eax
ja 0x41a0f2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a0a0
test ebx, ebx
je 0x41a0d9
cmp ecx, edi
jae 0x41a0d9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a0ba
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a0c6
cmp byte [ecx + 1], 0xa
jne 0x41a0c6
inc ecx
jmp 0x41a0c6
movzx eax, al
movsx eax, byte [eax + 0x4352c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a0a0
cmp edx, ebx
jne 0x41a0a0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a0f7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407f53
leave
ret
Function at 0x431bc0
Capabilities:
Encode data using xor

Disassembly:
cmp ebp, 7
jae 0x431c02
mov ecx, 1
lea esp, [esp]
mov eax, dword [esp - 0x34]
int3
stc
xor byte [eax], dl
inc esi
test edx, ebp
inc ebp
sub bl, byte [0x6f22fbe9]
cmp eax, 0x18282fb8
lahf
in eax, 0x43
wait
xor edi, dword [edx + 0x7d]
sahf
shl ah, cl
jg 0x431c3e
sti
mov eax, dword [0xea76417b]
aaa
dec di
out dx, al
jg 0x431b9c
and al, 0x77
ror dword ds:[ecx + 0x13], 0x9c
dec esp
invalid
fistp word [eax]
xchg edx, ecx
push ebp
inc ebx
add bh, byte [0x1fa73293]
cmpsd dword [esi], dword es:[edi]
cmp eax, 0x5bdf7bba
inc eax
fidivr dword [bx + si]
leave
cmp esp, dword [eax + 0x1a74da74]
or al, 0xb1
or ebx, ebp
cli
mov edi, 0x18c55615
and ebx, esp
shl dword [ebx + 0x5b], 1
pop esi
inc esp
insd dword es:[edi], dx
push edi
fucomp st(6)
mov ch, 0x88
mov al, byte [0x7fef429f]
out dx, eax
and ebp, esi
out dx, al
fmul st(6), st(0)
invalid

Function at 0x4c5346
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cc5b8
cmp edx, dword [eax]
je 0x4c5368
add eax, 8
inc ecx
cmp eax, 0x4cc648
jl 0x4c5359
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cc5b8]
jne 0x4c5496
mov eax, dword [0x4d0cc0]
cmp eax, 1
je 0x4c5470
test eax, eax
jne 0x4c5399
cmp dword [0x4cc4fc], 1
je 0x4c5470
cmp edx, 0xfc
je 0x4c5496
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c53d0
lea eax, [ebp - 0x1a4]
push 0x4c9844
push eax
call fcn.004c5a60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c5c90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c5413
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c5c90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c9840
push edi
call fcn.004c7460
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c9824
push eax
call fcn.004c5a60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c5a70
lea eax, [ebp - 0xa0]
push 0x4c9820
push eax
call fcn.004c5a70
push dword [esi + 0x4cc5bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c5a70
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c97f8
push eax
call fcn.004c73d4
add esp, 0x2c
pop edi
jmp 0x4c5496
lea eax, [ebp + 8]
lea esi, [esi + 0x4cc5bc]
push 0
push eax
push dword [esi]
call fcn.004c5c90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret