joyce8/EMBER2024-capa huggingface dataset:
Function at 0x74085158
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x740851a2
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x74085149
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x74085158
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7448adfb
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x740851a9
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7406c01f
cmp eax, dword [ebp + 0xc]
pop eax
je 0x74085248
add edi, 4
add eax, 2
dec ecx
jne 0x7408518e
call 0x740851f5
loope 0x740851eb
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x74085245
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x74085256
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x74085209
cmp eax, ecx
ja 0x74085209
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x74085293
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x74085289
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7406c4fe
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x418d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420b80], ecx
inc edx
cmp edx, 0x100
jb 0x418d52
cmp edx, 0x800
jae 0x418e29
lea esp, [esp]
mov eax, dword [edx*4 + 0x420780]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420b80]
inc edx
mov dword [edx*4 + 0x420b7c], eax
cmp edx, 0x800
jb 0x418e00
mov eax, 0x419630
mov dword [0x420b74], eax
mov dword [0x422b80], eax
mov dword [0x420b70], 0x419550
call fcn.00419060
test eax, eax
jne 0x418e55
mov dword [0x422b80], 0x419550
ret

Function at 0x1148d57c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1148d586
pushal
call 0x1148d58c
pop ebp
sub ebp, 0x10
sub ebp, 0x148d57c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x1148d5b0
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x1148d5b9
mov eax, 0x148d57c
add eax, ebp
add eax, 0x63
mov ecx, 0x5c7
mov edx, 0x80659935
xor byte [eax], dl
inc eax
dec ecx
jne 0x1148d5d0
jmp 0x1148d5e3
mov esi, 0x9bcbef8
xor eax, 0xf4b43535
int 0x35
xor eax, 0x8df83635
xor esi, dword [0x1d8f3535]
xor eax, 0xd7c23535
std
mov esi, 0x353539b4
xor eax, 0x51b8f036
adc ecx, ecx
mov esp, 0x5d651131
jno 0x1148d61f
adc dword [0x11a2035d], esi
xor al, 0x34
sbb dword [ecx], edx
pop ebp
dec ebx
sbb byte [edx + 0x3530ddb0], 0x35
xor eax, 0x353505dc
xor eax, 0x1159b860
xor eax, 0x353db0be
xor eax, 0x39a0be35
xor eax, 0xb8be3535
and eax, 0xf4353535
fdiv qword [edi]
add al, 0x37
mov dh, 0xf7
xor dword [edx + edi - 0x50], edi
ror edx, 0xca
retf 0x19be
Function at 0x4011f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov edi, ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
push edi
push str.run_child:_about_to_run__ls_n
call fcn.00401090
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
push 0x70
lea eax, [ebp - 0x78]
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x4013db
cmp dword [ebp - 0x7c], 0x70
jne 0x4013db
test esi, esi
je 0x4013db
or dword [ebp - 0x68], 0x3000
lea eax, [ebp - 0x78]
push 0x70
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x401296
push str.Job_information_setting_failed
push 0x65
call fcn.004010e0
push 0x44
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00402ea0
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call ebx
lea edx, [ebp - 0xa0]
mov ecx, eax
call fcn.00401180
test eax, eax
jne 0x4012dd
push str.stdin_duplication_failed
push 0x64
call fcn.004010e0
push 0xfffffffffffffff5
call ebx
lea edx, [ebp - 0x9c]
mov ecx, eax
call fcn.00401180
test eax, eax
jne 0x4012fe
push str.stdout_duplication_failed
push 0x64
call fcn.004010e0
push 0xfffffffffffffff4
call ebx
lea edx, [ebp - 0x98]
mov ecx, eax
call fcn.00401180
test eax, eax
jne 0x40131f
push str.stderr_duplication_failed
push 0x64
call fcn.004010e0
push 1
push 0x4011e0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x40133c
push str.control_handler_setting_failed
push 0x65
call fcn.004010e0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xac], 0x100
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40137a
push edi
push str.Unable_to_create_process_using__ls
push 0x65
call fcn.004010e0
push dword [ebp - 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4013c3
push str.Failed_to_get_exit_code_of_process
push 0x65
call fcn.004010e0
push dword [ebp - 0x7c]
push str.child_process_exit_code:__d_n
call fcn.00401090
add esp, 8
push dword [ebp - 0x7c]
call fcn.004056f1
push str.Job_information_querying_failed
push 0x65
call fcn.004010e0
int3
Function at 0x4055ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4055ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4055ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4055ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4055ea
cmp dword [ecx + 0x74], 0xe
jbe 0x4055ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d9af
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ab54
push 0x41ab4c
push str.FlsAlloc
push 0x1f
call fcn.0040d8ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d9e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x419168]
call esi
jmp 0x40d9e9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40da2d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ab64
push 0x41ab5c
push str.FlsGetValue
push 0x21
call fcn.0040d8ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40da64
push dword [ebp + 8]
mov ecx, esi
call dword [0x419168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40da6c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ab6c
push 0x41ab64
push str.FlsSetValue
push 0x22
call fcn.0040d8ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40daa6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x419168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40f147
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 + 0x422148]
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 0x40f187
cmp byte [ebx], 0xa
jne 0x40f187
or byte [edi + eax + 0x28], 4
jmp 0x40f18c
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 0x40f28b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40f26e
inc eax
cmp dl, 0xd
je 0x40f1b8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40f1de
cmp eax, ecx
jae 0x40f1ec
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 0x40f1a0
jmp 0x40f28b
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 0x40f269
cmp dword [ebp - 0x10], 0
je 0x40f269
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x422148]
test byte [eax + edi + 0x28], 0x48
je 0x40f243
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40f22e
mov byte [esi], dl
jmp 0x40f23f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x422148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40f28b
cmp byte [ebp - 1], 0xa
jne 0x40f252
cmp esi, ebx
jne 0x40f252
mov byte [esi], 0xa
jmp 0x40f28a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004148a1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40f28b
mov byte [esi], 0xd
jmp 0x40f28a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x422148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40f288
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40f28b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40f294
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 + 0x422148]
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 0x40f2da
cmp word [ebx], dx
jne 0x40f2da
or byte [eax + edi + 0x28], 4
jmp 0x40f2df
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 0x40f442
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 0x40f422
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40f320
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40f356
cmp eax, edx
jae 0x40f364
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 0x40f2fb
jmp 0x40f442
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 0x40f41d
cmp dword [ebp - 0x18], 0
je 0x40f41d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x422148]
test byte [eax + edi + 0x28], 0x48
je 0x40f3f3
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 0x40f3b7
mov word [esi], cx
jmp 0x40f3ee
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x422148]
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 + 0x422148]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x422148]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40f442
pop eax
cmp word [ebp - 4], ax
jne 0x40f403
cmp esi, ebx
jne 0x40f403
mov word [esi], ax
jmp 0x40f43f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004148a1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40f442
push 0xd
pop eax
jmp 0x40f3fe
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x422148]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40f43c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40f442
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 0x40ffb0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x421004]
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 0x40fffb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041014b
test al, al
jne 0x40fff5
sub edx, 2
cmp edx, edi
jne 0x40ffdb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41001d
lea eax, [edi + 2]
cmp edx, eax
je 0x41001d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040fefc
add esp, 0x10
jmp 0x410117
push esi
lea ecx, [ebp - 0x255]
call fcn.0041014b
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 0x410060
push dword [ebp - 0x25c]
jmp 0x41000d
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 0x41009d
cmp word [ebp - 0x226], 0
je 0x4100be
cmp word [ebp - 0x226], ax
jne 0x41009d
cmp word [ebp - 0x224], 0
je 0x4100be
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040fefc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41010a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x410077
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4100f2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x410117
push 0x40fd2c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409ab0
add esp, 0x10
jmp 0x4100e7
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.00401a50
leave
ret
Function at 0x416465
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.004163e1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4165d4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4165d4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x416589
jg 0x4164c1
test eax, eax
je 0x41657f
push 1
push 0x1000
call fcn.0040d78e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4164e4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x416576
push 0x8000
push ebx
call fcn.0040aede
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41650d
jg 0x416508
cmp ecx, 0x1000
jb 0x41650d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040e799
add esp, 0x10
cmp eax, 0xffffffff
je 0x416552
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 0x416508
jl 0x416539
test ecx, ecx
jne 0x4164fa
push dword [ebp - 0xc]
push ebx
call fcn.0040aede
push esi
call fcn.0040bb8d
add esp, 0xc
xor ebx, ebx
jmp 0x4165e2
cmp byte [edi + 0x24], 0
je 0x416569
cmp dword [edi + 0x20], 5
jne 0x416569
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x416574
mov ebx, dword [edi + 0x18]
jmp 0x416576
xor ebx, ebx
push esi
call fcn.0040bb8d
pop ecx
jmp 0x4165e2
test ecx, ecx
jg 0x41654b
jl 0x416589
test eax, eax
jae 0x41654b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004148a1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4165a9
cmp byte [edi + 0x1c], 0
je 0x41654b
jmp 0x4165da
push ebx
call fcn.0041106b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41654b
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 0x4165e2
cmp byte [edi + 0x1c], 0
je 0x4165df
mov ebx, dword [edi + 0x18]
jmp 0x4165e2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004148a1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
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 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x50001366
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x618], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x50001456
push 0x25
pop ebx
push ebx
push edi
call fcn.50009dd7
pop ecx
test eax, eax
pop ecx
jne 0x500013ea
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.500094fd
add esp, 0xc
push 1
pop eax
jmp 0x50001492
mov eax, edi
push ebx
push eax
call fcn.50009dd7
pop ecx
test eax, eax
pop ecx
je 0x500013ff
add eax, 2
inc esi
jmp 0x500013ec
mov eax, esi
push 2
cdq
pop ecx
idiv ecx
cmp edx, 1
je 0x50001456
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.500094fd
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.50009dd7
and word [eax], 0
lea edi, [eax + 2]
push ebx
push edi
call fcn.50009dd7
add esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x410]
and word [ebx], 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x5000145a
xor eax, eax
jmp 0x50001492
add ebx, 2
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push str._s_s_s
push eax
call fcn.50009d68
push dword [ebp + 0x10]
lea eax, [ebp - 0x618]
push dword [ebp + 0xc]
push eax
call fcn.50001366
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret

Function at 0x500014c4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
push esi
push eax
push eax
push 3
push eax
push eax
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x500014ff
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret