joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4ff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6f5cfc]
push ebx
push esi
push edi
test eax, eax
jne 0x4f5007
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6dee20]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4f5020
call fcn.004fce70
mov ecx, eax
mov eax, dword [0x6f5d00]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x4f50b4
mov ecx, 0x6f5ccc
xor edi, edi
xor ebx, ebx
call fcn.004f28f0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x6f5ce8]
test ecx, ecx
je 0x4f5060
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x6f5ce8], eax
mov dword [ecx + 4], ebx
jmp 0x4f506d
mov ebx, dword [0x6f5d04]
inc ebx
mov dword [0x6f5d04], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x4f5090
push 0x70
call fcn.005e74a6
add esp, 4
test eax, eax
je 0x4f50bb
push ebx
mov ecx, eax
call fcn.004f4e80
mov edi, eax
mov ecx, dword [0x6dee20]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4f50aa
call fcn.004fce70
mov ecx, eax
mov eax, dword [0x6f5d00]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x6d8324
lea eax, [ebp - 1]
push eax
call fcn.005e0fac
int3

Function at 0x4f56b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
xor ebx, ebx
lea eax, [ebp - 0x10]
push esi
push edi
mov dword [ebp - 4], ebx
lea edi, [ebx + 8]
mov dword [ebp - 4], eax
or ecx, 0xffffffff
mov esi, edi
cmp edi, ecx
mov dword [ebp - 0x14], ecx
cmova esi, ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x4f56ec
cmp byte [0x6f5d2c], al
jne 0x4f5718
int3
test bl, 1
je 0x4f56ff
lea ecx, [ebp - 0xc8]
and ebx, 0xfffffffe
call fcn.004ef6d0
mov eax, dword [ebp - 4]
add eax, esi
mov dword [ebp - 4], eax
sub edi, esi
jne 0x4f56ca
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.005f375c
int3
Function at 0x4f6520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x4f6547
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x4f6542
mov eax, dword [ebx]
jmp 0x4f6544
mov eax, ebx
mov byte [eax], 0
call fcn.004e9f80
test al, al
je 0x4f6559
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004f8210
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4f6550
push 0x10000
call fcn.00545b74
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.005f45d2
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4f65e6
mov eax, dword [ebp + 8]
nop dword [eax]
test ebx, ebx
je 0x4f65bc
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.004c4950
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x4f65fc
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.005f45d2
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x4f65a0
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.005f3f01
add esp, 4
test eax, eax
jne 0x4f65ff
mov byte [ebp - 1], 1
jmp 0x4f6603
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.005f0691
add esp, 4
test esi, esi
je 0x4f6619
push esi
call fcn.00545b61
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f72c0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.004fd7d0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004fd8e0
cmp dword [ebp - 0x10], ebx
je 0x4f7422
nop
cmp byte [ebp - 0x2e4], 0
jne 0x4f734a
test bl, 1
je 0x4f7332
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.004ef6d0
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
jmp 0x4f7363
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
mov cl, byte [ebp + 8]
test bl, 1
je 0x4f7399
test cl, cl
jne 0x4f737e
mov eax, ebx
shr eax, 4
test al, 1
jne 0x4f7399
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp + 8]
shr ebx, 4
test bl, 1
je 0x4f73d0
test cl, cl
je 0x4f73ea
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.004f72c0
add esp, 4
test al, al
je 0x4f747d
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4f73e2
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4f747d
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004fd8e0
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x4f740a
push 0xffffffffffffffff
push 0
push eax
call fcn.00416500
lea ecx, [ebp - 0x38]
call fcn.004163e0
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x4f7310
lea ecx, [ebp - 0x20]
call fcn.004163e0
mov bl, 1
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x4f743e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54]
call fcn.004fdc80
push 1
push dword [ebp - 0x54]
call fcn.0040ef10
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x54], 0
call fcn.004163e0
lea ecx, [ebp - 0x8c]
call fcn.004163e0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b50
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.004163e0
xor bl, bl
jmp 0x4f742c
Function at 0x4f7530
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x6dc0b8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x4f756d
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x4f76dc
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.004e98d0
push 2
push 0
push 0x6b8fb0
mov ecx, eax
call fcn.004ecef0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004163e0
cmp esi, 0xffffffff
je 0x4f75f5
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.004e98d0
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x18]
push eax
call fcn.004e9790
mov edx, esi
mov ecx, eax
call fcn.004f72c0
add esp, 4
lea ecx, [esp + 0x14]
mov bl, al
call fcn.004163e0
lea ecx, [esp + 0x2c]
call fcn.004163e0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4f75ff
mov eax, dword [edi]
jmp 0x4f7601
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f7559
test bl, 1
je 0x4f7639
cmp dword [edi + 0x14], 8
jb 0x4f7622
mov ecx, dword [edi]
jmp 0x4f7624
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4f76dc
test bl, 0x10
jne 0x4f7665
cmp dword [edi + 0x14], 8
jb 0x4f7646
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x4f7697
push 0x6aa23c
lea ecx, [esp + 0x18]
call fcn.00416b10
mov ebx, 1
lea edx, [esp + 0x14]
push ebx
mov ecx, edi
call fcn.004f72c0
add esp, 4
test al, al
jne 0x4f769b
mov byte [esp + 0xf], al
jmp 0x4f76a0
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 1
test bl, 1
je 0x4f76ae
lea ecx, [esp + 0x14]
call fcn.004163e0
cmp byte [esp + 0xf], 0
je 0x4f76dc
cmp dword [edi + 0x14], 8
jb 0x4f76bd
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4f7b00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4f7b0e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4f7b28
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f7b3b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x4f7b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x6dc0b8]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4f7c22
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x4f7b92
xor ecx, ecx
jmp 0x4f7baf
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f7ba0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.004e91d0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4f7bca
mov ecx, dword [eax]
jmp 0x4f7bcc
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004e91d0
lea ecx, [esp + 8]
call fcn.004ea030
lea eax, [esp + 8]
cmp esi, eax
je 0x4f7bfa
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00416500
lea ecx, [esp + 8]
call fcn.004163e0
lea ecx, [esp + 0x20]
call fcn.004163e0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4f7c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x6dc0b8]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4f7cef
cmp word [esp + 0x20], 0
je 0x4f7cef
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x4f7cb3
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004e91d0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f7cc0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004e91d0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
call fcn.0040e610
lea eax, [esp + 8]
push eax
call fcn.004f7b40
add esp, 4
mov ecx, esi
test al, al
je 0x4f7d17
lea eax, [esp + 8]
push eax
call fcn.004dff00
jmp 0x4f7d2e
sub esp, 8
mov eax, esp
mov dword [eax], 0x6acc14
mov dword [eax + 4], 3
call fcn.004e91d0
lea ecx, [esp + 8]
call fcn.004163e0
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4f7dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push esi
push edi
mov esi, edx
mov dword [ebp - 0x45c], 0
jb 0x4f7df9
mov ecx, dword [ecx]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x6aa980
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4f7e24
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edi, eax
cmp edi, 0x104
ja 0x4f7ebb
test edi, edi
je 0x4f7ebb
lea ecx, [ebp - 0x440]
call fcn.0040e610
push edi
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.004169e0
sub esp, 8
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x440]
mov dword [ecx], eax
mov eax, dword [ebp - 0x430]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x458]
call fcn.004e91d0
cmp esi, eax
je 0x4f7ea8
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00416500
lea ecx, [ebp - 0x458]
call fcn.004163e0
lea ecx, [ebp - 0x440]
jmp 0x4f7f13
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x4f7ed6
xor ecx, ecx
jmp 0x4f7eef
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f7ee0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x458]
call fcn.004e91d0
cmp esi, eax
je 0x4f7f0d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00416500
lea ecx, [ebp - 0x458]
call fcn.004163e0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4f7f30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x54], ecx
mov ebx, edx
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x58], eax
call fcn.0040e610
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor esi, esi
nop
lea ecx, [ebp - 0x20]
call fcn.0040e610
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x20]
call fcn.00416500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.004fc8b0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004c1440
lea ecx, [ebp - 0x50]
call fcn.004163e0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x4f7fe0
lea ecx, [eax + 1]
cmp ecx, 0x7ffffffe
ja 0x4f80dc
cmp edx, ecx
jae 0x4f7fc6
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00416730
jmp 0x4f7fda
test ecx, ecx
jne 0x4f7fe0
cmp edx, 8
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
mov word [eax], cx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, 8
lea ecx, [ebp - 0x20]
mov edx, 0x5f
cmovae ecx, dword [ebp - 0x20]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
inc eax
xor edx, edx
mov dword [ebp - 0x10], eax
mov word [ecx + eax*2], dx
call fcn.004f56b0
cmp edx, 0xffffffff
ja 0x4f8000
jb 0x4f8013
cmp eax, 0xffff7fff
ja 0x4f8000
and eax, 0x7fff
lea ecx, [ebp - 0x50]
mov edx, eax
call fcn.004fc8b0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004c1440
lea ecx, [ebp - 0x50]
call fcn.004163e0
sub esp, 8
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push eax
call fcn.004e9d10
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x4f806f
push 0xffffffffffffffff
push 0
push eax
call fcn.00416500
lea ecx, [ebp - 0x50]
call fcn.004163e0
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call edi
test eax, eax
jne 0x4f80a1
lea ecx, [ebp - 0x20]
call fcn.004163e0
inc esi
cmp esi, 0x32
jl 0x4f7f60
xor bl, bl
jmp 0x4f80c1
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x4f80b7
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00416500
lea ecx, [ebp - 0x20]
call fcn.004163e0
mov bl, 1
lea ecx, [ebp - 0x38]
call fcn.004163e0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b50
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0053e9e8
int3
Function at 0x4f80f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x4f8118
mov ebx, dword [edi]
jmp 0x4f811a
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f815a
test al, 0x10
je 0x4f813d
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4f8147
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004e9790
cmp dword [edi + 0x14], 8
jb 0x4f816f
mov ecx, dword [edi]
jmp 0x4f8171
mov ecx, edi
push dword [edi + 0x10]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push ecx
cmovae eax, dword [ebp - 0x1c]
push dword [ebp - 0xc]
push eax
call fcn.00411dd0
add esp, 0x10
test eax, eax
jne 0x4f819e
test esi, esi
je 0x4f81e1
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x4f81e7
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.004f80f0
test al, al
je 0x4f81e1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4f81e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x4f81d4
mov ecx, edi
call fcn.004f7b20
test al, al
jne 0x4f81e5
test esi, esi
je 0x4f81e1
mov ecx, ebx
call fcn.004fd4f0
mov dword [esi], eax
xor bl, bl
jmp 0x4f81e7
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.004163e0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b50
mov esp, ebp
pop ebp
ret

Function at 0x4f82a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4f839c
cmp eax, 0x104
ja 0x4f839c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00416b10
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.004e91d0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4f8334
mov ecx, dword [eax]
jmp 0x4f8336
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004e91d0
lea ecx, [ebp - 0x240]
call fcn.004ea030
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x4f836a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00416500
lea ecx, [ebp - 0x240]
call fcn.004163e0
lea ecx, [ebp - 0x258]
call fcn.004163e0
lea ecx, [ebp - 0x228]
call fcn.004163e0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4f83b0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x4f8469
cmp dword [edi + 0x10], 0x104
jae 0x4f8469
cmp dword [edi + 0x14], 8
jb 0x4f83df
mov eax, dword [edi]
jmp 0x4f83e1
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x4f83e9
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4f8400
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x4f8415
mov eax, dword [esi]
jmp 0x4f8417
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f8457
shr eax, 4
and al, 1
je 0x4f8457
push ecx
mov edx, edi
mov ecx, esi
call fcn.004f76f0
add esp, 4
test al, al
je 0x4f8455
push 1
push esi
call fcn.004f7530
add esp, 8
test al, al
je 0x4f8455
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f96c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x4f96db
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x64], eax
call fcn.004fe6e0
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.004fe800
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.004f9620
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret

Function at 0x4f9740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x4f97ae
mov ebx, ecx
mov eax, dword [edi]
lea edi, [edi + 4]
movzx esi, cl
movzx edx, al
xor esi, edx
shr ecx, 8
mov dword [ebp - 4], eax
movzx eax, ah
xor ecx, dword [esi*4 + 0x6b90d8]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x6b90d8]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x6b90d8]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x6b90d8]
sub ebx, 1
jne 0x4f9757
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fce70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x6dee20]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x4fcf10
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x4fcebd
mov ebx, eax
mov dword [ebp - 0x40c], ebx
jmp 0x4fceee
cmp byte [0x6f5d2c], 0
jne 0x4fcf87
int3
mov ecx, ebx
mov edx, 0x6dee20
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x4fcf10
push ebx
call esi
mov ebx, dword [0x6dee20]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fcf25
cmp byte [0x6f5d2c], 0
jne 0x4fcf95
int3
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.00545b74
add esp, 4
lea esi, [ebp - 0x408]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b50
mov esp, ebp
pop ebp
ret
push 1
call fcn.005f375c
push 1
call fcn.005f375c
push 1
call fcn.005f375c
int3