joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4107b5
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
xor edx, edx
cmp dword [esp + 8], edx
not eax
jle 0x4107e6
push esi
push edi
mov esi, dword [esp + 0xc]
movzx esi, byte [edx + esi]
mov edi, eax
and edi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [ecx + esi*4]
inc edx
cmp edx, dword [esp + 0x10]
jl 0x4107c5
pop edi
pop esi
not eax
ret 0xc

Function at 0x4108a1
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
jne 0x4108b1
cmp byte [ecx + 0x3c], bl
je 0x410923
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x410922
cmp word [edi], bx
je 0x410922
cmp dword [ecx + 0x38], 8
jb 0x4108c9
mov ecx, dword [ecx + 0x24]
jmp 0x4108cc
add ecx, 0x24
push esi
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410921
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41091a
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x41108c
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x41115a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41115a
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41115a
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x41115a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.0042c364
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x411151
push edi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41114a
cmp dword [ebp - 4], esi
jne 0x41114a
push edi
push esi
push ebx
call fcn.00410875
mov ecx, eax
call fcn.004107b5
push eax
lea eax, [ebp - 0xcc]
push 0x42f3ac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
call fcn.00405678
mov al, 1
jmp 0x41115c
push ebx
call fcn.0042c244
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a282
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x13
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
jne 0x41a2b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41a312
mov eax, dword [ebp - 4]
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c364
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x41a311
mov eax, dword [ebp - 4]
add eax, eax
push eax
push edi
push ebx
call fcn.0042c331
add esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x13
push dword [ebp + 8]
call esi
test eax, eax
je 0x41a30a
lea eax, [ebp - 8]
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
test eax, eax
jne 0x41a30a
or dword [ebp - 8], 0xffffffff
push ebx
call fcn.0042c244
pop ecx
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x41a517
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x9c]
push edi
push dword [ebp + 8]
call fcn.0041a31b
cmp dword [edi], 0
mov ebx, eax
jne 0x41a53f
mov eax, dword [esi + 0x98]
mov dword [edi], eax
test ebx, ebx
jl 0x41a54f
mov ecx, dword [esi + 0x1ac]
push ebx
call fcn.00419fd2
mov dword [esi + 0x88], ebx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41a614
push dword [edi]
mov ecx, esi
push dword [esi + 0x88]
call fcn.0041a029
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0042c364
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41a5f2
mov eax, dword [ebp - 4]
inc eax
push eax
push 0
push ebx
call fcn.0042c331
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41a640
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 8]
push ebx
call fcn.0041a410
test al, al
je 0x41a62e
mov ecx, dword [esi + 0x1ac]
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
je 0x41a62e
push dword [ebp - 8]
mov ecx, dword [esi + 0x1ac]
push ebx
call fcn.00419d07
push ebx
call fcn.0042c244
pop ecx
cmp dword [ebp - 4], 0
ja 0x41a555
push dword [edi]
mov ecx, esi
push dword [esi + 0x88]
call fcn.0041a029
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x120], 0x26
mov dword [esi + 0x118], eax
xor al, al
jmp 0x41a60d
mov dword [esi + 0x120], 0x2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41a624
mov dword [esi + 0x120], 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x118], eax
call fcn.0042c244
pop ecx
jmp 0x41a62a
Function at 0x41a843
Capabilities:
Initialize winhttp library

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x41a88e
lea eax, [esi + 0x128]
cmp dword [eax + 0x18], 8
jb 0x41a85f
mov eax, dword [eax + 4]
jmp 0x41a862
add eax, 4
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x41a88e
mov dword [esi + 0x120], 0x2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
xor al, al
jmp 0x41a890
mov al, 1
pop edi
pop esi
ret

Function at 0x41a893
Capabilities:
Set http header

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x41a8de
cmp dword [eax + 0x18], 8
jb 0x41a8ac
mov eax, dword [eax + 4]
jmp 0x41a8af
add eax, 4
push 0x1000000
push ecx
push eax
push dword [esp + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x41a8de
mov dword [esi + 0x120], 0x2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
xor al, al
jmp 0x41a8e0
mov al, 1
pop esi
ret 8

Function at 0x41ab9f
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x16
push dword [ebp + 8]
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
jne 0x41abd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41ac27
mov eax, dword [ebp - 8]
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c364
mov edi, eax
pop ecx
cmp edi, ebx
je 0x41ac26
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push edi
call fcn.0042c331
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x16
push dword [ebp + 8]
call esi
test eax, eax
je 0x41ac1f
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00404cc6
mov byte [ebp - 1], 1
push edi
call fcn.0042c244
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 8
Function at 0x41af9f
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov byte [ebp - 1], bl
call fcn.0041a676
mov ecx, dword [esi + 0x1ac]
mov eax, dword [ecx]
push 4
call dword [eax + 4]
test al, al
jne 0x41afe0
mov dword [esi + 0x120], 0x2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x41b1bc
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040676c
cmp dword [esi + 0x28], ebx
jne 0x41b006
mov dword [esi + 0x120], 0x2f
mov dword [esi + 0x118], ebx
jmp 0x41b1b1
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.0041ab47
test al, al
jne 0x41b02d
mov dword [esi + 0x120], 0x30
mov eax, dword [edi + 0x14]
mov dword [esi + 0x118], eax
jmp 0x41b1b1
mov ecx, esi
call fcn.0041a843
test al, al
je 0x41b1b1
push dword [esi + 0x1a8]
push dword [esi + 0x1a4]
push dword [esi + 0x1a0]
push dword [esi + 0x19c]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push ebx
push 0x10000
push 0x41a6a6
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
push 7
pop edi
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], edi
call fcn.00404961
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], edi
call fcn.00404961
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40]
push eax
sub esp, 0x1c
lea eax, [esi + 0x14]
mov ecx, esp
push eax
call fcn.0040676c
mov ecx, esi
call fcn.0041ad46
test al, al
je 0x41b185
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x41b0c5
lea eax, [ebp - 0x3c]
push ebx
push dword [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x41b166
movzx ecx, byte [ebp + 0xb]
mov edi, dword [ebp - 0x20]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
cmp dword [ebp - 0xc], 8
jae 0x41b0f8
lea edi, [ebp - 0x20]
cmp dword [ebp - 0x44], 8
mov edx, dword [ebp - 0x58]
jae 0x41b104
lea edx, [ebp - 0x58]
push ecx
push ebx
push ebx
push ebx
push edi
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x41b15a
cmp byte [esi + 0x10], bl
jne 0x41b12a
cmp byte [ebp + 0xb], bl
je 0x41b12a
push eax
mov ecx, esi
call fcn.0041a101
lea eax, [esi + 0xe0]
push eax
push dword [esi + 0xc]
mov ecx, esi
call fcn.0041a893
test al, al
je 0x41b17c
lea eax, [esi + 0xbc]
push eax
push dword [esi + 0xc]
mov ecx, esi
call fcn.0041af37
test al, al
je 0x41b17c
mov byte [ebp - 1], 1
jmp 0x41b19b
mov dword [esi + 0x120], 0x33
jmp 0x41b170
mov dword [esi + 0x120], 0x32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
mov ecx, esi
call fcn.0041a676
jmp 0x41b19b
mov dword [esi + 0x120], 0x31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.004049f8
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004049f8
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004049f8
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41ba2b
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov byte [ebp - 1], bl
call fcn.0041af9f
test al, al
je 0x41bae9
lea eax, [esi + 0x164]
cmp dword [eax + 0x18], 8
jb 0x41ba5a
mov edx, dword [eax + 4]
jmp 0x41ba5d
lea edx, [eax + 4]
lea eax, [esi + 0x148]
cmp dword [eax + 0x18], 8
jb 0x41ba6e
mov ecx, dword [eax + 4]
jmp 0x41ba71
lea ecx, [eax + 4]
lea eax, [esi + 0xfc]
cmp dword [eax + 0x18], 8
jb 0x41ba82
mov eax, dword [eax + 4]
jmp 0x41ba85
add eax, 4
push edx
push ecx
push eax
push dword [esi + 0xc]
mov ecx, esi
call fcn.0041a16a
cmp byte [ebp + 0xc], bl
je 0x41baa1
push dword [esi + 0xc]
mov ecx, esi
call fcn.0041a126
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x41bafa
push dword [esi + 0xc]
mov ecx, esi
call fcn.0041a7b1
test al, al
je 0x41bae9
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x41bafa
mov dword [esi + 0x120], 0x1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
mov ecx, esi
call fcn.0041a006
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [esi + 0xc]
mov ecx, esi
call fcn.0041a234
test al, al
je 0x41bae9
push ebx
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x41bb2b
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [esi + 0xc]
call fcn.0041b955
mov byte [ebp - 1], al
jmp 0x41bb41
mov dword [esi + 0x120], 0x1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
cmp byte [ebp - 1], bl
je 0x41bae9
mov ecx, esi
call fcn.00419fef
jmp 0x41baf0

Function at 0x41bb97
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x41bbcd
mov ecx, dword [esi + 0x44]
push edi
call fcn.0041a6c5
mov edi, dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, edi
je 0x41bbbf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x18], 0
pop edi
pop esi
ret
Function at 0x41bfd7
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
call fcn.0041bc4c
mov ecx, esi
call fcn.0041bc6d
cmp byte [esi + 0xd], 0
mov eax, str.POST
jne 0x41bffe
mov eax, 0x430488
push eax
lea ecx, [esp + 0x34]
call fcn.00404cea
mov byte [esp + 0x10], 0
mov ebx, 0x567028
lea edi, [esi + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
push edi
jg 0x41c13d
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.0041bd86
call fcn.004119a9
xor ecx, ecx
cmp byte [eax + 0x3c], cl
sete cl
xor edi, edi
dec ecx
and ecx, 0xffffffa6
add ecx, 0x64
mov ebp, ecx
test ebp, ebp
jle 0x41c0b3
cmp byte [esp + 0x10], 0
jne 0x41c175
test edi, edi
je 0x41c06f
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0041be33
mov ecx, esi
call fcn.0041bc23
movzx eax, al
push eax
call fcn.0041bc23
cmp byte [esi + 0xc], 0
mov ecx, dword [esi + 0x44]
movzx eax, al
push eax
sete al
movzx eax, al
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041ba2b
inc edi
cmp edi, ebp
mov byte [esp + 0x10], al
jl 0x41c055
test al, al
jne 0x41c175
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c012
add eax, 4
push eax
lea ecx, [esp + 0x18]
call fcn.0040676c
mov ecx, dword [esi + 0x14]
call fcn.00419cf5
mov edi, 0x566a10
push edi
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41c12b
push ebx
push 0
push 0x42da8c
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41c12b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x41c123
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.004049f8
jmp 0x41c012
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x44]
call fcn.0041a0e5
mov ecx, dword [esi + 0x44]
push eax
call fcn.0041a0ec
push eax
push dword [esp + 0x18]
mov ecx, esi
call fcn.0041bec1
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.004049f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esi + 0x44]
call fcn.0041a0f3
cmp eax, 0x12c
jl 0x41c143
mov ecx, dword [esi + 0x44]
call fcn.0041a0f3
cmp eax, 0x1f4
jge 0x41c143
mov ecx, dword [esi + 0x44]
call fcn.0041a0f3
push eax
push 0x50
push 0
jmp 0x41c159

Function at 0x41c414
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.0041bb97
xor eax, eax
push eax
push eax
push esi
push 0x41c3da
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
pop esi
ret
Function at 0x41cad7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x2c], edi
jne 0x41cb61
mov eax, dword [esi + 0x10]
cmp eax, edi
jle 0x41cb61
mov ecx, dword [esi + 0x14]
cmp ecx, edi
jle 0x41cb61
push edi
push 1
mov dword [ebp + 8], eax
push ecx
lea eax, [ebp + 8]
push eax
call fcn.00407fec
add esp, 0x10
mov dword [ebp - 4], eax
cmp eax, edi
je 0x41cb5d
push ebx
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
mov ecx, esi
call fcn.00406d59
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41cb53
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x44], 1
push dword [ebp - 4]
call fcn.0042c244
pop ecx
pop ebx
mov al, 1
jmp 0x41cb63
xor al, al
pop edi
pop esi
leave
ret

Function at 0x41d647
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, ecx
push edi
push edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1c], eax
call ebx
push edi
push edi
push esi
push 0x41d5e9
push edi
push edi
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
push 0x190
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x41e986
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbbc
push esi
push edi
push 0x3b8
lea eax, [ebp - 0x3b8]
push 0
push eax
mov esi, ecx
call fcn.0042c331
mov edi, dword [esi + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xbbc], ax
lea eax, [ebp - 0xbba]
push eax
mov dword [ebp - 0x3bc], 0x3bc
mov dword [ebp - 0x3b8], edi
mov dword [ebp - 0x3b4], 1
mov dword [ebp - 0x3b0], 6
call fcn.0042c331
add esp, 0x18
push 0x400
lea eax, [ebp - 0xbbc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea eax, [ebp - 0xbbc]
push eax
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x3a8], eax
lea eax, [ebp - 0x3bc]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop edi
pop esi
leave
ret
Function at 0x42120e
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0xc]
push edi
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 9
mov dword [esi + 0xc], ebx
call fcn.0040610d
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
pop ecx
push ebx
call edi
push dword [ebp + 8]
mov ecx, esi
call fcn.004211c8
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
cmp eax, ebx
je 0x4212ef
push eax
push 6
call fcn.004060aa
pop ecx
pop ecx
push ebx
call edi
push dword [ebp + 8]
mov ecx, esi
call fcn.004211eb
push eax
push dword [esi + 8]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x4212ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 4]
cmp eax, 0xb7
push 6
sete byte [ebp + 0xb]
call fcn.004060aa
pop ecx
pop ecx
push ebx
push ebx
push ebx
push 6
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x4212ef
mov ecx, esi
call fcn.0042119e
cmp byte [ebp + 0xb], bl
je 0x4212d2
mov eax, dword [esi + 0xc]
cmp byte [eax], 0x23
je 0x4212e2
mov eax, dword [esi + 0xc]
mov byte [eax], 0x23
mov edi, dword [esi + 0xc]
xor eax, eax
add edi, 4
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x4212ef
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0xc]
push eax
call fcn.00406097
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x42153b
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push 0
push 1
lea ecx, [esi + 0x248]
call fcn.004049f8
mov ecx, esi
pop esi
jmp fcn.0040e5ad

Function at 0x421a88
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx + 0x340], eax
jle 0x421aaa
push eax
push eax
push esi
push 0x42185c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
ret
Function at 0x42273a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
lea ecx, [ebp - 0x10]
call fcn.00404154
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
add eax, 4
push eax
mov eax, dword [ebp - 8]
dec eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00403a37
cmp byte [eax], bl
jne 0x422784
lea ecx, [ebp - 0x10]
call fcn.004041ae
jmp 0x422862
push esi
mov esi, dword [ebp + 8]
add esi, 0xe4
push esi
call fcn.0040c138
pop ecx
test al, al
je 0x422859
lea ecx, [ebp - 0x54]
call fcn.00419f97
cmp dword [esi + 0x18], 8
jb 0x4227b0
mov eax, dword [esi + 4]
jmp 0x4227b3
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404cea
push ebx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x208]
call fcn.0041aa16
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004049f8
push 0x430488
lea ecx, [ebp - 0x2c]
call fcn.00404cea
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x208]
call fcn.0041ba2b
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 1], al
call fcn.004049f8
cmp byte [ebp - 1], bl
je 0x422834
cmp dword [esi + 0x18], 8
jb 0x42281b
mov esi, dword [esi + 4]
jmp 0x42281e
add esi, 4
push esi
push str._r_nantipreloader_event_fired__s
call fcn.004119a9
push eax
call fcn.00410e49
add esp, 0xc
jmp 0x422846
push str._r_nantipreloader_event_failed
call fcn.004119a9
push eax
call fcn.00410e49
pop ecx
pop ecx
lea ecx, [ebp - 0x208]
call fcn.0041a921
lea ecx, [ebp - 0x54]
call fcn.00419fab
lea ecx, [ebp - 0x10]
call fcn.004041ae
pop esi
pop ebx
leave
ret