joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465880
Capabilities:
Create directory
Delete file
Get common file path
Move file

Disassembly:
call fcn.00469710
mov ecx, eax
jmp fcn.004653f0

Function at 0x465890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4c35
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x669ae8], 0xffffffff
jne 0x4658ca
xor al, al
jmp 0x465a3b
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0x100
push 0x30
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0059c4a0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
mov dword [ebp - 0x58], eax
add esp, 0xc
mov dword [ebp - 0x40], 0x100
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x3c], 0x144
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x34], 0x20
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x685088
call fcn.0045dbb0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x4659b6
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x46597d
cmp dword [ebp - 0x28], edx
jne 0x465978
push 1
call fcn.0059ae0f
mov esi, dword [ebp - 0x1c]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
jmp 0x465986
sub ecx, edx
lea eax, [ecx + 1]
shr eax, 1
add ecx, eax
sub esi, edx
lea edi, [esi + 1]
cmp ecx, edi
cmovae edi, ecx
test edi, edi
jne 0x4659a1
push edx
call fcn.005aaea9
add esp, 4
xor eax, eax
jmp 0x4659ab
push edi
push edx
call fcn.005ad9c6
add esp, 8
lea ecx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
add esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x1c], eax
mov byte [esi], 0
mov edi, dword [ebp - 0x20]
mov esi, edi
dec dword [ebp - 0x1c]
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4659d0
push 0
push 0
push 0
push dword [0x669ae8]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [0x669ae8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [ebp - 0x5c]
push eax
push esi
push edi
push dword [0x669ae8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x4c]
test eax, eax
setne byte [ebp - 0x5d]
call fcn.005aaea9
push 1
push dword [ebp - 0x50]
call fcn.0059a744
push dword [ebp - 0x20]
call fcn.005aaea9
push 1
push dword [ebp - 0x24]
call fcn.0059a744
mov al, byte [ebp - 0x5d]
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
Function at 0x465b40
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 4], eax
push esi
call fcn.00469790
mov esi, eax
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push str.check_update_timing
call fcn.00466020
add esp, 8
cmp dword [esp + 4], 0
jne 0x465bc7
cmp dword [esi + 0x10], 0
jne 0x465bc7
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x465bb2
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 4], 0x103
jne 0x465ba4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
push 0
push 0
push 0
push dword [esi + 4]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.0059a5ad
add esp, 8
ret
Function at 0x4681f0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x468236
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 4], 0x103
jne 0x468228
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov ecx, dword [esp + 8]
mov al, 1
pop esi
xor ecx, esp
call fcn.0059a5ad
add esp, 8
ret
Function at 0x46be60
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c520d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0045dab0
add esp, 0xc
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push str._Initialize_4
cmova eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call fcn.005430c0
test eax, eax
je 0x46bf52
mov eax, dword [ebp - 0x18]
push 0x40
push 0x3000
lea esi, [eax*2 + 2]
push esi
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x46bf52
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
lea edi, [ebp - 0x2c]
push esi
push eax
push ecx
push dword [ebp - 0x2c]
lea ebx, [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push dword [ebp - 0x30]
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x46bf31
xor esi, esi
jmp 0x46bf3f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 1
push 0x8000
push 0
push dword [ebx]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x46bf54
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x46bf8a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46bf80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bfaa
push ecx
push edx
call fcn.0059a744
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret 0xc
call fcn.005ad975
int3
Function at 0x471180
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0xa0
push 0xffffffffffffffff
push 0x5c55e0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xa8]
mov eax, dword [ebp + 0xac]
test esi, esi
jne 0x4711ce
xor eax, eax
jmp 0x471389
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x5c]
lea edi, [eax + ecx*8]
cmp dword [edi + 0x2c], 0xf
lea eax, [edi + 0x18]
jbe 0x4711e8
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.00544480
lea eax, [ebp + 0x6c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.005439d0
add esp, 0x14
cmp dword [ebp + 0x98], 7
lea edx, [ebp]
push edx
lea edx, [ebp + 0x10]
mov byte [ebp - 4], 1
push edx
lea eax, [ebp + 0x84]
mov dword [ebp + 0x10], 0x44
cmova eax, dword [ebp + 0x84]
lea ecx, [ebp + 0x6c]
cmp dword [ebp + 0x80], 7
xorps xmm0, xmm0
push eax
cmova ecx, dword [ebp + 0x6c]
push 0
push 4
push 0
push 0
push 0
push 0
push ecx
movlpd qword [ebp + 0x14], xmm0
movlpd qword [ebp + 0x1c], xmm0
movlpd qword [ebp + 0x24], xmm0
movlpd qword [ebp + 0x2c], xmm0
movlpd qword [ebp + 0x34], xmm0
movlpd qword [ebp + 0x3c], xmm0
movlpd qword [ebp + 0x44], xmm0
movlpd qword [ebp + 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp]
call fcn.00483b90
add esp, 4
mov ebx, eax
cmp byte [edi + 0x34], 0
je 0x471314
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00543ab0
add esp, 8
cmp dword [ebp + 0x68], 7
lea eax, [ebp + 0x54]
mov ecx, dword [ebp + 0x64]
cmova eax, dword [ebp + 0x54]
mov byte [ebp - 4], 2
cmp ecx, 9
jne 0x4712f1
push ecx
push 0x5d6718
push eax
call fcn.00469370
add esp, 0xc
test eax, eax
jne 0x4712f1
push str.vpatch_th06_unicode.dll
lea eax, [ebp + 0x84]
push eax
push dword [ebp]
call fcn.0046be60
test eax, eax
jne 0x471308
push str.vpatch_th06.dll
jmp 0x4712f9
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471308
push eax
lea eax, [ebp + 0x84]
push eax
push dword [ebp]
call fcn.0046be60
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 1
call fcn.004443f0
cmp byte [edi + 0x35], 0
je 0x47135f
push ebx
push dword [ebp]
call fcn.00484150
add esp, 8
test al, al
je 0x47133d
push 0
push 0
push dword [ebp]
call fcn.00482430
add esp, 0xc
test al, al
jne 0x47135f
push 0x65b
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp]
call esi
xor esi, esi
jmp 0x471374
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp]
lea ecx, [ebp + 0x84]
call fcn.004443f0
lea ecx, [ebp + 0x6c]
call fcn.004443f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0059a5ad
lea esp, [ebp + 0xa0]
pop ebp
ret 8
Function at 0x471c70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
call fcn.004782b0
push str._thcrap.exe
lea esi, [eax + 0x188]
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0045dab0
add esp, 0xc
cmp dword [esi + 0x14], 7
jbe 0x471ca6
mov esi, dword [esi]
cmp dword [esp + 0x1c], 7
lea eax, [esp + 8]
push 5
cmova eax, dword [esp + 0xc]
push esi
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [esp + 8]
seta bl
call fcn.004443f0
mov ecx, dword [esp + 0x20]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.0059a5ad
add esp, 0x1c
ret

Function at 0x471cf0
Capabilities:
Enumerate files on windows

Disassembly:
call fcn.004782b0
mov ecx, eax
jmp fcn.00478f70

Function at 0x472ac0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]

Function at 0x473d90
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 4], eax
push ebp
mov ebp, ecx
push edi
mov eax, dword [ebp + 0x1d4]
cmp eax, 0xffffffff
je 0x473de7
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 8], 0x103
jne 0x473dd1
push 0
push dword [ebp + 0x1d4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x1d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x1d4], 0xffffffff
push 0
push 0x5cba4c
lea ecx, [ebp + 0x28c]
call fcn.00469160
lea ecx, [ebp + 0x274]
cmp ecx, eax
je 0x473e15
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x473e0e
mov eax, dword [eax]
push edx
push eax
call fcn.00469160
push 0
push 0x5d5a64
lea ecx, [ebp + 0x208]
mov dword [ebp + 0x2a4], 0
call fcn.00469260
push 1
push 0x5d63bc
lea ecx, [ebp + 0x1f0]
mov dword [ebp + 0x1e4], 0
mov dword [ebp + 0x1ec], 0
call fcn.00469160
lea edx, [ebp + 0x1e8]
mov dword [ebp + 0x26e], 0x10100
lea eax, [edx + 4]
mov byte [ebp + 0x272], 0
cmp eax, edx
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 4
cmp edx, eax
ja 0x473e8b
push ecx
push 0
push edx
call fcn.0059c4a0
add esp, 0xc
lea edx, [ebp + 0x268]
lea eax, [edx + 6]
cmp eax, edx
sbb ecx, ecx
and ecx, 0xfffffffa
add ecx, 6
cmp edx, eax
ja 0x473eae
push ecx
push 1
push edx
call fcn.0059c4a0
add esp, 0xc
lea edi, [ebp + 0x220]
lea eax, [edi + 0x48]
mov dword [esp + 8], eax
cmp edi, eax
je 0x473ef0
push ebx
push esi
mov esi, dword [edi]
mov ebx, dword [edi + 4]
cmp esi, ebx
je 0x473ee7
nop word [eax + eax]
mov ecx, esi
call fcn.0046bd40
add esi, 0x40
cmp esi, ebx
jne 0x473ed0
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x10]
add edi, 0xc
cmp edi, eax
jne 0x473ec1
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ebp + 0x2a8], 0
pop ebp
xor ecx, esp
call fcn.0059a5ad
add esp, 8
ret
Function at 0x475bf0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x1c
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, dword [esp + 0x28]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x475c0e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea eax, [esp + 8]
push esi
push eax
call fcn.005439d0
add esp, 8
cmp ebx, 0xffffffff
je 0x475c61
test bl, 0x10
jne 0x475c61
cmp dword [esp + 0x1c], 7
lea eax, [esp + 8]
cmova eax, dword [esp + 8]
cmp dword [esi + 0x14], 7
jbe 0x475c45
mov esi, dword [esi]
push 5
push eax
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x475c61
mov bl, 1
jmp 0x475c63
xor bl, bl
mov ecx, dword [esp + 0x1c]
cmp ecx, 7
jbe 0x475c9b
mov edx, dword [esp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x475c91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475cb0
push ecx
push edx
call fcn.0059a744
add esp, 8
mov ecx, dword [esp + 0x20]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.0059a5ad
add esp, 0x1c
ret 4
call fcn.005ad975
int3
Function at 0x477bc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
cmp ecx, eax
je 0x477d52
cmp dword [ecx + 0x1c], 0xf
mov eax, dword [edx + 4]
push ebx
mov ebx, dword [ecx + 0x18]
push ebp
lea ebp, [edx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
lea edx, [ecx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
push esi
mov dword [esp + 0x10], eax
mov esi, ecx
jbe 0x477c04
mov edx, dword [edx]
xor ecx, ecx
push edi
mov edi, 0x811c9dc5
test ebx, ebx
je 0x477c21
movzx eax, byte [edx + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x477c10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x18]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea eax, [edi + 8]
push eax
push ebp
call fcn.0046b250
push 0x90
push edi
call fcn.0059a744
dec dword [ebp + 4]
add esp, 0x10
cmp ebx, dword [esp + 0x1c]
je 0x477c98
mov eax, dword [esp + 0x34]
cmp esi, eax
jne 0x477c42
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x30]
jne 0x477d45
mov ecx, dword [esp + 0x18]
pop edi
mov dword [ecx], esi
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
jne 0x477cae
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
jmp 0x477cb2
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
cmp esi, eax
je 0x477d45
cmp dword [esi + 0x1c], 0xf
lea edi, [esi + 8]
mov ebx, dword [edi + 0x10]
jbe 0x477ccf
mov edi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x477cf1
nop word [eax + eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x477ce0
mov eax, dword [esp + 0x20]
and edx, dword [eax + 0x18]
mov eax, dword [esp + 0x24]
lea eax, [eax + edx*8]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea eax, [edi + 8]
push eax
push ebp
call fcn.0046b250
push 0x90
push edi
call fcn.0059a744
dec dword [ebp + 4]
add esp, 0x10
mov eax, dword [esp + 0x34]
cmp ebx, dword [esp + 0x1c]
je 0x477d58
cmp esi, eax
jne 0x477d10
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x477cc1
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x478bc0
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x5c5c8e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x420]
xor ebx, ebx
mov esi, dword [ebp + 0x41c]
mov edi, dword [ebp + 0x424]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
call fcn.004782b0
add eax, 0x188
cmp dword [eax + 0x14], 7
jbe 0x478c25
mov eax, dword [eax]
push str.thcrap_loader.exe
push eax
lea eax, [ebp]
push str._s_s
push eax
call fcn.0046b400
add esp, 0x10
test edi, edi
je 0x478c6e
push 0xfde9
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00544480
add esp, 0xc
cmp dword [ebp - 0x30], 7
lea edi, [ebp - 0x44]
mov ebx, 3
mov dword [ebp - 4], 0
cmova edi, dword [ebp - 0x44]
mov dword [ebp - 0x10], ebx
jmp 0x478c73
mov edi, 0x5d5a64
push 0xfde9
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.00544480
add esp, 0xc
lea eax, [ebp - 0x2c]
or ebx, 4
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
cmp dword [esi + 0x14], 7
jbe 0x478c9d
mov esi, dword [esi]
push edi
push eax
push esi
lea eax, [ebp + 0x208]
push str.__s___s_s
push eax
call fcn.0046b400
mov ecx, dword [ebp - 0x18]
add esp, 0x14
cmp ecx, 7
jbe 0x478cee
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x478ce4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478d68
push ecx
push edx
call fcn.0059a744
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x478d16
lea ecx, [ebp - 0x44]
call fcn.004443f0
call fcn.004782b0
add eax, 0x188
cmp dword [eax + 0x14], 7
jbe 0x478d28
mov eax, dword [eax]
push 5
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0059a5ad
lea esp, [ebp + 0x414]
pop ebp
ret 0xc
call fcn.005ad975
int3
Function at 0x479680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5dad
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push str._thcrap_loader.exe
push esi
push eax
call fcn.0045dab0
push str._thcrap.exe
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.0045dab0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x40]
add esp, 0x18
cmp dword [ebp - 0x2c], 7
cmova eax, dword [ebp - 0x40]
push eax
call esi
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov ebx, eax
cmova ecx, dword [ebp - 0x28]
push ecx
call esi
cmp ebx, 0xffffffff
je 0x47970c
test bl, 0x10
jne 0x47970c
cmp eax, 0xffffffff
je 0x47970c
mov bl, 1
jmp 0x47970e
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x479744
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47973a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4797ad
push ecx
push edx
call fcn.0059a744
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x47978e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x479784
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4797ad
push ecx
push edx
call fcn.0059a744
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret 4
call fcn.005ad975
int3

Function at 0x47dcc0
Capabilities:
Identify system language via api

Disassembly:
push 1
call fcn.00465270
add esp, 4
test al, al
je 0x47dce1
call fcn.004831e0
test al, al
jne 0x47dcdc
call fcn.00482e70
jmp fcn.00465190
ret
Function at 0x47e6f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c62b0
mov eax, dword fs:[0]
push eax
mov eax, 0x2724
call fcn.0059afa0
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x13a4], edi
test ecx, ecx
jne 0x47e73c
push ecx
call fcn.005ae0b4
add esp, 4
mov ecx, eax
mov dword [ebp - 0x13ac], 0xffffffff
mov edx, 1
mov dword [ebp - 0x272c], ecx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [ebp + edx*4 - 0x272c], ecx
inc edx
cmp edx, 0x270
jb 0x47e751
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x13a0], eax
lea eax, [ebp - 0x2730]
push 0x1388
push eax
lea eax, [ebp - 0x1398]
mov dword [ebp - 0x2730], 0x270
push eax
mov dword [ebp - 0x139c], ecx
call fcn.0059ce90
mov dword [edi + 0x24], 0
push 0x13b7
mov dword [ebp - 4], 0
call fcn.0059ae0f
add esp, 0x10
test eax, eax
je 0x47e81c
mov ecx, dword [ebp - 0x139c]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
push 0x1388
mov dword [esi - 4], eax
mov eax, dword [ebp - 0x13a0]
mov dword [esi], 0x5d71c8
mov dword [esi + 4], eax
lea eax, [ebp - 0x1398]
mov dword [esi + 8], ecx
lea ecx, [esi + 0xc]
push eax
push ecx
call fcn.0059ce90
add esp, 0xc
mov dword [edi + 0x24], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
call fcn.005ad975
int3