joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e853
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov edx, dword [0x431008]
bt dword [0x431108], 4
jb 0x41e87f
mov eax, dword [0x43103c]
dec eax
shr eax, 4
inc eax
mov word [edx + 0xe], ax
shl eax, 4
movzx ecx, word [edx + 0x10]
add eax, ecx
mov dword [0x43103c], eax
mov edi, dword [0x43102c]
mov eax, dword [0x431114]
shl eax, 2
add eax, 0x1c
sub edi, eax
xchg dword [0x43102c], edi
mov ecx, 0xf
add eax, 0xf
and eax, 0xf
sub ecx, eax
xor al, al
rep stosb byte es:[edi], al
sub edi, dword [0x43102c]
mov ecx, edi
shr edi, 4
mov word [edx], 0x5a4d
mov word [edx + 8], di
mov eax, dword [0x431114]
mov word [edx + 6], ax
mov eax, dword [0x431038]
add eax, ecx
mov esi, eax
shr esi, 9
and eax, 0x1ff
inc si
or ax, ax
jne 0x41e8e0
dec si
mov word [edx + 2], ax
mov word [edx + 4], si
mov eax, dword [0x43103c]
dec eax
shr eax, 4
inc eax
mov esi, dword [0x431038]
dec esi
shr esi, 4
inc esi
sub eax, esi
mov word [edx + 0xa], ax
add word [edx + 0xc], ax
salc
mov ah, al
or word [edx + 0xc], ax
mov word [edx + 0x18], 0x1c
add dword [0x431040], ecx
call fcn.004166a5
jb 0x416a55
ret

Function at 0x41f10f
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov ebx, dword [0x431124]
mov edx, dword [0x431034]
mov eax, edi
sub eax, dword [ebx + 0x14]
jne 0x41f130
bt dword [0x431108], 5
jb 0x41f130
mov eax, dword [ebx + 0xc]
ret
mov dword [ebx + 8], eax
cmp edi, dword [0x4310a0]
jne 0x41f14a
cmp dword [edx + 0x38], 0x1000
jb 0x41f14a
mov edi, dword [0x43109c]
and dword [0x4310a0], 0
mov ebp, edi
sub ebp, dword [ebx + 0x14]
mov ecx, dword [edx + 0x3c]
dec ecx
lea eax, [ebp + ecx]
not ecx
and eax, ecx
mov dword [ebx + 0x10], eax
sub eax, ebp
mov ecx, eax
xor al, al
rep stosb byte es:[edi], al
mov eax, dword [0x431034]
sub eax, dword [0x43111c]
sub dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x10]
test byte [ebx + 0x24], 0x20
je 0x41f193
add dword [edx + 0x1c], ecx
cmp dword [edx + 0x2c], 0
jne 0x41f193
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x2c], eax
test byte [ebx + 0x24], 0x40
je 0x41f1b4
add dword [edx + 0x20], ecx
test dword [0x431108], 4
jne 0x41f1b4
cmp dword [edx + 0x30], 0
jne 0x41f1b4
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ebx + 8]
or eax, eax
je 0x41f1c8
cmp dword [ebx + 0x10], 0
jne 0x41f1c8
or byte [ebx + 0x24], 0x80
add dword [edx + 0x24], ecx
mov ecx, dword [edx + 0x38]
dec ecx
add eax, ecx
not ecx
and eax, ecx
add eax, dword [ebx + 0xc]
add ebx, 0x28
mov dword [0x431124], ebx
inc word [0x431118]
je 0x416a66
ret

Function at 0x4208cb
Capabilities:
Query environment variable
Read .ini file

Disassembly:
inc ecx
mov eax, ecx
shl eax, 8
mov dword [ebx], eax
inc dx
je 0x416a66
mov eax, edx
shl eax, 0x10
mov al, 3
test byte [ebx + 0x14], 0x40
je 0x4208f3
or ah, 0xff
inc dx
je 0x416a66
stosd dword es:[edi], eax
ret
Function at 0x426ecf
Capabilities:
Query environment variable
Read .ini file

Disassembly:
xor ah, ah
cmp al, 0x11
jne 0x426f03
mov byte [0x431183], 1
lodsw ax, word [esi]
xchg ah, al
or byte [0x43116d], 1
cmp ah, byte [0x43116c]
je 0x426f02
cmp byte [0x43116c], 0
jne 0x416af7
mov byte [0x43116c], ah
ret
mov byte [0x431183], 0
cmp al, 0x5b
jne 0x426f02
and byte [0x43116d], 0xfe
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x15a24d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9b1000]
push edi
or ebp, 0xffffffff
jmp 0x15a24f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x15a24f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15a24e8
mov eax, 1
add ebx, ebx
jne 0x15a250b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x15a251c
jne 0x15a253b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15a253b
dec eax
add ebx, ebx
jne 0x15a2528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x15a2500
add ebx, ebx
jne 0x15a2537
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x15a258d
xor ecx, ecx
sub eax, 3
jb 0x15a2553
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x15a25c2
sar eax, 1
mov ebp, eax
jmp 0x15a255e
add ebx, ebx
jne 0x15a255e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15a252c
inc ecx
add ebx, ebx
jne 0x15a256c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15a252c
add ebx, ebx
jne 0x15a2579
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x15a256e
jne 0x15a258a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x15a256e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x15a25ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x15a259e
jmp 0x15a24ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x15a25ac
add edi, ecx
jmp 0x15a24ee
pop esi
mov edi, esi
mov ecx, 0x1dbb2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x15a25ca
cmp byte [edi], 0xb7
jne 0x15a25ca
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 0x15a25cf
lea edi, [esi + 0x116e000]
mov eax, dword [edi]
or eax, eax
je 0x15a2647
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11c52dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11c5444]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x15a25fc
mov ecx, edi
jns 0x15a262b
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 + 0x11c5448]
or eax, eax
je 0x15a2641
mov dword [ebx], eax
add ebx, 4
jmp 0x15a2619
call dword [esi + 0x11c5450]
mov ebp, dword [esi + 0x11c544c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x15a267b
sub esp, 0xffffff80
jmp 0x814bba
Function at 0x401059
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401070
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010a5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4010a1
cmp edi, eax
jae 0x4010a5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401093
cmp edi, eax
jb 0x4010a9
xor eax, eax
jmp 0x4010b2
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4011b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408a70
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x401200
xor al, al
jmp 0x401220
cmp dword [ebp - 0x7c], 5
jb 0x4011fc
jbe 0x40120c
mov al, 1
jmp 0x401220
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x401220
cmp word [ebp + 0x94], 4
sbb al, al
inc al
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004087de
add ebp, 0xa0
leave
ret

Function at 0x401875
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x20]
mov eax, ebx
lea edi, [ebp - 0xc]
call fcn.004021b2
push dword [eax + 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, edi
call fcn.004021d0
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4018be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4018f2
add esi, 0x1c
mov eax, esi
lea edi, [ebp - 0xc]
call fcn.004021b2
mov eax, dword [eax + 4]
mov ebx, dword [ebx]
push eax
push 0
push 0x40ec3c
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
mov ecx, edi
inc bl
call fcn.004021d0
test bl, bl
je 0x4018f7
or eax, 0xffffffff
jmp 0x40190b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401910
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
mov esi, ecx
call fcn.00408a70
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x40ec44
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401a4d
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
call fcn.00401fd5
add esi, 0x10
lea ebx, [ebp - 0x21c]
call fcn.00402107
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.004010b5
push 0x40ebb0
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x401a4d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x401a4d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x401a4d
push edi
push edi
push 4
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x401a4d
push dword [ebp - 0x214]
xor eax, eax
lea edi, [ebp - 0x220]
push esi
stosd dword es:[edi], eax
xor esi, esi
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, ebx
call fcn.00401cbb
pop ecx
pop ecx
test eax, eax
jne 0x401a3a
push esi
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401a4d
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x214], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087de
leave
ret
Function at 0x401cbb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xd
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x9c], eax
jb 0x401e73
xor ebx, ebx
lea eax, [ebp - 0x8c]
mov edx, edi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x8c], 0x401ca5
mov dword [ebp - 0x88], 0x401cb0
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.00404515
sub dword [ebp + 8], 0xd
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
add edi, 5
mov eax, dword [edi]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x7c], eax
call fcn.0040c537
mov esi, eax
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 8]
push eax
add edi, 8
push edi
lea eax, [ebp - 0x7c]
push eax
push esi
lea edi, [ebp - 0x78]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], ebx
call fcn.004043cb
add esp, 0x14
push dword [ebp - 0x68]
mov edi, eax
lea eax, [ebp - 0x8c]
push eax
call dword [ebp - 0x88]
push dword [ebp - 0x64]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x68], ebx
call dword [ebp - 0x88]
add esp, 0x10
mov dword [ebp - 0x64], ebx
cmp edi, ebx
je 0x401da4
or edi, 0xffffffff
push esi
call fcn.0040c57b
pop ecx
mov eax, edi
jmp 0x401e76
mov ecx, dword [esi]
add esi, 4
mov edi, dword [esi]
push 4
pop eax
add esi, eax
mov ebx, dword [esi]
add esi, eax
mov edx, dword [esi]
add esi, eax
mov dword [ebp - 0x90], edx
mov edx, dword [esi]
push ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x94], edx
add esi, eax
call fcn.0040c537
pop ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
push eax
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
push eax
lea edx, [eax + ebx]
lea eax, [ebx + edi]
add eax, esi
push eax
push ebx
lea eax, [edi + esi]
push eax
add edx, edi
push edi
add edx, esi
push esi
call fcn.00404582
add esp, 0x24
test eax, eax
je 0x401e1d
push dword [ebp - 0x7c]
call fcn.0040c57b
mov esi, dword [ebp - 0x84]
xor edi, edi
pop ecx
inc edi
jmp 0x401d96
mov esi, dword [ebp - 0x80]
push 0
lea eax, [ebp - 0x98]
push eax
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401e5e
cmp dword [ebp - 0x98], esi
jne 0x401e5e
push dword [ebp - 0x7c]
call fcn.0040c57b
pop ecx
push dword [ebp - 0x84]
call fcn.0040c57b
pop ecx
xor eax, eax
jmp 0x401e76
push dword [ebp - 0x7c]
call fcn.0040c57b
pop ecx
push dword [ebp - 0x84]
call fcn.0040c57b
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087de
leave
ret
Function at 0x40280e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
push edi
sub eax, 0x10
call fcn.0040251b
mov esi, eax
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call fcn.00408a70
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x40286f
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004025cb
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4028a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.004010b5
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x4028cd
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x402898

Function at 0x40290e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.004029a7
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40299f
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x40299a
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
cmp edx, edi
je 0x402991
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402991
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x4029a1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004029a7
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x4029ff
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x402a06
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402a03
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402a03
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402a2c
lea edx, [eax + ecx]
jmp 0x402a2e
xor edx, edx
test edx, edx
je 0x402a03
lea eax, [edx + 8]
test eax, eax
je 0x402a03
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x402a5d
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x402a5d
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x402a5f
xor eax, eax
test eax, eax
je 0x402a03
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x402b09
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x402b2c
test esi, esi
jl 0x402b40
cmp esi, dword [edi + 0x10]
jge 0x402b40
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x402b11
lea esi, [edi + 0xc]
call fcn.0040217d
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.004010b5
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x402b52
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.0040bc70
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40220], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40224]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [edi]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c59
cmp dword [ebp - 0x40224], esi
jne 0x402c59
push 4
lea eax, [ebp - 0x4010b]
push 0x40ebd4
push eax
call fcn.00409bd8
add esp, 0xc
test eax, eax
jne 0x402bd8
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x402c5b
push 5
lea eax, [ebp - 0x4010b]
push 0x40ebcc
push eax
call fcn.00409bd8
add esp, 0xc
test eax, eax
jne 0x402c59
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.0040251b
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x40ed10
lea eax, [ebp - 0x40214]
push eax
call fcn.00402d92
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.00402d92
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40220], eax
cmp eax, 0xffffffff
jne 0x402c6b
lea eax, [esi - 0x10]
call fcn.004010b5
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004087de
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040beca
add esp, 0xc
push 1
push ebx
push ebx
push dword [edi]
mov esi, eax
mov dword [ebp - 0x40218], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add eax, dword [ebp - 0x40218]
neg esi
and esi, 0x1ff
add esi, eax
mov dword [ebp - 0x40228], esi
cmp dword [ebp - 0x40218], ebx
jbe 0x402d26
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x402cca
mov dword [ebp - 0x4021c], ecx
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d20
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402d20
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x402caf
jmp 0x402d26
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x402d69
cmp byte [edi + 8], bl
je 0x402d55
lea esi, [edi + 0xc]
lea ebx, [ebp - 0x40214]
call fcn.00402107
mov esi, dword [ebp - 0x40228]
xor ebx, ebx
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x402d69
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x402d79
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.004010b5
mov al, byte [ebp - 0x4020d]
jmp 0x402c5b
Function at 0x406973
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.0040585c
and dword [ebp - 4], 0
cmp dword [0x4112c0], 0
mov ebx, eax
jne 0x406a24
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406ad5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406ad5
push eax
call fcn.004057ea
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4112c0], eax
call esi
push eax
call fcn.004057ea
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4112c4], eax
call esi
push eax
call fcn.004057ea
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4112c8], eax
call esi
push eax
call fcn.004057ea
pop ecx
mov dword [0x4112d0], eax
test eax, eax
je 0x406a24
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004057ea
pop ecx
mov dword [0x4112cc], eax
mov eax, dword [0x4112cc]
cmp eax, ebx
je 0x406a7c
cmp dword [0x4112d0], ebx
je 0x406a7c
push eax
call fcn.00405865
push dword [0x4112d0]
mov esi, eax
call fcn.00405865
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406a7c
test edi, edi
je 0x406a7c
call esi
test eax, eax
je 0x406a73
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406a73
test byte [ebp - 0xc], 1
jne 0x406a7c
or dword [ebp + 0x10], 0x200000
jmp 0x406ab5
mov eax, dword [0x4112c4]
cmp eax, ebx
je 0x406ab5
push eax
call fcn.00405865
pop ecx
test eax, eax
je 0x406ab5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406ab5
mov eax, dword [0x4112c8]
cmp eax, ebx
je 0x406ab5
push eax
call fcn.00405865
pop ecx
test eax, eax
je 0x406ab5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4112c0]
call fcn.00405865
pop ecx
test eax, eax
je 0x406ad5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406ad7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4087de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4109f8]
jne 0x4087e8
repz ret
jmp fcn.0040b605
Function at 0x420b5b
Capabilities:
Parse pe header

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

Function at 0x433310
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx