joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1c0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
jne 0x40d1d9
xor al, al
jmp 0x40d26d
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 2
je 0x40d1e9
xor al, al
jmp 0x40d26d
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x10], 0
jne 0x40d1f6
xor al, al
jmp 0x40d26d
cmp dword [ebp + 8], 0xffffffff
jne 0x40d205
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 8]
cmp eax, 1
jne 0x40d26b
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
add edx, 1
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40d257
push 0x43fbb0
call fcn.00426411
add esp, 4
mov ecx, dword [ebp - 0xc]
call fcn.0040cef0
xor al, al
jmp 0x40d26d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
push 0x43fb9c
mov ecx, dword [ebp - 0xc]
call fcn.0040d350
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x40d4e0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x446654]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0xffffffff
jne 0x40d500
xor al, al
jmp 0x40d55a
mov ecx, dword [ebp - 0x1c]
add ecx, 0x20
call fcn.00405600
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
mov ecx, 2
mov word [ebp - 0x14], cx
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40d558
mov ecx, dword [ebp - 0x1c]
call fcn.0040cef0
xor al, al
jmp 0x40d55a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425d22
mov esp, ebp
pop ebp
ret
Function at 0x41fef0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a1b3
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x446654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00405620
test eax, eax
jne 0x41ff55
mov byte [ebp - 0xe9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004055e0
mov al, byte [ebp - 0xe9]
jmp 0x42011d
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x94], 0
push 0x40
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.0042a860
add esp, 0xc
mov dword [ebp - 0x94], 0x44
push 0x43e34f
lea ecx, [ebp - 0x2c]
call fcn.004054d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.0040e570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe4]
call fcn.0040e270
movzx edx, al
cmp edx, 1
jne 0x41ffd0
push str.OpenWith.exe__
lea ecx, [ebp - 0x2c]
call fcn.00405fe0
jmp 0x41ffdd
push str.Rundll32.exe_shell32.dll_OpenAs_RunDLL__
lea ecx, [ebp - 0x2c]
call fcn.00405fe0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409090
push str._._
lea ecx, [ebp - 0x2c]
call fcn.004090c0
lea ecx, [ebp - 0x3c]
call fcn.0040de30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00405600
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040da80
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x94]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.00402850
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
mov byte [ebp - 0x95], al
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x30], ecx
movzx edx, byte [ebp - 0x95]
test edx, edx
jne 0x4200b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0xea], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.0040de60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.0040e630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004055e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004055e0
mov al, byte [ebp - 0xea]
jmp 0x42011d
cmp dword [ebp - 0x4c], 0
je 0x4200da
push 0x7530
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xeb], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.0040de60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.0040e630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004055e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004055e0
mov al, byte [ebp - 0xeb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425d22
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x425d22
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446654]
jne 0x425d2c
repz ret
jmp fcn.0042bd8a

Function at 0x434d4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x446654]
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.0042b66e
and dword [ebp - 0x14], 0
cmp dword [0x448c00], 0
mov dword [ebp - 0x18], eax
jne 0x434dff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x434ea7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x434ea7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x448c00], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x448c04], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x448c08], eax
call edi
push eax
call esi
mov dword [0x448c10], eax
test eax, eax
je 0x434dff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x448c0c], eax
mov eax, dword [0x448c0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x434e58
cmp dword [0x448c10], ecx
je 0x434e58
push eax
call esi
push dword [0x448c10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x434e58
test ebx, ebx
je 0x434e58
call edi
test eax, eax
je 0x434e4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x434e4f
test byte [ebp - 8], 1
jne 0x434e58
or dword [ebp + 0x10], 0x200000
jmp 0x434e8b
mov eax, dword [0x448c04]
cmp eax, dword [ebp - 0x18]
je 0x434e8b
push eax
call esi
test eax, eax
je 0x434e8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x434e8b
mov eax, dword [0x448c08]
cmp eax, dword [ebp - 0x18]
je 0x434e8b
push eax
call esi
test eax, eax
je 0x434e8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448c00]
call esi
test eax, eax
je 0x434ea7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x434ea9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425d22
leave
ret
Function at 0x406fe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x437080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
mov dword [ebp - 0x138], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4070a5
lea edx, [ebp - 0x108]
push edx
lea ecx, [ebp - 0x154]
call fcn.0040c070
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.004102b0
mov byte [ebp - 0x12d], al
mov cl, byte [ebp - 0x12d]
mov byte [ebp - 0x12e], cl
lea ecx, [ebp - 0x154]
call fcn.0040ce00
nop
movzx edx, byte [ebp - 0x12e]
test edx, edx
je 0x40708d
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x138], eax
jmp 0x4070a5
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40702f
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412437
mov esp, ebp
pop ebp
ret
Function at 0x40c710
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x40c72f
mov ecx, dword [ebp - 8]
call fcn.0040d770
nop
jmp 0x40c743
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x40c743
mov ecx, dword [ebp - 8]
call fcn.0040d800
nop
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40d770
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x40d78b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x40d7f7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x40d7cf
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x40d7d6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x40d782
mov esp, ebp
pop ebp
ret
Function at 0x40d800
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x40d829
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x40d895
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x40d86d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x40d874
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x40d820
mov dword [ebp - 0xc], 0xe3
jmp 0x40d8a7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x40d913
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x40d8eb
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x40d8f2
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x40d89e
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x40d95c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x40d963
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x40dac0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bca0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x437080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
push 8
call fcn.0041244a
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40dbb2
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [ebp - 4], 0
push 1
call fcn.00411abb
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x40dbb9
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x34], edx
mov ecx, dword [ebp - 0x10]
call fcn.0040da20
nop
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4131a4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4131e3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4131e3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4131e3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4131e3
cmp dword [ecx + 0x74], 0xe
jbe 0x4131e3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41f9e0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43046c
push 0x430464
push str.FlsAlloc
push 0x1f
call fcn.0041f84b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fa14
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d17c]
call esi
jmp 0x41fa1a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41fa5e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43047c
push 0x430474
push str.FlsGetValue
push 0x21
call fcn.0041f84b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fa95
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41fa9d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430484
push 0x43047c
push str.FlsSetValue
push 0x22
call fcn.0041f84b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fad7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d17c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x420489
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00413310
mov eax, dword [0x437080]
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.0041ccbe
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4204cb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420627
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042b6f0
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 + 0x438948]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042128a
mov ecx, dword [esi*4 + 0x438948]
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 0x420620
cmp eax, dword [ecx + edi + 0x24]
jne 0x420620
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 0x420620
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042128a
add esp, 0x14
test edx, edx
jl 0x420620
jg 0x420596
test eax, eax
jb 0x420620
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420620
jl 0x4205b0
cmp dword [ebp - 0x1008], eax
ja 0x420620
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4205ce
test ebx, ebx
je 0x420607
cmp ecx, edi
jae 0x420607
mov al, byte [ecx]
cmp al, 0xd
jne 0x4205e8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4205f4
cmp byte [ecx + 1], 0xa
jne 0x4205f4
inc ecx
jmp 0x4205f4
movzx eax, al
movsx eax, byte [eax + 0x437338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4205ce
cmp edx, ebx
jne 0x4205ce
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420625
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412437
leave
ret
Function at 0x420722
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 + 0x438948]
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 0x420762
cmp byte [ebx], 0xa
jne 0x420762
or byte [edi + eax + 0x28], 4
jmp 0x420767
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 0x420866
mov dl, byte [eax]
cmp dl, 0x1a
je 0x420849
inc eax
cmp dl, 0xd
je 0x420793
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4207b9
cmp eax, ecx
jae 0x4207c7
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 0x42077b
jmp 0x420866
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 0x420844
cmp dword [ebp - 0x10], 0
je 0x420844
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x438948]
test byte [eax + edi + 0x28], 0x48
je 0x42081e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420809
mov byte [esi], dl
jmp 0x42081a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x438948]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420866
cmp byte [ebp - 1], 0xa
jne 0x42082d
cmp esi, ebx
jne 0x42082d
mov byte [esi], 0xa
jmp 0x420865
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004212a8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420866
mov byte [esi], 0xd
jmp 0x420865
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x438948]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420863
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420866
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42086f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x438948]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4208b5
cmp word [ebx], dx
jne 0x4208b5
or byte [eax + edi + 0x28], 4
jmp 0x4208ba
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x420a1d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4209fd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4208fb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420931
cmp eax, edx
jae 0x42093f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4208d6
jmp 0x420a1d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4209f8
cmp dword [ebp - 0x18], 0
je 0x4209f8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x438948]
test byte [eax + edi + 0x28], 0x48
je 0x4209ce
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x420992
mov word [esi], cx
jmp 0x4209c9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x438948]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x438948]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x438948]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x420a1d
pop eax
cmp word [ebp - 4], ax
jne 0x4209de
cmp esi, ebx
jne 0x4209de
mov word [esi], ax
jmp 0x420a1a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004212a8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x420a1d
push 0xd
pop eax
jmp 0x4209d9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x438948]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x420a17
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x420a1d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret