joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ac59
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push ecx
mov ebp, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x49adbf
cmp edi, 0xffffffff
je 0x49adbf
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x49ada3
push 0x10000000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x49adb6
mov ecx, dword [esp + 0x2c]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
cmp ecx, esi
jl 0x49ad9a
mov esi, dword [esp + 0x28]
jg 0x49acde
test esi, esi
je 0x49ad9a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
add dword [esp + 0x14], 0x10000000
mov dword [esp + 0x18], edx
adc dword [esp + 0x18], 0
cmp dword [esp + 0x18], ecx
jg 0x49ad15
jl 0x49ad09
cmp dword [esp + 0x14], esi
jae 0x49ad15
and dword [esp + 0x34], 0
mov esi, 0x10000000
jmp 0x49ad1d
sub esi, eax
sbb ecx, edx
mov dword [esp + 0x34], ecx
push 0
push 0
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x49ad60
push 0
lea eax, [esp + 0x28]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49ad52
mov edx, dword [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.0049abe7
add ebp, eax
jmp 0x49ad72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_sekurlsa_sk_search_file___ReadFile__0x_08x__n
jmp 0x49ad6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_sekurlsa_sk_search_file___SetFilePointerEx__0x_08x__n
call fcn.00409cda
pop ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x2c]
cmp edx, ecx
jge 0x49ad8c
mov esi, dword [esp + 0x28]
jmp 0x49ace6
jg 0x49ad9a
mov esi, dword [esp + 0x28]
cmp eax, esi
jb 0x49ace6
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x49adb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_sekurlsa_sk_search_file___GetFileSizeEx__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49add2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_sekurlsa_sk_search_file___CreateFile__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0bc6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b0c05
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b0c05
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b0c05
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4b0c05
cmp dword [ecx + 0x74], 0xe
jbe 0x4b0c05
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4b3871
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c477c
push 0x4c4774
push str.FlsAlloc
push 0x1f
call fcn.004b374f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b38a5
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c190c]
call esi
jmp 0x4b38ab
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b38ef
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c478c
push 0x4c4784
push str.FlsGetValue
push 0x21
call fcn.004b374f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b3926
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c190c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4b392e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c4794
push 0x4c478c
push str.FlsSetValue
push 0x22
call fcn.004b374f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b3968
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4c190c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4b6046
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x524014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b6091
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b61e1
test al, al
jne 0x4b608b
sub edx, 2
cmp edx, edi
jne 0x4b6071
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b60b3
lea eax, [edi + 2]
cmp edx, eax
je 0x4b60b3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b5f92
add esp, 0x10
jmp 0x4b61ad
push esi
lea ecx, [ebp - 0x255]
call fcn.004b61e1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b60f6
push dword [ebp - 0x25c]
jmp 0x4b60a3
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b6133
cmp word [ebp - 0x226], 0
je 0x4b6154
cmp word [ebp - 0x226], ax
jne 0x4b6133
cmp word [ebp - 0x224], 0
je 0x4b6154
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b5f92
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b61a0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b610d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b6188
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b61ad
push 0x4b5dc2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004bbbf0
add esp, 0x10
jmp 0x4b617d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e09e
leave
ret

Function at 0x4b6c68
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b6c79
pop esi
ret
push ebx
push edi
push esi
call fcn.004b6c31
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b1776
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b6ca1
push ebx
push esi
push edi
call fcn.0049fa90
add esp, 0xc
push 0
call fcn.004b173c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b7071
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b6cb6
Function at 0x4ba33b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5280f8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ba37b
cmp byte [ebx], 0xa
jne 0x4ba37b
or byte [edi + eax + 0x28], 4
jmp 0x4ba380
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4ba47f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4ba462
inc eax
cmp dl, 0xd
je 0x4ba3ac
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4ba3d2
cmp eax, ecx
jae 0x4ba3e0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4ba394
jmp 0x4ba47f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ba45d
cmp dword [ebp - 0x10], 0
je 0x4ba45d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5280f8]
test byte [eax + edi + 0x28], 0x48
je 0x4ba437
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ba422
mov byte [esi], dl
jmp 0x4ba433
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5280f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ba47f
cmp byte [ebp - 1], 0xa
jne 0x4ba446
cmp esi, ebx
jne 0x4ba446
mov byte [esi], 0xa
jmp 0x4ba47e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ba2ab
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ba47f
mov byte [esi], 0xd
jmp 0x4ba47e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5280f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ba47c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ba47f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ba488
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5280f8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ba4ce
cmp word [ebx], dx
jne 0x4ba4ce
or byte [eax + edi + 0x28], 4
jmp 0x4ba4d3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4ba636
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4ba616
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4ba514
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ba54a
cmp eax, edx
jae 0x4ba558
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4ba4ef
jmp 0x4ba636
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ba611
cmp dword [ebp - 0x18], 0
je 0x4ba611
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5280f8]
test byte [eax + edi + 0x28], 0x48
je 0x4ba5e7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4ba5ab
mov word [esi], cx
jmp 0x4ba5e2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5280f8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5280f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5280f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4ba636
pop eax
cmp word [ebp - 4], ax
jne 0x4ba5f7
cmp esi, ebx
jne 0x4ba5f7
mov word [esi], ax
jmp 0x4ba633
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ba2ab
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4ba636
push 0xd
pop eax
jmp 0x4ba5f2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5280f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4ba630
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4ba636
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bcc15
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004bcb91
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bcd84
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bcd84
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bcd39
jg 0x4bcc71
test eax, eax
je 0x4bcd2f
push 1
push 0x1000
call fcn.004b35d9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bcc94
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bcd26
push 0x8000
push ebx
call fcn.004a6f50
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bccbd
jg 0x4bccb8
cmp ecx, 0x1000
jb 0x4bccbd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b4627
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bcd02
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bccb8
jl 0x4bcce9
test ecx, ecx
jne 0x4bccaa
push dword [ebp - 0xc]
push ebx
call fcn.004a6f50
push esi
call fcn.004b173c
add esp, 0xc
xor ebx, ebx
jmp 0x4bcd92
cmp byte [edi + 0x24], 0
je 0x4bcd19
cmp dword [edi + 0x20], 5
jne 0x4bcd19
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bcd24
mov ebx, dword [edi + 0x18]
jmp 0x4bcd26
xor ebx, ebx
push esi
call fcn.004b173c
pop ecx
jmp 0x4bcd92
test ecx, ecx
jg 0x4bccfb
jl 0x4bcd39
test eax, eax
jae 0x4bccfb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ba2ab
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bcd59
cmp byte [edi + 0x1c], 0
je 0x4bccfb
jmp 0x4bcd8a
push ebx
call fcn.004b4f77
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bccfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bcd92
cmp byte [edi + 0x1c], 0
je 0x4bcd8f
mov ebx, dword [edi + 0x18]
jmp 0x4bcd92
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004ba2ab
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1b01f769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b023190
cmp edx, dword [eax]
je 0x1b01f78b
add eax, 8
inc ecx
cmp eax, 0x1b023220
jl 0x1b01f77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b023190]
jne 0x1b01f8b9
mov eax, dword [0x1b023bb0]
cmp eax, 1
je 0x1b01f893
test eax, eax
jne 0x1b01f7bc
cmp dword [0x1b0230e4], 1
je 0x1b01f893
cmp edx, 0xfc
je 0x1b01f8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b01f7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b020670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b020490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b01f836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b020490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b02245c
push edi
call fcn.1b020f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b020670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b020680
lea eax, [ebp - 0xa0]
push 0x1b02243c
push eax
call fcn.1b020680
push dword [esi + 0x1b023194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b020680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b020e75
add esp, 0x2c
pop edi
jmp 0x1b01f8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b023194]
push 0
push eax
push dword [esi]
call fcn.1b020490
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

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1a6363c3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2a81ed9
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x104d3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.104d31a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104d307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104d306a
add dl, dl
jne 0x104d3089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104d30dc
xor eax, eax
add dl, dl
jne 0x104d3096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104d317d
add dl, dl
jne 0x104d30a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104d30b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104d30bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104d30c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104d30d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104d3075
mov eax, 1
add dl, dl
jne 0x104d30ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104d30f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104d30e1
sub eax, ebx
mov ebx, 1
jne 0x104d3128
mov ecx, 1
add dl, dl
jne 0x104d310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104d3119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104d3105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104d3075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104d313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104d314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104d3136
cmp eax, 0x7d00
jae 0x104d316d
cmp eax, 0x500
jb 0x104d3168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104d3075
cmp eax, 0x7f
ja 0x104d3170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104d3075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104d319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x104d3075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219