joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464a80
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x464ad1
call fcn.00469590
test eax, eax
je 0x464abc
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Couldnt_terminate_thread
call eax
push eax
call fcn.004776b0
add esp, 4
mov eax, 5
pop esi
ret
mov eax, str.Couldnt_terminate_thread
push eax
call fcn.004776b0
add esp, 4
mov eax, 5
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x464ae6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
xor eax, eax
pop esi
ret

Function at 0x464af0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x464b42
call fcn.00469590
test eax, eax
je 0x464b2c
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Can_not_resume_thread__x
call eax
mov ecx, dword [esi + 4]
push ecx
push eax
call fcn.004776b0
add esp, 8
xor al, al
pop esi
ret
mov ecx, dword [esi + 4]
mov eax, str.Can_not_resume_thread__x
push ecx
push eax
call fcn.004776b0
add esp, 8
xor al, al
pop esi
ret
cmp dword [esi + 8], 4
mov eax, 1
je 0x464b50
mov dword [esi + 8], eax
pop esi
ret

Function at 0x464c70
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5e999c], eax
cmp eax, 0xffffffff
jne 0x464cb6
call fcn.00469590
test eax, eax
je 0x464ca5
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Thread_module_initialization_failed:_impossible_to_allocate_index_in_thread_local_storage
call eax
push eax
call fcn.004776b0
add esp, 4
xor al, al
ret
mov eax, str.Thread_module_initialization_failed:_impossible_to_allocate_index_in_thread_local_storage
push eax
call fcn.004776b0
add esp, 4
xor al, al
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x464d10
mov ecx, dword [0x5e999c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x5e999c], 0xffffffff
call fcn.00469590
test eax, eax
je 0x464cff
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push 0x576af0
call eax
push eax
call fcn.004776b0
add esp, 4
xor al, al
ret
mov eax, 0x576af0
push eax
call fcn.004776b0
add esp, 4
xor al, al
ret
push 0x18
call fcn.005047e7
add esp, 4
test eax, eax
je 0x464d27
mov ecx, eax
call fcn.004646e0
jmp 0x464d29
xor eax, eax
push 0x18
mov dword [0x5f9660], eax
call fcn.005047e7
add esp, 4
test eax, eax
je 0x464d45
mov ecx, eax
call fcn.004646e0
jmp 0x464d47
xor eax, eax
mov ecx, eax
mov dword [0x5f965c], eax
call fcn.00464700
push 0x18
call fcn.005047e7
add esp, 4
test eax, eax
je 0x464d7b
mov ecx, eax
call fcn.004646e0
mov dword [0x5f9664], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x5f9658], eax
mov al, 1
ret
xor eax, eax
mov dword [0x5f9664], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x5f9658], eax
mov al, 1
ret
Function at 0x4651e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c098
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x20]
push fcn.00464990
push eax
call fcn.004651b0
add esp, 0xc
mov ecx, dword [0x5e999c]
push esi
or edi, 0xffffffff
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46527c
call fcn.00469590
test eax, eax
je 0x46525e
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Can_not_start_thread:_error_writing_TLS.
call eax
jmp 0x465263
mov eax, str.Can_not_start_thread:_error_writing_TLS.
push eax
call fcn.004776b0
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 4], edi
call fcn.00464ea0
mov eax, edi
jmp 0x4652b0
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov esi, eax
jmp 0x4652a2
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 4], edi
call fcn.00464ea0
mov eax, esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4653d0
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esi + 0x10]
push eax
push 4
push ecx
push 0x4652d0
push edx
push 0
call fcn.0050cc8a
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x465435
call fcn.00469590
test eax, eax
je 0x465421
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Cant_create_thread
call eax
push eax
call fcn.004776b0
add esp, 4
xor al, al
pop esi
ret 8
mov eax, str.Cant_create_thread
push eax
call fcn.004776b0
add esp, 4
xor al, al
pop esi
ret 8
mov eax, dword [esi + 0xc]
cmp eax, 0x32
je 0x465445
push eax
mov ecx, esi
call fcn.004649f0
mov al, 1
pop esi
ret 8

Function at 0x468060
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x5e9d20]
cmp eax, 0xffffffff
jne 0x4680d2
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.00507370
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4680c8
jne 0x4680c4
mov eax, dword [esp + 8]
test eax, eax
ja 0x4680c8
jne 0x4680c4
cmp word [esp + 0x114], 4
jae 0x4680c8
xor eax, eax
jmp 0x4680cd
mov eax, 1
mov dword [0x5e9d20], eax
mov ecx, dword [esp + 0x11c]
xor edx, edx
cmp eax, 1
sete dl
xor ecx, esp
mov al, dl
call fcn.0050a9d0
add esp, 0x120
ret
Function at 0x46db40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x55ba99
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 0x1c]
mov eax, dword [0x5e9844]
mov dword [esi], eax
push str.TMPDIR
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
call fcn.0050dddd
add esp, 4
push eax
mov ecx, esi
call fcn.0045fc90
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
jne 0x46dbd4
push 0x579218
call fcn.0050dddd
add esp, 4
push eax
mov ecx, esi
call fcn.0045fc90
mov edx, dword [esi]
cmp dword [edx - 8], 0
jne 0x46dbd4
push str.TEMP
call fcn.0050dddd
add esp, 4
push eax
mov ecx, esi
call fcn.0045fc90
mov eax, dword [esi]
cmp dword [eax - 8], 0
jne 0x46dc0c
push 0x105
mov ecx, esi
call fcn.0045f670
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, esi
call fcn.0045fce0
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
jne 0x46dc0c
push 0x2e
mov ecx, esi
call fcn.0045fc70
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x46f560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55c9b0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x5e9844]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push edi
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push esi
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x34], 0
call fcn.0046e120
add esp, 0x1c
test esi, esi
je 0x46f601
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
mov edx, edi
call fcn.0046e460
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.004621e0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x18], 0
cmp eax, 0xffffffff
je 0x46f601
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x46f601
call fcn.0045ea90
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x18], 0xffffffff
cmp eax, 0xffffffff
je 0x46f624
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x46f624
call fcn.0045ea90
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x46f640
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55c9d8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push edi
mov eax, edx
call fcn.0046d4c0
add esp, 4
test al, al
je 0x46f6dd
mov eax, dword [0x5e9844]
mov ecx, dword [0x576324]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
mov edx, dword [eax - 8]
dec edx
cmp edx, ecx
jae 0x46f696
mov ecx, edx
push ecx
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.0045fb60
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.0046e580
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x14], 0xffffffff
cmp eax, 0xffffffff
je 0x46f6e6
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x46f6e6
call fcn.0045ea90
jmp 0x46f6e6
push edi
push edx
mov ecx, esi
call fcn.0046e580
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0045f4a0
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esi + 0x18]
call fcn.0045f4a0
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045f4a0
mov dl, byte [esp + 0x2c]
mov byte [esi + 0x1d], dl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x18
Function at 0x46f730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55ca20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5e9844]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x40], 3
call fcn.0046e120
mov eax, dword [esp + 0x4c]
add esp, 0x1c
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0046f640
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 2
cmp eax, 0xffffffff
je 0x46f7e5
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x46f7e5
call fcn.0045ea90
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 1
cmp eax, 0xffffffff
je 0x46f805
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x46f805
call fcn.0045ea90
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 0
cmp eax, 0xffffffff
je 0x46f825
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x46f825
call fcn.0045ea90
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x24], 0xffffffff
cmp eax, 0xffffffff
je 0x46f848
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x46f848
call fcn.0045ea90
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x4705f0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x563428
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [0x5e9844]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00460610
push 1
push 0x579350
push 0x57934c
lea ecx, [esp + 0x10]
call fcn.00460ed0
push 1
push 0x5bf150
push 0x579348
lea ecx, [esp + 0x10]
call fcn.00460ed0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x10], 0xffffffff
cmp eax, 0xffffffff
je 0x47068d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x47068d
call fcn.0045ea90
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x471850
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x55ccb2
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd4]
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [0x5e9844]
mov dword [esp + 0x18], ebp
mov dword [ebp], eax
push edi
push edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0x1c], 1
mov esi, 0x5794c8
call fcn.0050f720
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4718e2
test cl, cl
je 0x4718de
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4718e2
add eax, 2
add esi, 2
test cl, cl
jne 0x4718c2
xor eax, eax
jmp 0x4718e7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x471a02
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push 0x51
lea ecx, [esp + 0x20]
push ecx
push 0x1f
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x471a02
xor esi, esi
lea ebx, [esp + 0x1c]
movzx eax, word [ebx]
cmp ax, di
jne 0x471921
inc esi
add ebx, 2
jmp 0x471913
movzx ecx, ax
add ecx, 0xffffffb3
cmp ecx, 0x2c
ja case.0x471933.78
movzx edx, byte [ecx + 0x471a34]
jmp dword [edx*4 + 0x471a2c]
movzx edi, ax
mov esi, 1
jmp 0x4719f4
test esi, esi
je 0x4719ce
movzx eax, di
cmp eax, 0x4d
je 0x4719a1
cmp eax, 0x64
je 0x47197d
cmp eax, 0x79
jne case.default.0x4719a9
test esi, esi
jbe case.default.0x4719a9
cmp esi, 2
jbe 0x471976
cmp esi, 4
jne case.default.0x4719a9
push 0x5794c0
jmp 0x4719c3
push 0x5794b8
jmp 0x4719c3
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x4719a9
jmp dword [eax*4 + 0x471a64]
push 0x5794b0
jmp 0x4719c3
push 0x579410
jmp 0x4719c3
push 0x579408
jmp 0x4719c3
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x4719a9
jmp dword [eax*4 + 0x471a74]
push 0x5794a8
jmp 0x4719c3
push 0x579400
jmp 0x4719c3
push 0x5793f8
mov ecx, ebp
call fcn.00460720
xor edi, edi
xor esi, esi
movzx eax, word [ebx]
test ax, ax
je 0x471a02
cmp ax, 0x25
jne 0x4719e7
push 0x25
push 1
mov ecx, ebp
call fcn.0045fc10
movzx eax, word [ebx]
push eax
push 1
mov ecx, ebp
call fcn.0045fc10
cmp word [ebx], 0
je 0x471a02
add ebx, 2
jmp 0x471913
mov eax, ebp
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0050a9d0
add esp, 0xbc
ret
Function at 0x4724f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov ebx, ecx
test ebp, ebp
jne 0x472512
call fcn.00471270
mov ebp, eax
sub ebp, 7
neg ebp
sbb ebp, ebp
add ebp, 2
mov esi, dword [esp + 0x78]
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00471580
mov ecx, dword [esp + 0x2c]
push 0
push ecx
call fcn.00471dd0
movzx eax, al
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + edx*4]
mov dx, word [ecx*2 + 0x579384]
add dx, word [esp + 0x2c]
add esp, 8
movzx eax, dx
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov dword [esp + 0x7c], eax
call fcn.00471580
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x472570
mov ecx, esi
call fcn.00470860
movzx edi, word [esi + 0x18]
xor esi, esi
push esi
lea ecx, [esp + 0x14]
call fcn.00470bb0
push esi
lea ecx, [esp + 0x7c]
call fcn.00470bb0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.00471580
mov eax, dword [eax + 0x10]
push esi
push esi
push esi
push esi
push eax
push esi
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00472030
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x1c]
call fcn.00471580
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x4725da
mov ecx, esi
call fcn.00470860
movzx esi, word [esi + 0x18]
cmp ebp, 2
jne 0x472619
movzx ecx, word [esp + 0x74]
sub ecx, edi
add ecx, 7
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 3
je 0x47260e
cmp esi, 4
jne 0x47270d
pop edi
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x60
ret 8
test esi, esi
jne 0x472624
mov esi, 6
jmp 0x472625
dec esi
test edi, edi
jne 0x472630
mov edi, 6
jmp 0x472631
dec edi
cmp esi, 4
jge 0x47267c
movzx eax, word [esp + 0x74]
sub eax, edi
lea esi, [eax + esi + 6]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x35
jne 0x47270d
movzx ecx, word [esp + 0x24]
sub ecx, edi
cmp ecx, 0x1c
jle 0x47270d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret 8
cmp dword [esp + 0x28], 0
jne 0x4726ef
movzx eax, word [esp + 0x24]
mov edx, 8
sub edx, esi
cmp eax, edx
jge 0x4726ef
push 0
lea ecx, [esp + 0x7c]
call fcn.00470bb0
push 0
lea ecx, [esp + 0x78]
call fcn.00470bb0
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, ebx
call fcn.00471580
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x78]
push ecx
push 1
push 0
push 0
push 0
push 0
dec eax
push eax
push 0xb
push 0x1f
lea ecx, [esp + 0x38]
call fcn.004722c0
mov ecx, eax
call fcn.004724f0
pop edi
pop esi
pop ebp
movzx eax, ax
pop ebx
add esp, 0x60
ret 8
movzx edx, word [esp + 0x74]
sub edx, edi
lea ecx, [edx + esi - 1]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
Function at 0x475510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55cff9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x10]
push edx
call eax
push 0x5c
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], 1
call fcn.00460220
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push edx
push eax
push esi
mov byte [esp + 0x34], 2
call fcn.00460ad0
add esp, 0x18
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 8], 1
mov byte [esp + 0x1c], 1
cmp eax, 0xffffffff
je 0x47559d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x47559d
call fcn.0045ea90
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 0
cmp eax, 0xffffffff
je 0x4755bd
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4755bd
call fcn.0045ea90
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 0xc

Function at 0x479d70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x55d4f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.wxBufferedInputStream.0
mov eax, dword [esi + 0x20]
mov edi, dword [eax + 8]
sub edi, dword [eax + 0xc]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
xor eax, eax
neg edi
adc eax, eax
push 1
neg eax
push eax
push edi
mov dword [esp + 0x24], 0
call edx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x479dd5
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00479400
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x47b3a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x47b3cd
mov edi, edi
movzx ecx, cx
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x47b3b0
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x47b5c0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x47b62a
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x47b62a
mov edx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.005106b5
add esp, 0xc
cmp eax, 0xffffffff
jne 0x47b62c
call fcn.00469590
test eax, eax
je 0x47b612
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.cant_read_from_file_descriptor__d
call eax
mov ecx, dword [esi]
push ecx
push eax
call fcn.004776b0
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
mov ecx, dword [esi]
mov eax, str.cant_read_from_file_descriptor__d
push ecx
push eax
call fcn.004776b0
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x47c130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47c14c
test al, 0x10
jne 0x47c14c
mov eax, 1
ret
xor eax, eax
ret

Function at 0x47c290
Capabilities:
Copy file

Disassembly:
xor edx, edx
cmp byte [esp + 0xc], dl
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sete dl
push edi
mov edi, dword [esp + 0xc]
mov ecx, dword [edi]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x47c2f6
mov esi, dword [esi]
mov edi, dword [edi]
call fcn.00469590
test eax, eax
je 0x47c2e1
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push 0x57d778
call eax
push esi
push edi
push eax
call fcn.004776b0
add esp, 0xc
pop edi
xor al, al
pop esi
ret
push esi
mov eax, 0x57d778
push edi
push eax
call fcn.004776b0
add esp, 0xc
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x55b9f8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x47c8b0
mov eax, 0x5bb970
mov ecx, dword [0x576324]
push ecx
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.0045fb60
mov esi, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], 0
call fcn.0047c420
add esp, 4
test al, al
je 0x47c91d
mov ebx, 0x3a
mov edi, dword [esi - 8]
cmp edi, 1
je 0x47c91d
cmp edi, 3
jne 0x47c901
lea ecx, [esp + 0x20]
call fcn.0045ef20
mov esi, dword [esp + 0x20]
cmp word [esi + 2], bx
je 0x47c91d
dec edi
push edi
lea ecx, [esp + 0x24]
call fcn.00461110
mov esi, dword [esp + 0x20]
push esi
call fcn.0047c420
add esp, 4
test al, al
jne 0x47c8e1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47c931
test al, 0x10
je 0x47c931
mov bl, 1
jmp 0x47c933
xor bl, bl
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x18], 0xffffffff
cmp eax, 0xffffffff
je 0x47c956
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x47c956
call fcn.0045ea90
mov al, bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret