joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40260a
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [0x46fc00]
xor eax, dword [ebp + 4]
and dword [ebp - 0x1c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x4075f0
mov dword [ebp - 0x10], 0x4068b8
mov dword [ebp - 0x18], 0xd
mov esi, 0x104
mov edi, 0x105
mov eax, dword [ebp - 0x10]
and dword [ebp - 0xc], 0
mov dword [ebp - 8], eax
push esi
push dword [ebp - 8]
call fcn.00401ea5
test eax, eax
je 0x402764
push esi
push 0x46f9d8
call fcn.00401ea5
test eax, eax
je 0x402698
push 0x46f9d8
push edi
lea eax, [ebp - 0x434]
push eax
call fcn.00401c08
push 0x401218
push edi
lea eax, [ebp - 0x434]
push eax
call fcn.00401e73
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x434]
push eax
call ebx
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x228]
push eax
call ebx
push 0x401218
push edi
lea eax, [ebp - 0x228]
push eax
call fcn.00401e73
push dword [ebp - 8]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00401e73
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402753
push eax
push 0x3e8
lea eax, [ebp - 0xc04]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x40155c
call fcn.00401faf
lea eax, [ebp - 0x228]
push eax
call fcn.00401faf
lea eax, [ebp - 0xc04]
push eax
call fcn.00401faf
push dword [ebp - 8]
mov dword [ebp - 0x1c], 1
push 0x401534
push esi
push str.N0_n
call fcn.00401e2b
add esp, 0x10
inc dword [ebp - 0xc]
add dword [ebp - 8], 0x1a
cmp dword [ebp - 0xc], 0xa
jb 0x402654
add dword [ebp - 0x10], esi
add dword [ebp - 0x14], 0x208
dec dword [ebp - 0x18]
jne 0x40264a
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
call fcn.00403138
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x59676267
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section._RDATA
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x382c1fef
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x215d4fc7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..pdata_1
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xf2e6809
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4052c0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x433180]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xd
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x405322
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x42e1e4
mov dword [esi + 0x14], 0
call fcn.004059e0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0040ed91
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
xorps xmm0, xmm0
test edx, edx
je 0x4052ee
mov ecx, edx
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea eax, [ecx + 2]
mov dword [esp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405350
sub ecx, dword [esp + 8]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004059e0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 0x14], 0
pop edi
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x1c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.0040ed91
mov esp, ebp
pop ebp
ret 4
Function at 0x405ad0
Capabilities:
Contain obfuscated stackstrings
Hash data using fnv

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 0x425b1f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x433180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov word [ebp - 0x18], cx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x4364e8]
cmp eax, dword [edx + 4]
jle 0x405c8b
push 0x4364e8
call fcn.0040ee20
add esp, 4
cmp dword [0x4364e8], 0xffffffff
jne 0x405c8b
mov dword [ebp - 4], 0
lea esi, [ebp - 0x58]
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0x90020
movups xmmword [0x43649c], xmm0
push 0xc
movups xmmword [0x4364ac], xmm0
mov dword [ebp - 0x54], 0xd000a
lea edi, [ebp - 0x18]
mov dword [ebp - 0x50], 0x7c002f
mov dword [ebp - 0x4c], 0x3b003d
mov dword [ebp - 0x48], 0x2e002c
mov dword [ebp - 0x44], 0x2d005f
mov dword [ebp - 0x40], 0x3f0021
mov dword [ebp - 0x3c], 0x400024
mov dword [ebp - 0x38], 0x250023
mov dword [ebp - 0x34], 0x26005e
mov dword [ebp - 0x30], 0x28002a
mov dword [ebp - 0x2c], 0x7b0029
mov dword [ebp - 0x28], 0x5b007d
mov dword [ebp - 0x24], 0x5c005d
mov dword [ebp - 0x20], 0x22003a
mov dword [ebp - 0x1c], 0x7e0027
mov dword [0x43649c], 0
mov dword [0x4364a0], 0
mov dword [0x4364a4], 0
call fcn.0040ee84
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x4364a0], eax
mov dword [0x4364a8], 0
mov dword [0x4364ac], 0
mov dword [0x4364b0], 0
mov byte [ebp - 4], 2
mov ecx, 0x4364a8
push eax
push 0x10
mov dword [0x4364b4], 7
mov dword [0x4364b8], 8
mov dword [0x43649c], 0x3f800000
call fcn.00407f20
mov byte [ebp - 4], 3
cmp esi, edi
je 0x405c71
nop word [eax + eax]
push esi
lea eax, [ebp - 0x60]
push eax
call fcn.00409c10
add esi, 2
cmp esi, edi
jne 0x405c60
push 0x426850
call fcn.0040f205
add esp, 4
push 0x4364e8
call fcn.0040edcf
add esp, 4
mov ax, word [ebp - 0x18]
movzx eax, al
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebp - 0x17]
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00409ba0
cmp dword [eax + 4], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040ed91
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x406980
Capabilities:
Check mutex on windows
Monitor clipboard content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x433180]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword fs:[0x2c]
push esi
push edi
mov ecx, dword [eax]
mov eax, dword [0x436498]
cmp eax, dword [ecx + 4]
jle 0x4069e3
push 0x436498
call fcn.0040ee20
add esp, 4
cmp dword [0x436498], 0xffffffff
jne 0x4069e3
push 0x42e774
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x436498
call fcn.0040edcf
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406ba1
call fcn.00406240
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push 0
push 0x42e1e4
lea ecx, [esp + 0x38]
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movaps xmmword [esp + 0x38], xmm0
mov dword [esp + 0x4c], 0
call fcn.004059e0
movups xmm0, xmmword [str.ClipboardWatcher]
mov ax, word [0x42e82c]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movups xmmword [esp + 0x80], xmm0
push 0
movups xmm0, xmmword [0x42e81c]
mov dword [esp + 0x4c], 0
mov byte [esp + 0x50], 0
movups xmmword [esp + 0x94], xmm0
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
mov byte [esp + 0x58], 0
mov word [esp + 0xa4], ax
mov dword [esp + 0xc], 0
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x10], 0x406c50
call esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x2c], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x406b98
push 0
push 0
call esi
push eax
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push str.Clipboard_Watcher
lea eax, [esp + 0xa8]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x406b98
push eax
call dword [sym.imp.USER32.dll_AddClipboardFormatListener]
test eax, eax
je 0x406b98
lea ecx, [esp + 0x30]
call fcn.00406100
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x60]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
push 0
push eax
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
call esi
test eax, eax
je 0x406b6b
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x60]
push eax
call edi
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call esi
test eax, eax
jne 0x406b48
mov al, 1
lea ecx, [esp + 0x4c]
xchg byte [ecx], al
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x406b98
mov al, byte [esp + 0x54]
test al, al
je 0x406b93
cmp byte [ecx + 0x6c], 0
jne 0x406b98
test al, al
je 0x406b93
cmp byte [ecx + 0x6c], 0
jne 0x406bb9
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x30]
call fcn.00406bd0
mov ecx, dword [esp + 0xbc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040ed91
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 4
call fcn.00405120
int3
Function at 0x40a6a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
mov esi, 1
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x40a7e8
lea eax, [ecx - 1]
mov ebx, dword [0x4364a0]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x4364a8
lea eax, [esi + esi]
push eax
call fcn.00407f20
mov ecx, dword [0x4364a0]
lea edi, [esi - 1]
mov dword [0x4364b4], edi
mov dword [0x4364b8], esi
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x40a7df
mov eax, ecx
nop dword [eax + eax]
movzx edx, byte [eax + 8]
mov ecx, dword [ecx]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
mov edx, dword [0x4364a8]
imul esi, esi, 0x1000193
and esi, edi
lea ebx, [edx + esi*8]
mov esi, dword [ebx]
mov dword [ebp - 4], ebx
cmp esi, dword [ebp - 8]
jne 0x40a74a
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x40a7b1
mov edx, dword [ebx + 4]
movzx edi, word [eax + 8]
cmp di, word [edx + 8]
jne 0x40a783
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x40a77e
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0xc]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp - 4]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x40a7b1
cmp esi, edx
je 0x40a794
mov edx, dword [edx + 4]
cmp di, word [edx + 8]
je 0x40a7c3
cmp esi, edx
jne 0x40a787
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp - 4]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov eax, ecx
cmp ecx, dword [ebp - 8]
je 0x40a7df
mov edi, dword [0x4364b4]
jmp 0x40a710
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x40a7b1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.0040c7bf
int3

Function at 0x40c3a1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40c3c8
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40c3cb
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040c37d
pop esi
leave
ret 8
Function at 0x40da7c
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 0x40da9d
jl 0x40da94
test edi, edi
jne 0x40da9d
xor eax, eax
xor edx, edx
jmp 0x40db5e
cmp dword [ebx + 0x38], 0
je 0x40dab2
push eax
push edi
push dword [ebp + 8]
call fcn.0040db64
jmp 0x40db5e
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40daf9
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40daf9
cmp eax, edi
jb 0x40dad3
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00410660
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 0x40daff
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40db53
mov ecx, ebx
call fcn.0040d315
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40db3e
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00414cd2
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 0x40db53
jmp 0x40db11
test edx, edx
je 0x40db53
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00414cd2
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 0x40fdac
Capabilities:
Parse pe header

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

Function at 0x41a2cd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a4f0
push 0x42a4e8
push str.FlsAlloc
push 0x1f
call fcn.0041a195
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a301
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271dc]
call esi
jmp 0x41a307
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a34b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a500
push 0x42a4f8
push str.FlsGetValue
push 0x21
call fcn.0041a195
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a382
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a38a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a508
push 0x42a500
push str.FlsSetValue
push 0x22
call fcn.0041a195
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a3c4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4271dc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41c353
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ffc0
mov eax, dword [0x433180]
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.0041af9a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c395
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c4f1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424f90
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 + 0x435e10]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041d350
mov ecx, dword [esi*4 + 0x435e10]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41c4ea
cmp eax, dword [ecx + edi + 0x24]
jne 0x41c4ea
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c4ea
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d350
add esp, 0x14
test edx, edx
jl 0x41c4ea
jg 0x41c460
test eax, eax
jb 0x41c4ea
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c4ea
jl 0x41c47a
cmp dword [ebp - 0x1008], eax
ja 0x41c4ea
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c498
test ebx, ebx
je 0x41c4d1
cmp ecx, edi
jae 0x41c4d1
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c4b2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c4be
cmp byte [ecx + 1], 0xa
jne 0x41c4be
inc ecx
jmp 0x41c4be
movzx eax, al
movsx eax, byte [eax + 0x433450]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c498
cmp edx, ebx
jne 0x41c498
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c4ef
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ed91
leave
ret
Function at 0x41c7e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x435e10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c828
cmp byte [ebx], 0xa
jne 0x41c828
or byte [edi + eax + 0x28], 4
jmp 0x41c82d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41c92c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c90f
inc eax
cmp dl, 0xd
je 0x41c859
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c87f
cmp eax, ecx
jae 0x41c88d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41c841
jmp 0x41c92c
push 0
lea eax, [ebp - 0x10]
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 0x41c90a
cmp dword [ebp - 0x10], 0
je 0x41c90a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x435e10]
test byte [eax + edi + 0x28], 0x48
je 0x41c8e4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c8cf
mov byte [esi], dl
jmp 0x41c8e0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x435e10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c92c
cmp byte [ebp - 1], 0xa
jne 0x41c8f3
cmp esi, ebx
jne 0x41c8f3
mov byte [esi], 0xa
jmp 0x41c92b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d36e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c92c
mov byte [esi], 0xd
jmp 0x41c92b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x435e10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c929
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c92c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret