joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4110e6
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xa30
push ebx
mov ebx, dword [esp + 0xa38]
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
push ebp
push esi
push edi
test ebx, ebx
je 0x4112e2
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push ebp
push closesocket
push ebx
mov dword [esp + 0x30], ebp
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4112e2
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x411151
cmp dword [esp + 0x24], ebp
jne 0x411199
cmp dword [esp + 0x20], 0x10000000
ja 0x411199
push 0x55dd2c
push dword [0x55ca58]
lea eax, [esp + 0x40]
push dword [0x55c840]
push 0x510270
push 0xffffffffffffffff
push 0x103
push eax
call fcn.00401bd6
add esp, 0x1c
lea eax, [esp + 0x38]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4111a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4112e2
push 2
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
push ebp
push edi
movlpd qword [esp + 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x50000
push eax
push edi
call ebp
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x14]
jne 0x4111e4
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call ebp
push ebx
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.00424566
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push 0x4fb800
lea edx, [eax + eax]
call fcn.0045192e
add esp, 0x10
lea eax, [esp + 0x10]
xor ebx, ebx
push ebx
push eax
mov eax, dword [esp + 0x20]
add eax, eax
push eax
lea eax, [esp + 0x44]
push eax
push edi
call ebp
push ebx
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
jmp 0x4112b8
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4112d6
xor eax, eax
mov ecx, eax
test edx, edx
je 0x4112a4
mov eax, ebx
and eax, 0xf
mov al, byte [eax*4 + 0x510290]
add al, byte [esp + 0x14]
xor byte [esp + ecx + 0x240], al
inc ebx
movsx eax, byte [esp + ecx + 0x240]
inc ecx
mov dword [esp + 0x14], eax
cmp ecx, edx
jb 0x411279
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push edx
lea eax, [esp + 0x24c]
push eax
push edi
call ebp
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
push 0x800
lea eax, [esp + 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411269
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa30
ret 4
Function at 0x412366
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x412376
push 0xd
pop eax
jmp 0x4123bb
push esi
push edi
xor eax, eax
mov edi, edx
mov dword [esp + 0x14], eax
mov esi, eax
push ebp
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x412388
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x412383
pop ebp
push esi
push edx
push 7
xor eax, eax
push eax
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x412919
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, ecx
lea ecx, [esp + 8]
push ebp
push esi
xor ebp, ebp
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0x10], ebp
push eax
push dword [esp + 0x230]
mov dword [esp + 0x1c], ebp
push dword [ebx]
mov dword [esp + 0x24], ebp
call fcn.004128bd
mov esi, eax
test esi, esi
jne 0x4129e8
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x4129bd
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00412919
mov esi, eax
test esi, esi
jne 0x4129e8
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call ebp
test eax, eax
je 0x412982
jmp 0x4129bf
xor esi, esi
cmp dword [esp + 0x10], 0
je 0x4129d4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
push dword [esp + 0x22c]
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.00412aa5
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x4129f9
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 4
Function at 0x413312
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 0x413362
push eax
push ebp
push dword [esp + 0x428]
call esi
mov edi, eax
test edi, edi
jne 0x413362
call fcn.00411e8d
mov esi, eax
jmp 0x413427
push dword [esp + 0x428]
push dword [esp + 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x413387
call fcn.00411e8d
jmp 0x41341a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41337d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4133ad
mov esi, 0x8007000e
jmp 0x41341c
push 2
pop ecx
mul ecx
cmp edx, ebp
ja 0x413449
jb 0x4133c5
cmp eax, 0xffffffff
ja 0x413449
cmp eax, 0x400
jbe 0x4133d8
push eax
lea ecx, [esp + 0x1c]
call fcn.00411e6b
jmp 0x4133e0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x4133a6
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 0x41337d
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.004131f0
mov esi, eax
test edi, edi
je 0x413427
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x41343a
lea ecx, [esp + 0x18]
call fcn.00411e62
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 0x10
push 0x80070216
call fcn.00412771
int3
Function at 0x4141c4
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 0x414211
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 0x414238
shr ecx, 2
test cl, 1
je 0x414241
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 0x41426f
push 1
xor esi, esi
push esi
push esi
push dword [ebx + 0x28]
push 0x50a854
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
jbe 0x41426f
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 0x414e81
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 0x510880
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x414fb5
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, 0x10
jbe 0x414fb4
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 0x414fb4
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x414fb4
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x414fad
push esi
push edi
push eax
call fcn.0041d1d0
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 0x414fad
mov ecx, dword [esp + 0x1c]
call fcn.00414ff8
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
je 0x414fad
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push 0xfc
push 0x1e0
mov dword [esp + 0x1c], ebx
call fcn.00415186
test al, al
je 0x414fa5
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 0x414f7e
mov dword [edi + 8], eax
jmp 0x414fa5
mov esi, dword [esp + 0x10]
test esi, esi
je 0x414fa5
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 0x414fa3
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 0x4166b9
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.0041673a
xor ebx, ebx
test ebp, ebp
je 0x41672f
cmp word [ebp], bx
je 0x41672f
push edi
push 0x44
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.0041d750
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 0x41672f
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 0x41693f
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 0x416a4f
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x416a4f
lea ecx, [ebp - 0x240]
call fcn.0040338e
push edi
push ebx
mov eax, ecx
push str._sFonts_s
push eax
call fcn.00403732
add esp, 0x10
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416a4f
cmp byte [ebx + 0x3ab0], 0
jne 0x416a4f
lea ecx, [ebp - 0x458]
call fcn.0040338e
push edi
mov eax, ecx
push str.https:__download.mql5.com_cdn_web_components__s
push eax
call fcn.00403732
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 0x416a4f
lea ecx, [ebp - 0x28]
call fcn.004038cb
mov eax, ecx
lea ecx, [ebx + 0x3a80]
push eax
call fcn.00403278
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x416a04
cmp dword [ebp - 0x20], 0x4e20
jbe 0x416a47
push ecx
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x28]
call fcn.0040418b
test al, al
je 0x416a47
push ecx
push edi
push ecx
push dword [ebp + 8]
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403c1f
push edi
push str.value_sunitfile
push str.Install_Component
push esi
push esi
push 0x556880
call fcn.004444e8
add esp, 0x28
lea ecx, [ebp - 0x28]
call fcn.004038ee
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x416a56
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 0x416b4b
lea ecx, [ebp - 0x240]
call fcn.0040338e
push dword [ebp + 0xc]
mov eax, ecx
push edi
push 0x50e448
push eax
call fcn.00403732
add esp, 0x10
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416b4b
cmp byte [edi + 0x3ab0], 0
jne 0x416b4b
lea ecx, [ebp - 0x458]
call fcn.0040338e
push dword [ebp + 8]
mov eax, ecx
push str.https:__download.mql5.com_cdn_web_components__s
push eax
call fcn.00403732
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 0x416b4b
lea ecx, [ebp - 0x28]
call fcn.004038cb
mov eax, ecx
lea ecx, [edi + 0x3a80]
push eax
call fcn.00403278
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x416b13
cmp dword [ebp - 0x20], 0x186a0
jbe 0x416b43
push ecx
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x28]
call fcn.0040418b
test al, al
je 0x416b43
push dword [ebp + 8]
push str.value_sunitfile
push str.Install_Component
push esi
push esi
push 0x556880
call fcn.004444e8
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.004038ee
pop edi
pop esi
leave
ret 8
Function at 0x41894e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
test edx, edx
je 0x4189a0
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 0x4189a0
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 0x4189a2
xor al, al
pop ebx
leave
ret
Function at 0x41a508
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.0043dda0
mov ebp, eax
mov dword [esp + 0x18], edx
mov ecx, ebp
and ecx, 0xf
or ecx, edi
je 0x41a547
and ebp, 0xfffffff0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
test esi, esi
je 0x41a65b
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.00403d58
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 0x41a5e8
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 0x41a5ec
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.0041ace7
mov dword [edi + 0x21c], eax
test eax, eax
je 0x41a667
mov eax, dword [ebx + 0x5560]
add edi, 0x268
cmp dword [esp + 0x14], eax
jb 0x41a56b
xor edi, edi
test eax, eax
je 0x41a65b
lea eax, [esi + 4]
push eax
push 0x10000
push esi
push 0x41a4c7
push 0x40000
push 0
call fcn.0042bee8
add esp, 0x18
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41a667
inc edi
add esi, 0x268
cmp edi, dword [ebx + 0x5560]
jb 0x41a627
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
xor al, al
jmp 0x41a65d

Function at 0x41a66b
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov bl, 1
cmp dword [esi], 0xffffffff
je 0x41a69b
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41a690
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 0x41a6b1
mov dword [eax + 0x438], 0
jmp 0x41a6b3
xor bl, bl
pop esi
mov al, bl
pop ebx
ret
Function at 0x41aea6
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 0x41af69
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.00403ae6
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.0041ace7
mov dword [edi + 0x21c], eax
test eax, eax
je 0x41af74
mov eax, dword [ebx + 0x5560]
inc ebp
add edi, 0x268
cmp dword [esp + 0x14], eax
jb 0x41aec6
xor edi, edi
test eax, eax
je 0x41af69
lea eax, [esi + 4]
push eax
push 0x10000
push esi
push 0x41ae65
push 0x40000
push 0
call fcn.0042bee8
add esp, 0x18
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41af74
inc edi
add esi, 0x268
cmp edi, dword [ebx + 0x5560]
jb 0x41af35
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
xor al, al
jmp 0x41af6b

Function at 0x41af9e
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.0041af78
push 0x20
lea esi, [edi + 0x828]
xor ecx, ecx
pop ebx
cmp dword [esi - 8], 0xffffffff
je 0x41afe6
push dword [edi + 0x5564]
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41afd7
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 ebx, 1
jne 0x41afb3
pop edi
pop esi
pop ebx
ret

Function at 0x41c314
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041c880
mov eax, dword [0x51f014]
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.004327a0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42efdf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42f13b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043df10
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 + 0x535738]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004357b7
mov ecx, dword [esi*4 + 0x535738]
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 0x42f134
cmp eax, dword [ecx + edi + 0x24]
jne 0x42f134
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 0x42f134
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004357b7
add esp, 0x14
test edx, edx
jl 0x42f134
jg 0x42f0aa
test eax, eax
jb 0x42f134
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42f134
jl 0x42f0c4
cmp dword [ebp - 0x1008], eax
ja 0x42f134
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42f0e2
test ebx, ebx
je 0x42f11b
cmp ecx, edi
jae 0x42f11b
mov al, byte [ecx]
cmp al, 0xd
jne 0x42f0fc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42f108
cmp byte [ecx + 1], 0xa
jne 0x42f108
inc ecx
jmp 0x42f108
movzx eax, al
movsx eax, byte [eax + 0x51f950]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42f0e2
cmp edx, ebx
jne 0x42f0e2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42f139
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041bf96
leave
ret

Function at 0x43370d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f4828
push 0x4f4820
push str.FlsAlloc
push 0x1f
call fcn.0043358c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433741
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f166c]
call esi
jmp 0x433747
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43378b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f4838
push 0x4f4830
push str.FlsGetValue
push 0x21
call fcn.0043358c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4337c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f166c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]