joyce8/EMBER2024-capa huggingface dataset:
Function at 0x542b1d
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret

Function at 0x542fe6
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x72232c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
push edi
cmp esi, 0x40
jle 0x54302e
push dword [ebp + 0x14]
lea ecx, [ebp - 0x24]
push ecx
push esi
push eax
call fcn.00542c0d
add esp, 0x10
cmp dword [ebp + 0x14], 0
push 0x20
pop esi
push 0x1c
pop eax
cmovne esi, eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
push 0x40
lea eax, [ebx + 0x68]
push 0x36
push eax
call fcn.005f3980
push 0x40
lea edi, [ebx + 0xa8]
push 0x5c
push edi
call fcn.005f3980
add esp, 0x18
test esi, esi
jle 0x543065
mov ecx, dword [ebp - 0x28]
mov al, byte [ecx]
xor byte [edi - 0x40], al
mov al, byte [ecx]
xor byte [edi], al
inc ecx
inc edi
sub esi, 1
jne 0x543055
push dword [ebp + 0x14]
push ebx
call fcn.0054559f
push 0x40
lea eax, [ebx + 0x68]
push eax
push ebx
call fcn.0054562d
push 0x20
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.005f3980
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005b4733
mov esp, ebp
pop ebp
ret
Function at 0x54559f
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
and dword [eax], 0
and dword [eax + 4], 0
test ecx, ecx
jne 0x5455ed
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
jmp 0x545625
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
mov dword [eax + 0xe8], ecx
pop ebp
ret
Function at 0x56e5c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x56e5d8
xor eax, eax
jmp 0x56e6b9
push ebx
push edi
xor ebx, ebx
push ebx
push 8
push dword [ebp + 8]
call fcn.0056a9e6
mov edi, eax
add esp, 0xc
mov dword [ebp - 8], edi
test edi, edi
je 0x56e62e
test byte [ebp + 0x10], 1
mov eax, dword [esi]
mov dword [edi], eax
jne 0x56e60a
xor eax, eax
inc eax
cmp dword [esi], eax
jle 0x56e60a
add eax, eax
cmp eax, dword [esi]
jl 0x56e604
imul eax, eax, 0x18
push ebx
push eax
push dword [ebp + 8]
call fcn.0056a9e6
mov ebx, eax
add esp, 0xc
mov dword [edi + 4], ebx
test ebx, ebx
jne 0x56e635
push edi
push dword [ebp + 8]
call fcn.0056a971
pop ecx
pop ecx
xor eax, eax
jmp 0x56e6b7
cmp dword [esi], 0
mov ecx, dword [esi + 4]
mov dword [ebp + 0xc], ecx
jle 0x56e6b5
lea eax, [ebx + 0x10]
sub ebx, ecx
mov dword [ebp - 4], eax
xor edi, edi
push dword [ebp + 0x10]
push dword [ecx]
push dword [ebp + 8]
call fcn.0056de25
mov ecx, dword [ebp + 0xc]
mov dword [ebx + ecx], eax
push dword [ecx + 4]
push dword [ebp + 8]
call fcn.0056ab9f
mov ecx, dword [ebp - 4]
mov dword [ecx - 0xc], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push dword [ebp + 8]
call fcn.0056ab9f
mov edx, dword [ebp - 4]
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov dword [edx - 8], eax
mov al, byte [ecx + 0xc]
and dword [edx], 0xfffffffe
mov byte [edx - 4], al
mov eax, dword [ecx + 0x10]
xor eax, dword [edx]
and eax, 2
xor dword [edx], eax
inc edi
mov eax, dword [ecx + 0x14]
add ecx, 0x18
mov dword [edx + 4], eax
add edx, 0x18
mov dword [ebp - 4], edx
mov dword [ebp + 0xc], ecx
cmp edi, dword [esi]
jl 0x56e64a
mov edi, dword [ebp - 8]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x58ebe3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057c99d

Function at 0x595e51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [edx + 8]
test edi, edi
jle 0x595e81
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx]
mov al, byte [ebx + eax]
xor byte [ecx + esi], al
lea eax, [esi + 1]
xor esi, esi
inc ebx
cmp eax, dword [edx + 4]
cmovl esi, eax
cmp ebx, edi
jl 0x595e66
add dword [edx + 0xc], edi
pop edi
mov dword [edx + 8], esi
pop esi
pop ebx
pop ebp
ret

Function at 0x598e32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xb8
mov eax, 0x679b63
call fcn.005b477b
call fcn.0040afed
mov ecx, eax
call fcn.004e3e76
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
push dword [0x739c00]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x598e70
xor al, al
jmp 0x598faf
call fcn.0040afed
mov ecx, eax
call fcn.004e3e76
push esi
push dword [0x739c00]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x598e69
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
jne 0x598f35
push 1
push 3
lea ecx, [ebp - 0xc4]
call fcn.004078ff
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str._error
push dword [ebp + 0xc]
lea eax, [ebp - 0xb4]
push str.__type
push dword [ebp + 8]
push str.ExtractResource_ID
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.0040819d
push eax
call fcn.0040710b
pop ecx
pop ecx
push eax
call fcn.0040710b
pop ecx
pop ecx
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0xc4]
push eax
push str.extractResource
push 0x199
push str.D:_build6c589d3ff8507062_srccommonCommon.cpp
push ebx
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0xc4]
call fcn.0040843a
jmp 0x598e69
call fcn.0040afed
mov ecx, eax
call fcn.004e3e76
push esi
push dword [0x739c00]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ecx + 0x14], 8
jb 0x598f64
mov ecx, dword [ecx]
push ebx
push ebx
push 0x80
push 2
push ebx
push 0x40000000
push ecx
lea ecx, [ebp - 0x14]
call fcn.004130cf
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x598f8b
mov eax, dword [ebp - 0x14]
jmp 0x598fa6
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push edi
call fcn.00413b02
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x598fa4
push eax
call esi
mov eax, ebx
mov bl, 1
test eax, eax
je 0x598fad
push eax
call esi
mov al, bl
call fcn.005b4744
ret
Function at 0x599d8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push edi
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x599daf
xor al, al
jmp 0x599e48
push ebx
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x599ddb
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x599ddf
xor al, al
jmp 0x599e47
push ebx
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x599e36
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x599e2f
push dword [ebp + 8]
push dword [ebp - 4]
push eax
call fcn.005f2e80
and dword [ebp + 8], 0
lea eax, [ebp + 8]
add esp, 0xc
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x599e28
push dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
call fcn.0059863c
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp dword [ebp + 0x14], 0
setne al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x59a1a7
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x72232c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xc], 0
xor eax, eax
push ebx
push esi
mov esi, str.SeShutdownPrivilege
mov dword [ebp - 8], 7
push esi
mov word [ebp - 0x1c], ax
call fcn.005ff18e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040a315
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0059a421
pop ecx
pop ecx
mov bl, al
lea ecx, [ebp - 0x1c]
push 0
neg bl
push 1
sbb bl, bl
call fcn.00409de7
add bl, 1
pop esi
pop ebx
je 0x59a20a
xor al, al
jmp 0x59a21c
push 0x40000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b4733
mov esp, ebp
pop ebp
ret
Function at 0x59a4b2
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2058
call fcn.005b4b80
mov eax, dword [0x72232c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2058]
push edi
mov edi, dword [ebp + 0x14]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.005f3980
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x2058], ebx
xor ebx, ebx
push 0x10
mov word [ebp - 0x2028], ax
lea eax, [ebp - 0x2014]
push ebx
push eax
mov dword [ebp - 0x202c], 0x101
call fcn.005f3980
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x59a51b
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.006118ec
add esp, 0xc
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2058]
push eax
push ebx
push ebx
push 0x80
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jle 0x59a578
mov eax, dword [ebp - 0x2014]
test edi, edi
je 0x59a566
mov dword [edi], eax
cmp byte [ebp + 0x10], bl
je 0x59a574
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov al, 1
jmp 0x59a57a
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b4733
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, 0x67bfdb
call fcn.0064811c
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
mov dword [edi], eax
lea ecx, [edi + 0x18]
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp + 8], ecx
call fcn.0040784e
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
lea ecx, [edi + 0x30]
push eax
mov dword [ebp + 8], ecx
call fcn.0040784e
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5bd2cc
Capabilities:
Clear file content

Disassembly:
mov eax, 0x67c899
call fcn.0064811c
sub esp, 0x30
push ebx
push esi
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov ebx, dword [esi + 0x30]
sub ebx, dword [esi + 0x34]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
call fcn.005bed10
test al, al
jne 0x5bd355
lea eax, [ebp - 0x3c]
push eax
call fcn.005bdb34
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.005b7528
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], str.WinMmapFile.Close::UnmapCurrentRegion:
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x27
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.005b99ab
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00507978
push dword [ebp - 0x14]
call fcn.005b4857
xor ebx, ebx
jmp 0x5bd3cb
test ebx, ebx
je 0x5bd3e7
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
sub ecx, ebx
push 0
pop ebx
push ebx
push ebx
sbb eax, ebx
push eax
push ecx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
jne 0x5bd3dc
lea eax, [ebp - 0x3c]
push eax
call fcn.005bdb34
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 3
call fcn.005b7528
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], str.WinMmapFile.Close::SetFilePointer:
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x23
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.005b99ab
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00507978
push dword [ebp - 0x14]
call fcn.005b4857
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00409d92
jmp 0x5bd3e9
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
jmp 0x5bd3e9
xor ebx, ebx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x5bd456
cmp dword [edi], ebx
jne 0x5bd456
lea eax, [ebp - 0x3c]
push eax
call fcn.005bdb34
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 5
call fcn.005b7528
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], str.WinMmapFile.Close::CloseHandle:
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x20
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.005b99ab
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00507978
push dword [ebp - 0x14]
call fcn.005b4857
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00409d92
or dword [esi + 0x1c], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x5bdc08
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
cmovb eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x5be895
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00626de3
add esp, 0xc
pop ebp
ret 8
Function at 0x5beb67
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
push 0
sbb eax, eax
push 0x80
neg eax
add eax, 2
push eax
push 0
push 7
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 0x1c], eax
pop esi
test eax, eax
je 0x5bebab
cmp eax, 0xffffffff
je 0x5bebab
xor eax, eax
inc eax
jmp 0x5bebad
xor eax, eax
pop ebp
ret 4

Function at 0x5bec76
Capabilities:
Clear file content

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
push 0
push 0
mov ecx, dword [esi + 0x24]
mov ebx, dword [esi + 0x40]
add ecx, ebx
mov edi, dword [esi + 0x44]
adc eax, edi
push eax
push ecx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
xor eax, eax
push eax
push eax
push eax
push 4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x5bece3
push dword [esi + 0x24]
push ebx
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi + 0x28], eax
test eax, eax
je 0x5bece3
mov ecx, dword [esi + 0x24]
add ecx, eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov al, 1
mov dword [esi + 0x30], ecx
jmp 0x5bece5
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x5c9004
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, 0x114
lea eax, [ebp - 0x114]
push esi
push 0
push eax
call fcn.005f3980
add esp, 0xc
mov dword [ebp - 0x114], esi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x110], 5
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x5cbcdf
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov eax, 0x67da49
call fcn.0064811c
mov eax, 0x1018
call fcn.005b4b80
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0x10
jb 0x5cbd02
mov eax, dword [esi]
jmp 0x5cbd04
mov eax, esi
push 0x6ac7b8
push eax
call fcn.0062ab06
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x5cbd2d
cmp dword [esi + 0x14], 0x10
jb 0x5cbd1f
mov esi, dword [esi]
push esi
call fcn.00630b90
pop ecx
push 1
call fcn.00610e3c
mov esi, dword [ebp + 0xc]
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x5cbd3e
mov eax, dword [esi]
jmp 0x5cbd40
mov eax, esi
push edi
mov byte [eax], 0
call fcn.0062a7dd
pop ecx
test eax, eax
jne 0x5cbdc4
push ebx
push edi
push 0x1000
lea eax, [ebp - 0x1024]
push 1
push eax
call fcn.0062ad4d
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x5cbd77
push edi
call fcn.0062a808
pop ecx
test eax, eax
jne 0x5cbddb
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x1024]
push ebx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.0040a13f
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x24]
push ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409f07
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.00409d92
push edi
call fcn.0062a7dd
pop ecx
test eax, eax
je 0x5cbd4f
pop ebx
push edi
call fcn.006187c1
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.fread
jmp 0x5cbd20
Function at 0x5cd0cd
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0x10
jb 0x5cd0df
mov eax, dword [esi]
jmp 0x5cd0e1
mov eax, esi
push 0x6be5f8
push eax
call fcn.0062ab06
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x5cd0fc
cmp dword [esi + 0x14], 0x10
jb 0x5cd130
jmp 0x5cd12e
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x5cd10a
mov eax, dword [eax]
push edi
push 1
push ecx
push eax
call fcn.00619411
add esp, 0x10
cmp eax, 1
je 0x5cd123
push str.fwrite
jmp 0x5cd131
push edi
call fcn.006187c1
pop ecx
pop edi
pop esi
pop ebp
ret
mov esi, dword [esi]
push esi
call fcn.00630b90
pop ecx
push 1
call fcn.00610e3c
int3
Function at 0x5cf864
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d10bb

Function at 0x5d102c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
jle 0x5d1058
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov edx, esi
push edi
mov edi, ebx
sub edi, esi
mov eax, dword [edi + edx]
cmp eax, dword [edx]
jne 0x5d105a
inc ecx
add edx, 4
cmp ecx, dword [ebp + 0x18]
jl 0x5d1045
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [esi + ecx*4]
push dword [ebx + ecx*4]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.CRC_mismatch_between_algorithms__s_and__s_at_offset__d:__x_vs__x_n
call fcn.005cf714
add esp, 0x18
push 1
call fcn.00610e3c
int3

Function at 0x5d3d37
Capabilities:
Create thread

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

Function at 0x62c64e
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0062c3e6

Function at 0x636dda
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006369df

Function at 0x636de5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00636b60

Function at 0x63dccb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0063d4af

Function at 0x63dcd6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0063d6ea

Function at 0x63e229
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0063dfb0
Function at 0x10004a90
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov bl, byte [edi + 1]
lea esi, [edi + 1]
test bl, bl
je 0x10004ac0
nop
cmp bl, 0x2f
je 0x10004aaa
cmp bl, 0x5c
jne 0x10004ab8
push edi
mov byte [esi], 0
call fcn.10042625
add esp, 4
mov byte [esi], bl
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x10004aa0
pop edi
pop esi
pop ebx
ret

Function at 0x1000c7c0
Capabilities:
Compute adler32 checksum

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
mov eax, 0x5e6ea9af
push esi
push edi
mov edi, edx
movzx esi, cx
mul ebp
shr ecx, 0x10
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebp
sub edx, eax
mov dword [esp + 0xc], edx
test edi, edi
jne 0x1000c7f8
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
test ebp, ebp
je 0x1000c8f2
push ebx
xor ebx, ebx
cmp edx, 7
jbe 0x1000c85c
mov ebp, 7
sub ebp, edi
nop
movzx eax, byte [edi]
add ebx, 8
add esi, eax
movzx eax, byte [edi + 1]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 2]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 3]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 4]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 5]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 6]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 7]
add edi, 8
add ecx, esi
add esi, eax
add ecx, esi
lea eax, [edi + ebp]
cmp eax, edx
jb 0x1000c810
xor ebp, ebp
cmp ebx, edx
jae 0x1000c8b2
mov eax, edx
sub eax, ebx
cmp eax, 2
jb 0x1000c8a3
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, ebp
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebp, esi
add edi, 2
add esi, eax
add ebx, esi
sub edx, 1
jne 0x1000c880
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
jae 0x1000c8ad
jmp 0x1000c8a5
mov ebx, ebp
movzx eax, byte [edi]
add esi, eax
add ecx, esi
inc edi
lea eax, [ebx + ebp]
add ecx, eax
mov eax, 0x80078071
mov ebp, dword [esp + 0x20]
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, 0x15b0
add ecx, eax
sub ebp, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edx
jne 0x1000c801
pop ebx
shl ecx, 0x10
pop edi
lea eax, [esi + ecx]
pop esi
pop ebp
add esp, 0xc
ret