joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f460
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
mov dword [esi], 0
mov eax, ebp
cmp ebp, 0x400000
jbe 0x1002f484
mov eax, 0x400000
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [edx]
push edi
push eax
mov dword [esp + 0x28], 0
call ebx
mov ecx, dword [esp + 0x14]
add dword [esi], ecx
test eax, eax
je 0x1002f4ba
test ecx, ecx
je 0x1002f4b2
add edi, ecx
sub ebp, ecx
jne 0x1002f475
pop edi
pop ebp
mov al, 1
pop ebx
ret 8
pop edi
pop ebp
xor al, al
pop ebx
ret 8

Function at 0x1002f4d0
Capabilities:
Clear file content

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
lea edi, [esp + 0x24]
xor edx, edx
call fcn.1002f3f0
test al, al
jne 0x1002f4fb
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x1002f4f2
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
jne 0x1002f4f2
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
ret 0xc

Function at 0x1002fa10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
lea eax, [esp + 8]
push eax
xor edx, edx
push 0x105
mov word [esp + 0x10], dx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 8]
push ecx
mov esi, eax
call fcn.100259b0
mov ecx, dword [esp + 0x214]
dec esi
mov edx, 0x103
cmp edx, esi
pop edi
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.10062448
add esp, 0x210
ret

Function at 0x100303f0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, eax
mov ecx, edi
call fcn.1002fc70
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
cmp esi, 1
je 0x10030423
push ebx
push edi
call ebp
test eax, eax
je 0x10030423
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
test esi, esi
je 0x1003049c
push 8
call fcn.1006387a
lea edx, [esp + 0x14]
push edx
xor ecx, ecx
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 3
mov word [eax], cx
call fcn.1002fd50
add esp, 0xc
test al, al
je 0x1003048f
cmp dword [esp + 0x14], 0
jne 0x1003046f
cmp esi, 1
jne 0x1003048f
push edi
lea edi, [esp + 0x14]
call fcn.100259b0
mov esi, dword [esp + 0x10]
push ebx
push esi
call ebp
push esi
mov edi, eax
call fcn.100628c6
add esp, 4
test edi, edi
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.100628c6
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x100304b0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov ecx, edi
call fcn.1002fc70
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
cmp esi, 1
je 0x100304eb
push 0
push edi
call ebx
test eax, eax
je 0x100304de
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10030564
test esi, esi
je 0x10030564
push 8
call fcn.1006387a
lea edx, [esp + 0x10]
push edx
xor ecx, ecx
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 3
mov word [eax], cx
call fcn.1002fd50
add esp, 0xc
test al, al
je 0x10030557
cmp dword [esp + 0x10], 0
jne 0x10030537
cmp esi, 1
jne 0x10030557
push edi
lea edi, [esp + 0x10]
call fcn.100259b0
mov esi, dword [esp + 0xc]
push 0
push esi
call ebx
push esi
mov edi, eax
call fcn.100628c6
add esp, 4
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
push eax
call fcn.100628c6
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x10030570
Capabilities:
Create directory

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ecx, edi
call fcn.1002fc70
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 1
je 0x100305b9
push 0
push edi
call ebx
test eax, eax
je 0x100305ac
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
call ebp
cmp eax, 0xb7
je 0x100306bf
test esi, esi
je 0x100306bf
push 8
call fcn.1006387a
lea edx, [esp + 0x18]
push edx
xor ecx, ecx
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 3
mov word [eax], cx
call fcn.1002fd50
add esp, 0xc
test al, al
je 0x100306b2
cmp dword [esp + 0x18], 0
jne 0x10030611
cmp esi, 1
jne 0x100306b2
push edi
lea edi, [esp + 0x18]
call fcn.100259b0
mov edi, dword [esp + 0x14]
push 0
push edi
call ebx
test eax, eax
je 0x10030634
push edi
call fcn.100628c6
mov al, 1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
call ebp
cmp eax, 0xb7
je 0x10030653
push edi
call fcn.100628c6
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
lea esi, [esp + 0x20]
call fcn.1001e7c0
push edi
mov ecx, esi
call fcn.10026490
test al, al
jne 0x10030688
mov eax, dword [esp + 0x48]
push eax
call fcn.100628c6
push edi
call fcn.100628c6
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
shr ebx, 4
push ecx
and bl, 1
call fcn.100628c6
push edi
call fcn.100628c6
add esp, 8
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov edx, dword [esp + 0x14]
push edx
call fcn.100628c6
add esp, 4
call ebp
cmp eax, 0xb7
jne 0x10030646
lea esi, [esp + 0x58]
call fcn.1001e7c0
push edi
mov ecx, esi
call fcn.10026490
test al, al
jne 0x100306fe
mov eax, dword [esp + 0x80]
push eax
call fcn.100628c6
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
shr ebx, 4
push ecx
and bl, 1
call fcn.100628c6
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x84
ret
Function at 0x10030900
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
call fcn.100263e0
cmp eax, 0xffffffff
je 0x1003092f
test al, 0x10
jne 0x1003092f
test al, 1
je 0x1003092f
and eax, 0xfffffffe
push eax
mov eax, esi
call fcn.100303f0
add esp, 4
test al, al
jne 0x1003092f
pop esi
add esp, 0xc
ret
push ebx
push edi
mov ecx, esi
call fcn.1002fc70
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
cmp edi, 1
je 0x10030955
push esi
call ebx
test eax, eax
je 0x10030955
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0xc
ret
test edi, edi
je 0x100309cc
push 8
call fcn.1006387a
lea edx, [esp + 0x10]
push edx
xor ecx, ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 3
mov word [eax], cx
call fcn.1002fd50
add esp, 0xc
test al, al
je 0x100309bf
cmp dword [esp + 0x10], 0
jne 0x100309a1
cmp edi, 1
jne 0x100309bf
push esi
lea edi, [esp + 0x10]
call fcn.100259b0
mov esi, dword [esp + 0xc]
push esi
call ebx
push esi
mov edi, eax
call fcn.100628c6
add esp, 4
test edi, edi
pop edi
pop ebx
setne al
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
push eax
call fcn.100628c6
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
add esp, 0xc
ret

Function at 0x10030bd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x400000
jbe 0x10030be0
mov eax, 0x400000
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 0x14]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
test eax, eax
setne al
test ecx, ecx
je 0x10030c17
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
test al, al
je 0x10030c21
xor eax, eax
pop esi
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x1c], 0
je 0x10030c3f
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
mov eax, dword [esi + 0x20]
push eax
call edx
pop esi
ret 0x10
test eax, eax
jne 0x10030c4c
mov eax, 0x80004005
pop esi
ret 0x10
jle 0x10030c58
and eax, 0xffff
or eax, 0x80070000
pop esi
ret 0x10

Function at 0x10030c60
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, 0x100000
cmp ecx, eax
jae 0x10030c6f
mov eax, ecx
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10030c99
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
push esi
test eax, eax
jne 0x10030cab
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x6d
jne 0x10030cb1
xor eax, eax
pop esi
ret 0x10
call esi
test eax, eax
jne 0x10030cc0
mov eax, 0x80004005
pop esi
ret 0x10
jle 0x10030ccc
and eax, 0xffff
or eax, 0x80070000
pop esi
ret 0x10
Function at 0x10030d40
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 0x10]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10030d68
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x10030d90
mov eax, dword [esp + 0xc]
push 1
push 0
push 0
push eax
call fcn.10070c30
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0x10]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
ret 8
call edi
test eax, eax
jne 0x10030da0
pop edi
mov eax, 0x80004005
pop esi
ret 8
jle 0x10030dac
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
ret 8
Function at 0x10031ca0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
mov dword [esp + 0x10], esi
ja 0x10031cda
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10062448
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov ebx, dword [ecx + eax*4 - 4]
mov edx, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateDecoder
push edx
call edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx]
push str.CreateEncoder
push eax
call edi
mov ecx, dword [ebx]
push str.GetMethodProperty
push ecx
mov dword [ebx + 0x1c], eax
call edi
mov dword [ebx + 0x14], eax
test eax, eax
je 0x10031dda
mov edx, dword [ebx]
push str.GetNumberOfMethods
push edx
mov dword [esp + 0x14], 1
call edi
test eax, eax
je 0x10031d3e
lea ecx, [esp + 0xc]
push ecx
call eax
test eax, eax
jne 0x10031e35
xor esi, esi
mov dword [esp + 0x14], esi
cmp dword [esp + 0xc], esi
jbe 0x10031dd6
jmp 0x10031d54
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
mov edx, dword [ebx + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 3
dec eax
push esi
push edx
lea edi, [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
call fcn.10031bc0
add esp, 0x10
test eax, eax
jne 0x10031e35
mov ecx, dword [ebx + 0x14]
lea eax, [esp + 0x21]
push eax
push 2
push esi
push ecx
lea edi, [esp + 0x44]
call fcn.10031bc0
add esp, 0x10
test eax, eax
jne 0x10031e35
mov edx, dword [esp + 0x10]
sub esp, 0x2c
mov edi, esp
add edx, 0x34
mov ecx, 0xb
lea esi, [esp + 0x44]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.100335b0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0xc]
jb 0x10031d50
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx]
push str.GetHashers
push eax
call edi
test eax, eax
je 0x10031e33
add ebx, 0x24
push ebx
call eax
test eax, eax
jne 0x10031e35
mov eax, dword [ebx]
test eax, eax
je 0x10031e33
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
xor ebx, ebx
mov dword [esp + 0xc], eax
test eax, eax
jbe 0x10031e33
add esi, 0x40
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x10]
dec edi
call fcn.10033930
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [eax + ecx*8], edi
mov dword [eax + ecx*8 + 4], ebx
inc dword [esi + 4]
inc ebx
cmp ebx, dword [esp + 0xc]
jb 0x10031e10
xor eax, eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10062448
mov esp, ebp
pop ebp
ret
Function at 0x10033c60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push 1
lea edx, [esp + 0xc]
push edx
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10033c9c
call fcn.10002d30
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10033c90
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10033d40
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x400000
jb 0x10033d50
mov eax, 0x400000
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
push edx
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10033d7f
call fcn.10002d30
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10033d8d
mov edx, dword [esp + 0xc]
mov dword [eax], edx
xor eax, eax
ret 0x10

Function at 0x10033e10
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, eax
jne 0x10033e2a
mov eax, 0x80070057
pop esi
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10033e55
call fcn.10002d30
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
xor eax, eax
pop esi
add esp, 8
ret 8

Function at 0x10033e70
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 1
lea edx, [esp + 0xc]
push edx
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x20], ecx
call edi
test eax, eax
jne 0x10033eb0
call fcn.10002d30
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
push 0
push 0
push ecx
push edx
push eax
call edi
test eax, eax
je 0x10033ea3
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10033ea3
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x10]
push 0
push 0
push edx
push eax
push ecx
call edi
test eax, eax
je 0x10033ea3
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10033f00
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x400000
jb 0x10033f10
mov eax, 0x400000
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
push edx
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10033f3f
call fcn.10002d30
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10033f4d
mov edx, dword [esp + 0xc]
mov dword [eax], edx
xor eax, eax
ret 0x10

Function at 0x10035460
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor cl, cl
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], cl
je 0x10035478
mov cl, 1
mov eax, 1
test cl, cl
je 0x10035486
mov eax, 3
xor ecx, ecx
cmp byte [esi + 0x15], bl
setne cl
dec ecx
and ecx, 0x8000000
cmp ebp, ebx
je 0x100354b3
cmp word [ebp], bx
je 0x100354b3
push ebx
push ecx
push 3
push ebx
push eax
push connect
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x100354c5
push ebx
push ecx
push 3
push ebx
push eax
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100354e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100354e1
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
setne bl
test bl, bl
je 0x10035573
mov dword [esi + 4], edi
test ebp, ebp
je 0x10035524
mov ecx, esi
sub ecx, ebp
mov eax, ebp
add ecx, 0x418
jmp 0x10035510
movzx edx, word [eax]
mov word [ecx + eax], dx
movzx edx, word [eax]
add eax, 2
test dx, dx
jne 0x10035510
jmp 0x10035530
xor eax, eax
mov word [esi + 0x418], ax
lea ecx, [ecx]
push 0
push 0
push 0x1000000
lea ecx, [esi + 0x17]
push ecx
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [esi + 4], 0xffffffff
je 0x10035573
xor eax, eax
cmp dword [eax*4 + 0x100e3f98], 0
je 0x1003556c
inc eax
cmp eax, 0x100
jb 0x10035552
pop edi
pop ebp
mov al, bl
pop ebx
ret 4
mov dword [eax*4 + 0x100e3f98], esi
pop edi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x100356d0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [esp + 0x14]
jne 0x100356f7
cmp edi, 0x4e20
jle 0x100356ec
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10035768
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10035746
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x1003572b
cmp eax, 3
jne 0x10035746
cmp edi, 0x4e20
jle 0x10035746
push 0x4e20
push ebx
mov ecx, esi
call fcn.100356d0
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x1003575f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1003575f
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10039180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
mov edi, eax
xor eax, eax
mov esi, ecx
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 4], eax
mov word [ecx], dx
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
push esi
push eax
call ebp
test eax, eax
je 0x100391c6
cmp eax, 0xea
jne 0x1003922a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 8]
jbe 0x100391d9
push eax
call fcn.10025680
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push edx
push 0
push esi
push eax
mov dword [esp + 0x30], 0
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
cmp ecx, edx
jbe 0x10039208
mov ecx, edx
mov dword [esp + 0x20], ecx
mov edx, dword [edi]
shr ecx, 1
xor esi, esi
mov word [edx + ecx*2], si
xor ecx, ecx
cmp word [edx], si
je 0x10039227
lea esp, [esp]
inc ecx
cmp word [edx + ecx*2], si
jne 0x10039220
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x10039290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x14]
mov dword [ecx], eax
mov esi, dword [edi + 0xc]
add esi, dword [ebp + 8]
mov ebx, dword [edi + 0x10]
adc ebx, dword [ebp + 0xc]
push 1
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x100392de
cmp ecx, ebx
je 0x100392fc
mov edx, dword [edi + 4]
sub esi, eax
sbb ebx, ecx
push 1
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edi + 4]
push 0x20000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
pop edi
and eax, 0xffffffe2
pop esi
add eax, 0x1e
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10039330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx + 8]
add esi, dword [ebp + 8]
mov edx, dword [ebx + 4]
push edi
mov edi, dword [ebx + 0xc]
adc edi, dword [ebp + 0xc]
push 1
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x10039376
cmp ecx, edi
je 0x10039394
sub esi, eax
push 1
lea eax, [esp + 0x20]
push eax
sbb edi, ecx
mov ecx, dword [ebx + 4]
push esi
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
cmp ecx, 0x20000
jbe 0x100393a6
mov ecx, 0x20000
mov esi, dword [ebp + 0x10]
push 0
push edx
lea eax, [ebx + 0x10]
push ecx
mov dword [esi], eax
mov edx, dword [ebx + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10040860
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x100e439c], 0
push ebx
push esi
push edi
mov esi, eax
jne 0x10040873
call fcn.100407d0
mov ebx, dword [esp + 0x10]
test esi, esi
jbe 0x1004089d
jmp 0x10040880
test bl, 7
je 0x1004089d
movzx eax, byte [ebx]
movzx ecx, dl
xor eax, ecx
shr edx, 8
xor edx, dword [eax*4 + 0x100e4398]
dec esi
inc ebx
test esi, esi
ja 0x10040880
cmp esi, 8
jb 0x10040930
mov edi, esi
shr edi, 3
jmp 0x100408b0
xor edx, dword [ebx]
add ebx, 8
movzx ecx, dl
mov eax, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x100e4398]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x100e4398]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100e4398]
mov ecx, eax
movzx edx, cl
mov eax, dword [edx*4 + 0x100e4398]
xor eax, dword [ebx - 4]
shr ecx, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100e4398]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x100e4398]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100e4398]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x100e4398]
sub edi, 1
mov edx, eax
jne 0x100408b0
xor eax, eax
test esi, esi
jbe 0x1004094e
movzx ecx, byte [eax + ebx]
movzx edi, dl
xor ecx, edi
shr edx, 8
xor edx, dword [ecx*4 + 0x100e4398]
inc eax
cmp eax, esi
jb 0x10040936
pop edi
pop esi
mov eax, edx
pop ebx
ret