joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e34
Capabilities:
Check for time delay via gettickcount
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x42c9d8]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0xc
mov eax, 0x423487
call fcn.00414b99
mov esi, dword [ebp + 0x25c]
xor ebx, ebx
cmp dword [0x4306ec], ebx
mov dword [ebp - 0x14], esi
jne 0x40405d
mov ecx, esi
call fcn.00410220
test al, al
je 0x404003
mov ecx, esi
call fcn.00410260
cmp eax, 4
jl 0x404003
push esi
lea ecx, [ebp - 0x10]
call fcn.0040d970
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.0040dcf0
push 0x425458
lea ecx, [ebp - 0x10]
call fcn.0040dd60
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410300
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x18], eax
je 0x403fd5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040dc10
lea ecx, [ebp - 0x10]
call fcn.0040dcf0
cmp word [ebp + 0x234], 0
lea ecx, [ebp - 0x10]
lea eax, [ebp + 0x234]
jne 0x403f07
lea eax, [ebp + 0x2c]
push eax
call fcn.0040dd60
test byte [ebp], 0x10
je 0x403f86
cmp word [ebp + 0x234], 0
push 0x425454
je 0x403f40
lea eax, [ebp + 0x234]
push eax
call fcn.004179c0
test eax, eax
pop ecx
pop ecx
je 0x403fc0
lea eax, [ebp + 0x234]
jmp 0x403f52
lea eax, [ebp + 0x2c]
push eax
call fcn.004179c0
test eax, eax
pop ecx
pop ecx
je 0x403fc0
lea eax, [ebp + 0x2c]
push 0x42544c
push eax
call fcn.004179c0
test eax, eax
pop ecx
pop ecx
je 0x403fc0
lea eax, [ebp - 0x10]
push eax
call fcn.00403e34
test al, al
pop ecx
jne 0x403fc0
lea ecx, [ebp - 0x10]
call fcn.0040dd10
lea ecx, [ebp - 0x10]
call fcn.00410300
push eax
call ebx
jmp 0x403fc0
call esi
lea edi, [eax + 0x3e8]
jmp 0x403fa8
call fcn.0040dd10
lea eax, [ebp - 0x10]
push eax
call fcn.00401ae6
test eax, eax
pop ecx
je 0x403fc0
call fcn.00402d9d
call esi
cmp edi, eax
lea ecx, [ebp - 0x10]
ja 0x403f90
call fcn.0040dd10
lea eax, [ebp - 0x10]
push eax
call fcn.00403e07
pop ecx
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403ede
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
call fcn.0040dd10
mov ecx, dword [ebp - 0x14]
call fcn.00410300
push eax
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.0040e270
mov al, bl
jmp 0x40405f
push 0x7d0
lea ecx, [ebp - 0x14]
call fcn.00410450
mov esi, eax
push 0x401
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00410450
mov edi, eax
push ebx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00410300
push eax
mov ecx, edi
call fcn.00410300
push eax
push dword [0x4306dc]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004104d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004104d0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004147a9
add ebp, 0x254
leave
ret
Function at 0x407f47
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42c9d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x430698]
mov esi, ecx
call fcn.00407f0f
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00418040
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.00407e9d
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.00407eb7
inc esi
cmp esi, 0xc
pop ecx
jl 0x407f76
cmp dword [0x430684], 0
movzx ax, byte [ebp - 5]
movzx eax, ax
pop esi
je 0x407fb5
movzx cx, byte [0x42db47]
cmp ax, cx
je 0x407fbf
or eax, 0xffffffff
jmp 0x407fc1
movzx cx, byte [0x42db4d]
jmp 0x407fab
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004147a9
leave
ret

Function at 0x408823
Capabilities:
Enumerate pe sections

Disassembly:
push 4
mov eax, 0x4239a9
call fcn.00414b99
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + 2]
movzx ecx, word [ebx]
mov word [esi + 4], cx
mov word [esi + 6], ax
xor eax, eax
mov dword [esi], vtable.WzExtraWin32Attr.0
lea edi, [esi + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x18]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
cmp word [esi + 4], 0xa
mov dword [ebp - 4], ecx
mov dword [esi + 0x20], ecx
mov word [esi + 0x24], cx
je 0x408886
push 0x2a8
push dword [0x42c358]
call fcn.004033af
pop ecx
pop ecx
movzx eax, word [esi + 6]
cmp eax, 0x20
jge 0x4088a3
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push 0x428f30
lea eax, [ebp + 0xb]
push eax
call fcn.004187d9
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebx + 0x1c]
add eax, 0xffffffe0
test ax, ax
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0xc], ecx
mov word [esi + 0x24], ax
jbe 0x4088f1
movzx eax, ax
push eax
call fcn.00417a5e
movzx ecx, word [esi + 0x24]
push ecx
add ebx, 0x24
push ebx
push eax
mov dword [esi + 0x20], eax
call fcn.00418040
add esp, 0x10
mov eax, esi
call fcn.00414c38
ret 4
Function at 0x409c17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push edx
push ecx
mov esi, dword [ebp + 0xc]
sub eax, eax
test esi, esi
je 0x409cd8
call fcn.00401b86
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
not eax
test ecx, ecx
je 0x409cd6
test esi, 3
je 0x409c5a
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x409c43
mov edx, ecx
shr ecx, 3
je 0x409cbc
lea ebx, [ebx]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x409c67
mov ecx, edx
and ecx, 7
je 0x409cd6
lea esp, [esp]
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x409cc7
not eax
pop ecx
pop edx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40fcd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424468
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42c9d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
lea ecx, [ebp - 0x18]
call fcn.004142f0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0040dc90
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call ebx
mov edi, eax
test edi, edi
je 0x40fd78
push 2
lea eax, [edi + edi]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414440
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
shr eax, 1
push eax
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x40fd78
lea edx, [esi + 1]
cmp edx, edi
jae 0x40fd54
push 0
lea eax, [esi + esi + 2]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414440
mov ecx, dword [ebp + 8]
mov edi, dword [str.WzWin32.c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004143a0
test al, al
jne 0x40fd78
push 0x5a0
push edi
call fcn.0040358f
add esp, 8
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e250
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fda0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424498
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42c9d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x18]
call fcn.004142e0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040dc90
mov esi, dword [ebp + 8]
push 0
push 0
mov ecx, esi
call fcn.00410300
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
call edi
test eax, eax
jbe 0x40fe2a
push 2
add eax, eax
push eax
lea ecx, [ebp - 0x18]
call fcn.00414440
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
shr eax, 1
push eax
push ecx
mov ecx, esi
call fcn.00410300
push eax
call edi
test eax, eax
jbe 0x40fe2a
push ebx
lea ecx, [ebp - 0x18]
call fcn.00414350
mov ecx, ebx
call fcn.00410260
mov esi, eax
lea ecx, [ebp - 0x18]
add esi, 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040e250
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4147a9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c9d8]
jne 0x4147b3
repz ret
jmp fcn.0041af3a
Function at 0x419b68
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42ccf8]
je 0x419b83
inc edi
cmp edi, 0x17
jb 0x419b74
cmp edi, 0x17
jae 0x419d03
push ebp
push 3
call fcn.00420a3e
cmp eax, 1
pop ecx
je 0x419ccf
push 3
call fcn.00420a3e
test eax, eax
pop ecx
jne 0x419bb7
cmp dword [0x42c9d4], 1
je 0x419ccf
cmp ebx, 0xfc
je 0x419d02
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43a9d0
push ebp
call fcn.0041795b
add esp, 0xc
test eax, eax
je 0x419bed
push esi
push esi
push esi
push esi
push esi
call fcn.0041772c
add esp, 0x14
push 0x104
mov esi, 0x43a9e9
push esi
push 0
mov byte [0x43aaed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419c31
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041795b
add esp, 0xc
test eax, eax
je 0x419c31
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041772c
add esp, 0x14
push esi
call fcn.004178d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419c76
push esi
call fcn.004178d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43ace4
push 0x426164
sub ecx, eax
push ecx
push eax
call fcn.0042098b
add esp, 0x14
test eax, eax
je 0x419c76
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041772c
add esp, 0x14
jmp 0x419c78
xor esi, esi
push 0x426160
push ebx
push ebp
call fcn.0041785c
add esp, 0xc
test eax, eax
je 0x419c98
push esi
push esi
push esi
push esi
push esi
call fcn.0041772c
add esp, 0x14
push dword [edi*8 + 0x42ccfc]
push ebx
push ebp
call fcn.0041785c
add esp, 0xc
test eax, eax
je 0x419cba
push esi
push esi
push esi
push esi
push esi
call fcn.0041772c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004207ce
add esp, 0xc
jmp 0x419d02
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x419d02
cmp ebp, 0xffffffff
je 0x419d02
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42ccfc]
push dword [esi]
call fcn.004178d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4207ce
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041a719
xor ebx, ebx
cmp dword [0x43b4c4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4208a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420984
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x420984
push eax
call fcn.0041a6ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43b4c4], eax
call esi
push eax
call fcn.0041a6ab
mov dword [esp], 0x42635c
push edi
mov dword [0x43b4c8], eax
call esi
push eax
call fcn.0041a6ab
mov dword [0x43b4cc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004198f5
test eax, eax
pop ecx
pop ecx
je 0x420872
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041772c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4208a4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041a6ab
cmp eax, ebx
pop ecx
mov dword [0x43b4d4], eax
je 0x4208a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041a6ab
pop ecx
mov dword [0x43b4d0], eax
mov eax, dword [0x43b4d0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x420929
cmp dword [0x43b4d4], ecx
je 0x420929
push eax
call fcn.0041a722
push dword [0x43b4d4]
mov esi, eax
call fcn.0041a722
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x420929
cmp edi, ebx
je 0x420929
call esi
cmp eax, ebx
je 0x4208f6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4208f6
test byte [ebp - 0x18], 1
jne 0x420929
lea eax, [ebp - 0x10]
push eax
call fcn.0041992c
test eax, eax
pop ecx
je 0x420911
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041772c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x420920
or dword [ebp + 0x10], 0x200000
jmp 0x420964
or dword [ebp + 0x10], 0x40000
jmp 0x420964
mov eax, dword [0x43b4c8]
cmp eax, dword [ebp - 8]
je 0x420964
push eax
call fcn.0041a722
cmp eax, ebx
pop ecx
je 0x420964
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x420964
mov eax, dword [0x43b4cc]
cmp eax, dword [ebp - 8]
je 0x420964
push eax
call fcn.0041a722
cmp eax, ebx
pop ecx
je 0x420964
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43b4c4]
call fcn.0041a722
cmp eax, ebx
pop ecx
je 0x420984
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x420986
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40102d
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x45ecb3
call fcn.0043c280
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
cmp byte [esi + 0x20], 0
mov dword [ebp - 4], 1
jne 0x401231
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
cmp edi, eax
je 0x401137
lea ebx, [edi + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40106f
mov eax, 0x467588
push eax
lea eax, [ebp - 0xd]
push 1
push eax
push str.File_s
lea ecx, [ebp - 0x48]
call fcn.00401741
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401815
push eax
lea eax, [ebp - 0xe]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x18], esp
push 1
push eax
push str.DeleterDeleteFile
call fcn.00401741
sub esp, 0x28
lea eax, [ebp - 0xf]
mov ecx, esp
mov dword [ebp - 0x20], esp
push 1
push eax
push str.ISSetupDLLOp
mov byte [ebp - 4], 3
call fcn.00401741
mov byte [ebp - 4], 2
call fcn.00433272
add esp, 0x58
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040125c
and dword [ebp - 0x18], 0
push 0xc
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x20], esp
push 1
push edi
call fcn.00401717
call fcn.0042d168
add esp, 0x2c
test al, al
je 0x401128
mov eax, dword [ebx]
test eax, eax
jne 0x401108
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401128
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
cmp eax, 0x64
jge 0x401128
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4010df
add edi, 0x28
add ebx, 0x28
cmp edi, dword [esi + 8]
jne 0x401064
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x14]
je 0x401223
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0x20]
test eax, eax
jne 0x401155
mov eax, 0x467588
push eax
lea eax, [ebp - 0xf]
push 1
push eax
push str.Folder_s
lea ecx, [ebp - 0x48]
call fcn.00401741
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00401815
push eax
lea eax, [ebp - 0xe]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x20], esp
push 1
push eax
push 0x4760f8
call fcn.00401741
sub esp, 0x28
lea eax, [ebp - 0xd]
mov ecx, esp
mov dword [ebp - 0x18], esp
push 1
push eax
push str.ISSetupDLLOp
mov byte [ebp - 4], 5
call fcn.00401741
mov byte [ebp - 4], 4
call fcn.00433272
add esp, 0x58
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040125c
xor edi, edi
push 0xc
lea ecx, [ebp - 0x14]
sub esp, 0x28
mov ebx, esp
mov dword [ebp - 0x20], esp
push 1
call fcn.00401c71
push eax
mov ecx, ebx
call fcn.00401717
call fcn.0042d168
add esp, 0x2c
test al, al
je 0x401217
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0x20]
test eax, eax
jne 0x4011fa
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x401217
mov eax, edi
inc edi
cmp eax, 0x64
jge 0x401217
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4011c3
sub dword [ebp - 0x14], 0x28
mov eax, dword [ebp - 0x14]
jmp 0x40113d
cmp byte [esi + 0x21], 0
je 0x401231
push 1
call fcn.004012e5
pop ecx
and byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.00401c3e
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401c3e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4029ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x4029f7
push ebx
push ebx
call fcn.0043c99a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x402a0f
push ebx
push ebx
call fcn.0043c99a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x402a27
push ebx
push ebx
call fcn.0043c99a
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x402a3d
push ebx
push ebx
call fcn.0043c99a
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.0043c2a0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4040be
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov byte [ebp - 0x1c], 0x49
cmp byte [ebp + 0xc], al
mov dword [ebp - 4], eax
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], al
je 0x404124
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x57
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x7a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], al
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401b24
mov eax, dword [ebp + 8]
leave
ret 8
Function at 0x404569
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x45f32e
call fcn.0043c280
sub esp, 0x3a8
push ebx
push esi
lea eax, [ebp - 0x3b4]
push edi
xor ebx, ebx
push eax
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4045ad
lea ecx, [ebp - 0x58]
call fcn.0040475d
lea eax, [ebp - 0x58]
push 0x46a320
push eax
call fcn.0043c99a
push 0x44
xor eax, eax
pop ecx
lea edi, [ebp - 0x1a8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1ac], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov edi, 0x4675b8
mov esi, 0x4675b0
je 0x4046f9
cmp dword [ebp - 0x19c], 1
jne 0x4046f9
lea eax, [ebp - 0xe]
push ebx
push eax
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00401779
push str.123.tmp
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.00404b40
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x40462a
mov eax, 0x467588
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4046d3
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.004048df
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00404a1c
push dword [0x4675ac]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.004023d5
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.0040125c
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040125c
push 0x4764a8
lea ecx, [ebp - 0x3c]
call fcn.00404b40
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00401cec
mov dword [ebp - 0x14], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
jmp 0x404747
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x4046e6
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040125c
lea eax, [ebp - 0xd]
push ebx
push eax
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00401779
push 0x4764a4
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 4
call fcn.00404b40
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00401cec
and byte [ebp - 4], 0
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x64]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret