joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402fa0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fc0
mov dword [ebp - 8], GetSystemMetrics
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402fcf
mov ebx, 0x40fe48
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fe4
mov ecx, dword [0x4291f8]
add ecx, eax
push ecx
call fcn.004031b2
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040319c
test eax, eax
je 0x403147
test byte [ebp + 0x17], 0x80
je 0x403130
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40bdb8
mov dword [ebp - 0xc], eax
call fcn.004061fb
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403192
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403034
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.0040319c
test eax, eax
je 0x403147
sub dword [ebp + 0x14], esi
mov dword [0x40bdd0], edi
mov dword [0x40bdd4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40bdb8
mov dword [0x40bdd8], ebx
mov dword [0x40bddc], eax
call fcn.0040621b
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403128
mov esi, dword [0x40bdd8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429254], 1
mov edi, eax
je 0x4030dc
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4030a3
cmp dword [ebp + 0x14], 0
jne 0x4030dc
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.0040501f
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40311d
cmp dword [ebp + 0x10], eax
jne 0x403105
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40312c
cmp dword [ebp - 0x14], esi
jne 0x40312c
add dword [ebp - 4], esi
jmp 0x403111
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40bdd8]
cmp dword [ebp - 0x10], 1
jne 0x403057
jmp 0x403192
cmp dword [ebp + 0x14], eax
jg 0x403027
jmp 0x403192
push 0xfffffffffffffffc
jmp 0x403149
push 0xfffffffffffffffe
jmp 0x403149
test edi, edi
je 0x403187
cmp dword [ebp + 0x14], esi
jge 0x40313c
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040319c
test eax, eax
jne 0x40318f
push 0xfffffffffffffffd
pop eax
jmp 0x403195
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403157
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.0040319c
test eax, eax
je 0x403147
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40312c
cmp esi, dword [ebp + 0x10]
jne 0x40312c
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40314c
jmp 0x403192
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4054f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4256a0], 0x44
push eax
xor eax, eax
push 0x4256a0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40552b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4055b5
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004059bc
mov edi, eax
cmp edi, 0xffffffff
je 0x4055f6
test byte [esp + 0x10], 1
push esi
je 0x4055d8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4055de
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4055e7
xor eax, eax
inc eax
jmp 0x4055f8
test byte [esp + 0x10], 4
jne 0x4055f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055fd
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004058c8
test bl, 8
mov dword [ebp - 8], eax
je 0x40563c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429228], eax
jmp 0x4057b9
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405656
test eax, eax
je 0x405767
test bl, 2
je 0x405767
mov esi, 0x4246a0
push edi
push esi
call fcn.00405d75
cmp dword [ebp + 8], 0
je 0x405675
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40567b
push edi
call fcn.0040580c
cmp word [edi], 0
jne 0x40568b
cmp word [0x4246a0], 0x5c
jne 0x405696
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40575c
cmp word [ebp - 0x22c], 0x2e
jne 0x4056e0
cmp word [ebp - 0x22a], 0
je 0x40573f
cmp word [ebp - 0x22a], 0x2e
jne 0x4056e0
cmp word [ebp - 0x228], 0
je 0x40573f
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405d75
test byte [ebp - 0x258], 0x10
je 0x40570b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40573f
push dword [ebp + 0xc]
push edi
call fcn.004055fd
jmp 0x40573f
push dword [ebp - 4]
push edi
call fcn.004055b5
test eax, eax
jne 0x405737
cmp dword [ebp - 4], eax
je 0x40572f
push edi
push 0xfffffffffffffff1
call fcn.0040501f
push 0
push edi
call fcn.00405c0f
jmp 0x40573f
inc dword [0x429228]
jmp 0x40573f
push edi
push 0xfffffffffffffff2
call fcn.0040501f
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4056b8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405767
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4057b9
cmp dword [ebp - 8], esi
jne 0x40577b
inc dword [0x429228]
jmp 0x4057b9
push edi
call fcn.004060b8
test eax, eax
je 0x4057b9
push edi
call fcn.004057c0
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004055b5
test eax, eax
jne 0x4057b1
cmp dword [ebp - 4], esi
je 0x405773
push edi
push 0xfffffffffffffff1
call fcn.0040501f
push esi
push edi
call fcn.00405c0f
jmp 0x4057b9
push edi
push 0xffffffffffffffe5
call fcn.0040501f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4058c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424ea0
push esi
call fcn.00405d75
push esi
call fcn.0040586b
mov edi, eax
test edi, edi
jne 0x4058e9
xor eax, eax
jmp 0x405941
push edi
call fcn.00406009
test byte [0x4291b8], 0x80
je 0x405906
mov ax, word [edi]
test ax, ax
je 0x4058e5
cmp ax, 0x5c
je 0x4058e5
sub edi, esi
sar edi, 1
jmp 0x405920
call fcn.004060b8
test eax, eax
je 0x40591a
test byte [eax], 0x10
je 0x4058e5
push esi
call fcn.0040580c
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40590c
call fcn.004057c0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059db
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4059e1
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40950c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x409510]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405a60
test edi, edi
jne 0x405a1d
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405a5a
Function at 0x405a93
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x425d38
push 0x409530
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405ae2
push 1
push 0
push esi
call fcn.004059e1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405c09
cmp eax, edi
jg 0x405c09
mov esi, 0x426538
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405c09
cmp eax, edi
jg 0x405c09
push esi
push ebx
push str._ls_ls_r_n
push 0x425938
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4291b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d97
push 4
push 0xc0000000
push esi
call fcn.004059e1
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405c09
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405c02
push edi
push esi
push ebp
call fcn.00405a64
test eax, eax
je 0x405c02
push str._Rename__r_n
push esi
call fcn.00405946
test eax, eax
jne 0x405b98
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bcd
add eax, 0xa
push 0x409514
push eax
call fcn.00405946
mov ebp, eax
test ebp, ebp
je 0x405bc9
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405bba
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405bb4
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405bcf
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x425938
push eax
call fcn.0040599c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405c42
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405cb6
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405ca3
cmp dword [ebp + 0x14], 1
je 0x405ca6
cmp dword [ebp + 0x14], 2
je 0x405ca6
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40618d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d3c], 0
push esi
jne 0x4061c4
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 0x40619e
mov dword [ecx*4 + 0x426d38], eax
inc ecx
cmp ecx, 0x100
jl 0x406199
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4061f5
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 + 0x426d38]
xor eax, esi
inc ecx
dec edx
jne 0x4061d7
pop edi
not eax
pop esi
ret 0xc

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401970
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407e90
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407e90
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4019d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40c07c]
test esi, esi
jle 0x401af0
mov eax, dword [0x40c080]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401a04
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a87
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019f0
mov dword [esp], ebx
call fcn.00402350
mov edi, eax
test eax, eax
je 0x401b17
mov eax, dword [0x40c080]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402490
mov edx, dword [0x40c080]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401af7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a80
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a90
add dword [0x40c07c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40c080]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401970
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a0e
mov eax, dword [0x40c080]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401970
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401970
lea esi, [esi]
nop
Function at 0x401fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40c098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40c090]
sub esp, 4
test ebx, ebx
je 0x402025
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40201e
test esi, esi
je 0x40201e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402000
mov dword [esp], 0x40c098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402350
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402375
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402380
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402375
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4023c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4023be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4023ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4023b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x408320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call fcn.004017a0
mov eax, dword [0x40c044]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x25], 0x56717341
mov dword [ebp - 0x21], 0x546e415a
mov dword [ebp - 0x1d], 0x63554168
mov dword [ebp - 0x19], 0x59494675
mov dword [ebp - 0x15], 0x78486d6b
mov dword [ebp - 0x11], 0x6c6c642e
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x25]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4083ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_load_DLL._Error_code:__d_n
call fcn.00408434
mov eax, 1
jmp 0x40841a
mov dword [esp + 4], str.oqkIQEMZvlcRgFQnPTxj
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x408400
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_get_function_address._Error_code:__d_n
call fcn.00408434
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 1
jmp 0x40841a
mov eax, dword [ebp - 0x34]
call eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 0
mov edx, dword [ebp - 0xc]
sub edx, dword [0x40c044]
je 0x40842a
call fcn.004016b0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401cf6
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040da60
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401d21
push dword [0x416fb8]
call fcn.004053b1
and eax, eax
je 0x401d21
push dword [0x416fb8]
call fcn.00405420
call fcn.00403000
push dword [0x416ff8]
call fcn.0040a1b4
push dword [0x416fe4]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [0x417010]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011a5

Function at 0x401d59
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x17
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401d60
call fcn.0040da60
mov edx, dword [esp + 0x68]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 4]
call fcn.00405060
mov edx, dword [esp + 0x70]
lea ecx, [esp + 8]
call fcn.00405060
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0xc]
call fcn.00405060
mov edx, dword [0x416ff8]
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040dac0
lea eax, [esp + 0x14]
push eax
call fcn.0040d960
push dword [esp + 0x10]
call sub.SHLWAPI.DLL_PathQuoteSpacesW
mov edx, dword [esp + 0xc]
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040dac0
mov edx, dword [esp + 0x14]
push edx
call fcn.0040dac0
mov edx, 0x416026
push edx
call fcn.0040dac0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dac0
lea eax, [esp + 0x18]
push eax
call fcn.0040d960
lea eax, [esp + 0x18]
lea ebp, [esp + 0x18]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, str.open
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x14]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0x18]
push eax
call sub.SHELL32.DLL_ShellExecuteExW
mov dword [esp + 0x54], eax
push 0x19
call fcn.0040551c
lea eax, [esp + 0x58]
push eax
lea ebp, [esp + 0x1c]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x401e83
mov ebx, dword [esp + 0x58]
cmp ebx, 0x103
je 0x401e83
jmp 0x401e85
jmp 0x401e56
mov eax, dword [esp + 0x58]
jmp 0x401e8d
push dword [esp + 8]
call fcn.0040d9f0
push dword [esp + 0x10]
call fcn.0040d9f0
push dword [esp]
call fcn.0040d9f0
push dword [esp + 4]
call fcn.0040d9f0
push dword [esp + 0xc]
call fcn.0040d9f0
push dword [esp + 0x14]
call fcn.0040d9f0
add esp, 0x5c
pop ebx
pop ebp
ret 0x10