joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430a11
Capabilities:
Print debug messages

Disassembly:
push 0xa4
mov eax, 0x52c38e
call fcn.004e49d2
mov edi, edx
mov esi, ecx
push 7
lea ecx, [ebp - 0xb0]
call fcn.004112f7
xor ebx, ebx
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call fcn.0045bbdb
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.004264be
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x98], esp
push eax
call fcn.0041140f
push str.timestamp__timestamp
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.004126d5
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041163b
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.00416ab1
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.00427ba9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
push esi
call fcn.004113dd
push 0x5b15d0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.004126d5
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.0041163b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
push edi
call fcn.00411451
push str.data
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.004126d5
mov ecx, eax
call fcn.0041163b
lea ecx, [ebp - 0x48]
call fcn.0041343f
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041345e
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov esi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
push 0x550680
call esi
push ecx
push dword [0x5ea150]
lea ecx, [ebp - 0x94]
call fcn.0045c8f0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 8
push eax
mov ecx, 0x5ea158
call fcn.0041272d
lea ecx, [ebp - 0x94]
call fcn.0045c98b
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00416ab1
lea ecx, [ebp - 0x48]
call fcn.0040f5b8
lea ecx, [ebp - 0xb0]
call fcn.0041159b
call fcn.004e497c
ret
Function at 0x459b3a
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x531dc6
call fcn.004e49d2
mov esi, edx
mov edi, ecx
cmp esi, 0xa
jle 0x459b72
push esi
push 0x137
push str.GetUniqueTempDir
push str._s:_d___depth_too_large:__d
push 1
push 0
call fcn.0043a0a0
add esp, 0x18
xor al, al
jmp 0x459c73
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], edx
jb 0x459b81
mov eax, dword [edi]
jmp 0x459b83
mov eax, edi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 7
pop ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edx
call fcn.004599ec
test al, al
jne 0x459bc1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x140
push str.GetUniqueTempDir
push str._s:_d___GetSysTempPath_failed:__d
jmp 0x459c8f
test esi, esi
jle 0x459c43
push 0x50
pop eax
cdq
idiv esi
cmp eax, ebx
cmovg ebx, eax
and dword [ebp - 0x44], 0
mov dword [ebp - 0x48], ebx
test esi, esi
jle 0x459c43
push ebx
lea ecx, [ebp - 0x40]
call fcn.00459aff
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0042ac92
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.00427ba9
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446be8
cmp dword [eax + 0x14], 8
jb 0x459c16
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x40]
push 0
neg ebx
push 1
sbb bl, bl
call fcn.00427ba9
add bl, 1
jne 0x459c79
mov ebx, dword [ebp - 0x44]
inc ebx
mov dword [ebp - 0x44], ebx
cmp ebx, esi
mov ebx, dword [ebp - 0x48]
jl 0x459bdb
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446be8
push eax
mov ecx, edi
call fcn.00427b2c
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00427ba9
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00427ba9
mov al, bl
call fcn.004e497c
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x153
push str.GetUniqueTempDir
push str._s:_d___CreateDirectory_failed:__d
push 1
push 0
call fcn.0043a0a0
add esp, 0x18
xor bl, bl
jmp 0x459c65

Function at 0x459f2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov edi, edx
jb 0x459f3e
mov ecx, dword [ecx]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x459f8f
cmp dword [edi + 0x14], 0x10
lea ebx, [edi + 0x10]
jb 0x459f69
mov edi, dword [edi]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebx]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x459f8f
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x459f8f
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x459fc3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x459faa
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
push 0x5b8b34
push str._s___write_file_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c9fe
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x532415
call fcn.004e49d2
push 0x105
lea eax, [ebp - 0x220]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x45caaf
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.00426582
push 0x5b9d8c
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x238]
call fcn.004250a2
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
push 1
lea ecx, [ebp - 0x250]
call fcn.00427ba9
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push esi
push 1
lea ecx, [ebp - 0x238]
mov edi, eax
call fcn.00427ba9
test edi, edi
je 0x45caaf
push str.SetProcessDpiAwareness
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x45caa8
push 2
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, esi
call fcn.004e497c
ret
Function at 0x45cbf0
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0x50
mov eax, 0x532478
call fcn.004e49d2
mov dword [ebp - 0x4c], ecx
mov eax, 0x3a98
xor ebx, ebx
mov dword [ebp - 0x44], eax
push 2
pop edi
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x45cd14
lea eax, [ebp - 0x44]
push eax
push esi
push 0
push 0xe
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x45cc61
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor esi, esi
inc ebx
cmp ebx, 3
jge 0x45cce3
mov eax, dword [ebp - 0x44]
jmp 0x45cc09
test edi, edi
jne 0x45cce3
mov eax, esi
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x45ccd4
push 2
pop edx
mov ecx, dword [ebx + 0xc]
cmp word [ecx], dx
jne 0x45ccca
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0x16
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ecx + 4]
push eax
push edx
call dword [sym.imp.WS2_32.dll_inet_ntop]
test eax, eax
je 0x45ccc7
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0042738f
and dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.00424286
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00427ba9
push 2
pop edx
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x45cc77
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x45cc6d
mov esi, dword [ebp - 0x50]
jmp 0x45ccfa
push edi
push str.GetLocalIPv4Addresses
push str._s___GetAdaptersAddresses_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x14
test esi, esi
je 0x45cd0e
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
call fcn.004e497c
ret
push str.GetLocalIPv4Addresses
push str._s___HeapAlloc_failed
push 0
push 0
call fcn.0043a0a0
add esp, 0x10
lea ecx, [ebp - 0x5c]
push str.GetLocalIPv4Addresses:2192:_memory_allocation_failed
call fcn.0040ea4b
push 0x5ddb58
lea eax, [ebp - 0x5c]
push eax
call fcn.004fda0a
int3
Function at 0x4b1640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 4
and edi, 0xf
inc eax
mov dword [ebp - 8], 0
movzx ecx, ax
xor esi, esi
mov dword [ebp - 4], 0x409
mov dword [ebp + 8], ecx
movzx eax, word [ebp + esi*4 - 8]
push eax
push ecx
push 6
push dword [0x5eca58]
call dword [sym.imp.KERNEL32.DLL_FindResourceExW]
test eax, eax
je 0x4b16c5
push eax
push dword [0x5eca58]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4b16c5
push eax
call ebx
test eax, eax
je 0x4b16c5
test edi, edi
jle 0x4b16be
mov edx, edi
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
add eax, 2
sub edx, 1
jne 0x4b16b0
movzx ecx, word [eax]
test ecx, ecx
jne 0x4b16d0
inc esi
cmp esi, 2
jae 0x4b16da
mov ecx, dword [ebp + 8]
jmp 0x4b1671
pop edi
pop esi
add eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x5aeae4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9af075
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 0x9af09c
call fcn.00951578
mov dword [eax], esi
call fcn.00951565
push 0x16
pop esi
mov dword [eax], esi
call fcn.009521ba
mov eax, esi
jmp 0x9af0f1
test dword [ebp + 0xc], 0xfffffff9
jne 0x9af082
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9af0c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0095158b
pop ecx
call fcn.00951565
mov eax, dword [eax]
jmp 0x9af0f1
test al, 0x10
jne 0x9af0ef
test al, 1
je 0x9af0ef
test byte [ebp + 0xc], 2
je 0x9af0ef
call fcn.00951578
mov dword [eax], 5
call fcn.00951565
mov dword [eax], 0xd
jmp 0x9af0c0
xor eax, eax
pop esi
pop ebp
ret

Function at 0x7ffe53f2
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
push es
pop ds
add al, 4
sub al, 4
add al, 0
pushf
popf
push eax
pop eax
not eax
not eax
push eax
pop eax
add al, 4
sub al, 4
inc esi
dec esi
not eax
not eax
add al, 0
xor eax, ecx
xor eax, ecx
and al, 0xff
not eax
not eax
add al, 0
not eax
not eax
add al, 0
pushf
popf
and al, 0xff
push bx
inc esp
inc esp
stc
call 0x7ffe543a
pop edx
push bx
inc esp
inc esp
xor dx, dx
inc esi
dec esi
pushf
popf
cld
add edx, 0xd5e0
pushf
popf
inc esi
dec esi
xor ecx, ecx
cld
mov cl, 0x1e
xor byte [ecx + edx], 0xab
loop 0x7ffe545a
nop
inc esi
dec esi
push dword fs:[0x24]
add al, 0
pop dword [edx + 0xa]
not eax
not eax
cld
mov cl, 0xff
pushf
popf
push edx
loop 0x7ffe547a
and al, 0xff
xor eax, ecx
xor eax, ecx
stc
mov dword [edx + 0x11], 0xffffacbb
not eax
not eax
push es
pop ds
mov ecx, dword [eax + 0x2c]
nop
mov dword [edx + 0x1b], ecx
mov dword [edx + 0x100], ecx
push eax
pop eax
nop
mov dword [eax + 0x2c], esp
inc esi
dec esi
push 0
add al, 4
sub al, 4
cld
push 0
push bx
inc esp
inc esp
push 0
add al, 0
not eax
not eax
nop
push 0
pushf
popf
inc esi
dec esi
push 0x30
stc
push 0x20
push 0
push es
pop ds
stc
push 0
push eax
pop eax
add edx, 0xffff7f2f
add al, 4
sub al, 4
cld
push edx
add al, 4
sub al, 4
push edx
add al, 0
xor eax, ecx
xor eax, ecx
nop
push 0
add al, 4
sub al, 4
and al, 0xff
call dword [edx + 0x8214]
clc
add esp, 0x3f8
xor eax, eax
stc
inc esi
dec esi
inc eax
inc esi
dec esi
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x38182bed
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x719d6f20
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x42d450
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x42d472
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42d479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42d468
mov eax, 1
add ebx, ebx
jne 0x42d48b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42d480
jne 0x42d49c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d480
xor ecx, ecx
sub eax, 3
jb 0x42d4b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42d522
mov ebp, eax
add ebx, ebx
jne 0x42d4bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42d4c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42d4ec
inc ecx
add ebx, ebx
jne 0x42d4d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42d4cd
jne 0x42d4e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d4cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42d50c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42d4fd
jmp 0x42d46e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42d50c
add edi, ecx
jmp 0x42d46e
pop esi
mov edi, esi
mov ecx, 0xc71
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42d52a
cmp byte [edi], 6
jne 0x42d52a
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 eax, ebx
loop 0x42d52f
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42d59a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d92c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d9f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42d55c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d9f8]
or eax, eax
je 0x42d598
mov dword [ebx], eax
add ebx, 4
jmp 0x42d579
popal
ret
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42d5cb
cmp al, 0xef
ja 0x42d5be
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42d5a0
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42d5ad
popal
jmp 0x419778
Function at 0x412420
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4361b8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x440b60]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x88]
push esi
call fcn.00412360
add esp, 4
test al, al
jne 0x4124c5
cmp dword [esi + 0x18], 0x10
jb 0x412463
mov eax, dword [esi + 4]
jmp 0x412466
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4124c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4124c5
push esi
lea eax, [esp + 0xc]
push str.Failed_to_create_directory
push eax
call fcn.00403b90
add esp, 0xc
push 0
push 0
push 2
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x90], 0
call fcn.00411c00
push 0x43e0cc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], vtable.win32::CErrorException.0
call fcn.004177be
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x7c
ret

Function at 0x412650
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x43622b
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x440b60]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x440b60]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a0]
push 0x437d08
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403620
push 0x437d2c
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x1b0], 0
call fcn.00403620
mov esi, 0x10
add esp, 0x18
cmp dword [esp + 0x2c], esi
jb 0x4126d8
mov edx, dword [esp + 0x18]
push edx
call fcn.00417000
add esp, 4
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x4126e6
lea eax, [esp + 0x34]
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412740
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
mov edi, 0x437534
lea esi, [esp + 0x78]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x412728
mov edi, 0x437d28
lea esi, [esp + 0x78]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x41277d
lea ecx, [esp + 0x4c]
push ecx
push ebx
call ebp
test eax, eax
jne 0x412700
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 0x10
cmp dword [esp + 0x48], esi
jb 0x412753
mov eax, dword [esp + 0x34]
push eax
call fcn.00417000
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0041760b
add esp, 0x188
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x48], 0x10
jb 0x412798
mov edx, dword [esp + 0x34]
push edx
call fcn.00417000
add esp, 4
xor al, al
jmp 0x412755

Function at 0x413520
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x28]
mov dx, word [esp]
mov eax, dword [esp + 0x2c]
mov word [ecx], dx
mov cx, word [esp + 0x20]
mov word [eax], cx
add esp, 0x24
ret
Function at 0x41a05d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41a08a
call fcn.00418ef7
mov dword [eax], esi
call fcn.00418ee4
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00417720
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41a066
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a0b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00418f0a
pop ecx
call fcn.00418ee4
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41a0e0
test al, 1
je 0x41a0e0
test byte [esp + 0xc], 2
je 0x41a0e0
call fcn.00418ef7
mov dword [eax], 5
call fcn.00418ee4
mov dword [eax], 0xd
jmp 0x41a0b0
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41a125
call fcn.00418ef7
mov dword [eax], esi
call fcn.00418ee4
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00417720
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a143
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00418f0a
pop ecx
jmp 0x41a120
test byte [esp + 0xc], 0x80
je 0x41a14f
and eax, 0xfffffffe
jmp 0x41a152
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x41a134
xor eax, eax
pop esi
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x4e2b2b0d
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
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 0x431024
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x5a732afe
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x48558d
Capabilities:
Read file on windows

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

Function at 0x48854b
Capabilities:
Set environment variable

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x204b4ea2
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
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
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
mov ecx, 0x6de04ed3
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219