joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4132be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor ebp, ebp
push edi
push 0x60
push ebp
push dword [esp + 0x428]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call esi
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x41330e
push eax
push ebp
push dword [esp + 0x428]
call esi
mov edi, eax
test edi, edi
jne 0x41330e
call fcn.00411e39
mov esi, eax
jmp 0x4133d3
push dword [esp + 0x428]
push dword [esp + 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x413333
call fcn.00411e39
jmp 0x4133c6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413329
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x413359
mov esi, 0x8007000e
jmp 0x4133c8
push 2
pop ecx
mul ecx
cmp edx, ebp
ja 0x4133f5
jb 0x413371
cmp eax, 0xffffffff
ja 0x4133f5
cmp eax, 0x400
jbe 0x413384
push eax
lea ecx, [esp + 0x1c]
call fcn.00411e17
jmp 0x41338c
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x413352
push esi
push dword [esp + 0x1c]
push esi
push ebx
push ebp
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x413329
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [esp + 0x42c]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.0041319c
mov esi, eax
test edi, edi
je 0x4133d3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x4133e6
lea ecx, [esp + 0x18]
call fcn.00411e0e
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 0x10
push 0x80070216
call fcn.0041271d
int3
Function at 0x41416c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov byte [ebp - 1], 1
push esi
push edi
mov ecx, dword [ebx + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x4141b9
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [ebx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.USER32.dll_GetParent]
push dword [ebx + 4]
mov esi, eax
call edi
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x4e
jmp 0x4141e0
shr ecx, 2
test cl, 1
je 0x4141e9
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [ebx + 4]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push edi
movzx eax, ax
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x414217
push 1
xor esi, esi
push esi
push esi
push dword [ebx + 0x28]
push 0x509854
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
jbe 0x414217
or byte [ebx + 0x58], 2
push 1
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414e29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
xor ebx, ebx
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
movzx eax, word [esp + 0x18]
push 0x50f870
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x414f5d
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, 0x10
jbe 0x414f5c
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x414f5c
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x414f5c
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x414f55
push esi
push edi
push eax
call fcn.0041d170
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
push ebx
push ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x414f55
mov ecx, dword [esp + 0x1c]
call fcn.00414fa0
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
je 0x414f55
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push 0xfc
push 0x1e0
mov dword [esp + 0x1c], ebx
call fcn.0041512e
test al, al
je 0x414f4d
push dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x414f26
mov dword [edi + 8], eax
jmp 0x414f4d
mov esi, dword [esp + 0x10]
test esi, esi
je 0x414f4d
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test esi, esi
je 0x414f4b
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov bl, 1
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebp
mov al, bl
pop ebx
pop ecx
pop ecx
ret 0x10

Function at 0x416661
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, ecx
call fcn.004166e2
xor ebx, ebx
test ebp, ebp
je 0x4166d7
cmp word [ebp], bx
je 0x4166d7
push edi
push 0x44
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.0041d6f0
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 8
push ebx
push ebx
push ebx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x4166d7
mov eax, dword [esp + 0xc]
mov bl, 1
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x54
ret 0x14
Function at 0x4168e7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x4169f7
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4169f7
lea ecx, [ebp - 0x240]
call fcn.0040337a
push edi
push ebx
mov eax, ecx
push str._sFonts_s
push eax
call fcn.0040371e
add esp, 0x10
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4169f7
cmp byte [ebx + 0x3ab0], 0
jne 0x4169f7
lea ecx, [ebp - 0x458]
call fcn.0040337a
push edi
mov eax, ecx
push str.https:__download.mql5.com_cdn_web_components__s
push eax
call fcn.0040371e
lea esi, [ebx + 0x210]
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x454]
call dword [eax + 0x3c]
cmp eax, 0xc8
jne 0x4169f7
lea ecx, [ebp - 0x28]
call fcn.004038b7
mov eax, ecx
lea ecx, [ebx + 0x3a80]
push eax
call fcn.00403264
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x4169ac
cmp dword [ebp - 0x20], 0x4e20
jbe 0x4169ef
push ecx
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x28]
call fcn.00404177
test al, al
je 0x4169ef
push ecx
push edi
push ecx
push dword [ebp + 8]
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403c0b
push edi
push str.value_sunitfile
push str.Install_Component
push esi
push esi
push 0x555890
call fcn.00444453
add esp, 0x28
lea ecx, [ebp - 0x28]
call fcn.004038da
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4169fe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
cmp dword [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
je 0x416af3
lea ecx, [ebp - 0x240]
call fcn.0040337a
push dword [ebp + 0xc]
mov eax, ecx
push edi
push 0x50d448
push eax
call fcn.0040371e
add esp, 0x10
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416af3
cmp byte [edi + 0x3ab0], 0
jne 0x416af3
lea ecx, [ebp - 0x458]
call fcn.0040337a
push dword [ebp + 8]
mov eax, ecx
push str.https:__download.mql5.com_cdn_web_components__s
push eax
call fcn.0040371e
lea esi, [edi + 0x210]
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x454]
call dword [eax + 0x3c]
cmp eax, 0xc8
jne 0x416af3
lea ecx, [ebp - 0x28]
call fcn.004038b7
mov eax, ecx
lea ecx, [edi + 0x3a80]
push eax
call fcn.00403264
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x416abb
cmp dword [ebp - 0x20], 0x186a0
jbe 0x416aeb
push ecx
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x28]
call fcn.00404177
test al, al
je 0x416aeb
push dword [ebp + 8]
push str.value_sunitfile
push str.Install_Component
push esi
push esi
push 0x555890
call fcn.00444453
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.004038da
pop edi
pop esi
leave
ret 8
Function at 0x417b32
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
lea ecx, [esp + 0x268]
mov dword [esp + 0x14], edi
call fcn.004047b4
cmp dword [ebp + 0xc], 0x80
mov bl, 1
ja 0x417ceb
mov ecx, esi
call fcn.00401887
test al, al
jne 0x417ceb
cmp dword [esi + 8], 3
jbe 0x417ceb
push dword [edi + 4]
lea eax, [esp + 0x26c]
push dword [esi + 4]
push 0x50d448
push eax
call fcn.0040371e
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417ced
test byte [esp + 0x18], 0x10
je 0x417c69
mov edx, 0x50c26c
lea ecx, [esp + 0x44]
call fcn.0041554b
test eax, eax
je 0x417cce
mov edx, 0x50d440
lea ecx, [esp + 0x44]
call fcn.0041554b
test eax, eax
je 0x417cce
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
lea eax, [esp + 0x270]
push 0x50d448
push eax
call fcn.0040371e
and dword [esp + 0x20], 0
lea ecx, [esp + 0x278]
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x24]
inc eax
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00417b32
add esp, 0x18
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x417c97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x417ccc
push 0x80
push dword [esp + 0x270]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x417cc8
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
lea eax, [esp + 0x270]
push 0x50d448
push eax
call fcn.0040371e
add esp, 0x10
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x417c9e
mov eax, dword [ebp + 8]
inc dword [eax]
jmp 0x417cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x417ccc
push 0x80
push dword [esp + 0x270]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x417cce
xor bl, bl
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417bb5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x417ced
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417d1e
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0x5098cc
push edi
mov dword [esp + 0x14], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x1c], 0x10
xor edi, edi
mov word [esp + 0x20], ax
push 0x5130b4
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edi
call fcn.004031de
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0x5130b0
push edi
push eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov ecx, esi
call fcn.00417b32
pop ecx
pop ecx
test al, al
je 0x417db9
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
test eax, eax
jne 0x417db5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x417db9
push 0x80
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
call edi
test eax, eax
setne al
jmp 0x417dbb
mov al, 1
jmp 0x417dbb
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4188f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
test edx, edx
je 0x418945
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20119
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418945
push ebx
push ebx
push ebx
push ebx
push str.EnableCertPaddingCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor ecx, ecx
movzx ebx, bl
inc ecx
test eax, eax
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x418947
xor al, al
pop ebx
leave
ret
Function at 0x41a4ad
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
push edi
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
mov esi, dword [ebx + 0x5560]
push esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.0043dd40
mov ebp, eax
mov dword [esp + 0x18], edx
mov ecx, ebp
and ecx, 0xf
or ecx, edi
je 0x41a4ec
and ebp, 0xfffffff0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
test esi, esi
je 0x41a600
mov eax, dword [esp + 0x24]
lea esi, [ebx + 0x820]
mov dword [esp + 0x1c], eax
mov edi, esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push dword [esp + 0x2c]
or dword [edi], 0xffffffff
lea ecx, [edi + 8]
and dword [edi + 4], 0
mov edx, 0xff
mov dword [edi + 0x218], ebx
call fcn.00403d44
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x214], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [edi + 0x208], edx
mov dword [edi + 0x20c], ecx
mov dword [edi + 0x210], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], eax
cmp eax, dword [ebx + 0x5560]
jne 0x41a58d
mov eax, dword [esp + 0x30]
sub eax, edx
mov edx, dword [esp + 0x34]
mov dword [edi + 0x210], eax
sbb edx, ecx
mov dword [esp + 0x1c], edx
mov dword [edi + 0x214], edx
mov edx, dword [esp + 0x10]
jmp 0x41a591
mov eax, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x10], edx
adc ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, ebx
call fcn.0041ac8c
mov dword [edi + 0x21c], eax
test eax, eax
je 0x41a60c
mov eax, dword [ebx + 0x5560]
add edi, 0x268
cmp dword [esp + 0x14], eax
jb 0x41a510
xor edi, edi
test eax, eax
je 0x41a600
lea eax, [esi + 4]
push eax
push 0x10000
push esi
push 0x41a46c
push 0x40000
push 0
call fcn.0042be88
add esp, 0x18
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41a60c
inc edi
add esi, 0x268
cmp edi, dword [ebx + 0x5560]
jb 0x41a5cc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
xor al, al
jmp 0x41a602

Function at 0x41a610
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov bl, 1
cmp dword [esi], 0xffffffff
je 0x41a640
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41a635
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor bl, bl
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov eax, dword [esi + 0x21c]
test eax, eax
je 0x41a656
mov dword [eax + 0x438], 0
jmp 0x41a658
xor bl, bl
pop esi
mov al, bl
pop ebx
ret
Function at 0x41ae4b
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
push edi
cmp dword [ebx + 0x5560], 0
lea esi, [ebx + 0x820]
jbe 0x41af0e
xor ebp, ebp
mov edi, esi
inc ebp
or dword [edi], 0xffffffff
lea eax, [edi + 8]
and dword [edi + 4], 0
push ebp
push dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
push 0xff
push eax
mov dword [edi + 0x218], ebx
call fcn.00403ad2
and dword [edi + 0x20c], 0
add esp, 0x10
and dword [edi + 0x214], 0
mov ecx, ebx
mov dword [edi + 0x208], ebp
mov dword [edi + 0x210], 0x3b9aca00
call fcn.0041ac8c
mov dword [edi + 0x21c], eax
test eax, eax
je 0x41af19
mov eax, dword [ebx + 0x5560]
inc ebp
add edi, 0x268
cmp dword [esp + 0x14], eax
jb 0x41ae6b
xor edi, edi
test eax, eax
je 0x41af0e
lea eax, [esi + 4]
push eax
push 0x10000
push esi
push 0x41ae0a
push 0x40000
push 0
call fcn.0042be88
add esp, 0x18
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41af19
inc edi
add esi, 0x268
cmp edi, dword [ebx + 0x5560]
jb 0x41aeda
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
xor al, al
jmp 0x41af10

Function at 0x41af43
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0041af1d
push 0x20
lea esi, [ebx + 0x828]
xor ecx, ecx
pop edi
cmp dword [esi - 8], 0xffffffff
je 0x41af8b
push dword [ebx + 0x5564]
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41af7c
push 0
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi - 8], 0xffffffff
xor ecx, ecx
xor eax, eax
mov dword [esi - 4], ecx
mov word [esi], ax
mov dword [esi + 0x200], ecx
mov dword [esi + 0x204], ecx
mov dword [esi + 0x208], ecx
mov dword [esi + 0x20c], ecx
mov dword [esi + 0x210], ecx
mov dword [esi + 0x214], ecx
mov dword [esi + 0x218], ecx
mov byte [esi + 0x21c], cl
add esi, 0x268
sub edi, 1
jne 0x41af58
pop edi
pop esi
pop ebx
ret

Function at 0x41c2b4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c2f3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c2f3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c2f3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41c2f3
cmp dword [ecx + 0x74], 0xe
jbe 0x41c2f3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42ef3d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041c820
mov eax, dword [0x51e010]
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.00432741
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42ef7f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42f0db
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043deb0
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 + 0x534738]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00435757
mov ecx, dword [esi*4 + 0x534738]
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 0x42f0d4
cmp eax, dword [ecx + edi + 0x24]
jne 0x42f0d4
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 0x42f0d4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00435757
add esp, 0x14
test edx, edx
jl 0x42f0d4
jg 0x42f04a
test eax, eax
jb 0x42f0d4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42f0d4
jl 0x42f064
cmp dword [ebp - 0x1008], eax
ja 0x42f0d4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42f082
test ebx, ebx
je 0x42f0bb
cmp ecx, edi
jae 0x42f0bb
mov al, byte [ecx]
cmp al, 0xd
jne 0x42f09c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42f0a8
cmp byte [ecx + 1], 0xa
jne 0x42f0a8
inc ecx
jmp 0x42f0a8
movzx eax, al
movsx eax, byte [eax + 0x51e950]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42f082
cmp edx, ebx
jne 0x42f082
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42f0d9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041bf36
leave
ret

Function at 0x4336ae
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f3828
push 0x4f3820
push str.FlsAlloc
push 0x1f
call fcn.0043352d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4336e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f0670]
call esi
jmp 0x4336e8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43372c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f3838
push 0x4f3830
push str.FlsGetValue
push 0x21
call fcn.0043352d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433763
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f0670]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43376b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f3840
push 0x4f3838
push str.FlsSetValue
push 0x22
call fcn.0043352d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4337a5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4f0670]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4357d3
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 + 0x534738]
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 0x435813
cmp byte [ebx], 0xa
jne 0x435813
or byte [edi + eax + 0x28], 4
jmp 0x435818
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 0x435917
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4358fa
inc eax
cmp dl, 0xd
je 0x435844
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43586a
cmp eax, ecx
jae 0x435878
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 0x43582c
jmp 0x435917
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 0x4358f5
cmp dword [ebp - 0x10], 0
je 0x4358f5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x534738]
test byte [eax + edi + 0x28], 0x48
je 0x4358cf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4358ba
mov byte [esi], dl
jmp 0x4358cb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x534738]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x435917
cmp byte [ebp - 1], 0xa
jne 0x4358de
cmp esi, ebx
jne 0x4358de
mov byte [esi], 0xa
jmp 0x435916
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00435775
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x435917
mov byte [esi], 0xd
jmp 0x435916
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x534738]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x435914
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x435917
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret