joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4140d0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413770
cmp dword [0x7fc6a4], 0x37
jne 0x414161
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f50
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403f70
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7fd288]
mov edx, dword [0x7f9704]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x401380
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
test edi, edi
jl 0x4013b2
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
mov eax, ecx
cdq
idiv ebx
mov al, byte [edx + ebp]
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jle 0x40139a
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x4013c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov al, 0x41
mov cl, 0x52
mov byte [esp + 0x1a], al
mov byte [esp + 0x28], al
mov eax, dword [0x4010e0]
push 7
mov dword [esp + 8], eax
lea edx, [esp + 8]
mov byte [esp + 0x1b], cl
mov byte [esp + 0x29], cl
mov ecx, dword [0x4010e4]
push 0x1d
lea eax, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x10], 0x80000002
mov byte [esp + 0x1c], 0x61
mov byte [esp + 0x1d], 0x37
mov byte [esp + 0x1e], 0x76
mov byte [esp + 0x1f], 0x67
mov byte [esp + 0x20], 0x66
mov byte [esp + 0x21], 0x6c
mov byte [esp + 0x22], 0x33
mov byte [esp + 0x23], 0x77
mov byte [esp + 0x24], 0x24
mov byte [esp + 0x25], 0x7d
mov byte [esp + 0x26], 0x5a
mov byte [esp + 0x28], 0x5f
mov byte [esp + 0x29], 0xe
mov byte [esp + 0x2b], 0x17
mov byte [esp + 0x2c], 0x56
mov byte [esp + 0x2d], 0x47
mov byte [esp + 0x2e], 0x6d
mov byte [esp + 0x2f], 0x69
mov byte [esp + 0x30], 0
mov byte [esp + 0x31], 0x46
mov byte [esp + 0x32], 0x19
mov byte [esp + 0x33], 0x71
mov byte [esp + 0x34], 0x50
mov byte [esp + 0x36], 0x48
mov byte [esp + 0x37], 0x12
mov byte [esp + 0x39], 0x78
mov dword [esp + 0x18], ecx
call fcn.00401380
mov eax, dword [esp + 0x10]
add esp, 0x10
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
push 0x20019
push 0
push edx
push eax
call dword [fcn.00401324]
test eax, eax
jne 0x4014bb
mov ecx, dword [esp]
push ecx
call dword [fcn.00401320]
xor eax, eax
add esp, 0x2c
ret
mov eax, 1
add esp, 0x2c
ret

Function at 0x4014d0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
shr eax, 0x14
add esp, 0x20
ret
Function at 0x4029e0
Capabilities:
Extract resource via kernel32 functions
Timestomp file

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push 0x104
push eax
call dword [0x403c04]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x2b], 0x5c
je 0x402a52
mov edi, 0x4011c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x2c]
xor eax, eax
lea edx, [esp + 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4011b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x138]
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4011a4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 1
and ecx, 3
lea eax, [esp + 0x144]
push 0x80000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [0x403c24]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x402b1b
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call ebp
push 0x4011a0
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [0x403c28]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x402b51
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
push 0
push 0
push 2
push 0
push 0
lea ecx, [esp + 0x40]
push 0x40000000
push ecx
call dword [0x403c24]
cmp edi, 0xffffffff
mov esi, eax
jne 0x402b7f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
lea edx, [esp + 0x28]
push 0
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call dword [0x403c2c]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebp
lea eax, [esp + 0x2c]
push 7
push eax
call dword [0x403c0c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x224
ret
Function at 0x402bd0
Capabilities:
Resume thread

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x25c]
push ebx
push esi
push edi
push 0x104
push eax
push 0x4011d8
call dword [fcn.00403c30]
lea ecx, [esp + 0x60]
push 0x104
push ecx
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, eax
lea edx, [esp + 0x60]
push 0x104
lea eax, [esp + 0x64]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
and eax, edi
test esi, eax
je 0x402d32
lea ecx, [esp + 0x164]
push 0x4011cc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x60]
lea eax, [esp + 0x164]
push edx
push eax
call esi
lea ecx, [esp + 0x164]
push 0x4011c4
push ecx
call esi
lea edx, [esp + 0x164]
lea eax, [esp + 0x268]
push edx
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
rep stosd dword es:[edi], eax
xor ecx, ecx
push 0x100
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], cx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x284]
push 0
push ecx
push 0
call dword [fcn.00403c18]
test eax, eax
je 0x402d20
mov edx, dword [esp + 0xc]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x10]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call dword [fcn.00403c14]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x360
ret
Function at 0x409931
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417344]
jne 0x40993b
repz ret
jmp fcn.0040e3dc

Function at 0x41260c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c1d2
and dword [ebp - 0x14], 0
cmp dword [0x43728c], 0
mov dword [ebp - 0x18], eax
jne 0x4126bf
push 0x403754
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412767
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403748
push ebx
call edi
test eax, eax
je 0x412767
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403738
push ebx
mov dword [0x43728c], eax
call edi
push eax
call esi
push 0x403724
push ebx
mov dword [0x437290], eax
call edi
push eax
call esi
push 0x403708
push ebx
mov dword [0x437294], eax
call edi
push eax
call esi
mov dword [0x43729c], eax
test eax, eax
je 0x4126bf
push 0x4036f0
push ebx
call edi
push eax
call esi
mov dword [0x437298], eax
mov eax, dword [0x437298]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412718
cmp dword [0x43729c], ecx
je 0x412718
push eax
call esi
push dword [0x43729c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412718
test ebx, ebx
je 0x412718
call edi
test eax, eax
je 0x41270f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41270f
test byte [ebp - 8], 1
jne 0x412718
or dword [ebp + 0x10], 0x200000
jmp 0x41274b
mov eax, dword [0x437290]
cmp eax, dword [ebp - 0x18]
je 0x41274b
push eax
call esi
test eax, eax
je 0x41274b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41274b
mov eax, dword [0x437294]
cmp eax, dword [ebp - 0x18]
je 0x41274b
push eax
call esi
test eax, eax
je 0x41274b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43728c]
call esi
test eax, eax
je 0x412767
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412769
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409931
leave
ret
Function at 0x4145a0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413be0
cmp dword [0x7d73e4], 0x37
jne 0x414623
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x403f58
call edi
push 0
lea eax, [esp + 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40401c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
push 0x404048
call edi
push 0
lea edx, [esp + 0xc08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
pop edi
mov eax, dword [0x7d7fc8]
mov edx, dword [0x7d4444]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x401371
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x8c]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401390
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x401384
add esi, 0x10000
push esi
mov eax, 0x40300c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004012d9
mov dword [0x4030fe], eax
push 0x403010
push 0x3e8
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4013d4
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4013e5
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4013f9
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x401407
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x401423
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.00401165
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x401476
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4014ec
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b88
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x4012a4
push dword [ebp + 0xc]
call fcn.00401272
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x401757
add eax, dword [ebp + 8]
call eax
leave
ret 8
Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6e602279
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x33774eb
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401020
Capabilities:
Terminate process

Disassembly:
push esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401063
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401063
push 0x800
mov ecx, esi
call dword [0x4222ec]
call esi
test eax, eax
jne 0x4010a2
push 0x4225d4
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4010a2
push str.LdrEnumerateLoadedModules
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4010a2
push 0
push 0x401100
push 0
mov ecx, esi
call dword [0x4222ec]
call esi
push 0xa
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
jne 0x4010c6
push 0x3eb
call fcn.00403a00
add esp, 4
push 0xc000001d
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004078c0
cmp eax, 0x5010300
jae 0x4010ea
push 0x3ec
call fcn.00403a00
add esp, 4
push 0x47e
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0041015e
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402360
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
movzx eax, byte [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp + 0x24]
mov dword [ebp - 8], edi
cmp esi, 0xffffffff
je 0x402405
push 0
push 0
xorps xmm0, xmm0
movq qword [ebp - 0x40], xmm0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4023fb
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x402405
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x402464
test ebx, ebx
je 0x40240f
mov dword [ebx], 0
test edi, edi
je 0x402419
mov dword [edi], 0
xor esi, esi
nop dword [eax + eax]
lea eax, [ebp - 0x38]
push eax
call fcn.00402640
add esp, 4
test al, al
jne 0x40243a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40244f
mov eax, 0x51eb851f
mul dword [ebp - 0x14]
shr edx, 5
cmp edx, 2
je 0x402462
mov edi, 0x10dc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x402420
jmp 0x402464
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test edi, edi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0041043e
mov esp, ebp
pop ebp
ret
Function at 0x403020
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0x20
xor esi, esi
push eax
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4030d0
cmp eax, 0x20
ja 0x4030d0
call fcn.00408af0
push esi
mov ebx, eax
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x48]
push eax
push 1
push str.D:P_A_CIOI_FA___SY__A_CIOI_FA___BA__A_CIOI_FRFX___BU_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
je 0x4030d0
mov eax, dword [ebp - 0x48]
push ebx
push dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x44]
push eax
push str._sTemp_asw._08x_08x
push edi
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x4c], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4030d8
movzx eax, word [ebp - 0x44]
push ebx
push dword [ebp - 0x58]
push eax
push str._c:_asw._08x_08x
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4030d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4030e6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0041043e
mov esp, ebp
pop ebp
ret
Function at 0x403110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xa
push str.EDAT_ECOO
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x403229
push edi
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push 0x400000
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x403228
cmp ebx, 0x40
jae 0x403228
test edi, edi
je 0x403228
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
ja 0x403186
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40317b
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [eax + ebx*2], cx
jmp 0x403192
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00403b20
cmp dword [esi + 0x14], 8
jb 0x40319a
mov esi, dword [esi]
lea eax, [ebx + edi]
xor edx, edx
xor ecx, ecx
cmp edi, eax
cmova ebx, edx
test ebx, ebx
je 0x403228
cmp ebx, 0x20
jb 0x403212
lea eax, [edi - 1]
add eax, ebx
lea edx, [ebx - 1]
lea edx, [esi + edx*2]
cmp esi, eax
ja 0x4031c2
cmp edx, edi
jae 0x403212
mov eax, ebx
and eax, 0xffffffe0
nop word [eax + eax]
movq xmm1, qword [edi]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
add ecx, 0x20
movups xmmword [esi], xmm1
movq xmm1, qword [edi + 8]
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movq xmm1, qword [edi + 0x10]
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movq xmm1, qword [edi + 0x18]
add edi, 0x20
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add esi, 0x40
cmp ecx, eax
jne 0x4031d0
cmp ecx, ebx
je 0x403228
sub edi, ecx
movzx eax, byte [edi + ecx]
lea esi, [esi + 2]
inc ecx
mov word [esi - 2], ax
cmp ecx, ebx
jne 0x403218
pop edi
pop esi
pop ebx
pop ebp
ret