joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x446580]
mov edi, dword [ebp + 8]
test eax, eax
je 0x415cc2
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x415cb3
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x415c8a
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x415c80
xor ecx, ecx
mov eax, 5
cmp eax, 5
mov edx, 5
je 0x415beb
test eax, eax
mov edx, 3
jne 0x415beb
test ecx, ecx
jne 0x415bb3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
jmp 0x415b80
mov dword [esp + 0x10], edi
lea ebx, [ebp - 0x14]
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 1
call ecx
cmp eax, 6
je 0x415bf5
cmp eax, 8
mov edx, 3
je 0x415bac
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00415aa0
cmp eax, 7
mov edx, eax
jne 0x415beb
mov eax, dword [0x446580]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x415c72
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x415c66
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x415c49
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.DLL_TlsSetValue
sub esp, 8
test eax, eax
jne 0x415c38
call fcn.004198c0
jmp 0x415c38
call fcn.00415800
mov eax, dword [0x446580]
jmp 0x415c2e
call fcn.00415540
mov eax, dword [0x446580]
jmp 0x415c27
mov ecx, dword [eax + 0x18]
xor eax, eax
jmp 0x415b95
mov ebx, dword [eax + 0x28]
call fcn.004198c0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x415b72
call fcn.00415800
mov eax, dword [0x446580]
jmp 0x415b64
call fcn.00415540
mov eax, dword [0x446580]
jmp 0x415b59
Function at 0x415ef0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x446580]
mov edi, dword [ebp + 8]
test eax, eax
je 0x416010
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x416000
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x415fd4
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x415fc0
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call fcn.00415aa0
cmp eax, 7
jne 0x41601f
mov eax, dword [0x446580]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x415fb0
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x415fa0
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x415f80
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.DLL_TlsSetValue
sub esp, 8
test eax, eax
jne 0x415f68
call fcn.004198c0
jmp 0x415f68
call fcn.00415800
mov eax, dword [0x446580]
jmp 0x415f5e
call fcn.00415540
mov eax, dword [0x446580]
jmp 0x415f57
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call fcn.00415ce0
jmp 0x415f42
mov ebx, dword [eax + 0x28]
call fcn.004198c0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x415f22
call fcn.00415800
mov eax, dword [0x446580]
jmp 0x415f14
call fcn.00415540
mov eax, dword [0x446580]
jmp 0x415f09
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x416030
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x416147
mov eax, dword [0x446580]
test eax, eax
je 0x416138
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x416129
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x416100
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00415ce0
cmp eax, 7
jne 0x41615c
mov eax, dword [0x446580]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4160f0
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x4160dd
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x4160c0
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.DLL_TlsSetValue
sub esp, 8
test eax, eax
jne 0x4160ae
call fcn.004198c0
jmp 0x4160ae
call fcn.00415800
mov eax, dword [0x446580]
jmp 0x4160a4
call fcn.00415540
mov eax, dword [0x446580]
jmp 0x41609d
mov ebx, dword [eax + 0x28]
call fcn.004198c0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x416073
call fcn.00415800
mov eax, dword [0x446580]
jmp 0x416065
call fcn.00415540
mov eax, dword [0x446580]
jmp 0x41605a
mov dword [esp], edi
call fcn.00415b40
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll_abort
jmp fcn.00416170
Function at 0x437780
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
sub esp, 0x78
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], 0x40a0a0
mov dword [ebp - 0x38], 0x43c600
mov dword [ebp - 0x30], 0x43791a
mov dword [ebp - 0x2c], esp
mov dword [esp], eax
call fcn.004158b0
mov edx, dword [0x43d744]
test edx, edx
je 0x4378f2
cmp dword [ebp + 8], 0x80
ja 0x4377d8
mov eax, dword [0x43d744]
test eax, eax
jle 0x437808
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.0040b710
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.00415960
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 7
mov dword [ebp - 0x5c], eax
shr eax, 3
lea eax, [eax*4 - 4]
mov dword [ebp - 0x60], eax
mov eax, dword [0x43d750]
test eax, eax
je 0x4378da
mov eax, dword [0x446350]
test eax, eax
jne 0x4378c2
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x446530]
test edx, edx
je 0x4378a7
mov eax, dword [edx]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x446530], eax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x437899
mov eax, dword [0x43d750]
test eax, eax
je 0x437884
mov eax, dword [0x446350]
test eax, eax
je 0x4377ed
mov dword [esp], 0x43d75c
mov dword [ebp - 0x50], 0xffffffff
call fcn.00416740
jmp 0x4377ed
mov dword [esp], 0x43d750
mov dword [ebp - 0x50], 0xffffffff
call fcn.00435510
jmp 0x437863
mov dword [ebp - 0x50], 1
call fcn.0040fac0
jmp 0x43785a
and dword [ebp - 0x5c], 0xfffffff8
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.00437980
mov dword [ebp - 0x58], eax
jmp 0x437853
mov dword [esp], 0x43d75c
mov dword [ebp - 0x50], 0xffffffff
call fcn.004166e0
jmp 0x437838
mov dword [esp], 0x43d750
mov dword [ebp - 0x50], 0xffffffff
call fcn.00435510
jmp 0x43782b
mov dword [esp], 0x411140
call sub.msvcrt.dll_getenv
test eax, eax
je 0x437913
mov eax, 1
lock add dword [0x43d744], eax
jmp 0x4377c6
mov eax, 0xffffffff
jmp 0x437907
Function at 0x401571
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.MSVCRT.dll_wcslen
mov edi, eax
lea eax, [edi + edi + 4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp + 8]
mov esi, eax
push esi
call sub.MSVCRT.dll_wcscpy
xor ebx, ebx
push 0x1e
lea eax, [ebp - 0x20]
push ebx
mov word [esi + edi*2], bx
push eax
mov word [esi + edi*2 + 2], bx
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x20]
mov word [ebp - 0x10], 0x414
mov dword [ebp - 0xa], ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40170d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov word [ebp - 0x28], si
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40175e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401771
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov esi, dword [ebp + 0x10]
push 4
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop esi
leave
ret 0xc
Function at 0x401798
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4018b0
lea eax, [ebp - 0x250]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40187b
push dword [ebp + 8]
lea eax, [ebp - 0x510]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
mov eax, dword [ebp - 0x250]
pop ecx
mov dword [ebp - 0x308], eax
push 1
push esi
push esi
push dword [ebp - 0x234]
call fcn.00405a70
mov ecx, dword [ebp - 0x230]
add eax, ecx
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x2ec], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x238]
adc edx, esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2e4], eax
mov eax, 0x2c0
push eax
mov dword [ebp - 0x2fc], edx
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x510]
jmp 0x40189c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
jmp 0x4018db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop esi
leave
ret 0xc

Function at 0x4018e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401914
mov esi, dword [ebp + 0x10]
mov eax, 0x410
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
push edi
jmp 0x401936
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x401945
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18e88
call fcn.00405ab0
push ebx
push esi
lea ecx, [ebp - 0x18e88]
call fcn.00401acf
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18e88]
push esi
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [esi + 0x208]
push eax
lea eax, [ebp - 0x18c80]
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esi + 0x418]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x18a70], eax
mov eax, dword [esi + 0x41c]
push ebx
push 0x80
push 3
mov dword [ebp - 0x18a6c], eax
push ebx
push 3
lea eax, [ebp - 0x18c80]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
jmp 0x401abf
mov ecx, dword [ebp - 0x18a6c]
mov eax, dword [ebp - 0x18a70]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ebx
push ecx
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x18a60]
push 0x18800
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18a64], eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x18c80]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
push ebx
push ebx
push dword [ebp - 0x23c]
call fcn.00405a70
mov esi, eax
mov eax, dword [ebp - 0x238]
mov ecx, edx
xor edx, edx
add esi, eax
mov eax, dword [ebp - 0x18a64]
adc ecx, edx
mov dword [ebp - 0x18a78], esi
cdq
add eax, dword [ebp - 0x18a70]
mov dword [ebp - 0x18a74], ecx
adc edx, dword [ebp - 0x18a6c]
cmp edx, ecx
jl 0x401a9b
jg 0x401a93
cmp eax, esi
jb 0x401a9b
mov byte [ebp - 0x18a68], bl
jmp 0x401aa2
mov byte [ebp - 0x18a68], 1
mov esi, dword [ebp + 0x10]
mov eax, 0x18c30
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x18e88]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop esi
pop ebx
leave
ret 0xc
Function at 0x401b36
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
lea eax, [ebp - 0x844]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x844]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
mov esi, dword [ebp + 8]
mov word [eax], bx
push esi
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_wcslen
add esp, 0xc
test eax, eax
jbe 0x401ba0
mov edi, esi
cmp word [edi], 0x5c
je 0x401b9d
inc dword [ebp - 4]
inc edi
push esi
inc edi
call sub.MSVCRT.dll_wcslen
cmp dword [ebp - 4], eax
pop ecx
jb 0x401b84
jmp 0x401ba0
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x214]
push esi
push eax
call sub.MSVCRT.dll_wcscpy
cmp dword [ebp - 8], ebx
pop ecx
pop ecx
je 0x401be8
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_swprintf
lea eax, [ebp - 0x214]
push 0x407020
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x214]
push esi
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x18
push ebx
push 0x80
push 4
push ebx
push 3
lea eax, [ebp - 0x214]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401cca
mov ecx, dword [esi + 0x41c]
mov eax, dword [esi + 0x418]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ebx
push ecx
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [esi + 0x428]
push dword [esi + 0x424]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x63c]
call fcn.00401cfc
lea eax, [ebp - 0x63c]
push esi
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [esi + 0x208]
push eax
lea eax, [ebp - 0x434]
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [ebp + 8]
xor ecx, ecx
add eax, dword [esi + 0x418]
mov dword [ebp - 0x22c], 2
adc ecx, dword [esi + 0x41c]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
mov eax, 0x428
push eax
mov dword [ebp - 0x220], ecx
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x63c]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x20
jmp 0x401cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401d43
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp + 8]
call sub.MSVCRT.dll_wcslen
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll__wcsnicmp
add esp, 0x10
test eax, eax
jne 0x401d82
push 0x64
pop eax
jmp 0x401d8b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
leave
ret 4

Function at 0x401d8f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and byte [ebp - 0x1f], 0
lea eax, [ebp - 0x3c]
push esi
push eax
lea eax, [ebp - 0x1c]
xor esi, esi
and word [ebp - 4], si
push eax
mov word [ebp - 0x1c], 0x6b
mov word [ebp - 0x1a], 0x65
mov word [ebp - 0x18], 0x72
mov word [ebp - 0x16], 0x6e
mov word [ebp - 0x14], 0x65
mov word [ebp - 0x12], 0x6c
mov word [ebp - 0x10], 0x33
mov word [ebp - 0xe], 0x32
mov word [ebp - 0xc], 0x2e
mov word [ebp - 0xa], 0x64
mov word [ebp - 8], 0x6c
mov word [ebp - 6], 0x6c
mov byte [ebp - 0x3c], 0x57
mov byte [ebp - 0x3b], 0x6f
mov byte [ebp - 0x3a], 0x77
mov byte [ebp - 0x39], 0x36
mov byte [ebp - 0x38], 0x34
mov byte [ebp - 0x37], 0x45
mov byte [ebp - 0x36], 0x6e
mov byte [ebp - 0x35], 0x61
mov byte [ebp - 0x34], 0x62
mov byte [ebp - 0x33], 0x6c
mov byte [ebp - 0x32], 0x65
mov byte [ebp - 0x31], 0x57
mov byte [ebp - 0x30], 0x6f
mov byte [ebp - 0x2f], 0x77
mov byte [ebp - 0x2e], 0x36
mov byte [ebp - 0x2d], 0x34
mov byte [ebp - 0x2c], 0x46
mov byte [ebp - 0x2b], 0x73
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x65
mov byte [ebp - 0x28], 0x64
mov byte [ebp - 0x27], 0x69
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x63
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x69
mov byte [ebp - 0x21], 0x6f
mov byte [ebp - 0x20], 0x6e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401e7c
push dword [ebp + 8]
call eax
mov esi, eax
mov eax, esi
pop esi
leave
ret 4

Function at 0x402243
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, 0x208
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea eax, [ebp - 4]
push 0
push eax
lea eax, [esi + 0x410]
mov dword [ebp - 4], edi
push eax
call ebx
push eax
call fcn.00402481
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x73c], eax
lea eax, [esi + 0x618]
push eax
mov dword [eax], 0x11c
call fcn.004022e3
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [esi + 0x738], ax
call fcn.004023d7
mov dword [esi + 0x734], eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x208]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [esi + 0x744], 0x3ec
call ebx
mov dword [esi + 0x748], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022e3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
and word [ebp - 2], 0
mov esi, eax
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], 0x6e
push eax
mov word [ebp - 0x12], 0x74
mov word [ebp - 0x10], 0x64
mov word [ebp - 0xe], 0x6c
mov word [ebp - 0xc], 0x6c
mov word [ebp - 0xa], 0x2e
mov word [ebp - 8], 0x64
mov word [ebp - 6], 0x6c
mov word [ebp - 4], 0x6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp + 8], eax
je 0x4023d1
and byte [ebp - 0x16], 0
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov byte [ebp - 0x2c], 0x52
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0x6c
mov byte [ebp - 0x29], 0x47
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x74
mov byte [ebp - 0x26], 0x4e
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x24], 0x56
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x73
mov byte [ebp - 0x20], 0x69
mov byte [ebp - 0x1f], 0x6f
mov byte [ebp - 0x1e], 0x6e
mov byte [ebp - 0x1d], 0x4e
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x6d
mov byte [ebp - 0x1a], 0x62
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], 0x73
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4023c8
lea esi, [edi + 0xc]
lea ecx, [edi + 8]
push esi
add edi, 4
push ecx
push edi
call eax
and word [esi + 2], 0
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4023d7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
and word [ebp - 0x18], 0
and byte [ebp - 6], 0
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x28], 0x6b
push eax
mov word [ebp - 0x26], 0x65
mov word [ebp - 0x24], 0x72
mov word [ebp - 0x22], 0x6e
mov word [ebp - 0x20], 0x65
mov word [ebp - 0x1e], 0x6c
mov word [ebp - 0x1c], 0x33
mov word [ebp - 0x1a], 0x32
mov byte [ebp - 0x14], 0x49
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x57
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x77
mov byte [ebp - 0xf], 0x36
mov byte [ebp - 0xe], 0x34
mov byte [ebp - 0xd], 0x50
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x73
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40247b
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 4]
pop esi
leave
ret