joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f02
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422254], 0
push esi
jne 0x405f39
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f13
mov dword [ecx*4 + 0x422250], eax
inc ecx
cmp ecx, 0x100
jl 0x405f0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f6a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422250]
xor eax, esi
inc ecx
dec edx
jne 0x405f4c
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x46ec10ae
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x44ce75cd
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40ede0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x104
push eax
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4974ac
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x4974c8
push eax
call fcn.00401fc0
lea eax, [ebp - 0x20c]
push eax
push 0x4974e4
call fcn.0040ef30
add esp, 0x18
test al, al
jne 0x40ef08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x40ef08
cmp byte [ebp + 0xc], 0
je 0x40ee68
push 0
jmp 0x40ef0f
push 0x4974ac
lea eax, [ebp - 0x414]
push 0x4974fc
push eax
call fcn.00401fc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
push 0x4974e4
call fcn.0040ef30
add esp, 8
test al, al
jne 0x40ef08
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4974ac
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x4970f8
push eax
call fcn.00401fc0
lea eax, [ebp - 0x20c]
push eax
push 0x4974e4
call fcn.0040ef30
add esp, 0x18
mov ecx, esi
test al, al
je 0x40ef04
lea eax, [ebp - 0x20c]
push eax
jmp 0x40ef11
push 0
jmp 0x40ef11
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00402130
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x40ef30
Capabilities:
Extract resource via kernel32 functions
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x4973a0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ef5b
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push edi
mov dword [ebp - 8], eax
call esi
push 0x4973b0
lea eax, [ebp - 4]
push edi
push eax
call fcn.004733a4
add esp, 0xc
push 0x82
push edi
call esi
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40efb8
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push eax
push ebx
push 1
push dword [ebp - 8]
call fcn.004736ef
push dword [ebp - 4]
call fcn.0047351f
add esp, 0x14
mov al, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43ba60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
add edi, esi
cmp esi, edi
jae 0x43ba97
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
mov eax, edi
sub eax, esi
push eax
push esi
push dword [0x4bc118]
call ebx
test eax, eax
je 0x43ba9e
cmp eax, 0xffffffff
je 0x43ba9e
add esi, eax
cmp esi, edi
jb 0x43ba78
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret

Function at 0x43bd60
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Resolve dns
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 1
push 2
mov dword [ebp - 0x124], 0
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43bdaa
push 0x4a3214
call fcn.0046b670
push eax
push 0x4a3214
jmp 0x43beb2
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x118], xmm0
mov cx, word [eax + 8]
mov word [ebp - 0x118], cx
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x114]
push eax
call fcn.00471f50
add esp, 0xc
push 0x5ab3
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x116], ax
lea eax, [ebp - 0x118]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x43be3c
push 0x4a3244
call fcn.0046b670
push eax
push 0x4a3244
jmp 0x43beb2
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x10
push eax
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43be71
push 0x4a3270
call fcn.0046b670
push eax
push 0x4a3270
jmp 0x43beb2
push 0
push edi
call dword [sym.imp.WS2_32.dll_listen]
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [0x4bc118], eax
cmp eax, 0xffffffff
jne 0x43bea1
push 0x4a32a4
call fcn.0046b670
push eax
push 0x4a32a4
jmp 0x43beb2
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call fcn.0046b670
push eax
push 0
call fcn.0046b800
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x43d320
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
mov dword [ebp - 0x11c], 0
call fcn.00471730
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jb 0x43d385
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x43d3c9
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x43d3c9
cmp eax, 1
jne 0x43d3af
cmp word [ebp - 0xc], 2
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x43d3c9
cmp byte [ebp - 6], 1
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x445a80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48be0b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
test eax, eax
je 0x445b01
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [edi + 0x34]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x34]
call fcn.00445920
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x445b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48be38
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CResizer.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x2c], 0x32
mov dword [esi + 0x30], 0x43
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov byte [esi + 0x34], 1
test eax, eax
je 0x445bb1
push eax
call fcn.004466a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46f510
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x46f597
push esi
push edi
call fcn.00471b44
add esp, 4
mov esi, eax
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46f58d
push 0x4aa720
push esi
call fcn.0046f670
mov ecx, dword [ebp + 0x14]
add esp, 8
push eax
call fcn.0046b290
push 0x498c1c
push esi
call fcn.0046f670
mov ecx, dword [ebp + 0x10]
add esp, 8
push eax
call fcn.0046b290
push 0x49719c
push esi
call fcn.0046f670
mov ecx, dword [ebp + 0xc]
add esp, 8
push eax
call fcn.0046b290
mov bl, 1
push esi
call fcn.00471b0c
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47950d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x47953a
cmp dword [ebp - 0x398], 0
je 0x479704
cmp dword [ebp + 0xc], 1
je 0x479704
cmp dword [ebp + 0xc], 8
jne 0x4796cc
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
dec edx
stc
invalid
call [ebx - 0x6b45a80]
invalid
inc dword [eax]
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
invalid
test dword [ecx + edi*8 - 1], edx
invalid

Function at 0x479720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00478824
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
jmp [esi + eax*8]
test dword [ebp + 0x26fffffc], ebx
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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
mov ebx, 0x408f6c
nop
mov ecx, 0x3d2a5760
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x3f6d54ee
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x428cba
Capabilities:
Encode data using xor

Disassembly:
fisub word [ebp + 0x1c75b620]
cmp byte [0x382081], ah
and byte [eax], bl
mov dword [ecx], eax
adc ebx, dword [ecx]
cdq
xchg ecx, eax
or byte [ebp + 0x4f6a3f8], 0x98
pop ds
rcl dl, 0xfa
xor byte [edi + 0x3d7e20ac], dh
dec edi
clc
fcomp st(1)
sahf
jg 0x428cca
cmp dh, byte [ecx]
and byte [eax], ah
xor bh, cl
scasb al, byte es:[edi]
stosd dword es:[edi], eax
invalid
Function at 0x403b53
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x469ab0
call fcn.00461cc8
push ecx
push ebx
push esi
mov esi, ecx
push 4
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.00403c57
mov dword [ebx], 0x47047c
xor ebx, ebx
mov dword [esi + 0x28], 4
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x18], 0x470494
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov byte [esi + 0x2c], 1
call fcn.00403c90
lea ecx, [esi + 0x80]
mov byte [esi + 0x7c], bl
push 0xf
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x90]
mov byte [esi + 0x8c], bl
mov byte [esi + 0x8d], bl
push 0xf
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0xa0]
mov byte [esi + 0x9c], bl
mov byte [esi + 0x9d], bl
mov byte [esi + 0x9e], bl
push 0xf
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0xac]
push 0xf
mov byte [ebp - 4], 5
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xb8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 8
mov dword [eax], 0x47048c
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403c90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x469af0
call fcn.00461cc8
push ecx
push ebx
push esi
push edi
push 0xf
mov esi, ecx
pop edi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0xc]
push edi
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x18]
push edi
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x24]
push edi
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x34]
mov byte [esi + 0x30], bl
push edi
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x40]
push edi
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4081e3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x46a2e8
call fcn.00461cc8
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x4843d0], bl
je 0x408250
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x408216
push 0x106
mov ecx, esi
call fcn.0040152b
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x408233
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x40822b
mov word [ecx + edx*2], bx
mov dword [esi + 4], edx
pop edi
cmp eax, ebx
pop esi
jbe 0x40824c
cmp eax, 0x104
ja 0x40824c
push 1
pop eax
jmp 0x4082a3
xor eax, eax
jmp 0x4082a3
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040589c
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
call fcn.0040819c
test al, al
je 0x408298
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004082b2
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.004014ed
push dword [ebp - 0x24]
call fcn.0040675c
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.0040675c
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4083a6
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 8

Function at 0x40843f
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x46a310
call fcn.00461cc8
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x4843d0], bl
push esi
jne 0x40847e
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.004084ef
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call fcn.004083a6
push dword [ebp - 0x24]
mov bl, al
call fcn.0040675c
pop ecx
mov al, bl
jmp 0x4084df
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
je 0x408494
mov al, 1
jmp 0x4084df
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040152b
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call fcn.0040a07d
test al, al
je 0x4084d4
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.0040675c
cmp esi, ebx
pop ecx
setne al
jmp 0x4084df
push dword [ebp - 0x18]
call fcn.0040675c
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x408541
Capabilities:
Delete directory

Disassembly:
mov eax, 0x46a338
call fcn.00461cc8
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x4843d0], bl
push esi
push dword [ebp + 8]
jne 0x40857c
lea eax, [ebp - 0x24]
push eax
call fcn.004084ef
push dword [eax]
call fcn.004083bc
push dword [ebp - 0x24]
mov bl, al
call fcn.0040675c
pop ecx
mov al, bl
jmp 0x4085d1
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
test eax, eax
je 0x40858c
mov al, 1
jmp 0x4085d1
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040152b
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call fcn.0040a07d
push dword [ebp - 0x18]
test al, al
je 0x4085c9
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.0040675c
cmp esi, ebx
pop ecx
setne al
jmp 0x4085d1
call fcn.0040675c
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4085e1
Capabilities:
Move file

Disassembly:
mov eax, 0x46a35c
call fcn.00461cc8
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [0x4843d0], bl
push esi
push dword [ebp + 0xc]
jne 0x40863b
lea eax, [ebp - 0x3c]
push eax
call fcn.004084ef
mov esi, dword [eax]
push dword [ebp + 8]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
call fcn.004084ef
mov eax, dword [eax]
push esi
push eax
call fcn.00408429
push dword [ebp - 0x30]
mov bl, al
call fcn.0040675c
push dword [ebp - 0x3c]
call fcn.0040675c
pop ecx
mov al, bl
pop ecx
jmp 0x4086ca
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
call esi
test eax, eax
je 0x40864e
mov al, 1
jmp 0x4086ca
push 0xf
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040152b
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040152b
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004083ce
push dword [ebp - 0x18]
test al, al
je 0x4086b9
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.0040675c
push dword [ebp - 0x24]
call fcn.0040675c
pop ecx
cmp esi, ebx
pop ecx
setne al
jmp 0x4086ca
call fcn.0040675c
push dword [ebp - 0x24]
call fcn.0040675c
pop ecx
xor al, al
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8