joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51bb91
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
push esi
mov esi, dword [ebp + 8]
cmp edx, 0x10
jb 0x51bcec
push edi
mov edi, edx
shr edi, 4
movsx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 7]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 8]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 9]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 0xa]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 0xb]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 0xc]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 0xd]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 0xe]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
movsx eax, byte [esi + 0xf]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
add esi, 0x10
sub edx, 0x10
sub edi, 1
jne 0x51bbad
pop edi
test edx, edx
je 0x51bd08
movsx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5821a0]
inc esi
sub edx, 1
jne 0x51bcf0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x51bd89
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xc]
push esi
push ebx
push esi
push 2
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x51be04
xor eax, eax
xor edx, edx
div dword [ebp - 4]
mov ecx, eax
imul ecx, dword [ebp - 4]
lea eax, [edx + ebx]
push eax
push ecx
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push eax
mov dword [ebp - 4], eax
call fcn.0051bb91
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
pop ecx
test eax, eax
je 0x51bdfd
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51e6bd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
lea eax, [ebp - 8]
mov esi, ecx
push 1
push 2
push eax
call fcn.00528933
push dword [ebp + 8]
lea eax, [ebp - 4]
push 1
push 2
push eax
call fcn.00528933
movsx eax, word [ebp - 4]
add esp, 0x20
mov ecx, esi
push eax
movsx eax, word [ebp - 8]
push eax
call fcn.0051e14e
test eax, eax
je 0x51e773
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0051e48b
mov cx, word [ebp - 4]
mov ebx, eax
and dword [ebp - 0xc], 0
test cx, cx
je 0x51e765
mov edx, dword [esi + 0x18]
push edi
dec cx
xor edi, edi
mov word [ebp - 4], cx
test edx, edx
jle 0x51e759
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 1
push 2
push eax
call fcn.00528933
movzx eax, word [ebp - 0xc]
push eax
call fcn.0051e633
add esp, 0x14
mov dword [ebx + edi*4], eax
mov edx, dword [esi + 0x18]
inc edi
cmp edi, edx
jl 0x51e72d
mov cx, word [ebp - 4]
mov eax, dword [ebp - 0x10]
lea ebx, [ebx + eax*4]
test cx, cx
jne 0x51e721
pop edi
dec cx
mov word [ebp - 4], cx
mov ecx, esi
call fcn.0051e5fd
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x51e887
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
push 1
push 2
mov dword [ebp - 0x14], edi
lea ebx, [edi + 0x18]
push ebx
mov dword [ebp - 0x10], ebx
call fcn.00529452
push dword [ebp + 8]
lea esi, [edi + 0x1c]
push 1
push 2
push esi
call fcn.00529452
mov esi, dword [esi]
lea eax, [ebp - 8]
and dword [ebp - 8], 0
add esp, 0x20
mov ecx, edi
push eax
call fcn.0051e48b
and dword [ebp - 4], 0
test esi, esi
je 0x51e91d
mov ecx, dword [ebx]
mov edi, eax
dec esi
xor ebx, ebx
mov dword [ebp - 0xc], esi
test ecx, ecx
jle 0x51e910
mov esi, dword [ebp - 0x10]
push dword [edi + ebx*4]
call fcn.0051e65f
push dword [ebp + 8]
movzx eax, ax
push 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 2
push eax
call fcn.00529452
mov ecx, dword [esi]
add esp, 0x14
inc ebx
cmp ebx, ecx
jl 0x51e8e5
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea edi, [edi + eax*4]
test esi, esi
jne 0x51e8d8
mov edi, dword [ebp - 0x14]
mov ecx, edi
call fcn.0051e5fd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x51f2db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 9
push esi
call fcn.00528933
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jns 0x51f2fc
movzx eax, byte [esi + 4]
push eax
push dword [esi + 5]
mov ecx, esi
call fcn.0051f130
push dword [ebp + 8]
push 1
push dword [esi + 5]
push dword [esi + 0xc]
call fcn.00528933
add esp, 0x10
mov ecx, esi
push 1
call fcn.0051fa1f
pop esi
pop ebp
ret 8
Function at 0x51f36b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push 1
push 9
push esi
call fcn.00528933
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jns 0x51f38d
movzx eax, byte [esi + 4]
push eax
push dword [esi + 5]
mov ecx, esi
call fcn.0051f162
push dword [ebp + 8]
push 1
push dword [esi + 5]
push dword [esi + 0xc]
call fcn.00528933
mov edx, dword [esi + 5]
add esp, 0x10
mov edi, dword [esi + 0xc]
shr edx, 1
jmp 0x51f3bf
mov eax, dword [esi + 0xc]
movzx ecx, word [edi + edx*2]
mov dword [eax + edx*4], ecx
sub edx, 1
jns 0x51f3b5
mov ecx, esi
call fcn.0051f1be
shl dword [esi + 5], 1
pop edi
pop esi
pop ebp
ret 8

Function at 0x51f8ff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov esi, ebx
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x10]
push eax
push 1
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x10]
push 9
push eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
shr dword [ebp - 0xb], 1
call fcn.00529452
mov esi, dword [ebx + 0xc]
xor eax, eax
add esp, 0x10
xor edi, edi
cmp ax, word [ebx + 2]
jmp 0x51fa03
mov ebx, dword [esi]
add esi, 4
push dword [ebp - 0x14]
movzx eax, bx
push 1
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 2
push eax
call fcn.00529452
add esp, 0x10
test ebx, ebx
je 0x51f9f9
mov eax, dword [esi]
dec ebx
push dword [ebp - 0x14]
movzx eax, ax
push 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 2
push eax
mov dword [ebp - 0x30], ebx
call fcn.00529452
mov edi, dword [esi + 4]
add esi, 8
push dword [ebp - 0x14]
movzx eax, di
push 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push 2
push eax
call fcn.00529452
mov eax, dword [ebp - 0x20]
add esp, 0x20
cmp byte [eax + 4], 1
jne 0x51f9ee
test edi, edi
je 0x51f9ee
and dword [ebp - 0x18], 0
test edi, edi
jle 0x51f9eb
mov ebx, dword [ebp - 0x18]
push dword [esi + ebx*4]
call fcn.0051e65f
push dword [ebp - 0x14]
movzx eax, ax
push 1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.00529452
add esp, 0x14
inc ebx
cmp ebx, edi
jl 0x51f9c2
mov ebx, dword [ebp - 0x30]
lea esi, [esi + edi*4]
test ebx, ebx
jne 0x51f96f
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
inc edi
movsx eax, word [eax + 2]
cmp edi, eax
mov dword [ebp - 0x1c], edi
jl 0x51f949
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
Function at 0x52196c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x79c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x553d34
push eax
mov ebx, ecx
call fcn.00521cc9
mov esi, eax
mov dword [ebp - 0x79c], esi
pop ecx
pop ecx
test esi, esi
jne 0x5219a6
xor eax, eax
jmp 0x521b17
push esi
call fcn.00521b4b
push esi
push 1
mov dword [ebp - 0x788], eax
lea eax, [ebp - 0x784]
push 0x80
push eax
call fcn.00528933
movsx eax, word [ebp - 0x780]
add esp, 0x14
movsx edx, word [ebp - 0x77c]
movsx ecx, word [ebp - 0x77a]
sub edx, eax
movsx eax, word [ebp - 0x77e]
inc edx
sub ecx, eax
inc ecx
push ecx
push edx
mov ecx, ebx
call fcn.0051e14e
test eax, eax
je 0x52199f
push edi
push 2
push 0xfffffd00
push esi
call fcn.00528c9d
push esi
push 1
lea eax, [ebp - 0x304]
push 0x300
push eax
call fcn.00528933
add esp, 0x1c
lea edx, [ebp - 0x302]
xor edi, edi
inc edi
lea edx, [edx + 3]
cmp edi, 0x100
jl 0x521a25
push 0
push 0x80
push esi
call fcn.00528c9d
mov edi, dword [ebp - 0x788]
add edi, 0xffffff80
push edi
call fcn.005238ab
push esi
push 1
push edi
push eax
mov dword [ebp - 0x788], eax
call fcn.00528933
mov edi, dword [ebp - 0x788]
lea eax, [ebp - 0x798]
add esp, 0x20
mov ecx, ebx
push eax
call fcn.0051e48b
xor ecx, ecx
mov dword [ebp - 0x790], ecx
cmp dword [ebx + 0x1c], ecx
jle 0x521af9
mov esi, eax
xor edx, edx
cmp dword [ebx + 0x18], edx
jle 0x521ade
mov cl, byte [edi]
inc edi
mov al, cl
and al, 0xc0
cmp al, 0xc0
jne 0x521ac9
mov al, byte [edi]
movzx ecx, cl
and ecx, 0x3f
movzx eax, al
inc edi
mov dword [ebp - 0x794], ecx
mov dword [ebp - 0x78c], edi
mov eax, dword [esi + eax*4]
test ecx, ecx
jle 0x521ac5
lea edi, [esi + edx*4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x78c]
mov ecx, dword [ebp - 0x794]
add edx, ecx
jmp 0x521ad3
movzx eax, cl
mov eax, dword [esi + eax*4]
mov dword [esi + edx*4], eax
inc edx
cmp edx, dword [ebx + 0x18]
jl 0x521a8a
mov ecx, dword [ebp - 0x790]
mov eax, dword [ebp - 0x798]
inc ecx
mov dword [ebp - 0x790], ecx
lea esi, [esi + eax*4]
cmp ecx, dword [ebx + 0x1c]
jl 0x521a83
mov esi, dword [ebp - 0x79c]
mov ecx, ebx
call fcn.0051e5fd
push dword [ebp - 0x788]
call fcn.005238b4
push esi
call fcn.005286e7
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
Function at 0x5223c9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 4
push esi
mov esi, ecx
push edi
cmp ebx, 1
jne 0x522401
mov edi, accept
mov dword [ebp - 0x20], 3
jmp 0x52240f
mov edi, dword [ebp - 0x24]
cmp ebx, 2
mov ecx, 0xc0000000
cmove edi, ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00521b29
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x522423
mov eax, dword [eax]
push 0
push 0x80
push dword [ebp - 0x20]
push 0
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
mov dword [esi + 0x48], eax
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.004148d0
cmp dword [esi + 0x48], 0xffffffff
je 0x52247d
push edi
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x24]
lea ecx, [esi + 8]
mov dword [esi + 0x4c], eax
push ecx
mov dword [esi + 4], ebx
call fcn.00538c70
pop ecx
pop ecx
push edi
push edi
push edi
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, 1
jmp 0x52247f
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8

Function at 0x522492
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
push 1
push 0
push 0
mov eax, dword [esi]
push dword [eax + 0x48]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x20]
mov edi, eax
mov ecx, dword [esi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
sub edi, dword [ecx + 4]
mov ecx, dword [ebp + 8]
sub edi, esi
test esi, esi
jle 0x5224ed
xor edx, edx
mov eax, edi
div dword [0x5825d0]
cmp dword [0x5825d4], 0x10
mov eax, 0x5825c0
cmovae eax, dword [0x5825c0]
mov al, byte [eax + edx]
xor byte [ecx], al
inc ecx
inc edi
sub esi, 1
jne 0x5224c4
pop edi
pop esi
pop ebp
ret 8
Function at 0x522768
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x54fa74
call fcn.00524a48
mov edi, ecx
push dword [ebp + 8]
call fcn.00519ae0
mov ebx, eax
push ebx
call fcn.00538be0
push 0x50
call fcn.00523854
add esp, 0xc
mov dword [ebp + 8], eax
xor esi, esi
test eax, eax
je 0x5227a7
mov dword [eax], vtable.CFileBase.0
mov dword [eax + 0x48], esi
mov dword [eax + 0x4c], esi
jmp 0x5227a9
mov eax, esi
push 1
push ebx
mov ecx, eax
mov dword [edi], eax
call fcn.005223c9
test al, al
jne 0x5227ce
mov ecx, dword [edi]
test ecx, ecx
je 0x5227c5
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], esi
xor eax, eax
jmp 0x52286b
mov eax, dword [edi]
lea ecx, [ebp + 8]
push esi
push ecx
push 4
lea ebx, [edi + 0x18]
push ebx
push dword [eax + 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 8], esi
cmp dword [ebx], esi
jle 0x522868
push 0x34
call fcn.00523854
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x522808
mov ecx, eax
call fcn.005233c1
mov ecx, eax
jmp 0x52280a
mov ecx, esi
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x1c]
or dword [ebp - 4], 0xffffffff
mov dword [eax + edx*4], ecx
mov ecx, dword [edi + 0x1c]
push dword [edi]
mov ecx, dword [ecx + edx*4]
call fcn.00523509
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x30], ecx
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 0xc]
mov dword [ebp - 0x18], eax
lea ecx, [edi + 0x24]
lea eax, [ebp - 0x18]
push eax
call fcn.00521df3
push eax
add eax, 0x10
lea ecx, [ebp - 0x20]
push eax
push esi
push ecx
lea ecx, [edi + 0x24]
call fcn.00521fab
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebx]
jl 0x5227eb
xor eax, eax
inc eax
call fcn.00524a22
ret 4

Function at 0x522b99
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x554e08
push str.errorlog.txt
call fcn.00521cc9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x522bd3
push esi
push dword [ebp + 8]
call fcn.00535c5d
push esi
call fcn.005286e7
add esp, 0xc
push 5
push str.errorlog.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call fcn.005391af
int3

Function at 0x523509
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
lea ecx, [ebp + 8]
push ecx
push 1
lea eax, [esi + 0xc]
push eax
push dword [edi + 0x48]
call ebx
lea eax, [esi + 0xc]
cmp byte [eax], 0x60
push 0
jne 0x523547
lea ecx, [ebp + 8]
push ecx
push 0x1f
push eax
push dword [edi + 0x48]
call ebx
mov byte [esi + 0x2c], 1
jmp 0x523556
lea eax, [ebp + 8]
push eax
push 0x1f
lea eax, [esi + 0xd]
push eax
push dword [edi + 0x48]
call ebx
push 0
lea eax, [ebp + 8]
push eax
push 4
lea eax, [esi + 4]
push eax
push dword [edi + 0x48]
call ebx
push 0
lea eax, [ebp + 8]
push eax
push 4
lea eax, [esi + 8]
push eax
push dword [edi + 0x48]
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x5235ad
Capabilities:
Write file on windows

Disassembly:
push 0x58
mov eax, 0x54fae0
call fcn.00524a7c
mov esi, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, vtable.CFileBase.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x14], edi
push 2
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], edi
call fcn.005223c9
push edi
lea eax, [ebp - 0x64]
push eax
push dword [esi + 8]
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x60]
call fcn.00522567
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], ebx
call fcn.00522567
call fcn.00524a37
ret 4

Function at 0x53ca30
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053c8af

Function at 0x542f66
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00542c26

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407741
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x41c4c0
push 8
mov eax, edx
pop esi
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec esi
jne 0x40774f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x41c8c0
jb 0x40774a
pop edi
pop esi
ret

Function at 0x40a4c5
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x40f7a0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov byte [ecx], al
ret
Function at 0x414ba6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, ecx
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0x20
mov ch, byte [edi + 4]
mov cl, byte [edi + 5]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 7]
mov dh, 0x47
pop es

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

Disassembly:
mov dh, 0x47
pop es
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov esi, dword [eax]
mov ebx, dword [eax + 0x40]
add esi, ecx
pop ecx
sub ecx, ebx
mov ebx, esi
shr ebx, cl
mov ecx, dword [eax + 0x40]
push 0x20
and bl, dl
out 0x8b, al
or cl, byte [ecx + 0x4a8b084d]
or byte [ecx + 0x4a8bf84d], cl
or al, 0xb
fimul word [ebx + 0x558b0472]
or byte [ecx - 0x34740bb3], cl

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

Disassembly:
mov dh, 0x47
pop es
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov esi, dword [eax]
mov ebx, dword [eax + 0x40]
add esi, ecx
pop ecx
sub ecx, ebx
mov ebx, esi
shr ebx, cl
mov ecx, dword [eax + 0x40]
push 0x20
and bl, dl
out 0x8b, al
or cl, byte [ecx + 0x4a8b084d]
or byte [ecx + 0x4a8bf84d], cl
or al, 0xb
fimul word [ebx + 0x558b0472]
or byte [ecx - 0x34740bb3], cl

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

Disassembly:
shr dword [ebp + 0xc], cl
mov ecx, ebx
shl edi, cl
mov ecx, dword [ebp + 0xc]
or ecx, edi
mov ebx, ecx
mov dword [ebp + 0xc], ecx
shr ebx, 8
jmp 0x414c6e
movzx edi, bl
mov ebx, dword [ebp - 8]
shr ecx, 0x10
mov edi, dword [ebx + edi*4]
cmp al, 0xbb
movzx ecx, cl
sub edi, dword [esi + ecx*4]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
shr ecx, 0x18
push 0x20
add edi, dword [ebx + ecx*4]
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [ebp + 0xc]
xor edi, dword [ebx + ecx*4]
mov ebx, dword [eax + 0x48]
pop ecx
xor dword [ebp - 4], edi
mov edi, dword [eax + 8]
sub edi, dword [ebp - 4]
sub ecx, ebx
push 0x20
mov dword [ebp + 0xc], edi
shr dword [ebp + 0xc], cl
mov ecx, ebx
mov ebx, dword [ebp + 8]
shl edi, cl
mov ecx, dword [ebp + 0xc]
or ecx, edi
mov dword [ebp + 0xc], ecx
mov edi, ecx
shr ecx, 0x10
shr edi, 0x18
movzx ecx, cl
mov edi, dword [ebx + edi*4]
mov ebx, dword [ebp - 8]
add edi, dword [esi + ecx*4]
mov ecx, dword [ebp + 0xc]
shr ecx, 8
movzx ecx, cl
xor edi, dword [ebx + ecx*4]
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [ebp + 0xc]
sub edi, dword [ebx + ecx*4]
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 0x4c]
xor edx, edi
lea edi, [ecx + edx]
pop ecx
sub ecx, ebx
mov dword [ebp + 0xc], edi
shr edi, cl
mov ecx, ebx
mov ebx, dword [ebp + 0xc]
shl ebx, cl
push 0x20
or edi, ebx
mov ebx, edi
mov dword [ebp + 0xc], edi
shr ebx, 0x10
mov ecx, edi
movzx edi, bl
mov ebx, dword [ebp + 8]
shr ecx, 0x18
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
xor ecx, dword [esi + edi*4]
shr ebx, 8
movzx edi, bl
Function at 0x414c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
shr dword [ebp + 0xc], cl
mov ecx, ebx
shl edi, cl
mov ecx, dword [ebp + 0xc]
or ecx, edi
mov ebx, ecx
mov dword [ebp + 0xc], ecx
shr ebx, 8
jmp 0x414c6e
movzx edi, bl
mov ebx, dword [ebp - 8]
shr ecx, 0x10
mov edi, dword [ebx + edi*4]
cmp al, 0xbb
movzx ecx, cl
sub edi, dword [esi + ecx*4]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
shr ecx, 0x18
push 0x20
add edi, dword [ebx + ecx*4]
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [ebp + 0xc]
xor edi, dword [ebx + ecx*4]
mov ebx, dword [eax + 0x48]
pop ecx
xor dword [ebp - 4], edi
mov edi, dword [eax + 8]
sub edi, dword [ebp - 4]
sub ecx, ebx
push 0x20
mov dword [ebp + 0xc], edi
shr dword [ebp + 0xc], cl
mov ecx, ebx
mov ebx, dword [ebp + 8]
shl edi, cl
mov ecx, dword [ebp + 0xc]
or ecx, edi
mov dword [ebp + 0xc], ecx
mov edi, ecx
shr ecx, 0x10
shr edi, 0x18
movzx ecx, cl
mov edi, dword [ebx + edi*4]
mov ebx, dword [ebp - 8]
add edi, dword [esi + ecx*4]
mov ecx, dword [ebp + 0xc]
shr ecx, 8
movzx ecx, cl
xor edi, dword [ebx + ecx*4]
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [ebp + 0xc]
sub edi, dword [ebx + ecx*4]
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 0x4c]
xor edx, edi
lea edi, [ecx + edx]
pop ecx
sub ecx, ebx
mov dword [ebp + 0xc], edi
shr edi, cl
mov ecx, ebx
mov ebx, dword [ebp + 0xc]
shl ebx, cl
push 0x20
or edi, ebx
mov ebx, edi
mov dword [ebp + 0xc], edi
shr ebx, 0x10
mov ecx, edi
movzx edi, bl
mov ebx, dword [ebp + 8]
shr ecx, 0x18
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
xor ecx, dword [esi + edi*4]
shr ebx, 8
movzx edi, bl

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

Disassembly:
mov ebx, dword [ebp - 8]
sub ecx, dword [ebx + edi*4]
mov ebx, dword [ebp - 0xc]
movzx edi, byte [ebp + 0xc]
add ecx, dword [ebx + edi*4]
mov edi, dword [eax + 0x10]
mov ebx, dword [eax + 0x50]
xor dword [ebp - 4], ecx
pop ecx
xor edi, dword [ebp - 4]
sub ecx, ebx
mov dword [ebp + 0xc], edi
shr dword [ebp + 0xc], cl
mov ecx, ebx
shl edi, cl
mov ecx, dword [ebp + 0xc]
or ecx, edi
mov dword [ebp + 0xc], ecx
mov ebx, ecx
shr ebx, 8
jmp 0x414d5e
movzx edi, bl
mov ebx, dword [ebp - 8]
push 0x20
shr ecx, 0x10
mov edi, dword [ebx + edi*4]
mov ebx, dword [ebp + 8]
movzx ecx, cl
sub edi, dword [esi + ecx*4]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x18
add edi, dword [ebx + ecx*4]
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [ebp + 0xc]
xor edi, dword [ebx + ecx*4]
mov ebx, dword [eax + 0x54]
pop ecx
xor edx, edi
mov edi, dword [eax + 0x14]
sub edi, edx
sub ecx, ebx
mov dword [ebp + 0xc], edi
push 0x20
shr dword [ebp + 0xc], cl
mov ecx, ebx
mov ebx, dword [ebp + 8]
shl edi, cl
mov ecx, dword [ebp + 0xc]
or ecx, edi
mov dword [ebp + 0xc], ecx
mov edi, ecx