joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408160
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
call fcn.004399d2
add esp, 8
test eax, eax
jne 0x408307
push esi
push 0x200
call fcn.00436a77
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4081a3
sub eax, edx
inc eax
push eax
push edi
mov ecx, ebx
call fcn.00405df0
mov dword [ebp - 0x10], eax
lea edi, [eax - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4081c0
mov dx, word [0x46f8d0]
mov word [edi], dx
mov ecx, esi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4081d4
sub ecx, esi
mov edx, ecx
lea edi, [eax - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4081e2
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x180]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
je 0x4082f4
mov dword [ebp - 4], 0x200
mov dword [ebp + 0x14], 0x80
cmp byte [ebp + 0x10], 0
je 0x40829b
lea eax, [ebp - 0x154]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408231
sub eax, edx
mov edx, dword [ebp + 0xc]
inc eax
push eax
push edx
mov ecx, ebx
call fcn.00405df0
mov ebx, eax
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408250
mov ax, word [0x46f8d0]
mov word [edi], ax
lea eax, [ebp - 0x154]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408270
sub eax, ecx
mov esi, ecx
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408280
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0xc]
jmp 0x4082ad
push 0
lea ecx, [ebp - 0x154]
push ecx
mov ecx, ebx
call fcn.00405df0
mov ebx, eax
cmp dword [ebp + 0x14], 2
mov esi, dword [ebp + 8]
jae 0x4082d7
mov eax, dword [ebp - 4]
mov edx, dword [esi]
sub dword [ebp + 0x14], 0xffffff80
add eax, 0x200
push eax
push edx
mov dword [ebp - 4], eax
call fcn.00437dd1
add esp, 8
test eax, eax
je 0x408311
mov dword [esi], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x180]
push ecx
push edi
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, dword [ebp - 8]
test eax, eax
jne 0x408222
lea edx, [ebp - 0x10]
push edx
mov ecx, ebx
call fcn.00405f20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
test eax, eax
je 0x408320
push eax
call fcn.00436a3d
add esp, 4
mov dword [esi], 0
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414b40
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1a0]
push eax
call fcn.0042abc0
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x19c]
mov edx, eax
add esp, 4
or edx, ecx
je 0x414b79
add eax, 0xffffffff
adc ecx, 0xffffffff
mov dword [esi + 0x198], eax
mov dword [esi + 0x19c], ecx
jmp 0x414b84
push str.Attempt_to_reduce_CMuppet_ref_count___0_IGNORED
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x1a0]
push eax
call fcn.0042abe0
mov ecx, dword [esi + 0x120]
push ecx
call fcn.0042abc0
cmp byte [esi + 0x8a], 0
mov edx, dword [esi + 0x120]
push edx
sete bl
call fcn.0042abe0
add esp, 0xc
pop esi
mov al, bl
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416816
xor al, al
pop ebp
ret
and al, 0x10
cmp al, 0x10
sete al
pop ebp
ret

Function at 0x416820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41683a
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [eax + 0x20]
push 0
push eax
lea ecx, [ebp - 0x80]
push str.size:__llu__hash:__s
push ecx
call fcn.00437223
lea eax, [ebp - 0x80]
add esp, 0x14
lea edx, [eax + 1]
jmp 0x416860
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416860
sub eax, edx
cmp eax, 0x80
jae 0x416887
mov edx, 0x80
sub edx, eax
push edx
lea ecx, [ebp + eax - 0x80]
push 0
push ecx
call fcn.0043b5d0
add esp, 0xc
push esi
push 0x80
lea eax, [ebp - 0x80]
push 1
push eax
call fcn.0043a5a0
add esp, 0x10
cmp eax, 0x80
jne 0x416831
push esi
call fcn.0043a862
add esp, 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x418aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x100
push esi
push eax
push 0x80
mov esi, ecx
lea ecx, [ebp - 0x80]
push 1
push ecx
call fcn.00438a61
add esp, 0x10
cmp eax, 0x80
je 0x418ad3
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x80]
mov byte [ebp - 1], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418ae0
sub eax, edx
cmp eax, 0x80
jae 0x418aff
cmp byte [ebp + eax - 0x80], 0
jne 0x418aca
inc eax
cmp eax, 0x80
jb 0x418af0
lea edx, [ebp - 0x100]
push edx
push str.size
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.00415740
test al, al
je 0x418aca
lea ecx, [ebp - 0x100]
push edi
push ecx
call fcn.00436b0b
add esp, 4
lea edx, [ebp - 0x100]
push edx
mov edi, eax
push str.hash
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.00415740
test al, al
je 0x418b5e
lea eax, [ebp - 0x100]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418b50
sub eax, edx
cmp eax, 0x20
jb 0x418b68
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x24
call fcn.004369bd
add esp, 4
test eax, eax
je 0x418b84
mov dword [eax + 0x20], 0
mov byte [eax], 0
mov edx, eax
jmp 0x418b86
xor edx, edx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x100]
mov ecx, eax
mov dword [esi], edx
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418b95
mov edx, dword [esi]
mov dword [edx + 0x20], edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41b040
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x110]
push esi
push eax
call fcn.0042abc0
mov eax, dword [ebx + 0x194]
add esp, 4
test eax, eax
je 0x41b06f
push eax
call fcn.00436a3d
add esp, 4
mov ecx, dword [ebx + 0x110]
push ecx
mov dword [ebx + 0x194], 0
call fcn.0042abe0
add esp, 4
push 0x104
lea edx, [ebp - 0x104]
push edx
push str.MUP_CACHEDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x41b0af
lea esi, [ebp - 0x104]
jmp 0x41b0d9
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41b0d9
push esi
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0042e500
add esp, 0xc
test al, al
je 0x41b1f5
lea esi, [ebp - 0x208]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b0e0
sub eax, edx
add eax, 0x11
push eax
call fcn.00436a77
add esp, 4
mov dword [ebx + 0x194], eax
mov ecx, esi
mov edx, eax
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x41b100
push edi
mov edi, dword [ebx + 0x194]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b116
sub eax, edx
je 0x41b142
cmp byte [edi + eax - 1], 0x5c
je 0x41b142
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41b130
mov cx, word [0x46f8d0]
mov word [edi], cx
mov eax, dword [ebx + 0x194]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41b150
mov edx, dword [str.cache]
mov dword [eax], edx
mov cx, word [0x46f8bc]
push 0x5c
mov word [eax + 4], cx
mov edx, dword [ebx + 0x194]
push 0
push edx
call fcn.00419670
add esp, 0xc
test al, al
jne 0x41b1a4
mov eax, dword [ebx + 0x194]
push eax
call fcn.00436a3d
add esp, 4
pop edi
pop esi
mov dword [ebx + 0x194], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x110]
push ecx
call fcn.0042abc0
mov ecx, dword [ebx + 0x194]
mov eax, ecx
add esp, 4
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41b1c0
sub eax, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x41b1e5
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41b1d1
mov dx, word [0x46f8d0]
mov edi, ecx
mov word [edi], dx
mov eax, dword [ebx + 0x110]
push eax
call fcn.0042abe0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41bac0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x20
push eax
mov dword [ebp - 8], ecx
call fcn.00415d70
mov esi, eax
push 0
mov dword [ebp - 4], esi
call fcn.00437895
and eax, 0xffff
push eax
call fcn.0043b7b5
call fcn.0043b7c7
mov ecx, eax
imul ecx, ecx, 0x3e8
mov eax, 0x80010003
imul ecx
add edx, ecx
sar edx, 0xe
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
push ebx
lea ecx, [ebp - 0x2c]
push str._04i
push ecx
call fcn.00437223
add esp, 0x14
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41bb23
mov dx, word [0x469634]
lea eax, [ebp - 0x2c]
mov word [edi], dx
mov edi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41bb40
sub eax, edi
mov edx, edi
lea edi, [esi - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41bb50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x2710
jge 0x41bc60
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.004399d2
add esp, 8
test eax, eax
je 0x41bbc7
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41bb90
sub eax, edx
cmp eax, dword [ebp + 0xc]
jae 0x41bc54
mov edi, dword [ebp + 8]
cmp byte [ebp + 0x10], cl
je 0x41bc25
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne al
test al, al
jne 0x41bbee
inc ebx
push ebx
push edi
push str._s._04i
jmp 0x41bbd2
mov ecx, dword [ebp + 8]
inc ebx
push ebx
push ecx
push str._s._4i
push esi
call fcn.00437223
add esp, 0x10
cmp ebx, 0x2710
jl 0x41bb74
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x5c]
push edx
push esi
call fcn.004399d2
add esp, 8
test eax, eax
jne 0x41bc25
mov eax, dword [ebp - 0x56]
test eax, 0x4000
je 0x41bc10
push 0x1ff
jmp 0x41bc1c
test eax, 0x8000
je 0x41bc25
push 0x1b6
push esi
call fcn.0044b1ed
add esp, 8
mov ebx, dword [ebp - 8]
push edi
mov ecx, ebx
call fcn.004157f0
mov eax, esi
sub edi, esi
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x41bc34
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.00415f30
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00415f30
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41bc70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x194]
sub esp, 0x104
push ebx
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41bc87
sub eax, esi
test edx, edx
je 0x41bd24
test eax, eax
je 0x41bd24
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov cl, byte [edx]
mov byte [esi], cl
inc edx
inc esi
test cl, cl
jne 0x41bca5
cmp byte [eax + ebx - 1], 0x5c
je 0x41bcd1
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41bcc0
mov ax, word [0x46f8d0]
mov word [edi], ax
lea eax, [ebx - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41bcd4
mov ecx, dword [str.__temp]
mov dword [eax], ecx
mov dx, word [0x46a30c]
push 0x5c
mov word [eax + 4], dx
mov cl, byte [0x46a30e]
push 0
push ebx
mov byte [eax + 6], cl
call fcn.00419670
add esp, 0xc
test al, al
je 0x41be66
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41bd10
mov dx, word [0x46f8d0]
mov word [edi], dx
jmp 0x41bd49
mov eax, dword [ebp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41be66
cmp eax, 0x104
jae 0x41be66
mov ebx, dword [ebp + 0xc]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41bd50
mov edi, dword [ebp + 8]
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41bd63
sub eax, esi
lea ecx, [eax + edx + 1]
cmp ecx, 0x104
jae 0x41be66
push 0x46a288
push edi
call fcn.00437410
add esp, 8
test eax, eax
je 0x41bd93
add eax, 3
jmp 0x41bd95
mov eax, edi
lea edx, [ebp - 0x104]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41bda0
mov ecx, ebx
lea eax, [ebp - 0x104]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41bdb5
sub ecx, esi
cmp byte [ebp - 0x104], dl
je 0x41be1f
mov bl, 0x5f
jmp 0x41bdd0
mov edx, ecx
inc ecx
cmp edx, 0xfc
ja 0x41be19
movsx edx, byte [eax]
add edx, 0xffffffde
cmp edx, 0x5a
ja case.0x41bded.35
movzx edx, byte [edx + 0x41be84]
jmp dword [edx*4 + 0x41be74]
mov byte [eax], 0x5c
jmp case.0x41bded.35
mov dl, byte [eax + 1]
test dl, dl
je case.0x41bded.34
cmp dl, 0x2e
je 0x41be0c
cmp dl, 0x5c
je case.0x41bded.34
jmp case.0x41bded.35
mov byte [eax + 1], bl
mov byte [eax], bl
inc eax
cmp byte [eax], 0
jne 0x41bdd0
jmp 0x41be1c
mov byte [eax], 0
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41be27
sub eax, ecx
mov esi, ecx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41be35
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x5c
mov ecx, eax
and ecx, 3
push 1
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00419670
add esp, 0xc
pop edi
test al, al
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42b300
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
sub esp, 0xc
cmp dword [ebp + 0x10], eax
jbe 0x42b313
mov dword [ebp + 0x10], eax
mov eax, dword [0x48baa0]
push ebx
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x42b409
cmp eax, ecx
je 0x42b33e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 1
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push edi
call fcn.0042ae00
add esp, 0x18
test al, al
mov eax, dword [0x48baa0]
je 0x42b434
test eax, eax
je 0x42b373
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
cmp dword [esi], ecx
jb 0x42b392
push 0
push edi
call fcn.0042b000
mov edx, dword [ebp + 0x10]
add esp, 8
cmp dword [esi], edx
jae 0x42b380
mov eax, dword [ebp - 4]
test eax, eax
je 0x42b3a2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 4
push eax
push ecx
push 0
push 0
call fcn.00437d31
mov edx, dword [esi]
add esp, 0x18
mov dword [ebx + edx*4], eax
xor edi, edi
mov eax, dword [esi]
cmp dword [ebx + eax*4], 0xffffffff
jne 0x42b3f4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push 4
push ecx
push edx
push 0
push 0
call fcn.00437d31
mov ecx, dword [esi]
inc edi
add esp, 0x18
mov dword [ebx + ecx*4], eax
cmp edi, 5
jl 0x42b3c1
mov eax, dword [esi]
cmp dword [ebx + eax*4], 0xffffffff
jne 0x42b41b
dec eax
pop edi
mov dword [esi], eax
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x48bbb0
mov dword [ebp - 4], eax
mov ebx, 0x48baa8
jmp 0x42b379
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi]
mov eax, dword [ebx + edx*4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc dword [esi]
mov eax, dword [ebp - 4]
test eax, eax
je 0x42b443
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0
push 0x23
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x42e526
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e530
mov ecx, dword [ebp + 0xc]
sub eax, edx
add ecx, 0xfffffff4
cmp eax, ecx
jae 0x42e520
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
mov edx, esi
mov ecx, eax
push edi
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42e554
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e561
mov dx, word [0x46f8d0]
mov word [edi], dx
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e576
cmp byte [ebp + 0x10], 0
mov eax, dword [0x46ec34]
mov dword [edi], eax
je 0x42e5c0
lea edi, [esi - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e590
mov cx, word [0x46f8d0]
mov word [edi], cx
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42e5a5
mov edx, dword [str.cache]
mov dword [eax], edx
mov cx, word [0x46f8bc]
mov word [eax + 4], cx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x432478
xor al, al
pop ebp
ret 4
and al, 0x10
cmp al, 0x10
sete al
pop ebp
ret 4
Function at 0x432760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, ebx
mov dword [ebp - 8], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x432778
sub eax, edx
cmp eax, 0x104
jbe 0x432792
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x104
lea eax, [ebp - 0x10c]
push eax
push ebx
mov ecx, esi
call fcn.00432350
push 0
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, esi
call fcn.00432490
test al, al
je 0x432788
push edi
xor edi, edi
mov byte [ebp + 0xb], 0
jmp 0x4327c6
mov esi, dword [ebp - 8]
push 0x469844
push ebx
call fcn.00438800
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x432846
push ebx
push str.Unable_to_open__s_for_writing__will_try_again_in_1_sec
call fcn.0043a00a
add esp, 8
lea edx, [ebp - 4]
push edx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004326b0
mov esi, dword [ebp - 4]
push esi
push str.__s__n
call fcn.0043a00a
push esi
call fcn.00436a3d
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x19
jb 0x4327c3
push ebx
push str.ERROR:_Couldnt_open__s_for_writing_n
call fcn.0043858f
add eax, 0x40
push eax
call fcn.00438a7e
mov al, byte [ebp + 0xb]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov byte [ebp + 0xb], 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x10], edi
jbe 0x4328f5
jmp 0x432860
mov esi, dword [ebp + 0x10]
sub esi, edi
cmp esi, 0x8000
jbe 0x432872
mov esi, 0x8000
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push edx
push esi
push 1
push eax
call fcn.0043a5a0
add esp, 0x10
cmp eax, esi
jne 0x4328ab
add dword [ebp + 0xc], esi
add edi, esi
cmp edi, dword [ebp + 0x10]
jb 0x432860
mov eax, dword [ebp - 4]
push eax
call fcn.00438ef6
mov al, byte [ebp + 0xb]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
push esi
push str.ERROR:_Unable_to_write__li_bytes_at_offset__li_to__s_n
call fcn.0043858f
add eax, 0x40
push eax
call fcn.00438a7e
add esp, 0x14
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], 0
call fcn.004326b0
mov esi, dword [ebp + 0x10]
push esi
push str.__s__n
call fcn.0043a00a
push esi
call fcn.00436a3d
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [ebp + 0xb], 0
push eax
call fcn.00438ef6
mov al, byte [ebp + 0xb]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x432910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x3c]
push eax
mov edi, ecx
push esi
mov dword [ebp - 0xc], edi
xor ebx, ebx
mov byte [ebp - 1], 1
call fcn.004399d2
add esp, 8
test eax, eax
jne 0x432989
push 0x470e54
push esi
call fcn.00438800
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x432994
push esi
push str.ERROR:_Unable_to_open__s_for_reading_n
call fcn.0043a00a
add esp, 8
lea ecx, [ebp + 0xc]
push ecx
mov ecx, edi
mov dword [ebp + 0xc], ebx
call fcn.004326b0
mov esi, dword [ebp + 0xc]
push esi
push str.__s__n
call fcn.0043a00a
push esi
call fcn.00436a3d
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x432989
mov dword [eax], ebx
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], ebx
xor edi, edi
jmp 0x4329a0
mov esi, dword [ebp - 0x28]
push esi
call fcn.00436a77
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x4329f5
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1e
jl 0x4329a0
mov edx, dword [ebp + 0xc]
cmp dword [edx], ebx
jne 0x4329f2
mov eax, dword [ebp + 8]
push eax
push str.Cabby:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.0043858f
add eax, 0x40
push eax
call fcn.00438a7e
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
test eax, eax
je 0x432a03
mov dword [eax], esi
test esi, esi
je 0x432abf
jmp 0x432a10
sub esi, ebx
cmp esi, 0x8000
jbe 0x432a1f
mov esi, 0x8000
mov edx, dword [ebp - 8]
push edx
push esi
push 1
push edi
call fcn.00438a61
add esp, 0x10
cmp eax, esi
jne 0x432a56
mov esi, dword [ebp - 0x28]
add ebx, eax
add edi, eax
cmp ebx, esi
jb 0x432a10
mov eax, dword [ebp - 8]
push eax
call fcn.00438ef6
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push eax
push ebx
push esi
push str.Cabby:_Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.0043858f
add eax, 0x40
push eax
call fcn.00438a7e
add esp, 0x14
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], 0
call fcn.004326b0
mov esi, dword [ebp + 8]
push esi
push str.__s__n
call fcn.0043858f
add eax, 0x40
push eax
call fcn.00438a7e
push esi
call fcn.00436a3d
mov edx, dword [ebp + 0xc]
push edx
call fcn.00436a3d
mov eax, dword [ebp + 0x10]
add esp, 0x14
test eax, eax
je 0x432abb
mov dword [eax], 0
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
push eax
call fcn.00438ef6
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc