joyce8/EMBER2024-capa huggingface dataset:
Function at 0x679ebc
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x69d49c]
test eax, eax
je 0x679ef2
mov ecx, dword [eax]
test ecx, ecx
je 0x679f57
add eax, 4
xor edi, edi
nop
cmp word [ecx], 1
sbb edi, 0
inc edi
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x679edc
jmp 0x679f83
mov esi, dword [0x69d4d8]
test esi, esi
jne 0x679f1f
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov esi, eax
mov dword [0x69d4d8], esi
test esi, esi
jne 0x679f1f
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.00678ae4
mov esi, dword [0x69d4d8]
mov dword [esp], esi
call fcn.0066db30
test eax, eax
je 0x679f5b
xor ebx, ebx
xor edi, edi
mov ebp, esi
nop word cs:[eax + eax]
lea ebx, [eax + ebx + 1]
inc edi
lea ebp, [ebp + eax*2 + 2]
mov dword [esp], ebp
call fcn.0066db30
test eax, eax
jne 0x679f3c
lea ebx, [ebx + ebx + 2]
jmp 0x679f62
xor edi, edi
jmp 0x679f83
mov ebx, 2
xor edi, edi
mov dword [esp], ebx
call fcn.0066d36c
mov dword [0x69d498], eax
test eax, eax
je 0x679fd9
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0066dc48
lea eax, [edi + 4]
mov dword [0x69d4a0], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.0066d350
mov esi, eax
test esi, esi
je 0x679fd9
mov edi, dword [0x69d49c]
test edi, edi
je 0x679fdd
mov edx, dword [edi]
test edx, edx
je 0x67a016
lea eax, [edi + 4]
xor ecx, ecx
nop dword [eax]
cmp word [edx], 0
je 0x679fcc
mov edx, dword [eax - 4]
mov dword [esi + ecx*4], edx
jmp 0x679fcd
dec ecx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x679fbc
jmp 0x67a012
xor eax, eax
jmp 0x67a029
mov ebx, dword [0x69d498]
mov dword [esp], ebx
call fcn.0066db30
test eax, eax
je 0x67a01e
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [ebx + eax*2 + 2]
mov dword [esp], ebx
call fcn.0066db30
add ebp, 4
test eax, eax
jne 0x679ffc
test edi, edi
je 0x67a01e
mov dword [esp], edi
call fcn.0066d37c
mov dword [0x69d49c], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x67af6c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0x69d520
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x6a09d0]
cmp eax, 0x232
jl 0x67afd6
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.0066de2c
mov dword [esp], edi
call fcn.00678ae4
mov eax, dword [0x6a09d0]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x69d520]
mov dword [esp], eax
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
mov eax, dword [0x6a09d0]
lea ecx, [eax + 1]
mov dword [0x6a09d0], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x69d520]
mov dword [esi], eax
mov dword [esp], 0x69d520
call sub.KERNEL32.DLL_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret
Function at 0x67b01c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.0066de2c
mov dword [esp], esi
call fcn.00678ae4
add esp, 0x58
pop esi
ret

Function at 0x67f280
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x6a0e00]
mov dword [esp], eax
call fcn.00682122
sub esp, 4
mov esi, eax
test esi, esi
je 0x67f2e7
xor edi, edi
nop
cmp edi, 3
ja 0x67f2e7
inc edi
xor ebx, ebx
xor eax, eax
nop word [eax + eax]
cmp byte [ebx*8 + 0x6a0e04], 0
je 0x67f2dd
mov ecx, dword [ebx*8 + 0x6a0e08]
test ecx, ecx
je 0x67f2dd
mov edx, dword [esi + ebx*4]
test edx, edx
je 0x67f2dd
mov dword [esi + ebx*4], 0
mov dword [esp], edx
call ecx
mov eax, 1
inc ebx
cmp ebx, 0x32
jne 0x67f2b0
test eax, eax
jne 0x67f2a0
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x402e50
Capabilities:
Terminate process

Disassembly:
pop ds
add edx, ecx
push esp
loop 0x402e5b
mov ecx, dword [edx + edi + 0x18]
add ecx, 0x1f4
sal esp, 1
add byte [eax], al
mov edx, dword [ecx + esi*4 + 0x1c]
adc edx, 0
dec esp
push ecx
call fcn.00409090
push edx
push eax
cmp byte [eax - 0x2d], ch
aad 0x40
pop es
call esi
add esp, 0x10
add ebx, 4
cmp ebx, 0x24
jb 0x79402ddb
mov eax, dword [0x4117e0]
test eax, eax
je 0x402f57
push 0x40d5a8
push eax
call dword [0xd440c148]
mov edi, eax
and dword [esi + 8], 0xffffff85
push dword [ebp + 0x16]
push 0x50d556
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 4
push 1
dec dword [sym.imp.MSVCRT.dll_exit]
push 0x40956c
push edi
call dword [sym.imp.MSVCRT.dll_fprintf]
sub dword [0x40c195], ebx
ret 0x8c4
mov eax, dword [0x9e410bb8]
test eax, eax
je 0x4030c5
push 0x40d581
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x402f90
push 0xd161d540
call dword [sym.imp.MSVCRT.dll_perror]
add esp, 4
add edi, edi
dec ebx
test al, 0xc1
inc eax
add byte [eax + 0x35], ch
and al, 0x7c
add byte [eax - 1], dl
adc eax, 0x400480
push 0x7c2435
push eax
call dword [0x400480]
xchg esi, eax
lodsb al, byte [esi]
add al, byte [ecx + 6]
add esp, 8
test eax, eax
mov dword [ebp - 0xc], 0x2c
jle 0x1f4030b8
xor ebx, dword [ecx]
enter 0x410b, 0xffffffffffffffa2
mov esi, eax
jae 0x402fc2
mov edx, dword [esi + eax]
push ecx
lea esi, [ebx - 0x6500bc]
push edx
push eax
call 0x919120
mov esp, dword [ebp - 0x38]
or eax, dword [ecx]
push 0
push 0x3e8
mov ecx, dword [esi + edi + 0x1c]
mov edx, dword [esi + edi + 0x10]
mov eax, dword [esi + edi + 0x14]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + edi + 0x49]
mov ebx, dword [esi + edi + 0x18]
fcom qword [ebp + 0x75]
mov edx, dword [esi + edi + 0x5a]
add dword [esp + esi*8 - 0x76ffff72], 0xd283d445
add byte [edx + 0x51], dl
adc eax, 0x3eba
mov esp, dword [edi - 0x24]
push edx
xor cl, byte [ebx + 0x1f405c3]
add byte [eax], al
push 0x72
adc ecx, 0
push 0xdf03e8
push ecx
push eax
dec ebp
test bx, bx
add byte [edx + 0x34], dl
mov esp, edx
push eax
inc esi
inc ebp
rcl byte [ebx - 0x23ba7428]
sbb eax, edx
add dword [esp + esi*8 - 0x7cffff51], 0xd06a0037
push 0xaa03e8
push eax
push ebx
call fcn.0040b590
mov ecx, dword [ebp - 0x2c]
push edx
push eax
mov eax, dword [ebp - 0x30]
add eax, 0x2800d5ca
push 0xffffffffffffffa4
adc ecx, 0
push 0x32e8
push ecx
push eax
call fcn.0040b590
push edx
mov edx, dword [esi + edi - 9]
push eax
mov eax, dword [esi + edi]
push 0
push 0x104240
push edx
leave
call 0x8540b590
hlt
mov eax, dword [ebp + 8]
test eax, eax
je 0x4030d4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
push ebx
mov esp, ebp
pop ebp
ret
Function at 0x403ea0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cc8b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x45900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2e4], edx
mov edi, ecx
mov esi, dword [ebp + 8]
test edi, edi
je 0x4040c0
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00404850
push 1
push ecx
lea eax, [ebp - 0x2e0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2e0], 0x5c
call fcn.004045d0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x403f4e
cmp dword [ebp - 0x1c], ecx
jae 0x403f3a
push str.invalid_string_position
call fcn.00417f23
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
cmp dword [esi + 0x14], 8
jb 0x403f56
mov esi, dword [esi]
lea eax, [ebp - 0x2dc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4040ab
nop
test byte [ebp - 0x2dc], 0x10
jne 0x40408e
push 0x44c734
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x8c]
call fcn.00405240
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.00405330
mov esi, eax
mov edx, dword [ebp - 0x2e4]
lea ecx, [ebp - 0x5c]
push 0x44c734
mov byte [ebp - 4], 2
call fcn.00405240
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00405330
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 8
jb 0x403fe4
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x403fec
mov ecx, dword [ecx]
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x40400a
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00404ae0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x404033
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00404ae0
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
cmp eax, 8
jb 0x40405c
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00404ae0
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
cmp eax, 8
jb 0x40408e
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00404ae0
lea eax, [ebp - 0x2dc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403f70
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4040c0
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00404ae0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00417ff1
mov esp, ebp
pop ebp
ret
Function at 0x405660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret 4

Function at 0x405680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4059c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esp, ebp
pop ebp
ret 0x28

Function at 0x405a90
Capabilities:
Create thread

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

Function at 0x405b70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret 8

Function at 0x405d30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret 4

Function at 0x406880
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esp, ebp
pop ebp
ret 8
Function at 0x4079a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x3c
mov eax, 0x43d0e6
call fcn.00435e8d
mov ebx, ecx
and dword [ebp - 4], 0
push 0xfa00
call fcn.004185da
mov edi, eax
mov dword [esp], 0x44d620
lea ecx, [ebp - 0x30]
call fcn.004043d0
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.004044d0
cmp dword [eax], 2
jbe 0x407a1f
push 2
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, ebx
call fcn.00404180
mov byte [ebp - 4], 2
push 0x44d62c
mov ecx, eax
call fcn.00407b90
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004040e0
test esi, esi
jne 0x407a1f
push 0x44b6d8
lea ecx, [ebp - 0x30]
call fcn.00404300
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x30]
call fcn.00405040
push 0
push edi
push 0x7d00
lea ecx, [ebp - 0x30]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x7cfe
ja 0x407a4e
push edi
jmp 0x407a57
lea ecx, [ebp - 0x30]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
push edi
call fcn.004185e3
pop ecx
cmp ebx, 0xffffffff
jne 0x407a79
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004040e0
jmp 0x407a98
test bl, 0x10
jne 0x407a6b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004040e0
mov al, 1
jmp 0x407a9a
xor al, al
call fcn.00435dda
ret

Function at 0x407aa0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x7c
mov eax, 0x43d116
call fcn.00435e1f
mov esi, ecx
push ecx
push ecx
push 0x1ac
push str.NGUtils::CFileUtils::DeleteFileW
push 0x45b29c
push dword [0x45b2ec]
lea ecx, [ebp - 0x88]
call fcn.004119eb
and dword [ebp - 4], 0
mov ecx, esi
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407b32
test bl, 1
je 0x407b4b
and ebx, 0xfffffffe
mov ecx, esi
push ebx
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x407b4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
mov ecx, esi
call fcn.004041f0
push eax
push str.::SetFileAttributes__s__0x_X___error_d
push 0x1bb
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.00411cc7
add esp, 0x1c
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00411a54
mov al, bl
call fcn.00435dc9
ret
mov ecx, esi
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004041f0
push eax
push str.::DeleteFile__s___error_d
push 0x1c2
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.00411cc7
add esp, 0x18
jmp 0x407b32
mov bl, 1
jmp 0x407b34
Function at 0x4086c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], ebx
mov esi, edi
jmp 0x4086d5
mov ebx, dword [ebp - 4]
add edi, 0x200
test esi, esi
je 0x4086e6
push esi
call fcn.004185e3
pop ecx
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004185da
mov esi, eax
pop ecx
test esi, esi
je 0x408747
xor eax, eax
lea ecx, [ebx + 4]
mov word [esi], ax
call fcn.004041f0
push eax
push edi
push esi
push 0x44b6d8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
lea ecx, [edi - 1]
cmp ebx, ecx
jae 0x4086d2
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00404300
push esi
call fcn.004185e3
xor eax, eax
cmp eax, ebx
pop ecx
sbb eax, eax
neg eax
jmp 0x408749
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x40c1c2
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x40c1e6
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.0041a2a0
movzx eax, word [ebx*8 + 0x44d022]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x44d020]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x44d024]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x44d026]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x40c249
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x40c254
cmp ebx, 8
jl 0x40c254
mov eax, dword [ebp + 8]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x40c2bb
cmp eax, 0xffffffff
je 0x40c2bb
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x40c296
mov ecx, esi
call fcn.0040c477
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x40c29e
jmp 0x40c2cb
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40d16b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40d176
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40d232
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44cc20]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44cc20]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44cc20]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44cc20]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44cc20]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44cc20]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44cc20]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44cc20]
sub edi, 1
jne 0x40d18b
pop edi
test esi, esi
je 0x40d24e
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44cc20]
inc edx
sub esi, 1
jne 0x40d236
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x40d855
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x40d89f
mov eax, dword [edi + 0x74]
mov esi, dword [edi + 0x70]
cmp eax, esi
jae 0x40d8da
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.00436580
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x60]
add dword [edi + 0x74], esi
add dword [edi + 0x5c], esi
push esi
call fcn.0040d16b
add esp, 0x10
mov dword [edi + 0x60], eax
mov eax, esi
jmp 0x40d8dc
cmp dword [edi + 0x64], 0
je 0x40d8d3
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d8da
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x60]
add dword [edi + 0x5c], esi
push esi
call fcn.0040d16b
pop ecx
jmp 0x40d898
mov dword [edi + 0x10], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40dac4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x45900c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x64], eax
lea ebx, [esi + 0x58]
mov dword [esi + 0x6c], eax
mov byte [esi + 0x68], al
mov dword [esi + 0x60], eax
mov dword [ebx], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x5c], eax
test edi, edi
je 0x40dbbe
cmp edi, 0xffffffff
je 0x40dbbe
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x40db49
lea eax, [esi + 0x50]
mov ecx, edi
push eax
lea eax, [esi + 0x38]
push eax
push ebx
lea edx, [esi + 0x30]
call fcn.0040d3da
add esp, 0xc
test eax, eax
jne 0x40dbc3
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + 0x54], 1
mov dword [esi + 0x64], edi
xor eax, eax
jmp 0x40dbc3
or dword [ebx], 0xffffffff
lea eax, [esp + 0x1c]
push eax
mov dword [esi + 0x30], SysStringLen
mov byte [esi + 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.0040d31b
pop ecx
pop ecx
mov ecx, edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x4c], ecx
movzx ecx, word [esp + 0xc]
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
movzx eax, word [esp + 0x10]
shl ecx, 0x10
or ecx, eax
mov dword [esi + 0x3c], edx
mov dword [esi + 0x50], ecx
jmp 0x40db42
mov eax, 0x10000
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417ff1
mov esp, ebp
pop ebp
ret 8