joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407620
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a108
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x80], eax
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 4], eax
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x407685
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004073c0
lea ecx, [ebp - 0x7c]
call fcn.00407470
push esi
lea ecx, [ebp - 0x7c]
call fcn.00407550
cmp dword [ebp + 0x20], 0x10
jb 0x4076b5
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408f84
mov esp, ebp
pop ebp
ret

Function at 0x408f84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f484]
jne 0x408f8e
repz ret
jmp fcn.00409428
Function at 0x40cbc7
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41a2f8
call fcn.00413724
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41b69c
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41b754
push 4
mov ebx, 0x41b68c
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00403291
mov dword [esi + 0x3c], 0x41b804
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.00403291
mov dword [edi], 0x41b80c
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c1be
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040c1be
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040c1be
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c1be
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040c1be
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x412ff0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call fcn.0041468e
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x413018
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413027
mov eax, 1
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40177f
Capabilities:
Parse pe header

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

Function at 0x412180
Capabilities:
Parse pe header

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

Function at 0x401686
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404474], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4041cf], ebp
mov dword [0x404404], eax
mov dword [0x4041c7], eax
mov dword [0x4043f0], 0x30
mov dword [0x4043f4], 2
jmp 0x4016c6
mov dword [0x4043f8], 0x403051
mov dword [0x4043fc], 0
mov dword [0x404400], 0
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40440c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404408], eax
mov dword [0x40441c], eax
mov dword [0x404418], 0x40439a
mov dword [0x404410], 0xf
push 0x4043f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4041c7]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push 0x4043e7
push str.lunt
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404468], eax
push 5
push dword [0x404468]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404468]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404420]
jmp 0x40179a
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x40178c
mov eax, dword [0x404428]
jmp 0x4017b5
call 0x402a06
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x6eab6335
nop
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2f47179a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4179a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x4179c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4179c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4179b8
mov eax, 1
add ebx, ebx
jne 0x4179db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4179d0
jne 0x4179ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4179d0
xor ecx, ecx
sub eax, 3
jb 0x417a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417a72
mov ebp, eax
add ebx, ebx
jne 0x417a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417a3c
inc ecx
add ebx, ebx
jne 0x417a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417a1d
jne 0x417a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417a4d
jmp 0x4179be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417a5c
add edi, ecx
jmp 0x4179be
pop esi
mov edi, esi
mov ecx, 0x65
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417a7a
cmp byte [edi], 5
jne 0x417a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x417a7f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417af7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417aac
mov ecx, edi
jns 0x417adb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1784c]
or eax, eax
je 0x417af1
mov dword [ebx], eax
add ebx, 4
jmp 0x417ac9
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x417b2b
sub esp, 0xffffff80
jmp 0x4015ac
Function at 0x403630
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x4cb4bc]
mov ecx, dword [0x4c83c4]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403723
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x4cb4bc], 0x959
jne 0x403709
push 0
push 0
call esi
push 0
lea eax, [esp + 0x43c]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0x402cc0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov eax, dword [esp + 0x14]
push eax
call fcn.00403480
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x4040e0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45c438
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x4cb4bc], 0x84
jne 0x404177
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push ebx
push 0x461368
call fcn.00405a8e
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
push ebx
mov dword [esp + 0x34], ebx
call fcn.00405819
push ebx
push ebx
call fcn.004058a7
add esp, 0x14
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0x10
jb 0x404167
mov eax, dword [esp + 8]
push eax
call fcn.00405b53
add esp, 4
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], ebx
mov byte [esp + 8], bl
cmp byte [0x461368], bl
jle 0x404187
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [0x460514]
mov edx, dword [0x4604e8]
mov dword [0x4cb4bc], ecx
mov dword [0x4cbe5c], edx
call fcn.00403830
mov ecx, dword [esp + 0x20]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10

Function at 0x40712c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e238]
jne 0x407136
repz ret
jmp fcn.0040c265
Function at 0x40cd5f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004099c6
and dword [ebp - 4], 0
cmp dword [0x461258], 0
mov ebx, eax
jne 0x40ce10
push 0x4024c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cec1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024b8
push edi
call esi
test eax, eax
je 0x40cec1
push eax
call fcn.00409954
mov dword [esp], 0x4024a8
push edi
mov dword [0x461258], eax
call esi
push eax
call fcn.00409954
mov dword [esp], 0x402494
push edi
mov dword [0x46125c], eax
call esi
push eax
call fcn.00409954
mov dword [esp], 0x402478
push edi
mov dword [0x461260], eax
call esi
push eax
call fcn.00409954
pop ecx
mov dword [0x461268], eax
test eax, eax
je 0x40ce10
push 0x402460
push edi
call esi
push eax
call fcn.00409954
pop ecx
mov dword [0x461264], eax
mov eax, dword [0x461264]
cmp eax, ebx
je 0x40ce68
cmp dword [0x461268], ebx
je 0x40ce68
push eax
call fcn.004099cf
push dword [0x461268]
mov esi, eax
call fcn.004099cf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ce68
test edi, edi
je 0x40ce68
call esi
test eax, eax
je 0x40ce5f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ce5f
test byte [ebp - 0xc], 1
jne 0x40ce68
or dword [ebp + 0x10], 0x200000
jmp 0x40cea1
mov eax, dword [0x46125c]
cmp eax, ebx
je 0x40cea1
push eax
call fcn.004099cf
pop ecx
test eax, eax
je 0x40cea1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cea1
mov eax, dword [0x461260]
cmp eax, ebx
je 0x40cea1
push eax
call fcn.004099cf
pop ecx
test eax, eax
je 0x40cea1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x461258]
call fcn.004099cf
pop ecx
test eax, eax
je 0x40cec1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cec3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x487175
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x487192
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x487183
add dl, dl
jne 0x48719d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4871e9
xor eax, eax
add dl, dl
jne 0x4871aa
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x487286
add dl, dl
jne 0x4871b9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4871c4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4871cf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4871da
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4871e4
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x487189
mov eax, 1
add dl, dl
jne 0x4871f7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x487202
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4871ee
sub eax, 2
jne 0x487231
mov ecx, 1
add dl, dl
jne 0x487217
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x487222
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x48720e
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x487189
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x487248
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x487253
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x48723f
cmp eax, 0x7d00
jae 0x487276
cmp eax, 0x500
jb 0x487271
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x487189
cmp eax, 0x7f
ja 0x487279
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x487189
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4872a2
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x487189
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret
Function at 0x100140e1
Capabilities:
Terminate process

Disassembly:
jmp 0x1002adf0
cmp ecx, dword [0x10041d70]
jne 0x1002adf9
ret
jmp fcn.1002ae10

Function at 0x10022ca0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d750
push 0x100142b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
call fcn.10014708
mov dword [ebp - 4], 0
cmp dword [0x10042fb4], 1
jne 0x10022ce9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10042fb0], 1
mov cl, byte [ebp + 0x10]
mov byte [0x10042fac], cl
cmp dword [ebp + 0xc], 0
jne 0x10022d4e
cmp dword [0x10043854], 0
je 0x10022d3c
mov edx, dword [0x10043850]
sub edx, 4
mov dword [0x10043850], edx
mov eax, dword [0x10043850]
cmp eax, dword [0x10043854]
jb 0x10022d3c
mov ecx, dword [0x10043850]
cmp dword [ecx], 0
je 0x10022d3a
mov edx, dword [0x10043850]
call dword [edx]
jmp 0x10022d0b
push 0x10041930
push 0x10041728
call fcn.10022ec0
add esp, 8
push 0x10041c3c
push 0x10041a34
call fcn.10022ec0
add esp, 8
cmp dword [0x10042fb8], 0
jne 0x10022d87
push 0xffffffffffffffff
call fcn.10014235
add esp, 4
and eax, 0x20
je 0x10022d87
mov dword [0x10042fb8], 1
call fcn.10014640
mov dword [ebp - 4], 0xffffffff
call fcn.10022d95
jmp 0x10022da1
cmp dword [ebp + 0x10], 0
je 0x10022da9
jmp 0x10022dbf
mov dword [0x10042fb4], 1
mov eax, dword [ebp + 8]
push eax
call fcn.1001437f
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x7cf4614d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x7fbb6983
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x401c85
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406108
cmp edx, dword [eax]
je 0x401ca7
add eax, 8
inc ecx
cmp eax, 0x406198
jl 0x401c98
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406108]
jne 0x401dd5
mov eax, dword [0x406638]
cmp eax, 1
je 0x401daf
test eax, eax
jne 0x401cd8
cmp dword [0x40605c], 1
je 0x401daf
cmp edx, 0xfc
je 0x401dd5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401d0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402230
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004023a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401d52
lea eax, [ebp - 0x1a4]
push eax
call fcn.004023a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405390
push edi
call fcn.00403030
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402230
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402240
lea eax, [ebp - 0xa0]
push 0x405370
push eax
call fcn.00402240
push dword [esi + 0x40610c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402240
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00402f9e
add esp, 0x2c
pop edi
jmp 0x401dd5
lea eax, [ebp + 8]
lea esi, [esi + 0x40610c]
push 0
push eax
push dword [esi]
call fcn.004023a0
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 0x403a78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403a98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403f72
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x403ab9
test byte [esp + 8], 2
je 0x403ab9
mov dword [0x40663c], 0xd
mov dword [0x406640], 5
jmp 0x403a94
xor eax, eax
ret
Function at 0x425880
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4259d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x425820]
call fcn.0040d280
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x425850]
call fcn.0040d280
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00425d48
test al, al
jne 0x4258f6
mov dl, 1
mov eax, esi
call fcn.00425cb0
test al, al
je 0x425980
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00426510
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042e2c0
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ae9c
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42597b
test byte [ebp - 0x14], 1
je 0x425946
or bl, 1
test byte [ebp - 0x14], 2
je 0x42594f
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x425958
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x42596c
dec eax
je 0x425971
dec eax
je 0x425976
dec eax
jne 0x425998
or bl, 0x10
jmp 0x425998
or bl, 4
jmp 0x425998
or bl, 8
jmp 0x425998
call fcn.0042f4e8
push esi
mov ecx, dword [0x713d9c]
mov dl, 1
mov eax, dword [0x41e12c]
call fcn.0042cf6c
call fcn.004098d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4259db
lea eax, [ebp - 0x1c]
call fcn.0040a1dc
lea eax, [ebp - 0xc]
mov edx, dword [0x425850]
call fcn.0040d3a4
lea eax, [ebp - 8]
mov edx, dword [0x425820]
call fcn.0040d3a4
lea eax, [ebp - 4]
call fcn.0040a1dc
pop eax
jmp eax

Function at 0x425cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040ae9c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425d1a
test ah, 4
je 0x425d13
test bl, bl
jne 0x425cd8
mov al, 1
jmp 0x425d41
test al, 0x10
je 0x425ce0
xor eax, eax
jmp 0x425d41
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425d04
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x425d41
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x425d41
test al, 0x10
sete al
jmp 0x425d41
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x425d3b
cmp ebx, 3
je 0x425d3b
cmp ebx, 0x7b
je 0x425d3b
mov eax, esi
call fcn.00425c70
test al, al
jne 0x425d3f
xor eax, eax
jmp 0x425d41
mov al, 1
pop edi
pop esi
pop ebx
ret