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

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x65b65680
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
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
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x3cb36552
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406539
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40658f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40658f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x406581
cmp esi, ecx
jae 0x40658f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40656f
cmp esi, ecx
jae 0x40658f
cmp word [esi], 0
je 0x40658f
mov eax, esi
jmp 0x406591
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406887
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.00406dd7
lea eax, [ebp - 4]
mov ebx, 0x104
or edi, 0xffffffff
mov dword [ebp - 0x1c], eax
push ebx
mov ecx, eax
mov dword [ebp - 0x14], edi
call fcn.00406dfe
push ebx
push eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406d16
test esi, esi
je 0x4069d4
cmp esi, 0x104
ja 0x4069d4
mov esi, dword [ebp - 4]
call fcn.0040664f
mov ecx, eax
test ecx, ecx
je 0x4069e3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
test esi, esi
je 0x40691d
test esi, 0xffff0000
jne 0x406914
movzx eax, si
lea ecx, [ebp - 0xc]
push eax
call fcn.00406f7d
jmp 0x406929
push esi
call fcn.0040b342
pop ecx
jmp 0x40691f
mov eax, ebx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.00406eab
lea ecx, [ebp - 0xc]
call fcn.00406cc6
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406ffa
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406d76
lea ecx, [ebp - 0x10]
call fcn.00406f62
lea ecx, [ebp - 8]
call fcn.00406dd7
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
push 0x104
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00406dfe
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406d16
test esi, esi
js 0x4069c4
lea ecx, [ebp - 8]
call fcn.00406d3c
lea ecx, [ebp - 4]
call fcn.00406d3c
mov edx, dword [ebp - 8]
test edx, edx
je 0x4069bf
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0xc], ebx
jl 0x4069bf
call fcn.00407244
test eax, eax
je 0x4069bf
mov edi, eax
sub edi, dword [ebp - 4]
sar edi, 1
test edi, edi
sete bl
lea ecx, [ebp - 8]
call fcn.00406f62
lea ecx, [ebp - 0xc]
call fcn.00406f62
lea ecx, [ebp - 4]
call fcn.00406f62
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0x80004005
call fcn.004064b5
int3
Function at 0x4069ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
movzx eax, cl
mov esi, edx
push 0x405d28
sub eax, 0x7fffffff
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406a2b
jle 0x406a88
movzx eax, ax
or eax, 0x80070000
jmp 0x406a88
or dword [ebp - 0x10], 0xffffffff
mov ecx, esi
push 0x32
pop eax
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esi
call fcn.00406dfe
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x405d10
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00406d16
test esi, esi
je 0x406a7b
jle 0x406a77
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x406a88
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
pop edi
pop esi
leave
ret
Function at 0x40d9b3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41500c]
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 0x40d9fe
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040dbd4
test al, al
jne 0x40d9f8
sub edx, 2
cmp edx, edi
jne 0x40d9de
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40da20
lea eax, [edi + 2]
cmp edx, eax
je 0x40da20
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040d8ff
add esp, 0x10
jmp 0x40db1a
push esi
lea ecx, [ebp - 0x255]
call fcn.0040dbd4
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 0x40da63
push dword [ebp - 0x25c]
jmp 0x40da10
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 0x40daa0
cmp word [ebp - 0x226], 0
je 0x40dac1
cmp word [ebp - 0x226], ax
jne 0x40daa0
cmp word [ebp - 0x224], 0
je 0x40dac1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040d8ff
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40db0d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40da7a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40daf5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40db1a
push 0x40d72f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call 0x410690
add esp, 0x10
jmp 0x40daea
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.004073ee
leave
ret

Function at 0x40e884
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x402914
push 0x40290c
push 0x401bd0
push 0x1e
call fcn.0040e7c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e8b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41715c]
call esi
jmp 0x40e8be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e902
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x402924
push 0x40291c
push 0x401bf4
push 0x20
call fcn.0040e7c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e939
push dword [ebp + 8]
mov ecx, esi
call dword [0x41715c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40fb64
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov cl, 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040f8e8
mov dl, 0x39
xor byte [edx], ah
lea eax, [ebp - 0x58]
push eax
call fcn.0040f8f8
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0040f8ad
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40fbd6
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040f8e8
scasb al, byte es:[edi]
outsd dx, dword [esi]
add ah, byte [edi - 0x73]
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x40fc8d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
idiv dword [edi - 0x39c18]
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.0040f8ad
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040f8f8
push eax
push esi
push dword [ebp + 8]
call fcn.0040f8ad
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl

Function at 0x40fd0a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040f8f8
push eax
push esi
push dword [ebp + 8]
call fcn.0040f8ad
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040f8e8
xchg ecx, eax
xchg byte [eax], dl
xor cl, byte [eax - 0x8363]
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid
Function at 0x40ffd7
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40ffbf
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40ffdd
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
add byte [eax], al
invalid
mov edi, dword [eax + 0x24]
add byte [eax], al
add byte [ebx + 0x448d2478], cl
or bh, bh
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41003b
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x410022
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x41002b
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x410035
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x410017
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40ffa1
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x410088
dec eax
je 0x41007f
sub eax, 3
je 0x410076
mov dword [ebp - 4], 0x40
jmp 0x4100a5
mov dword [ebp - 4], 4
jmp 0x41008b
mov dword [ebp - 4], 0x20
jmp 0x41008b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4100d7
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x410057
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040f8e8
retf
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0xe54575a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x2d154e36
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4039e0
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [0x4085c0]
sub esp, 0xc04
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x403b04
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
test esi, esi
jle 0x403a65
cmp esi, 0x400
jge 0x403a65
lea ecx, [esp + 0x10]
lea edx, [esp + 0x410]
push ecx
push str._scimcotst._42
push edx
call edi
lea eax, [esp + 0x41c]
push 0x407324
push eax
call ebp
add esp, 0x14
test eax, eax
je 0x403a75
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x403a75
cmp esi, 0x400
jl 0x403b1d
mov esi, 0x43
push esi
lea edx, [esp + 0x14]
push str._c:cimcotst._42
push edx
call edi
lea eax, [esp + 0x1c]
push 0x407324
push eax
call ebp
add esp, 0x14
test eax, eax
jne 0x403aa2
inc esi
cmp esi, 0x5a
jle 0x403a7a
jmp 0x403ab8
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, 0x5a
jle 0x403af7
mov edx, dword [esp + 0xc18]
mov byte [edx], 0
mov dword [0x4085c0], 0
mov eax, dword [0x4081b0]
push 0x2010
mov ecx, dword [eax + 0x4f4]
push ecx
push str.No_TMP_dir_found
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc04
ret
mov dword [0x4085c0], esi
mov byte [esp + 0x13], 0
jmp 0x403b1d
cmp eax, 0x43
jl 0x403acc
push eax
lea edx, [esp + 0x14]
push str._c:_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, dword [esp + 0xc18]
lea eax, [esp + 0x10]
push esi
push 0
push 0x407ba4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x403b4f
mov ecx, dword [0x4081b0]
push 0x2010
mov edx, dword [ecx + 0x4f4]
push edx
jmp 0x403add
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc04
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4040a3
xor al, al
ret
shr eax, 4
and eax, 1
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4040c3
xor al, al
ret
not eax
shr eax, 4
and eax, 1
ret
Function at 0x4040d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
call fcn.00402aa0
add esp, 4
test al, al
je 0x40410b
mov al, byte [ebx + 2]
lea edi, [ebx + 2]
test al, al
je 0x4040f9
cmp al, 0x5c
jne 0x404164
mov al, byte [ebx + 3]
test al, al
jne 0x404164
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404156
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
call fcn.00402a80
add esp, 4
test al, al
je 0x404228
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebx + 2]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
je 0x404228
inc eax
push 0x5c
push eax
call esi
mov edi, eax
add esp, 8
test edi, edi
jne 0x404164
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404156
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xffffffffffffffff
call fcn.00402cf0
add esp, 4
pop edi
pop esi
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404219
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jb 0x404195
cmp eax, 0x578
ja 0x404195
push eax
call fcn.00402cf0
add esp, 4
pop edi
pop esi
pop ebx
ret
push 0x5c
push ebx
xor esi, esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x4041b0
pop edi
pop esi
mov eax, 0x35
pop ebx
ret
cmp eax, edi
je 0x4041fa
sub eax, ebx
push ebp
mov ebp, eax
mov esi, ebx
lea ecx, [ebp + 1]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
call fcn.004040d0
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
test esi, esi
pop ebp
jne 0x404213
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x404213
push 0xffffffffffffffff
call fcn.00402cf0
add esp, 4
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
and al, 0x10
pop edi
neg al
sbb eax, eax
pop esi
and al, 0xd2
pop ebx
add eax, 0x2e
ret
pop edi
pop esi
mov eax, 0x2e
pop ebx
ret

Function at 0x404240
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404276
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4042b0
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4042b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4042b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4042b0
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4042ca
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov eax, edi
pop edi
pop esi
ret
Function at 0x404320
Capabilities:
Terminate process

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.CreateToolhelp32Snapshot
push esi
call edi
push str.Process32First
push esi
mov ebx, eax
call edi
push str.Process32Next
push esi
mov ebp, eax
call edi
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x404465
test ebp, ebp
je 0x404465
test eax, eax
je 0x404465
push 0
push 2
call ebx
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push ebx
xor edi, edi
mov dword [esp + 0x1c], 0x128
call ebp
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0x38]
push 0x5c
push ecx
call esi
add esp, 8
test eax, eax
je 0x4043b4
lea edx, [esp + 0x38]
push 0x5c
push edx
call esi
add esp, 8
inc eax
jmp 0x4043b8
lea eax, [esp + 0x38]
mov ebp, dword [esp + 0x140]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4043d4
mov edi, dword [esp + 0x1c]
jmp 0x40441c
lea eax, [esp + 0x14]
push eax
push ebx
call dword [esp + 0x18]
test eax, eax
je 0x40441c
lea ecx, [esp + 0x38]
push 0x5c
push ecx
call esi
add esp, 8
test eax, eax
je 0x404401
lea edx, [esp + 0x38]
push 0x5c
push edx
call esi
add esp, 8
inc eax
jmp 0x404405
lea eax, [esp + 0x38]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x404418
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4043d4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov al, byte [esp + 0x144]
test al, al
je 0x404458
test edi, edi
je 0x404458
mov eax, dword [esp + 0x1c]
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404458
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret

Function at 0x404480
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4044af
mov cl, byte [esp + 0xc]
test cl, cl
je 0x40449d
or al, 1
jmp 0x40449f
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4044af
xor eax, eax
pop esi
ret
push 0xffffffffffffffff
call fcn.00402cf0
add esp, 4
pop esi
ret
Function at 0x4044c0
Capabilities:
Copy file

Disassembly:
sub esp, 0x404
push ebx
push esi
mov esi, dword [esp + 0x414]
push edi
push 0
push esi
call fcn.00404480
mov edi, dword [esp + 0x41c]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 8
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x404537
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00402c00
lea ecx, [esp + 0x14]
push ecx
call fcn.004040d0
add esp, 0xc
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x404537
push esi
push edi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x404537
push 0xffffffffffffffff
call fcn.00402cf0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x404
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x404
ret