joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410ff7
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x464628]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push ebx
push esi
jb 0x411014
mov ecx, dword [ecx]
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
push 3
push ebx
inc eax
push eax
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41103d
xor al, al
jmp 0x4110c0
push ebx
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], ebx
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x144], 0x40
jne 0x4110b7
mov eax, 0x5a4d
cmp word [ebp - 0x48], ax
jne 0x4110b7
push ebx
push ebx
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4110b7
push ebx
lea eax, [ebp - 0x144]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x144], 0xf8
jne 0x4110b7
cmp dword [ebp - 0x140], 0x4550
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00437670
mov esp, ebp
pop ebp
ret

Function at 0x4121b5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, ecx
mov bl, 1
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push edi
mov esi, dword [eax + 0x110]
push ecx
lea ecx, [eax + 0x110]
mov dword [ebp - 8], eax
call fcn.004148e7
cmp dword [eax], esi
jne 0x412235
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x4121ee
mov eax, dword [edi]
jmp 0x4121f0
mov eax, edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x412207
mov ecx, edi
call fcn.00429930
test al, al
je 0x412235
movzx eax, byte [0x469c42]
mov bl, 1
mov esi, dword [ebp - 8]
push eax
push edi
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x110]
call fcn.00414d41
mov ecx, dword [esi + 0x118]
test ecx, ecx
je 0x412235
mov edx, dword [ecx]
push edi
call dword [edx + 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d664
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
xor esi, esi
mov edi, esi
push 8
shl edi, 0x18
pop ebx
lea ecx, [edi + edi]
mov edx, edi
mov eax, ecx
mov edi, ecx
xor eax, 0x4c11db7
and edx, 0x80000000
cmovne edi, eax
dec ebx
test ebx, ebx
jg 0x41d671
mov dword [esi*4 + 0x4696e0], edi
inc esi
cmp esi, 0x100
jb 0x41d669
pop edi
pop esi
pop ebx
ret
Function at 0x429250
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
jne 0x42925c
xor al, al
ret
and eax, 0xffffb1af
cmp dword [ecx + 0x14], 8
jb 0x429269
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x429740
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44fa48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.0040348d
mov dword [esp + 0x30], 0
mov edx, 0x24
lea ecx, [esp + 0xc]
call fcn.00407170
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x4297ef
push dword [esp + 0xc]
call fcn.0043850d
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00437670
add esp, 0x2c
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fa78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x18], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.0040348d
mov dword [esp + 0x30], 0
mov edx, 0x24
lea ecx, [esp + 8]
call fcn.00407170
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4298d1
test al, 0x10
jne 0x4298d1
mov bl, 1
jmp 0x4298d3
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x1c], 8
jb 0x4298ee
push dword [esp + 8]
call fcn.0043850d
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
mov al, bl
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00437670
mov esp, ebp
pop ebp
ret
Function at 0x429930
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44fa48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.0040348d
mov dword [esp + 0x30], 0
mov edx, 0x24
lea ecx, [esp + 0xc]
call fcn.00407170
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4299cb
test al, 0x10
je 0x4299cb
mov bl, 1
jmp 0x4299cd
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x4299e8
push dword [esp + 0xc]
call fcn.0043850d
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00437670
add esp, 0x2c
ret

Function at 0x429a20
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44faa8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x10]
xor edi, edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test ebx, ebx
je 0x429b0b
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x429a73
mov ecx, dword [esi]
jmp 0x429a75
mov ecx, esi
mov edx, 0x2f
cmp dx, word [ecx + edi*2]
mov edx, 0x5c
je 0x429a96
cmp eax, 8
jb 0x429a8e
mov eax, dword [esi]
jmp 0x429a90
mov eax, esi
cmp dx, word [eax + edi*2]
jne 0x429b02
push edi
push 0
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00406710
mov dword [esp + 0x38], 0
cmp dword [esp + 0x24], 0
je 0x429ad4
lea ecx, [esp + 0x14]
call fcn.00429740
test al, al
jne 0x429ad4
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0
cmovae eax, dword [esp + 0x18]
push eax
call ebp
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x429aef
push dword [esp + 0x14]
call fcn.0043850d
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], eax
mov word [esp + 0x14], ax
inc edi
cmp edi, ebx
jb 0x429a67
mov ecx, esi
call fcn.00429740
test al, al
jne 0x429b27
cmp dword [esi + 0x14], 8
jb 0x429b20
mov eax, dword [esi]
jmp 0x429b22
mov eax, esi
push 0
push eax
call ebp
mov ecx, esi
call fcn.00429930
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00437670
add esp, 0x28
ret
Function at 0x429e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44fb51
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], 0
mov dword [esp + 0xc], 0
call fcn.00429fc0
mov dword [esp + 0x38], 0
sub esp, 8
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 1
mov ecx, esi
mov dword [esp + 0x18], 0x2e
push eax
call fcn.00407650
cmp eax, 0xffffffff
je 0x429fa3
push eax
push 0
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00406710
mov edi, eax
mov dword [esp + 0x38], 1
cmp esi, edi
je 0x429f74
cmp dword [esi + 0x14], 8
jb 0x429f1d
push dword [esi]
call fcn.0043850d
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [edi + 0x14], 8
jae 0x429f4b
mov eax, dword [edi + 0x10]
inc eax
je 0x429f55
add eax, eax
push eax
push edi
push esi
call fcn.00437cd0
add esp, 0xc
jmp 0x429f55
mov eax, dword [edi]
mov dword [esi], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov byte [esp + 0x38], 0
cmp dword [esp + 0x2c], 8
jb 0x429f8c
push dword [esp + 0x18]
call fcn.0043850d
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x42a600
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x42a62c
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00437670
add esp, 8
ret 4
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42a658
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42a658
xor cl, cl
jmp 0x42a66a
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
mov dword [esi + 4], ecx
mov cl, 1
xor eax, eax
test cl, cl
mov ecx, dword [esp + 0xc]
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00437670
add esp, 8
ret 4
Function at 0x42a690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fd0b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.0043855d
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x42a6fc
push 0x34
push 0
push esi
call fcn.0043b3e0
add esp, 0xc
mov ecx, esi
call fcn.0042a240
mov esi, eax
jmp 0x42a6fe
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push 0x80000000
push eax
lea ecx, [esi + 0x18]
call fcn.0042c1e0
test al, al
jne 0x42a730
test esi, esi
je 0x42a72c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x42a789
push 1
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0
push dword [edi + 8]
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x42a764
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42a720
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
xorps xmm0, xmm0
push edx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esi + 8]
push ecx
lea ecx, [esi + 8]
call dword [eax + 0x14]
test eax, eax
jne 0x42a724
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00437670
mov esp, ebp
pop ebp
ret
Function at 0x42b510
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, ecx
xorps xmm0, xmm0
push edi
lea edi, [eax + 8]
mov dword [esp + 0x10], eax
push 1
lea eax, [esp + 0x28]
movlpd qword [esp + 0x24], xmm0
push eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
jne 0x42b57e
call ebx
test eax, eax
je 0x42b57a
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00437670
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x42b5a2
call ebx
test eax, eax
jne 0x42b561
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add ecx, dword [esp + 0xc]
push 0
adc eax, 0
add ecx, dword [ebp + 8]
adc eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.0042c630
test eax, eax
sete bl
test bl, bl
je 0x42b5d1
mov eax, dword [esp + 0x10]
mov byte [eax + 0x34], 1
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push dword [esp + 0x28]
mov ecx, edi
movlpd qword [esp + 0x18], xmm0
push esi
call fcn.0042c2f0
test al, al
je 0x42b5f7
test bl, bl
je 0x42b5f7
mov cl, 1
jmp 0x42b5f9
xor cl, cl
xor edx, edx
mov eax, 0x80004005
test cl, cl
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
cmovne eax, edx
pop ebx
xor ecx, esp
call fcn.00437670
mov esp, ebp
pop ebp
ret 8
Function at 0x42b850
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ff20
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x464628]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x42b888
mov eax, dword [esi]
jmp 0x42b88a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42b8aa
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x42b8b4
mov eax, dword [esi]
jmp 0x42b8b6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42ba36
cmp dword [esi + 0x14], 8
jb 0x42b8d2
mov edi, dword [esi]
jmp 0x42b8d4
mov edi, esi
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [edi], ax
je 0x42b909
push edi
call fcn.00438822
add esp, 4
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00403829
mov dword [esp + 0x38], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmovae eax, dword [esp + 0x14]
push 0
push eax
call edi
test eax, eax
setne al
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x42b962
push dword [esp + 0x14]
call fcn.0043850d
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
test al, al
jne 0x42ba36
cmp dword [esi + 0x14], 8
jb 0x42b98b
mov eax, dword [esi]
jmp 0x42b98d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42b895
cmp dword [esi + 0x14], 8
jb 0x42b9a4
mov esi, dword [esi]
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [esi], ax
je 0x42b9d9
push esi
call fcn.00438822
add esp, 4
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00403829
mov dword [esp + 0x38], 1
and ebx, 0xffffb1af
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push ebx
cmovae eax, dword [esp + 0x18]
push eax
call edi
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x42ba1f
push dword [esp + 0x14]
call fcn.0043850d
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ba50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
xor eax, eax
push esi
push edi
push 0x20a
push eax
mov word [esp + 0x14], ax
mov edi, edx
lea eax, [esp + 0x16]
mov esi, ecx
push eax
call fcn.0043b3e0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x42ba94
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x42ba9c
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42bb1b
xor eax, eax
mov word [esp + 0x216], ax
cmp word [esp + 0xc], ax
jne 0x42bae7
push eax
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00403829
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00437670
add esp, 0x210
ret
lea eax, [esp + 0xc]
push eax
call fcn.00438822
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00403829
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00437670
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437670
add esp, 0x210
ret

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

Disassembly:
sub esp, 0x94
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov dword [esp + 0xc], edx
xor esi, esi
cdq
push edi
mov dword [esp + 0x14], ecx
lea edi, [esp + 0x58]
mov ebp, eax
push 0
push 0xa
push edx
push ebp
call fcn.0043e180
lea ecx, [eax + eax*4]
add ecx, ecx
sub ebp, ecx
add ebp, 0x30
mov word [esp + esi*2 + 0x18], bp
inc esi
mov ebp, eax
or eax, edx
jne 0x42bf47
jmp 0x42bf70
mov ax, word [esp + esi*2 + 0x16]
lea edi, [edi + 2]
dec esi
mov word [edi - 2], ax
test esi, esi
jg 0x42bf70
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
cmp ebx, eax
je 0x42bf9a
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.0040348d
push 0x45a950
call fcn.00438822
add esp, 4
mov ecx, ebx
push eax
push 0x45a950
call fcn.00403786
cmp word [esp + 0x58], 0
jne 0x42bfc0
xor eax, eax
jmp 0x42bfcd
lea eax, [esp + 0x58]
push eax
call fcn.00438822
add esp, 4
push eax
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call fcn.00403786
push 0x45a94c
call fcn.00438822
add esp, 4
mov ecx, ebx
push eax
push 0x45a94c
call fcn.00403786
push 0xffffffffffffffff
push 0
push dword [esp + 0x18]
mov ecx, ebx
call fcn.00403b45
cmp dword [ebx + 0x14], 8
jb 0x42c00b
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
sete al
mov ecx, dword [esp + 0x94]
pop ebp
pop ebx
xor ecx, esp
call fcn.00437670
add esp, 0x94
ret
Function at 0x42c090
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x100000
mov dword [ebx], 0
jmp 0x42c0c0
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
test eax, eax
setne al
add dword [ebx], ecx
test al, al
je 0x42c11a
test ecx, ecx
je 0x42c103
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x42c0c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00437670
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437670
add esp, 8
ret 0xc

Function at 0x42c270
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
push eax
push dword [ecx]
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c2bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42c2bf
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00437670
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.00437670
add esp, 8
ret 4
Function at 0x42d71d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x42d72d
mov dword [edi], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
test ecx, ecx
je 0x42d785
mov eax, 0x8000
cmp ecx, eax
push esi
cmovb eax, ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x42d762
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
test eax, eax
jne 0x42d785
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d777
mov esi, 0x80004005
jmp 0x42d785
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x430e02
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x430e23
xor eax, eax
jmp 0x430f65
add dword [ebp + 8], 5
lea eax, [edx - 4]
push ebx
or ebx, 0xffffffff
add eax, ecx
mov dword [ebp - 4], eax
lea edx, [edi + ecx]
mov dword [ebp - 0xc], edx
cmp edx, eax
jae 0x430e56
mov ecx, dword [ebp - 4]
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x430e4d
inc edx
cmp edx, ecx
jb 0x430e40
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov edi, edx
sub edi, ecx
cmp edx, eax
jae 0x430f49
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x430edc
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x18], ebx
test al, al
je 0x430e81
cmp al, 0xff
jne 0x430f09
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 8]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, edx
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x430f1d
movzx eax, byte [esi + 0x457c94]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x430ecb
cmp al, 0xff
jne 0x430f1d
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0x10]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0x14]
jmp 0x430ea2
dec ecx
shl esi, cl
and esi, 7
je 0x430e6d
movzx eax, byte [esi + 0x457c94]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x457b24], 0
mov al, byte [ecx + 4]
je 0x430f07
test al, al
je 0x430f07
cmp al, 0xff
jne 0x430e6d
mov ebx, edi
and esi, 3
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
jmp 0x430e33
mov edx, dword [ebp - 0xc]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x18]
shr eax, 8
add edi, 5
mov byte [edx + 2], al
jmp 0x430f12
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret