joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afc40
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
mov al, byte [ebx]
test al, al
jne 0x4afc53
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp al, 0x5c
jne 0x4afc8d
cmp byte [ebx + 1], 0x5c
jne 0x4afc8d
lea eax, [ebx + 2]
push 0x5c
push eax
call fcn.005441a0
add esp, 8
test eax, eax
jne 0x4afc74
pop ebx
add esp, 0xc
ret
inc eax
push 0x5c
push eax
call fcn.005441a0
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jne 0x4afc91
pop ebx
add esp, 0xc
ret
mov dword [esp + 8], ebx
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + ebx + 1]
cmp ebx, ecx
mov dword [esp + 0x18], ecx
je 0x4afd1a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi]
cmp al, 0x5c
mov byte [esp + 0x13], al
je 0x4afcc4
test al, al
jne 0x4afd06
cmp esi, dword [esp + 0x14]
jbe 0x4afd06
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x4afd06
cmp al, 0x5c
je 0x4afd06
xor ebp, ebp
mov byte [esi], 0
push ebp
push ebx
call edi
cmp eax, 1
je 0x4afceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov cl, byte [esp + 0x13]
test ebp, ebp
mov byte [esi], cl
je 0x4afd02
cmp ebp, 5
je 0x4afd02
cmp ebp, 0xb7
jne 0x4afd0b
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, ecx
jne 0x4afcb6
cmp ebp, 5
je 0x4afd18
cmp ebp, 0xb7
jne 0x4afd1a
xor ebp, ebp
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4afd30
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
mov al, byte [ebx]
test al, al
jne 0x4afd46
mov eax, 0xb7
pop ebx
add esp, 0xc
ret
cmp al, 0x5c
jne 0x4afd8a
cmp byte [ebx + 1], 0x5c
jne 0x4afd8a
lea eax, [ebx + 2]
push 0x5c
push eax
call fcn.005441a0
add esp, 8
test eax, eax
jne 0x4afd6c
mov eax, 0xb7
pop ebx
add esp, 0xc
ret
inc eax
push 0x5c
push eax
call fcn.005441a0
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jne 0x4afd8e
mov eax, 0xb7
pop ebx
add esp, 0xc
ret
mov dword [esp + 8], ebx
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + ebx + 1]
cmp ebx, ecx
mov dword [esp + 0x18], ecx
je 0x4afe08
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi]
cmp al, 0x5c
mov byte [esp + 0x13], al
je 0x4afdc1
test al, al
jne 0x4afe03
cmp esi, dword [esp + 0x14]
jbe 0x4afe03
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x4afe03
cmp al, 0x5c
je 0x4afe03
xor ebp, ebp
mov byte [esi], 0
push ebp
push ebx
call edi
cmp eax, 1
je 0x4afde8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov cl, byte [esp + 0x13]
test ebp, ebp
mov byte [esi], cl
je 0x4afdff
cmp ebp, 5
je 0x4afdff
cmp ebp, 0xb7
jne 0x4afe08
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, ecx
jne 0x4afdb3
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4affa0
Capabilities:
Delete directory

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call edi
cmp eax, 1
jne 0x4affbb
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x91
je 0x4affcf
cmp eax, 5
jne 0x4b0015
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004ad4f0
mov ecx, dword [esp + 0xc]
mov edx, 0x4afe20
push ecx
call fcn.004b0020
mov eax, dword [esp + 0xc]
push eax
call edi
test eax, eax
jne 0x4b0006
mov ecx, dword [esp + 0xc]
xor esi, esi
call fcn.004a3a20
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
call ebx
mov ecx, dword [esp + 0xc]
mov esi, eax
call fcn.004a3a20
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4b0020
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 8
mov dword [esp + 4], edx
push ebx
mov edx, ecx
push esi
xor ecx, ecx
push edi
test edx, edx
je 0x4b0071
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x56ba78
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, 0x5c
cmp byte [ecx + 0x56ba77], al
je 0x4b0071
mov byte [ecx + 0x56ba78], al
inc ecx
lea eax, [ecx + 0x56ba78]
push 0x557e4c
push 0x557e30
push eax
mov byte [eax], 0
call fcn.00543924
add esp, 0xc
mov ecx, 0x13e
call fcn.004a38d0
mov ebx, eax
push ebx
push 0x56ba78
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4b00c4
mov ecx, ebx
call fcn.004a3a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov edi, dword [ebx]
push ebp
and edi, 0xff
lea ebp, [ebx + 0x2c]
shr edi, 4
and edi, 1
mov esi, 0x557e48
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4b0101
test cl, cl
je 0x4b00fd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4b0101
add eax, 2
add esi, 2
test cl, cl
jne 0x4b00dd
xor eax, eax
jmp 0x4b0106
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b0154
mov esi, 0x557e44
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4b0135
test cl, cl
je 0x4b0131
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4b0135
add eax, 2
add esi, 2
test cl, cl
jne 0x4b0111
xor eax, eax
jmp 0x4b013a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b0154
mov eax, dword [esp + 0x1c]
mov edx, edi
push eax
mov ecx, ebp
call dword [esp + 0x18]
cmp eax, 1
jne 0x4b0201
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebx
push ecx
call edi
cmp eax, 1
jne 0x4b0201
mov esi, 0x557e48
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4b0196
test cl, cl
je 0x4b0192
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4b0196
add eax, 2
add esi, 2
test cl, cl
jne 0x4b0172
xor eax, eax
jmp 0x4b019b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b01f0
mov esi, 0x557e44
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4b01ca
test cl, cl
je 0x4b01c6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4b01ca
add eax, 2
add esi, 2
test cl, cl
jne 0x4b01a6
xor eax, eax
jmp 0x4b01cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b01f0
mov edx, dword [ebx]
mov eax, dword [esp + 0x1c]
and edx, 0xff
push eax
shr edx, 4
and edx, 1
mov ecx, ebp
call dword [esp + 0x18]
test eax, eax
je 0x4b0201
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call edi
cmp eax, 1
je 0x4b016b
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, ebx
call fcn.004a3a20
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x4b0220
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
cmp eax, 1
jne 0x4b0237
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4b0259
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call edi
dec eax
neg eax
sbb eax, eax
and eax, 5
pop edi
pop esi
ret

Function at 0x4b0d80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x56bd7c]
push ebx
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x4b0e8b
push edi
mov edi, dword [esp + 0xc]
mov eax, 1
test edi, edi
mov dword [0x56bd7c], eax
mov dword [0x566b1d], eax
je 0x4b0e84
push esi
mov ecx, 0x5cc470
call fcn.004e3700
push str._nExiting_TALLY__n_n
push 0x56bb79
call fcn.00543924
mov ecx, dword [str.Out_of_memory.]
mov esi, eax
add esp, 8
add esi, 0x56bb79
test ecx, ecx
mov eax, 0x562028
je 0x4b0e0a
cmp dword [eax], edi
je 0x4b0df2
mov ecx, dword [eax + 0xc]
add eax, 8
test ecx, ecx
jne 0x4b0de2
jmp 0x4b0e0a
mov eax, dword [eax + 4]
test eax, eax
je 0x4b0e0a
push eax
push str._s_n_n
push esi
call fcn.00543924
add esp, 0xc
add esi, eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4b0e49
mov edx, dword [str.Debug_location.]
mov eax, 0x5620d0
test edx, edx
je 0x4b0e49
cmp dword [eax], ecx
je 0x4b0e31
mov edx, dword [eax + 0xc]
add eax, 8
test edx, edx
jne 0x4b0e21
jmp 0x4b0e49
mov eax, dword [eax + 4]
test eax, eax
je 0x4b0e49
push eax
push str._s_n_n
push esi
call fcn.00543924
add esp, 0xc
add esi, eax
test ebx, ebx
je 0x4b0e5e
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
call fcn.0054425c
add esp, 0xc
add esi, eax
push 0x54ce4c
push esi
call fcn.00543924
add esp, 8
push 0x2000
push str.Error__
push 0x56bb79
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
push edi
call fcn.00543c6d
pop edi
pop ebx
ret
Function at 0x4b0e90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x56bd7c]
push ebx
push edi
mov edi, edx
test eax, eax
mov ebx, ecx
jne 0x4b0f96
mov eax, 1
test ebx, ebx
mov dword [0x56bd7c], eax
mov dword [0x566b1d], eax
je 0x4b0f90
push esi
mov ecx, 0x5cc470
call fcn.004e3700
push str._nExiting_TALLY__n_n
push 0x56bb79
call fcn.00543924
mov ecx, dword [str.Out_of_memory.]
mov esi, eax
add esp, 8
add esi, 0x56bb79
test ecx, ecx
mov eax, 0x562028
je 0x4b0f16
cmp dword [eax], ebx
je 0x4b0efe
mov ecx, dword [eax + 0xc]
add eax, 8
test ecx, ecx
jne 0x4b0eee
jmp 0x4b0f16
mov eax, dword [eax + 4]
test eax, eax
je 0x4b0f16
push eax
push str._s_n_n
push esi
call fcn.00543924
add esp, 0xc
add esi, eax
test edi, edi
je 0x4b0f51
mov ecx, dword [str.Debug_location.]
mov eax, 0x5620d0
test ecx, ecx
je 0x4b0f51
cmp dword [eax], edi
je 0x4b0f39
mov ecx, dword [eax + 0xc]
add eax, 8
test ecx, ecx
jne 0x4b0f29
jmp 0x4b0f51
mov eax, dword [eax + 4]
test eax, eax
je 0x4b0f51
push eax
push str._s_n_n
push esi
call fcn.00543924
add esp, 0xc
add esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4b0f6a
mov ecx, dword [esp + 0x14]
push ecx
push eax
push esi
call fcn.0054425c
add esp, 0xc
add esi, eax
push 0x54ce4c
push esi
call fcn.00543924
add esp, 8
push 0x2000
push str.Error__
push 0x56bb79
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
push ebx
call fcn.00543c6d
pop edi
pop ebx
ret 8
Function at 0x4b5a20
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov ecx, edx
cdq
sub eax, edx
sar eax, 1
je 0x4b5a91
push edi
mov edi, eax
mov al, byte [esi]
xor edx, edx
mov byte [esp + 0x14], al
mov dl, bh
mov eax, dword [esp + 0x14]
and edx, 0xff
and eax, 0xff
inc esi
xor edx, eax
xor eax, eax
mov ah, bl
mov bx, word [edx*2 + 0x562bc0]
mov dl, byte [esi]
xor bx, ax
mov byte [esp + 0xc], dl
mov edx, dword [esp + 0xc]
xor eax, eax
mov al, ch
and edx, 0xff
and eax, 0xff
inc esi
xor eax, edx
xor edx, edx
mov dh, cl
mov cx, word [eax*2 + 0x562bc0]
xor cx, dx
dec edi
jne 0x4b5a37
pop edi
mov eax, ebx
and ecx, 0xffff
and eax, 0xffff
pop esi
shl eax, 0x10
add eax, ecx
pop ebx
pop ecx
ret 4

Function at 0x4b5ab0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, ecx
add eax, 0xfffffffc
mov ecx, edx
mov ebx, edx
cdq
sub eax, edx
lea esi, [edi + 4]
sar eax, 1
je 0x4b5b28
push ebp
mov ebp, eax
mov dl, byte [esi]
xor eax, eax
mov byte [esp + 0x18], dl
mov al, ch
mov edx, dword [esp + 0x18]
and eax, 0xff
and edx, 0xff
inc esi
xor eax, edx
xor edx, edx
mov dh, cl
mov cx, word [eax*2 + 0x562bc0]
mov al, byte [esi]
xor cx, dx
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
xor edx, edx
mov dl, bh
and eax, 0xff
and edx, 0xff
inc esi
xor edx, eax
xor eax, eax
mov ah, bl
mov bx, word [edx*2 + 0x562bc0]
xor bx, ax
dec ebp
jne 0x4b5ace
pop ebp
and ecx, 0xffff
and ebx, 0xffff
shl ecx, 0x10
add ecx, ebx
mov eax, ecx
mov dword [edi], eax
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4b5b50
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, ecx
add eax, 0xfffffffc
mov ecx, edx
mov ebx, edx
push esi
cdq
sub eax, edx
lea esi, [ebp + 4]
sar eax, 1
je 0x4b5bc8
push edi
mov edi, eax
mov dl, byte [esi]
xor eax, eax
mov byte [esp + 0x18], dl
mov al, ch
mov edx, dword [esp + 0x18]
and eax, 0xff
and edx, 0xff
inc esi
xor eax, edx
xor edx, edx
mov dh, cl
mov cx, word [eax*2 + 0x562bc0]
mov al, byte [esi]
xor cx, dx
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
xor edx, edx
mov dl, bh
and eax, 0xff
and edx, 0xff
inc esi
xor edx, eax
xor eax, eax
mov ah, bl
mov bx, word [edx*2 + 0x562bc0]
xor bx, ax
dec edi
jne 0x4b5b6e
pop edi
mov edx, dword [ebp]
and ecx, 0xffff
shl ecx, 0x10
and ebx, 0xffff
xor eax, eax
add ecx, ebx
pop esi
cmp edx, ecx
pop ebp
setne al
pop ebx
pop ecx
ret 4
Function at 0x4dc130
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0x18]
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [ecx + 0x20]
add ebx, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 0x14], ecx
je 0x4dc1f2
mov eax, dword [eax]
test eax, eax
je 0x4dc1f2
xor ecx, ecx
mov cl, byte [edx + 6]
mov edx, eax
mov edi, ecx
xor ecx, ecx
test edx, edx
mov dword [esp + 0x24], edi
je 0x4dc1b0
mov esi, ebp
sub esi, edi
mov dword [esp + 0x20], esi
jmp 0x4dc186
mov esi, dword [esp + 0x20]
cmp esi, dword [edx + 0xc]
jle 0x4dc1a9
lea esi, [edi + ebp]
cmp esi, dword [edx + 0x14]
jge 0x4dc1a9
mov esi, dword [edx + 0x10]
test esi, esi
jl 0x4dc1a9
mov edi, dword [edx + 0x18]
test edi, edi
jl 0x4dc1a5
sub esi, edi
add ecx, esi
mov edi, dword [esp + 0x24]
mov edx, dword [edx + 4]
test edx, edx
jne 0x4dc182
sub ebx, ecx
xor ecx, ecx
test eax, eax
je 0x4dc1e0
cmp ebp, dword [eax + 0xc]
jl 0x4dc1d9
mov esi, dword [eax + 0x14]
lea edx, [edi + ebp]
cmp edx, esi
jge 0x4dc1d9
mov esi, dword [eax + 0x10]
test esi, esi
jg 0x4dc1d9
mov edx, dword [eax + 0x18]
test edx, edx
jg 0x4dc1d9
sub edx, esi
add ecx, edx
mov eax, dword [eax + 4]
test eax, eax
jne 0x4dc1b8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp ebx, dword [esp + 0x10]
jle 0x4dc236
mov ecx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 6]
push ecx
mov edi, eax
mov ecx, edx
movzx ax, byte [edx + 2]
movsx esi, ax
call fcn.004ddd40
mov edx, esi
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
shr edx, 3
shr esi, 1
push edi
and edx, 1
push 1
and esi, 1
push edx
push esi
push eax
push ebp
push ebx
push ebp
call fcn.00510140
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x4e3700
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x48]
and al, 4
cmp al, 4
jne 0x4e37e7
mov ebx, dword [esi + 0x59]
test ebx, ebx
je 0x4e3853
mov edx, dword [esi + 0x65]
mov eax, dword [esi + 0xd9]
test edx, edx
je 0x4e37a9
test eax, eax
jne 0x4e3760
mov eax, dword [esi + 0xc1]
test eax, eax
je 0x4e3760
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4e3760
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [edx + 0xc]
push ebp
not ecx
mov ebp, dword [edx]
dec ecx
push eax
push ecx
push ebx
mov ecx, edx
call dword [ebp + 0x34]
pop ebp
cmp dword [esi + 0xd9], 1
jne 0x4e3853
mov eax, dword [esi + 0x65]
push 0
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov eax, dword [esi + 0x65]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x65]
mov ecx, dword [ecx + 0x10]
call fcn.004b0220
mov ecx, dword [esi + 0x65]
test ecx, ecx
je 0x4e379d
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x65], 0
pop edi
pop esi
pop ebx
pop ecx
ret
test eax, eax
jne 0x4e37d1
mov eax, dword [esi + 0xc1]
test eax, eax
je 0x4e37d1
mov eax, dword [esi + 0x5d]
test eax, eax
je 0x4e37d1
mov edx, dword [esi + 0x69]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x69]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x69], 0
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi]
test eax, eax
je 0x4e3853
mov ecx, dword [esi + 0xd9]
test ecx, ecx
jne 0x4e3819
mov ecx, dword [esi + 0xc1]
test ecx, ecx
je 0x4e3819
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_EndPage]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
jmp 0x4e3823
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_AbortDoc]
mov edi, dword [esi]
test edi, edi
je 0x4e3837
mov ecx, edi
call fcn.004daa50
mov ecx, edi
call fcn.004a3a20
mov dword [esi], 0
mov edx, dword [0x5cc550]
mov dword [0x566b44], 0
mov dword [0x566b38], edx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4e3860
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xd9], 1
je 0x4e38fa
test byte [esi + 0x48], 4
je 0x4e38db
push ebx
mov ebx, dword [esi + 0x65]
test ebx, ebx
push edi
je 0x4e38b6
mov edx, dword [esi + 0x59]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4e38cf
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebx, dword [ebx + 0xc]
push ebp
not ecx
mov ebp, dword [ebx]
dec ecx
push eax
push ecx
push edx
mov ecx, ebx
call dword [ebp + 0x34]
pop ebp
mov ecx, esi
call fcn.005115e0
pop edi
pop ebx
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x5d]
mov edx, dword [esi + 0x59]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esi + 0x69]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call fcn.005115e0
pop edi
pop ebx
pop esi
pop ecx
ret
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_EndPage]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_StartPage]
mov ecx, dword [esi]
call fcn.00511ff0
pop esi
pop ecx
ret

Function at 0x4ff5e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x10]
pop esi
jmp fcn.004b0220
Function at 0x4ffab4
Capabilities:
Inspect section memory permissions

Disassembly:
sub eax, eax
sub ebx, ebx
bt ecx, 0xa
jae 0x4ffac3
or eax, 0x80
bt ecx, 0x17
jae 0x4ffacc
or eax, 0x40
bt ecx, 0xd
jae 0x4ffad5
or eax, 0x20
bt ecx, 0x10
jae 0x4ffade
or eax, 0x10
bt ecx, 7
jae 0x4ffae7
or eax, 8
bt ecx, 3
jae 0x4ffaf0
or eax, 4
bt ecx, 5
jae 0x4ffaf9
or eax, 2
bt ecx, 0x1c
jae 0x4ffb02
or eax, 1
bt ecx, 9
jae 0x4ffb0d
or eax, 0x8000
bt ecx, 2
jae 0x4ffb18
or eax, 0x4000
bt ecx, 0x13
jae 0x4ffb23
or eax, 0x2000
bt ecx, 0xe
jae 0x4ffb2e
or eax, 0x1000
bt ecx, 0x11
jae 0x4ffb39
or eax, 0x800
bt ecx, 0x15
jae 0x4ffb44
or eax, 0x400
bt ecx, 0xc
jae 0x4ffb4f
or eax, 0x200
bt ecx, 4
jae 0x4ffb5a
or eax, 0x100
bt ecx, 0x1e
jae 0x4ffb65
or eax, 0x800000
bt ecx, 0
jae 0x4ffb70
or eax, 0x400000
bt ecx, 8
jae 0x4ffb7b
or eax, 0x200000
bt ecx, 1
jae 0x4ffb86
or eax, 0x100000
bt ecx, 0x1d
jae 0x4ffb91
or eax, 0x80000
bt ecx, 0x14
jae 0x4ffb9c
or eax, 0x40000
bt ecx, 0xb
jae 0x4ffba7
or eax, 0x20000
bt ecx, 6
jae 0x4ffbb2
or eax, 0x10000
bt edx, 0xf
jae 0x4ffbbd
or eax, 0x80000000
bt edx, 0x14
jae 0x4ffbc8
or eax, 0x40000000
bt edx, 0x19
jae 0x4ffbd3
or eax, 0x20000000
bt edx, 3
jae 0x4ffbde
or eax, 0x10000000
bt edx, 9
jae 0x4ffbe9
or eax, 0x8000000
bt edx, 0x11
jae 0x4ffbf4
or eax, 0x4000000
bt edx, 0x1a
jae 0x4ffbff
or eax, 0x2000000
bt edx, 0
jae 0x4ffc0a
or eax, 0x1000000
bt edx, 0x15
jae 0x4ffc16
or ebx, 0x80
bt edx, 0xb
jae 0x4ffc1f
or ebx, 0x40
bt edx, 7
jae 0x4ffc28
or ebx, 0x20
bt edx, 8
jae 0x4ffc31
or ebx, 0x10
bt edx, 0xc
jae 0x4ffc3a
or ebx, 8
bt edx, 0x17
jae 0x4ffc43
or ebx, 4
bt edx, 1
jae 0x4ffc4c
or ebx, 2
bt edx, 0x10
jae 0x4ffc55
or ebx, 1
bt edx, 6
jae 0x4ffc61
or ebx, 0x8000
bt edx, 0x13
jae 0x4ffc6d
or ebx, 0x4000
bt edx, 0xa
jae 0x4ffc79
or ebx, 0x2000
bt edx, 0xe
jae 0x4ffc85
or ebx, 0x1000
bt edx, 0x16
jae 0x4ffc91
or ebx, 0x800
bt edx, 4
jae 0x4ffc9d
or ebx, 0x400
bt edx, 0x1b
jae 0x4ffca9
or ebx, 0x200
bt edx, 0x18
jae 0x4ffcb5
or ebx, 0x100
ret
Function at 0x50b140
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, ecx
test byte [edi + 8], 0x10
jne 0x50b228
mov eax, dword [edi + 0x3f]
test eax, eax
jne 0x50b1f2
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x3c]
push eax
mov ecx, edi
call fcn.0051a1a0
test eax, eax
je 0x50b228
mov eax, dword [eax + 0x3b]
test eax, eax
je 0x50b228
mov esi, dword [esi + 0x2f]
sub esi, 3
je 0x50b1be
dec esi
je 0x50b1aa
dec esi
jne 0x50b228
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x1d]
push eax
mov ecx, dword [ecx]
call fcn.004e5b20
pop edi
pop esi
ret 0xc
mov edx, dword [eax + 0x1d]
mov eax, dword [esp + 0x10]
push edx
mov ecx, dword [eax]
call fcn.004ce9d0
pop edi
pop esi
ret 0xc
mov esi, dword [esp + 0x10]
mov edi, dword [eax + 0x1d]
mov eax, dword [esi + 6]
cmp eax, 3
je 0x50b1d8
mov edx, dword [esi]
mov ecx, esi
call dword [eax*4 + 0x564220]
mov eax, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
pop edi
mov esi, dword [eax]
add esi, ecx
mov dword [eax], esi
mov ecx, dword [eax + 4]
adc ecx, edx
pop esi
mov dword [eax + 4], ecx
ret 0xc
mov esi, dword [eax]
test esi, esi
je 0x50b228
mov edi, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
test byte [esi + 0x95], 0x40
jne 0x50b219
push edi
push ebp
push ebx
mov ecx, esi
call fcn.0050b140
mov ecx, esi
call fcn.004a8c30
mov esi, eax
test esi, esi
jne 0x50b206
pop ebp
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x510690
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov esi, ecx
mov edi, edx
mov ecx, 0x80
shr ecx, 3
mov eax, 0
mov ebx, 0
xor dword [esi], eax
xor dword [esi + 4], ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
call fcn.005311a0
mov dword [esi], eax
mov dword [esi + 4], ebx
add esi, 8
loop 0x5106a9
pop ebx
pop edi
pop esi
ret
Function at 0x546319
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5652f8
cmp edx, dword [eax]
je 0x54633b
add eax, 8
inc ecx
cmp eax, 0x565388
jl 0x54632c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5652f8]
jne 0x546469
mov eax, dword [0x5cddfc]
cmp eax, 1
je 0x546443
test eax, eax
jne 0x54636c
cmp dword [0x565024], 1
je 0x546443
cmp edx, 0xfc
je 0x546469
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5463a3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00548c40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00547fc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5463e6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00547fc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x55ccb0
push edi
call fcn.00544520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00548c40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00548c50
lea eax, [ebp - 0xa0]
push 0x54ce4c
push eax
call fcn.00548c50
push dword [esi + 0x5652fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00548c50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00548d30
add esp, 0x2c
pop edi
jmp 0x546469
lea eax, [ebp + 8]
lea esi, [esi + 0x5652fc]
push 0
push eax
push dword [esi]
call fcn.00547fc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret