joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8800
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.005dc4c0
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4f8875
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4f8875
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.0061970d
add esp, 0x10
lea ecx, [ebp - 0x208]
test eax, eax
push 0
push ecx
mov ecx, 0x200
cmovs eax, ecx
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4f89b5
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f8880
sub ecx, edx
lea edi, [ecx + 1]
lea eax, [edi + edi]
call fcn.005dc370
mov esi, esp
test esi, esi
jne 0x4f88a4
mov esi, str.no_stack_
jmp 0x4f8933
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4f88d1
xor ecx, ecx
test edi, edi
je 0x4f88d1
lea esp, [esp]
mov eax, dword [ebp + 8]
movsx ax, byte [ecx + eax]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x4f88c0
xor ecx, ecx
test edi, edi
je 0x4f8933
lea ebx, [ecx + 0x53]
lea ebx, [ebx]
cmp word [esi + ecx*2], 0x25
jne case.0x4f8902.43
lea edx, [ecx + 1]
lea edx, [esi + edx*2]
lea ecx, [ecx]
movzx eax, word [edx]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x4f8902.43
movzx eax, byte [eax + 0x4f89e4]
jmp dword [eax*4 + 0x4f89cc]
inc ecx
add edx, 2
jmp 0x4f88f0
mov word [esi + ecx*2 + 2], bx
jmp case.0x4f8902.43
mov eax, 0x73
jmp 0x4f8929
mov eax, 0x43
jmp 0x4f8929
mov eax, 0x63
mov word [esi + ecx*2 + 2], ax
inc ecx
cmp ecx, edi
jb 0x4f88e0
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.006196f2
add esp, 0x10
xor eax, eax
mov word [ebp - 6], ax
call fcn.004f86e0
test eax, eax
jle 0x4f899f
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4f89b5
push 0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4f89b5
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret
Function at 0x5104c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ebp
push edi
sub ecx, 4
jb 0x5104f1
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x5104f8
add edx, 4
add esi, 4
sub ecx, 4
jae 0x5104e0
xor edi, edi
cmp ecx, 0xfffffffc
je 0x510533
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x510533
cmp ecx, 0xfffffffd
je 0x510533
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x510533
cmp ecx, 0xfffffffe
je 0x510533
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x510533
cmp ecx, 0xffffffff
je 0x510533
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle case.0x5105ab.2
mov edi, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
jle 0x51055d
mov esi, edi
mov edx, ebp
sub esi, ebp
jmp 0x510550
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x51055d
inc ecx
inc edx
cmp ecx, ebx
jl 0x510550
lea edx, [ebx - 1]
test edx, edx
js 0x51057f
mov esi, edi
lea eax, [edx + ebp]
sub esi, ebp
jmp 0x510570
cmp byte [eax + esi], 0
jne 0x51057f
cmp byte [eax], 0xff
jne 0x51057f
dec eax
dec edx
jns 0x510570
cmp ecx, edx
jl case.0x5105ab.2
jle 0x510591
pop edi
pop esi
pop ebp
lea eax, [ecx*8]
pop ebx
ret
mov bl, byte [ecx + ebp]
mov dh, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x5105ab.2
movzx eax, byte [eax + 0x51061c]
jmp dword [eax*4 + 0x5105fc]
mov eax, 7
jmp 0x5105e1
mov eax, 6
jmp 0x5105e1
mov eax, 5
jmp 0x5105e1
mov eax, 4
jmp 0x5105e1
mov eax, 3
jmp 0x5105e1
mov eax, 2
jmp 0x5105e1
mov eax, 1
test dl, dh
jne case.0x5105ab.2
and bl, dl
cmp bl, dl
jne case.0x5105ab.2
pop edi
pop esi
pop ebp
lea eax, [eax + ecx*8]
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x511510
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
xor dl, dl
test edi, edi
je 0x51157a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x51157a
movzx esi, byte [edi]
cmp dword [esp + 0x18], ecx
jne 0x51153f
cmp esi, 0x7f
jbe 0x511575
mov ecx, 1
lea ebp, [ecx + eax]
jmp 0x511581
or dl, 0xff
cmp esi, 0x80
jbe 0x511554
mov ecx, 1
lea ebp, [ecx + eax]
jmp 0x511581
jne 0x511575
xor edx, edx
lea esi, [edx + 1]
cmp eax, esi
jbe 0x51156b
nop
movzx ecx, byte [esi + edi]
inc esi
or edx, ecx
cmp esi, eax
jb 0x511560
neg edx
sbb dl, dl
movzx ecx, dl
and ecx, 1
lea ebp, [ecx + eax]
jmp 0x511581
mov ebp, 1
xor eax, eax
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x5115cb
mov esi, dword [esi]
test esi, esi
je 0x5115cb
mov byte [esi], dl
push ebx
movzx edx, dl
lea ebx, [esi + ecx]
mov dword [esp + 0x14], edx
lea esi, [edi + eax]
and edx, 1
add ebx, eax
test eax, eax
je 0x5115c4
mov edi, dword [esp + 0x14]
sub ebx, esi
mov edi, edi
movzx ecx, byte [esi - 1]
lea esi, [esi - 1]
xor ecx, edi
add edx, ecx
mov byte [ebx + esi], dl
shr edx, 8
dec eax
jne 0x5115b0
mov eax, dword [esp + 0x20]
pop ebx
add dword [eax], ebp
pop edi
pop esi
mov eax, ebp
pop ebp
ret
Function at 0x511660
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
movzx ebx, al
add esi, edx
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
and eax, 1
add edi, edx
test edx, edx
je 0x511699
movzx ecx, byte [edi - 1]
lea edi, [edi - 1]
xor ecx, ebx
lea esi, [esi - 1]
add eax, ecx
mov byte [esi], al
shr eax, 8
dec edx
jne 0x511683
pop edi
pop esi
pop ebx
ret
Function at 0x5435e0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x5435f8
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x5435fd
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test esi, esi
jle 0x5436c2
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x543665
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [eax + 2], cl
movzx ecx, byte [edx + ebx]
mov byte [eax + 3], cl
jmp 0x5436ad
shl edx, 0x10
cmp esi, 2
jne 0x543675
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x54369c
lea ecx, [esi + 0x3c]
jmp 0x5436a6
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + ebx]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebp, 4
add edi, 3
test esi, esi
jg 0x543613
pop edi
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x545090
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x130
call fcn.005dc4c0
mov eax, dword [0x6b8dd8]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x144]
push ebx
mov ebx, dword [esp + 0x138]
push ebp
mov ebp, dword [esp + 0x140]
push esi
mov esi, dword [esp + 0x148]
push edi
mov edi, dword [esp + 0x150]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
test edi, edi
je 0x5450f7
cmp edi, dword [ebx]
je 0x5450f3
test ebp, ebp
je 0x5452cf
test esi, esi
js 0x5452cf
mov dword [ebx], edi
jmp 0x545101
mov edi, dword [ebx]
test edi, edi
je 0x5452cf
push edi
call fcn.004e1bb0
add esp, 4
test al, 2
jne 0x5452cf
test ebp, ebp
je 0x545282
push edi
mov dword [esp + 0x14], 1
call fcn.004da510
add esp, 4
cmp eax, 0x90
jg 0x5452cf
cmp eax, esi
jge 0x54518a
push dword [esp + 0x18]
push edi
push dword [ebx + 4]
call fcn.004e0910
add esp, 0xc
test eax, eax
je 0x5452cf
push esi
push ebp
push dword [ebx + 4]
call fcn.004e0ac0
add esp, 0xc
test eax, eax
je 0x5452cf
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebx + 4]
call fcn.004e0870
add esp, 0xc
test eax, eax
je 0x5452cf
mov esi, dword [esp + 0x14]
jmp 0x5451a9
cmp esi, 0x90
ja 0x5452cf
push esi
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.005f31f0
add esp, 0xc
mov dword [esp + 0x14], esi
cmp esi, 0x90
je 0x5451ca
mov eax, 0x90
sub eax, esi
push eax
lea eax, [esp + 0x20]
add eax, esi
push 0
push eax
call fcn.005f3cf0
add esp, 0xc
movdqa xmm1, xmmword [str.6666666666666666cryptoevpp_lib.c]
xor eax, eax
movdqu xmm0, xmmword [esp + eax + 0x1c]
pxor xmm0, xmm1
movdqu xmmword [esp + eax + 0xac], xmm0
add eax, 0x10
cmp eax, 0x90
jl 0x5451d4
mov ebp, dword [esp + 0x18]
push ebp
push edi
push dword [ebx + 8]
call fcn.004e0910
add esp, 0xc
test eax, eax
je 0x5452a5
push edi
call fcn.004da510
push eax
lea eax, [esp + 0xb4]
push eax
push dword [ebx + 8]
call fcn.004e0ac0
add esp, 0x10
test eax, eax
je 0x5452a5
movdqa xmm1, xmmword [0x637e50]
xor eax, eax
movdqu xmm0, xmmword [esp + eax + 0x1c]
pxor xmm0, xmm1
movdqu xmmword [esp + eax + 0xac], xmm0
add eax, 0x10
cmp eax, 0x90
jl 0x545236
push ebp
push edi
push dword [ebx + 0xc]
call fcn.004e0910
add esp, 0xc
test eax, eax
je 0x5452a5
push edi
call fcn.004da510
push eax
lea eax, [esp + 0xb4]
push eax
push dword [ebx + 0xc]
call fcn.004e0ac0
add esp, 0x10
test eax, eax
je 0x5452a5
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.004e0b00
xor ebx, ebx
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebx, ecx
cmp dword [esp + 0x10], 0
je 0x5452cb
jmp 0x5452a7
xor ebx, ebx
lea eax, [esp + 0x1c]
push 0x90
push eax
call fcn.004f0d20
lea eax, [esp + 0xb4]
push 0x90
push eax
call fcn.004f0d20
add esp, 0x10
mov eax, ebx
jmp 0x5452d1
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005db6f9
add esp, 0x130
ret
Function at 0x5deadd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x614eb0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00614a03

Function at 0x40f524
Capabilities:
Encode data using xor

Disassembly:
adc bl, dh
push ss
dec eax
xor cl, dh
add dword [eax - 0x44106283], ebp
out 0x29, al
imul dword [ebp - 0x51]
adc al, 0x53
cmp dword [ecx + 0x71bedf71], eax
mov bl, 0xfd
add edi, ebp
rcl dword [ebx], cl
cmpsb byte [esi], byte es:[edi]
imul edi, dword [ebp - 0x7b], 0xaa5a7f35
add eax, 0xb4a36aa9
mov al, 0xc7
in eax, dx
cdq
dec esp
aas
lodsb al, byte [esi]
inc edx
aad 0xd6
fstp dword [eax + edx*8 + 0x7d]
leave
wait
wait
wait
sub dl, cl
loop 0x40f4e8
pop edx
invalid
Function at 0x401620
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44edbc
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x468110]
xor eax, esp
mov dword [esp + 0x44c], eax
push esi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4e]
push ecx
mov word [esp + 0x50], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x44]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Thunder_NetworkThunderNewTask_
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x44]
push ecx
call fcn.00432687
call fcn.00401410
lea esi, [esp + 0xc]
call fcn.00406910
mov dword [esp + 0x460], 0
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x10]
jae 0x4016c4
lea eax, [esp + 0x10]
push eax
call fcn.004326ad
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x256]
push eax
mov word [esp + 0x258], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x250]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x2e
lea edx, [esp + 0x250]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0042d621
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp dword [esp + 0x40], 8
jae 0x401725
lea eax, [esp + 0x2c]
push eax
push 0x456e40
push 0
push 0
push 0x456e60
call fcn.00432665
push 0
call fcn.0043269a
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xc]
mov dword [esp + 0x460], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.00436772
add esp, 0x45c
ret

Function at 0x401790
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x468110]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
mov esi, dword [ebp + 0x10]
call fcn.00401410
call fcn.00401620
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.00401a90
push esi
call fcn.004014e0
add esp, 4
mov esi, eax
call fcn.004019f0
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00436772
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44d3c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.Xunlei::XARFileChecker.0
lea ecx, [esi + 0x4c]
mov dword [esp + 0x14], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x403490
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
push 0x4574d0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, eax
mov eax, dword [esp + 0x124]
push eax
push ebx
call esi
lea eax, [ebx + 0x208]
push ebx
push eax
call esi
lea eax, [ebx + 0x618]
push ebx
push eax
call esi
test edi, edi
jne 0x4034f8
lea edi, [ebx + 0xa28]
push edi
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x40358d
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x453438
call edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test eax, eax
jne 0x403522
mov dword [esp + 0x1c], eax
jmp 0x40355e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
inc ebp
lea edi, [esp + 0x20]
mov ecx, ebp
lea esi, [esp + 0x1c]
call fcn.00408c00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ebp, ebp
push ebp
push eax
push ebp
push ecx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
push eax
call fcn.00401090
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x14
mov edx, dword [esp + 0x1c]
push edx
lea edi, [ebx + 0xa28]
push edi
call esi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x403582
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Thunder_NetworkThunder_
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.Profiles_
lea ebp, [ebx + 0x208]
push ebp
lea esi, [ebx + 0x410]
push esi
call edi
push str.thunderxarThunderNewTask_
push ebx
lea eax, [ebx + 0x1040]
push eax
call edi
push str.Data_
lea eax, [ebx + 0x618]
lea ecx, [ebx + 0x820]
push eax
push ecx
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4035ef
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push eax
call esi
jmp 0x4035f5
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x403604
push ebp
push eax
call esi
lea ebp, [ebx + 0x820]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x403619
push ebp
push eax
call esi
mov ecx, dword [esp + 0x124]
push str..Program_
push ecx
add ebx, 0xc30
push ebx
call edi
push ebx
call fcn.00403650
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x4039e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e082
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ecx, 0x4ab64c
mov dword [esp + 4], 0x4ab64c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x4aa810
mov ecx, 0x4ab64c
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.newtask.ini
lea eax, [esp + 0xc]
push 0x4ab64c
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0xc
push eax
mov ecx, 0x4ab64c
mov byte [esp + 0x30], 1
call dword [0x451350]
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 0x4ab64c
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
add esp, 0x2c
ret

Function at 0x403a80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44d389
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18]
mov ecx, 8
mov dword [esp + 0x10], 0
cmp dword [eax + 0x18], ecx
jb 0x403abc
mov eax, dword [eax + 4]
jmp 0x403abf
add eax, 4
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x50], ecx
jae 0x403acd
lea edx, [esp + 0x3c]
cmp dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x20]
jae 0x403adb
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x58]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0x40
Function at 0x405030
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
push 0x28
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
imul eax, eax, 0x64
shr eax, 0x14
shr ecx, 0x14
xor edx, edx
div ecx
mov esp, ebp
pop ebp
ret
Function at 0x405300
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 8
rdtsc
mov dword [esp + 4], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
mov dword [esp], eax
mov ecx, dword [esp]
sub ecx, dword [esp + 4]
mov eax, 0x4f8b588f
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xf
add esp, 8
ret
Function at 0x405920
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x44ff72
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x44]
mov ebp, dword [eax + 0x3c]
mov esi, dword [esp + 0x18]
push 4
xor edi, edi
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405998
mov eax, edi
push eax
sub esi, ebp
push 0x2710
sbb edi, eax
push edi
push esi
call fcn.00449d30
mov dword [ebx], eax
mov esi, ebx
jmp 0x40599a
xor esi, esi
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x48], 0
jne 0x405a10
push 0x3e8
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x64], esp
mov bl, 1
push 0x4572c8
mov byte [eax + 0x48], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
sub esp, 0x1c
mov dword [esp + 0x78], 0
mov ecx, esp
mov dword [esp + 0x50], esp
push str.general
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x78], bl
call fcn.00403b20
push eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.00403a80
cmp dword [esi], eax
jbe 0x405a10
push 0
push 0
push esi
push 0x405a30
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov eax, dword [esi]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4