joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40423b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402609
and dword [ebp - 0x14], 0
cmp dword [0x40a870], 0
mov dword [ebp - 0x18], eax
jne 0x4042ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404396
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404396
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a870], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a874], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a878], eax
call edi
push eax
call esi
mov dword [0x40a880], eax
test eax, eax
je 0x4042ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a87c], eax
mov eax, dword [0x40a87c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404347
cmp dword [0x40a880], ecx
je 0x404347
push eax
call esi
push dword [0x40a880]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404347
test ebx, ebx
je 0x404347
call edi
test eax, eax
je 0x40433e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40433e
test byte [ebp - 8], 1
jne 0x404347
or dword [ebp + 0x10], 0x200000
jmp 0x40437a
mov eax, dword [0x40a874]
cmp eax, dword [ebp - 0x18]
je 0x40437a
push eax
call esi
test eax, eax
je 0x40437a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40437a
mov eax, dword [0x40a878]
cmp eax, dword [ebp - 0x18]
je 0x40437a
push eax
call esi
test eax, eax
je 0x40437a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a870]
call esi
test eax, eax
je 0x404396
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404398
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401172
leave
ret
Function at 0x10002e80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
je 0x10002e8f
xor eax, eax
pop ebp
ret 0xc
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x10002f99
push str.NtCreateThreadEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002ad58], eax
test eax, eax
je 0x10002f6a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x10002190
call esi
push eax
push 0
push 0x1fffff
push 0x1002ad64
call dword [0x1002ad58]
mov ecx, dword [0x1002ad64]
call fcn.10001f20
push 0
push 0
push 0
push 0
push 0
push 0
push 0x10002d70
call esi
push eax
push 0
push 0x1fffff
push 0x1002ad5c
call dword [0x1002ad58]
mov ecx, dword [0x1002ad5c]
call fcn.10001f20
push 0
push 0
push 0
push 0
push 0
push 0
push 0x100022f0
call esi
push eax
push 0
push 0x1fffff
push 0x1002ad60
call dword [0x1002ad58]
mov ecx, dword [0x1002ad60]
call fcn.10001f20
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop edi
pop ebp
ret 0xc
push 0x10
push str.Error.
push str.Error_0x01:_Critical_function_not_found_in_the_core_library.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
je 0x10002fc1
cmp eax, 2
je 0x10002fc1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop edi
pop ebp
ret 0xc
push 0x10
push str.Error.
push str.Error_0x02:_ntdll.dll_not_loaded.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
je 0x10002fc1
cmp eax, 2
je 0x10002fc1
mov eax, 1
pop edi
pop ebp
ret 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10003c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10003c32
jl 0x10003c25
test ecx, ecx
jne 0x10003c32
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10003cf2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10004ff0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10003c9e
jg 0x10003c5d
test esi, esi
je 0x10003c9e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10003c75
mov eax, dword [esp + 0x10]
jl 0x10003c6f
cmp eax, esi
jae 0x10003c75
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10008780
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10003cbf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10003cdb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10003c44
jl 0x10003cdb
test ecx, ecx
jne 0x10003c44
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10003d36
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10003d36
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10008780
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10003da7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10003d5c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10003d92
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000cf3e
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10003da7
cmp edi, eax
ja 0x10003d70
test edi, edi
je 0x10003da7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000cf3e
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100050a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e550
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10029080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.100072a7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10006981
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10005040
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001318b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10012ffc

Function at 0x100135ca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022320
push 0x10022318
push str.FlsAlloc
push 0x1e
call fcn.10013494
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100135fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f1b4]
call esi
jmp 0x10013604
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10013648
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022330
push 0x10022328
push str.FlsGetValue
push 0x20
call fcn.10013494
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001367f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f1b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10013edf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100080e0
mov eax, dword [0x10029080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1000fe82
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10013f21
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001407d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001e060
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1002a928]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10014cda
mov ecx, dword [esi*4 + 0x1002a928]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10014076
cmp eax, dword [edi + ecx + 0x24]
jne 0x10014076
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014076
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10014cda
add esp, 0x14
test edx, edx
jl 0x10014076
jg 0x10013fec
test eax, eax
jb 0x10014076
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10014076
jl 0x10014006
cmp dword [ebp - 0x1008], eax
ja 0x10014076
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10014024
test ebx, ebx
je 0x1001405d
cmp ecx, edi
jae 0x1001405d
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001403e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001404a
cmp byte [ecx + 1], 0xa
jne 0x1001404a
inc ecx
jmp 0x1001404a
movzx eax, al
movsx eax, byte [eax + 0x10029328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10014024
cmp edx, ebx
jne 0x10014024
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001407b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10007294
leave
ret
Function at 0x10014178
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1002a928]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100141b8
cmp byte [ebx], 0xa
jne 0x100141b8
or byte [eax + edi + 0x28], 4
jmp 0x100141bd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100142bb
mov al, byte [edx]
cmp al, 0x1a
je 0x1001429d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100141ec
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10014211
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1001421b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100141ce
jmp 0x100142bb
push 0
lea eax, [ebp - 0xc]
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 0x10014298
cmp dword [ebp - 0xc], 0
je 0x10014298
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1002a928]
test byte [eax + edi + 0x28], 0x48
je 0x10014272
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001425d
mov byte [esi], dl
jmp 0x1001426e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002a928]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100142bb
cmp byte [ebp - 1], 0xa
jne 0x10014281
cmp esi, ebx
jne 0x10014281
mov byte [esi], 0xa
jmp 0x100142ba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10014cf8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100142bb
mov byte [esi], 0xd
jmp 0x100142ba
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1002a928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100142b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100142bb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100142c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1002a928]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10014307
cmp word [esi], dx
jne 0x10014307
or byte [edi + eax + 0x28], 4
jmp 0x1001430c
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1001445f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1001443f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1001434e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10014384
cmp eax, edx
jae 0x10014390
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10014326
jmp 0x1001445f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001443b
cmp dword [ebp - 0x14], 0
je 0x1001443b
mov eax, dword [ebx*4 + 0x1002a928]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10014413
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100143dc
mov word [esi], cx
jmp 0x1001440f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1002a928]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1002a928]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1002a928]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1001445f
pop ebx
cmp word [ebp - 4], bx
jne 0x10014424
cmp esi, dword [ebp + 0xc]
jne 0x10014424
mov word [esi], bx
jmp 0x1001445c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10014cf8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1001445f
push 0xd
jmp 0x10014458
mov ecx, dword [ebx*4 + 0x1002a928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10014456
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001445f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100181b6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10018253
push ebx
push esi
call fcn.1001817f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10016f16
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10018200
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018252
push edi
push eax
call fcn.10014d56
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10018220
call fcn.10012c18
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018251
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10016f16
add esp, 0x20
test eax, eax
jne 0x1001823f
push edi
call fcn.10012c18
jmp 0x10018247
push ebx
call fcn.10012c18
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001cba1
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]
push dword [ebp + 0xc]
push ebx
call fcn.1001cb1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001cd19
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001cd19
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001ccc8
jg 0x1001cbfa
test eax, eax
je 0x1001ccbe
push 1
push 0x1000
call fcn.10013196
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001cc20
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1001ccb5
push 0x8000
push ebx
call fcn.1001ca4e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001cc4c
jg 0x1001cc47
cmp ecx, 0x1000
jb 0x1001cc4c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10012a18
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001cc91
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 0x1001cc47
jl 0x1001cc78
test ecx, ecx
jne 0x1001cc39
push dword [ebp - 0xc]
push ebx
call fcn.1001ca4e
push esi
call fcn.10012c18
add esp, 0xc
xor edi, edi
jmp 0x1001cd2a
cmp byte [edi + 0x24], 0
je 0x1001cca8
cmp dword [edi + 0x20], 5
jne 0x1001cca8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001ccb3
mov edi, dword [edi + 0x18]
jmp 0x1001ccb5
xor edi, edi
push esi
call fcn.10012c18
pop ecx
jmp 0x1001cd2a
test ecx, ecx
jg 0x1001cc8a
jl 0x1001ccc8
test eax, eax
jae 0x1001cc8a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10014cf8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001cceb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001cc8a
jmp 0x1001cd22
push ebx
call fcn.1001879a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001cc8a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1001cd2a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001cd27
mov edi, dword [edi + 0x18]
jmp 0x1001cd2a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10014cf8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001e020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001e04d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001e04d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219