joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bbb0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1010c
call fcn.0049ffc0
push ebp
mov ebp, dword [esp + 0x10118]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1011c]
test esi, esi
je 0x47bbd6
cmp byte [esi], 0
jne 0x47bbdb
mov esi, 0x4ad4e8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x104
push edx
mov byte [esp + 0x128], 0
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp byte [ebp], 0
je 0x47bc4e
cmp byte [edi], 0
jne 0x47bc0d
lea edi, [esp + 0xf]
lea eax, [esp + 0x14]
push eax
push 0xffff
lea ecx, [esp + 0x120]
push ecx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [0x4bb388]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x124]
push eax
push ecx
call fcn.004828b0
pop edi
pop esi
pop ebp
add esp, 0x1010c
ret 8
cmp byte [edi], 0
je 0x47bc6e
lea edx, [esp + 0x14]
push edx
push 0xffff
lea eax, [esp + 0x120]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x47bc86
lea ecx, [esp + 0x14]
push ecx
push 0xffff
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x47bc28
lea eax, [esp + 0x118]
cmp byte [eax], 0
jne 0x47bc9f
cmp byte [eax + 1], 0
je 0x47bc28
mov byte [eax], 0xa
inc eax
jmp 0x47bc91
Function at 0x47c4b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x124]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x47c577
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [0x4b7a70]
mov edx, dword [ecx + 0xb0]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x47c584
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047c4b0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x47c584
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x47c584
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x47c4fa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x47c5a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, eax
push esi
test ebx, ebx
je 0x47c691
test edi, edi
je 0x47c5ba
cmp byte [edi], 0
jne 0x47c5c2
test ebp, ebp
je 0x47c691
mov ecx, dword [0x4b7a70]
mov edx, dword [ecx + 0xb0]
lea eax, [esp + 0x14]
push eax
or edx, 0x2001f
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x47c663
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x47c67a
push eax
call fcn.0047c4b0
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x47c663
mov eax, 1
test byte [0x4bd70c], al
jne 0x47c641
or dword [0x4bd70c], eax
push str.RegDeleteKeyExA
push 0x4af030
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bd708], eax
jmp 0x47c646
mov eax, dword [0x4bd708]
mov edx, dword [0x4b7a70]
mov ecx, dword [edx + 0xb0]
test ecx, ecx
je 0x47c670
test eax, eax
je 0x47c670
push 0
push ecx
push edi
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x47c696
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47c698
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x47c661
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47c663
mov esi, 0x57
mov eax, esi
mov edx, dword [0x4b7a70]
mov ebx, dword [esp + 0x10]
mov dword [edx + 0x30], eax
test esi, esi
setne al
movzx ecx, al
push ecx
call fcn.0043b150
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4826f0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
push 0x4bcae8
mov esi, ecx
call fcn.00405500
test eax, eax
jne 0x48271d
push 0x4a7935
push 0x4a7ba8
mov ecx, 0x4bc460
call fcn.0043b780
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x482784
xor esi, esi
cmp dword [0x4bcb00], esi
je 0x482770
cmp dword [0x4bcaf0], esi
je 0x48275e
mov edx, dword [0x4bcae8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4bcaf0], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4bcb00], esi
mov dword [0x4bcae8], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x482739
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x482739
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x482739
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4827fb
test ebx, ebx
je 0x4827e1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x482851
push ebx
push ebp
push eax
call fcn.0049b620
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x482780
jmp 0x482739
cmp dword [0x4bcb00], 0
je 0x482835
cmp dword [0x4bcaf0], 0
je 0x482823
mov eax, dword [0x4bcae8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4bcaf0], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4bcb00], eax
mov dword [0x4bcae8], eax
push 0x4a7935
push 0x4aa228
mov ecx, 0x4bc460
call fcn.0043b780
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4bcb00], esi
je 0x48288f
cmp dword [0x4bcaf0], esi
je 0x48287d
mov ecx, dword [0x4bcae8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4bcaf0], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4bcb00], esi
mov dword [0x4bcae8], esi
push 0x4a7935
push 0x4a7b90
mov ecx, 0x4bc460
call fcn.0043b780
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x482c80
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x482c93
jmp dword [eax*4 + 0x482e44]
mov eax, esi
call fcn.004011b0
cmp dword [0x4bb5b4], 0
jne 0x482d68
cmp dword [esi + 0xc], 0
jne 0x482d68
mov edi, dword [esp + 0x14]
cmp dword [0x4bd510], esi
jne 0x482cc8
test edi, edi
jne 0x482d25
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x13]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x482d21
mov dword [0x4bd510], 0
test edi, edi
je 0x482d19
mov eax, dword [0x4bb590]
test eax, eax
je 0x482d0a
mov edx, dword [esi + 0x18]
push 0
push edx
push 0x4b1370
push eax
mov ecx, 0x4bc460
call fcn.0043bca0
mov ecx, dword [esi + 0x18]
call fcn.00480ab0
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x482d59
cmp byte [esi + 0x17], 0
jne 0x482d30
mov eax, dword [esi + 0xc]
jmp 0x482d32
mov eax, esi
test byte [eax + 0x15], 4
je 0x482d43
push esi
mov ecx, 0x4bc460
call fcn.0043bdd0
mov byte [edi], 0
mov dword [0x4bd510], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4bd510], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0xc]
test edi, edi
je 0x482dd8
test ebx, ebx
jne 0x482d9e
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x482d92
push esi
mov ecx, 0x4bc460
call fcn.0043bdd0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x482dd8
cmp ebx, 0x186a0
jae 0x482dc9
mov al, byte [ecx]
test al, al
je 0x482dbd
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x482db3
mov byte [edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push ecx
push edi
call fcn.0049b620
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push eax
call fcn.00482c80
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00404f60
cmp eax, 0xffffffff
jne 0x482e07
xor eax, eax
test esi, esi
je 0x482e3b
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x482e21
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
push ecx
push edx
call eax
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x49a071
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b6ddc]
jne 0x49a07b
repz ret
jmp fcn.0049f201

Function at 0x49c820
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b6ddc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00497082
and dword [ebp - 0x14], 0
cmp dword [0x4b9c6c], 0
mov dword [ebp - 0x18], eax
jne 0x49c8d3
push 0x4a7808
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49c97b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a77fc
push ebx
call edi
test eax, eax
je 0x49c97b
mov esi, dword [fcn.00492850]
push eax
call esi
push 0x4a77ec
push ebx
mov dword [0x4b9c6c], eax
call edi
push eax
call esi
push 0x4a77d8
push ebx
mov dword [0x4b9c70], eax
call edi
push eax
call esi
push 0x4a77bc
push ebx
mov dword [0x4b9c74], eax
call edi
push eax
call esi
mov dword [0x4b9c7c], eax
test eax, eax
je 0x49c8d3
push 0x4a77a4
push ebx
call edi
push eax
call esi
mov dword [0x4b9c78], eax
mov eax, dword [0x4b9c78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00492854]
cmp eax, ecx
je 0x49c92c
cmp dword [0x4b9c7c], ecx
je 0x49c92c
push eax
call esi
push dword [0x4b9c7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49c92c
test ebx, ebx
je 0x49c92c
call edi
test eax, eax
je 0x49c923
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x49c923
test byte [ebp - 8], 1
jne 0x49c92c
or dword [ebp + 0x10], 0x200000
jmp 0x49c95f
mov eax, dword [0x4b9c70]
cmp eax, dword [ebp - 0x18]
je 0x49c95f
push eax
call esi
test eax, eax
je 0x49c95f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49c95f
mov eax, dword [0x4b9c74]
cmp eax, dword [ebp - 0x18]
je 0x49c95f
push eax
call esi
test eax, eax
je 0x49c95f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b9c6c]
call esi
test eax, eax
je 0x49c97b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49c97d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a071
leave
ret
Function at 0x10001000
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, ecx
test eax, eax
je 0x10001048
test ebx, ebx
je 0x10001048
test edi, edi
je 0x10001048
push 0x1012266c
push eax
call fcn.100d080d
mov esi, eax
add esp, 8
test esi, esi
je 0x10001048
push 0
push 0
push esi
call fcn.100d08ae
push esi
push edi
push 1
push ebx
call fcn.100d0bd3
push esi
mov edi, eax
call fcn.100d11ec
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret
pop edi
or eax, 0xffffffff
pop esi
ret

Function at 0x10001050
Capabilities:
Authenticate hmac

Disassembly:
sub esp, 0xac
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb0]
push ebp
push esi
push edi
lea esi, [esp + 0x34]
lea edi, [esp + 0x74]
xor ebp, ebp
sub esi, eax
sub edi, eax
lea esp, [esp]
mov byte [esi + eax], 0x36
mov byte [edi + eax], 0x5c
cmp ebp, 0x14
jae 0x1000109d
mov cl, byte [eax]
mov dl, cl
xor dl, 0x36
xor cl, 0x5c
mov byte [esi + eax], dl
mov byte [edi + eax], cl
inc ebp
inc eax
cmp ebp, 0x40
jb 0x10001080
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x38]
push 0x40
push ecx
call fcn.1006a930
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x84]
push 0x40
push eax
call fcn.1006a930
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x34]
add esp, 0x18
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x24]
pop edi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0xb0]
pop esi
mov dword [ebx + 0x10], edx
mov edx, dword [esp + 0x20]
pop ebp
xor ecx, esp
mov dword [ebx + 0x1c], edx
call fcn.100d0738
add esp, 0xac
ret
Function at 0x10003260
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov esi, eax
xor edi, edi
imul esi, esi, 0x8088405
xor ecx, ecx
push ecx
mov eax, 0x3e
push eax
push ecx
inc esi
push esi
call fcn.100d53f0
mov dword [esp + 8], eax
movzx ax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ebx + edi*2], ax
inc edi
cmp edi, 8
jl 0x1000326f
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003320
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2638
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x2634], eax
cmp byte [0x101e300c], 0
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x100033c0
test esi, esi
je 0x100033c0
cmp dword [esp + 0x264c], 0
je 0x100033c0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp esi, eax
je 0x100033c0
push eax
push 0x101226e4
sub eax, esi
push esi
sar eax, 1
push eax
push str._.s_s_s
mov ecx, 0x104
lea ebx, [esp + 0x44c]
call fcn.100023b0
push 0x1012266c
push esi
call fcn.100d080d
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x100033c0
push 2
push 0xfffffffffffffffc
push edi
call fcn.100d08ae
push edi
push 4
lea eax, [esp + 0x28]
push 1
push eax
call fcn.100d0bd3
add esp, 0x1c
cmp eax, 4
je 0x100033dd
push edi
call fcn.100d11ec
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2644]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x2638
ret 4
cmp dword [esp + 0x14], 0x434e4521
jne 0x100033b7
push 2
push 0
push edi
call fcn.100d08ae
push edi
call fcn.100d1dcb
push 0
push 0
push edi
mov ebx, eax
call fcn.100d08ae
lea ecx, [esp + 0x454]
push 0x101226b0
push ecx
call fcn.100d080d
mov ebp, eax
add esp, 0x24
test ebp, ebp
je 0x100033b7
lea edx, [esp + 0x424]
push edx
push 0x10
push 0x101e300d
call fcn.1006a930
lea eax, [esp + 0x430]
push eax
lea ecx, [esp + 0x28]
push 0x10
push ecx
call fcn.1006c7a0
push edi
add ebx, 0xfffffffc
call fcn.100d1e39
add esp, 0x1c
test eax, eax
jne 0x100034be
test ebx, ebx
je 0x100034be
mov eax, 0x1000
cmp ebx, 0x1000
ja 0x10003469
mov eax, ebx
push edi
push eax
lea edx, [esp + 0x648]
push 1
push edx
call fcn.100d0bd3
mov esi, eax
lea eax, [esp + 0x1650]
push eax
lea ecx, [esp + 0x654]
push ecx
lea edx, [esp + 0x30]
push esi
push edx
sub ebx, esi
call fcn.1006c7b0
push ebp
push esi
lea eax, [esp + 0x1668]
push 1
push eax
call fcn.100d0d86
add esp, 0x30
cmp esi, eax
jne 0x100034d7
push edi
call fcn.100d1e39
add esp, 4
test eax, eax
je 0x10003456
push ebp
call fcn.100d11ec
push edi
call fcn.100d11ec
add esp, 8
mov eax, 1
jmp 0x100033c2
push ebp
call fcn.100d11ec
push edi
call fcn.100d11ec
add esp, 8
jmp 0x100033c0
Function at 0x10003600
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x50]
cmp byte [ecx], 0
je 0x1000366e
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call esi
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0xffffffff
je 0x1000366e
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call esi
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x10003685
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d0738
add esp, 0x3c
ret 8
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000366e
push 0
lea eax, [esp + 0x18]
push eax
push 0x14
lea ecx, [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x18]
push edx
push 0x14
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], 0x14
jae 0x100036d7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
jmp 0x100037df
push 0x7d000
call fcn.100cf8cb
add esp, 4
xor edi, edi
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x7d000
mov esi, eax
push esi
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100037c6
xor ebx, ebx
test eax, eax
jbe 0x1000373d
nop
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 8]
cdq
push edx
push eax
push edi
push ebp
call fcn.100d7510
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 4]
mov al, byte [eax + edx]
xor byte [ebx + esi], al
mov eax, dword [esp + 0x14]
add ebp, 1
adc edi, 0
inc ebx
cmp ebx, eax
jb 0x10003710
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
push edx
call ebx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, 0x14
sbb eax, 0
cmp edi, eax
jg 0x100037c2
jl 0x1000376b
cmp ebp, ecx
jae 0x100037c2
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x18]
push eax
push 0x7d000
push esi
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100037c2
push 0
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call ebx
add ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
adc edi, 0
sub ecx, 0x14
sbb eax, 0
cmp edi, eax
jl 0x1000376b
jg 0x100037c2
cmp ebp, ecx
jb 0x1000376b
mov ebx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
push esi
call fcn.100d1ecb
add esp, 4
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.100d0738
add esp, 0x3c
ret 8
Function at 0x10004150
Capabilities:
Get file size

Disassembly:
sub esp, 0x114
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
xor eax, eax
push 0xfe
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.100d4cc0
add esp, 0xc
test esi, esi
je 0x10004231
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov eax, 0x100
lea edi, [esp + 0x14]
call fcn.100044f0
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call edi
test eax, eax
je 0x10004231
push 0x10128508
lea ecx, [esp + 0x14]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004231
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004208
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jl 0x10004231
jg 0x10004218
cmp dword [esp + 8], 0
jbe 0x10004231
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.100d0738
add esp, 0x114
ret
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.100d0738
add esp, 0x114
ret
Function at 0x10004570
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, eax
push edi
test esi, esi
je 0x10004611
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push esi
call edi
test eax, eax
je 0x10004611
push str..bitcoin
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push eax
call ebx
test eax, eax
je 0x100045b5
push str..ZaszyfrowanePliki
push esi
call edi
push eax
call ebx
test eax, eax
jne 0x10004611
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100045f8
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0
jl 0x10004611
jg 0x10004608
cmp dword [esp + 0x10], 0
jbe 0x10004611
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x10004930
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
push edi
test esi, esi
je 0x100049ac
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push esi
call edi
test eax, eax
je 0x100049ac
push str..beep
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100049ac
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004994
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jl 0x100049ac
jg 0x100049a4
cmp dword [esp + 8], 0
jbe 0x100049ac
mov al, 1
pop edi
pop esi
add esp, 0xc
ret
pop edi
xor al, al
pop esi
add esp, 0xc
ret
Function at 0x10004ce0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
push edi
test esi, esi
je 0x10004d5c
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push esi
call edi
test eax, eax
je 0x10004d5c
push str..booknish
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004d5c
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004d44
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jl 0x10004d5c
jg 0x10004d54
cmp dword [esp + 8], 0
jbe 0x10004d5c
mov al, 1
pop edi
pop esi
add esp, 0xc
ret
pop edi
xor al, al
pop esi
add esp, 0xc
ret