joyce8/EMBER2024-capa huggingface dataset:
Function at 0x117a2e9
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x12cf8c8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x34], ebx
je 0x117a30e
cmp ebx, esi
jne 0x117a318
mov eax, 0x80004003
jmp 0x117a3e9
push edi
push 0x20
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [ebp - 0x3c], eax
push edi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], esi
call fcn.0117a19a
cmp eax, esi
jl 0x117a3e8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
push eax
push 1
push esi
push esi
lea eax, [ebp - 0x44]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x117a3c4
cmp dword [ebp - 0x2c], esi
je 0x117a3c4
mov eax, dword [ebp - 0x30]
mov ecx, eax
not ecx
test cl, 1
jne 0x117a376
mov eax, 0x80004005
jmp 0x117a3e8
shr eax, 1
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
jne 0x117a399
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x8007000e
jmp 0x117a3e8
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and word [ebx + eax], 0
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x2c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x117a3e5
mov dword [ebx], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x117a3d6
call esi
jmp 0x117a3e2
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0115fe73
leave
ret 0xc
Function at 0x117a4ee
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x1286a60
call fcn.01160168
sub esp, 0x268
mov eax, dword [0x12cf8c8]
push esi
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x10], eax
call fcn.01045d3e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.01044ec9
mov byte [ebp - 4], 1
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x270]
call fcn.010527df
test eax, eax
jge 0x117a546
mov esi, eax
jmp 0x117a687
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x274], eax
jne 0x117a566
xor esi, esi
jmp 0x117a687
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcscmp]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x234]
push eax
push 0x1005244
call ebx
test eax, eax
pop ecx
pop ecx
je 0x117a65c
lea eax, [ebp - 0x234]
push eax
push 0x1012eec
call ebx
test eax, eax
pop ecx
pop ecx
je 0x117a65c
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.01045b22
mov byte [ebp - 4], 2
test byte [ebp - 0x260], 0x10
je 0x117a62c
push dword [ebp - 0x264]
call edi
test eax, eax
jne 0x117a64d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x117a64d
push 0x1012ee4
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.01045b22
mov byte [ebp - 4], 3
push dword [ebp - 0x26c]
call fcn.0117a4ee
mov esi, eax
test esi, esi
jl 0x117a6be
push dword [ebp - 0x264]
call edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.010328fa
jmp 0x117a64d
push 0x80
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x117a64d
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.010328fa
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x117a574
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
pop edi
pop ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.010454b8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.0115fe73
leave
ret 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.010328fa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.010328fa
jmp 0x117a685
Function at 0x117cc01
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x1286f0c
call fcn.01160168
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.0117b346
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebx + 0x10], 0x1013050
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x1c]
mov dword [ebx], 0x10130d0
mov dword [ebx + 0x10], 0x10130a4
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], eax
call fcn.0117c0af
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov al, byte [ebp + 0x10]
lea ecx, [ebx + 0x38]
mov byte [ebx + 0x30], al
mov dword [ebx + 0x34], esi
call fcn.0116d883
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x44], esi
mov byte [ebx + 0x48], 0
call fcn.01044ec9
mov byte [ebp - 4], 4
mov dword [ebx + 0x50], esi
mov byte [ebp - 4], 5
mov dword [ebx + 0x54], esi
mov byte [ebp - 4], 6
mov al, byte [ebp + 0x14]
mov byte [ebx + 0x58], al
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x68], esi
mov byte [ebp - 4], 7
mov dword [ebx + 0x6c], esi
mov byte [ebp - 4], 8
lea edi, [ebx + 0x70]
mov esi, 0x101af84
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x80]
xor esi, esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov byte [ebp - 4], 9
lea ecx, [ebx + 0x8c]
call fcn.01044ec9
mov byte [ebp - 4], 0xa
lea eax, [ebx + 0x70]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
push 0x17
push esi
push 0x1011320
lea ecx, [ebx + 0x54]
call fcn.0117bfbb
or dword [ebp - 4], 0xffffffff
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x11809da
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x12873dc
call fcn.01160168
mov eax, 0x1018
call fcn.01160330
mov eax, dword [0x12cf8c8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x1014], ebx
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x1014]
push edx
push eax
call fcn.01180810
mov edi, eax
cmp edi, ebx
jge 0x1180a38
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180a31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x1180b2e
cmp dword [ebp - 0x1014], ebx
jne 0x1180a5e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180a54
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x1180b2e
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x101c], edi
mov byte [ebp - 4], 1
xor eax, eax
cmp edi, 0xffffffff
setne al
cmp eax, ebx
je 0x1180b07
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1180ae6
cmp dword [ebp - 0x1018], ebx
je 0x1180b47
mov eax, dword [ebp - 0x1014]
lea edx, [ebp - 0x1020]
push edx
push dword [ebp - 0x1018]
lea edx, [ebp - 0x1010]
push edx
mov dword [ebp - 0x1020], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
mov dword [ebp - 0x1024], eax
jl 0x1180b6d
mov ecx, dword [ebp - 0x1020]
xor eax, eax
cmp ecx, dword [ebp - 0x1018]
sete al
cmp eax, ebx
je 0x1180b07
push ebx
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push edi
mov dword [ebp - 0x1018], ebx
call esi
cmp eax, ebx
jne 0x1180a91
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01082732
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180b29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0115fe73
leave
ret 8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01082732
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180b69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x1180b2e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01082732
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180b8f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1024]
jmp 0x1180b2e
Function at 0x118377e
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
mov edi, ecx
call esi
push dword [edi]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
mov edi, eax
call esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x1183dc5
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1287662
call fcn.01160168
push ecx
push esi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.01044f98
test eax, eax
jge 0x1183df8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1183dee
mov dword [eax], 0xf1fe
mov esi, 0x80004005
jmp 0x1183e78
lea ecx, [ebp + 8]
call fcn.01044f6f
lea ecx, [ebp - 0x10]
call fcn.01044ec9
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0107cd79
test eax, eax
jl 0x1183e39
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1183e39
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1183e67
mov dword [eax], 0xf23c
jmp 0x1183e67
lea ecx, [ebp + 8]
call fcn.0107bfb4
lea ecx, [ebp + 8]
call fcn.0118377e
cmp eax, 0xffffffff
je 0x1183e5a
test al, 1
jne 0x1183e5a
test al, 0x10
je 0x1183e5a
xor esi, esi
jmp 0x1183e6c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1183e67
mov dword [eax], 0xf23b
mov esi, 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010454b8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1185cae
Capabilities:
Get common file path
Get session user name

Disassembly:
mov eax, 0x12878f0
call fcn.01160168
sub esp, 0x420
mov eax, dword [0x12cf8c8]
push ebx
push esi
mov esi, ecx
and dword [esi + 8], 0
mov dword [esi + 4], 0x1004720
mov dword [ebp - 0x10], eax
mov eax, dword [0x12ce0a0]
push edi
lea edi, [esi + 0x44]
mov dword [ebp - 0x42c], esi
mov dword [edi], eax
and dword [ebp - 4], 0
lea ecx, [esi + 0x64]
call fcn.01044ec9
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [0x12ce0a0]
mov dword [esi + 0x68], eax
mov byte [ebp - 4], 2
and dword [esi + 0x7c], 0
mov byte [ebp - 4], 3
fld1
fstp dword [esi + 0x20]
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov byte [esi + 0xe], 0
mov byte [esi + 0xf], 0
mov byte [esi + 0x10], 0
mov byte [esi + 0x11], 0
mov byte [esi + 0x12], 0
mov byte [esi + 0x13], bl
mov byte [esi + 0x14], bl
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], ebx
mov byte [esi + 0x15], bl
mov dword [esi + 0x18], 0x3e99999a
mov dword [esi + 0x1c], 0x3faccccd
mov eax, dword [0x12ce0a0]
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x424]
call fcn.0103299e
lea ecx, [ebp - 0x428]
push ecx
push eax
push 3
mov dword [ebp - 0x428], ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1185daf
push dword [ebp - 0x428]
lea ecx, [ebp - 0x424]
call fcn.0103299e
lea ecx, [ebp - 0x428]
push ecx
push eax
push 3
call sub.Secur32.dll_GetUserNameExW
push 0xffffffffffffffff
lea ecx, [ebp - 0x424]
call fcn.01032a0b
lea eax, [ebp - 0x424]
push eax
mov ecx, edi
call fcn.01044b40
xor ecx, ecx
mov eax, 0xb4
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov word [ebp - 0x218], cx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x5c], ecx
mov byte [esi + 0x60], cl
mov dword [esi + 0x78], ecx
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push eax
mov edi, 0x104
push edi
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x34], 0x1388
mov dword [esi + 0x3c], 0x4e2
mov dword [esi + 0x40], 0x12c
mov dword [esi + 0x6c], 3
mov dword [esi + 0x70], 2
mov dword [esi + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x103
lea ecx, [esi + 0x64]
lea eax, [ebp - 0x420]
jb 0x1185e61
lea eax, [ebp - 0x218]
push eax
call fcn.01032977
push 0x17
push 0
push 0x1011290
lea ecx, [esi + 0x7c]
call fcn.0110250b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x424]
call fcn.010328fa
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0115fe73
leave
ret
Function at 0x1193280
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x1288b5b
call fcn.01160168
push ecx
push esi
mov esi, ecx
and dword [esi + 4], 0
mov dword [esi], 0x1013bac
and dword [esi + 8], 0
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.011af644
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x10]
call fcn.011af644
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.011af644
mov byte [ebp - 4], 3
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 4
mov byte [esi + 0x30], 0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x11958c0
Capabilities:
Send data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x11958d3
mov dword [eax], ebx
cmp dword [ebp + 0xc], ebx
je 0x1195932
mov edi, dword [ebp + 0x10]
cmp edi, 1
jge 0x11958ec
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov edi, eax
lea esi, [edi + edi + 4]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01160330
cmp esp, ebx
mov dword [ebp + 0x10], esp
je 0x1195932
call dword [sym.imp.KERNEL32.dll_GetACP]
push ebx
push ebx
push esi
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
jle 0x1195932
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
jmp 0x1195934
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1195943
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1195962
xor eax, eax
inc eax
leave
ret
mov eax, dword [ebp - 4]
shr eax, 6
and eax, 1
leave
ret
Function at 0x1196321
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x12cf8c8]
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x80000000
push ecx
mov dword [ebp - 0x410], eax
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x40c], eax
jne 0x119636e
mov eax, 0x80004005
jmp 0x11963e5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
lea ecx, [ebp - 0x408]
push ecx
mov edi, 0x400
push edi
lea ecx, [ebp - 0x404]
push ecx
push eax
jmp 0x11963c4
cmp dword [ebp - 0x408], ebx
je 0x11963d5
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x410]
call fcn.01195a8c
push ebx
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], ebx
call esi
test eax, eax
jne 0x119638e
mov ebx, 0x80004005
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0115fe73
leave
ret 8
Function at 0x1196ac6
Capabilities:
Clear file content
Copy file
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x1289106
call fcn.01160168
sub esp, 0x41c
mov eax, dword [0x12cf8c8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x428], edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x420], ebx
jne 0x1196b18
mov esi, 0x80004005
jmp 0x1196cbf
lea ecx, [ebp - 0x418]
call fcn.01044ec9
mov byte [ebp - 4], 1
mov ecx, dword [0x12d28f8]
mov eax, dword [ecx]
lea edx, [ebp - 0x418]
push edx
call dword [eax + 0x3c]
cmp eax, ebx
jge 0x1196b44
mov esi, eax
jmp 0x1196cb1
lea eax, [ebp - 0x418]
push eax
push ebx
push 0x101445c
mov ecx, eax
call fcn.01195f0d
cmp eax, ebx
jl 0x1196b3d
push edi
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor esi, esi
mov byte [ebp - 0x411], bl
lea eax, [ebp - 0x424]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x420]
mov dword [ebp - 0x424], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1196c00
cmp esi, ebx
mov dword [ebp - 0x41c], ebx
jne 0x1196bd1
push 0xc
lea eax, [ebp - 0x410]
push 0x101444c
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1196bf1
push ebx
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1196bf8
mov byte [ebp - 0x411], 1
add esi, dword [ebp - 0x41c]
jmp 0x1196c07
mov byte [ebp - 0x411], 1
cmp dword [ebp - 0x424], ebx
je 0x1196c1b
cmp byte [ebp - 0x411], bl
je 0x1196b83
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [ebp - 0x420]
call fcn.011b9d68
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x64
pop edi
jbe 0x1196ca0
cmp byte [ebp - 0x411], bl
jne 0x1196ca0
push dword [ebp - 0x428]
lea ecx, [ebp - 0x41c]
call fcn.01045d3e
mov byte [ebp - 4], 2
push ebx
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
cmp esi, ebx
jge 0x1196c81
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.010454b8
jmp 0x1196cb1
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.010454b8
xor esi, esi
jmp 0x1196cb1
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x80004005
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x418]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x420]
call fcn.011b9dc9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0115fe73
leave
ret 0xc
Function at 0x1198063
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x128940d
call fcn.01160168
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x10], esi
mov dword [esi], fcn.01195a58
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x3c]
call fcn.01044ec9
mov byte [ebp - 4], 1
mov eax, dword [0x12ce0a0]
mov dword [esi + 0x40], eax
mov byte [ebp - 4], 2
mov eax, dword [0x12ce0a0]
mov dword [esi + 0x44], eax
mov byte [ebp - 4], 3
mov eax, dword [0x12ce0a0]
mov dword [esi + 0x48], eax
mov byte [ebp - 4], 4
lea ecx, [esi + 0x4c]
call fcn.01197f46
mov byte [ebp - 4], 5
mov eax, dword [0x12ce0a0]
mov dword [esi + 0x68], eax
mov byte [ebp - 4], 6
mov eax, dword [0x12ce0a0]
mov dword [esi + 0x6c], eax
mov byte [ebp - 4], 7
mov eax, dword [0x12ce0a0]
mov dword [esi + 0x70], eax
mov byte [ebp - 4], 8
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov byte [ebp - 4], 9
mov eax, dword [0x12ce0a0]
mov dword [esi + 0x80], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 8]
or dword [esi + 0x30], 0xffffffff
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x39], bl
mov byte [esi + 0x38], bl
mov byte [esi + 0x3a], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x84], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x88], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x119837d
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov eax, 0x1289443
call fcn.01160168
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push 2
mov edi, ecx
mov dword [eax], esi
call fcn.0119814f
cmp byte [ebp + 0xc], 0
jne 0x1198439
push esi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [ebp - 0x10], 1
je 0x11983ca
test byte [ebp - 0x10], 2
jne 0x11983ca
push esi
push 1
call dword [sym.imp.WININET.dll_InternetAutodial]
push esi
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
cmp eax, esi
jne 0x119840b
push ebx
lea eax, [ebp - 0x14]
lea ecx, [edi + 0x4c]
push eax
call fcn.01197ff1
mov dword [ebp - 4], esi
mov eax, dword [eax]
push esi
push dword [edi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetGoOnlineW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010328fa
test bl, bl
pop ebx
je 0x1198410
push esi
push 0xd
jmp 0x1198471
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x4c]
call fcn.01197ff1
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax]
push esi
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010328fa
push esi
push esi
push 3
mov ecx, edi
call fcn.0119814f
xor eax, eax
cmp byte [ebp + 0xc], al
push esi
setne al
push esi
push esi
push eax
push 0x10148e8
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x119846e
cmp byte [edi + 0x39], 0
jne 0x119846e
xor eax, eax
jmp 0x119847d
push esi
push 0xe
mov ecx, edi
push 0x80004005
call fcn.011981a1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8