joyce8/EMBER2024-capa huggingface dataset:
Function at 0x117a5db
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x1286c4e
call fcn.01160118
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.01045e8e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.01044f5e
mov byte [ebp - 4], 1
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x270]
call fcn.010527d5
test eax, eax
jge 0x117a633
mov esi, eax
jmp 0x117a774
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x274], eax
jne 0x117a653
xor esi, esi
jmp 0x117a774
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 0x117a749
lea eax, [ebp - 0x234]
push eax
push 0x1012eec
call ebx
test eax, eax
pop ecx
pop ecx
je 0x117a749
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.01045c7c
mov byte [ebp - 4], 2
test byte [ebp - 0x260], 0x10
je 0x117a719
push dword [ebp - 0x264]
call edi
test eax, eax
jne 0x117a73a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x117a73a
push 0x1012ee4
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.01045c7c
mov byte [ebp - 4], 3
push dword [ebp - 0x26c]
call fcn.0117a5db
mov esi, eax
test esi, esi
jl 0x117a7ab
push dword [ebp - 0x264]
call edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.0103290a
jmp 0x117a73a
push 0x80
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x117a73a
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.0103290a
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x117a661
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.0104508a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.0104508a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.0115fe1a
leave
ret 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.0103290a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.0103290a
jmp 0x117a772
Function at 0x117cd1a
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x12870fa
call fcn.01160118
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.0117b456
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.0117c1c8
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.0116d934
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x44], esi
mov byte [ebx + 0x48], 0
call fcn.01044f5e
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.01044f5e
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.0117c0e8
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 0x1180b1a
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x12875ca
call fcn.01160118
mov eax, 0x1018
call fcn.011602e0
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.01180950
mov edi, eax
cmp edi, ebx
jge 0x1180b78
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180b71
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x1180c6e
cmp dword [ebp - 0x1014], ebx
jne 0x1180b9e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180b94
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x1180c6e
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
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 0x1180c47
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1180c26
cmp dword [ebp - 0x1018], ebx
je 0x1180c87
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 0x1180cad
mov ecx, dword [ebp - 0x1020]
xor eax, eax
cmp ecx, dword [ebp - 0x1018]
sete al
cmp eax, ebx
je 0x1180c47
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 0x1180bd1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01082628
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180c69
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.0115fe1a
leave
ret 8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01082628
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180ca9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x1180c6e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01082628
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180ccf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1024]
jmp 0x1180c6e
Function at 0x1183842
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 0x1183e89
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1287848
call fcn.01160118
push ecx
push esi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.01045054
test eax, eax
jge 0x1183ebc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1183eb2
mov dword [eax], 0xf1fe
mov esi, 0x80004005
jmp 0x1183f3c
lea ecx, [ebp + 8]
call fcn.0104502b
lea ecx, [ebp - 0x10]
call fcn.01044f5e
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0107cd0a
test eax, eax
jl 0x1183efd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1183efd
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1183f2b
mov dword [eax], 0xf23c
jmp 0x1183f2b
lea ecx, [ebp + 8]
call fcn.0107bf40
lea ecx, [ebp + 8]
call fcn.01183842
cmp eax, 0xffffffff
je 0x1183f1e
test al, 1
jne 0x1183f1e
test al, 0x10
je 0x1183f1e
xor esi, esi
jmp 0x1183f30
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1183f2b
mov dword [eax], 0xf23b
mov esi, 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0104508a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0104508a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1185d72
Capabilities:
Get common file path
Get session user name

Disassembly:
mov eax, 0x1287ad6
call fcn.01160118
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.01044f5e
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.01032987
lea ecx, [ebp - 0x428]
push ecx
push eax
push 3
mov dword [ebp - 0x428], ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1185e73
push dword [ebp - 0x428]
lea ecx, [ebp - 0x424]
call fcn.01032987
lea ecx, [ebp - 0x428]
push ecx
push eax
push 3
call sub.Secur32.dll_GetUserNameExW
push 0xffffffffffffffff
lea ecx, [ebp - 0x424]
call fcn.010329f4
lea eax, [ebp - 0x424]
push eax
mov ecx, edi
call fcn.01044bd5
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 0x1185f25
lea eax, [ebp - 0x218]
push eax
call fcn.01044f8b
push 0x17
push 0
push 0x1011290
lea ecx, [esi + 0x7c]
call fcn.01102b9d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x424]
call fcn.0103290a
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.0115fe1a
leave
ret
Function at 0x119333d
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x1288d41
call fcn.01160118
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.0105d453
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x10]
call fcn.0105d453
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.0105d453
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 0x1195999
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 0x11959ac
mov dword [eax], ebx
cmp dword [ebp + 0xc], ebx
je 0x1195a0b
mov edi, dword [ebp + 0x10]
cmp edi, 1
jge 0x11959c5
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.011602e0
cmp esp, ebx
mov dword [ebp + 0x10], esp
je 0x1195a0b
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 0x1195a0b
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
jmp 0x1195a0d
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1195a1c
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 0x1195a3b
xor eax, eax
inc eax
leave
ret
mov eax, dword [ebp - 4]
shr eax, 6
and eax, 1
leave
ret
Function at 0x11963e9
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 SysReAllocString
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 0x1196436
mov eax, 0x80004005
jmp 0x11964ad
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 0x119648c
cmp dword [ebp - 0x408], ebx
je 0x119649d
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x410]
call fcn.01195b5d
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 0x1196456
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.0115fe1a
leave
ret 8
Function at 0x1196b8e
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, 0x12892ec
call fcn.01160118
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 0x1196be0
mov esi, 0x80004005
jmp 0x1196d87
lea ecx, [ebp - 0x418]
call fcn.01044f5e
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 0x1196c0c
mov esi, eax
jmp 0x1196d79
lea eax, [ebp - 0x418]
push eax
push ebx
push 0x101445c
mov ecx, eax
call fcn.01195fde
cmp eax, ebx
jl 0x1196c05
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 0x1196cc8
cmp esi, ebx
mov dword [ebp - 0x41c], ebx
jne 0x1196c99
push 0xc
lea eax, [ebp - 0x410]
push 0x101444c
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1196cb9
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 0x1196cc0
mov byte [ebp - 0x411], 1
add esi, dword [ebp - 0x41c]
jmp 0x1196ccf
mov byte [ebp - 0x411], 1
cmp dword [ebp - 0x424], ebx
je 0x1196ce3
cmp byte [ebp - 0x411], bl
je 0x1196c4b
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [ebp - 0x420]
call fcn.011b9d79
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x64
pop edi
jbe 0x1196d68
cmp byte [ebp - 0x411], bl
jne 0x1196d68
push dword [ebp - 0x428]
lea ecx, [ebp - 0x41c]
call fcn.01045e8e
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 0x1196d49
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.0104508a
jmp 0x1196d79
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.0104508a
xor esi, esi
jmp 0x1196d79
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.0104508a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x420]
call fcn.011b9dda
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0115fe1a
leave
ret 0xc
Function at 0x119812b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1289770
call fcn.01160118
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x10], esi
mov dword [esi], fcn.011a555f
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x3c]
call fcn.01044f5e
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.0119800e
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 0x1198445
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov eax, 0x128959e
call fcn.01160118
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.01198217
cmp byte [ebp + 0xc], 0
jne 0x1198501
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 0x1198492
test byte [ebp - 0x10], 2
jne 0x1198492
push esi
push 1
call dword [sym.imp.WININET.dll_InternetAutodial]
push esi
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
cmp eax, esi
jne 0x11984d3
push ebx
lea eax, [ebp - 0x14]
lea ecx, [edi + 0x4c]
push eax
call fcn.011980b9
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.0103290a
test bl, bl
pop ebx
je 0x11984d8
push esi
push 0xd
jmp 0x1198539
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x4c]
call fcn.011980b9
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.0103290a
push esi
push esi
push 3
mov ecx, edi
call fcn.01198217
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 0x1198536
cmp byte [edi + 0x39], 0
jne 0x1198536
xor eax, eax
jmp 0x1198545
push esi
push 0xe
mov ecx, edi
push 0x80004005
call fcn.01198269
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x11985ec
Capabilities:
Print debug messages
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x12895d9
call fcn.01160118
sub esp, 0x820
mov eax, dword [0x12cf8c8]
mov edx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
mov dword [ebp - 0x820], eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
push ebx
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x824], ebx
call fcn.01195a68
or eax, 0x80000200
push eax
push ebx
push ebx
push 0x1014238
push edi
push 0x1014874
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, ebx
je 0x11987be
mov eax, dword [ebp - 0x814]
cmp byte [eax + 0x39], bl
jne 0x11987be
mov eax, dword [0x12ce0a0]
mov dword [ebp - 0x81c], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x12ce0a0]
mov dword [ebp - 0x828], eax
mov byte [ebp - 4], 1
push 0x1014940
lea ecx, [ebp - 0x81c]
call fcn.01044f8b
push 0xa0000000
push 0xffffffffffffffff
push dword [ebp - 0x81c]
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x11986b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x119877a
push dword [ebp + 0x14]
push dword [ebp - 0x820]
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x11986e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x824], 0x80004005
jmp 0x119877a
mov ecx, dword [ebp - 0x818]
call fcn.010478ab
lea eax, [ebp - 0x814]
push eax
push 0x800
lea eax, [ebp - 0x810]
push eax
push edi
mov byte [ebp - 0x810], bl
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
call fcn.01076831
mov byte [ebp - 4], 2
push dword [ebp - 0x814]
lea ecx, [ebp - 0x820]
push ecx
mov ecx, eax
call fcn.01052760
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x818]
push eax
call fcn.01044d17
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x820]
call fcn.0103290a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x82c]
call fcn.0103290a
cmp dword [ebp - 0x814], ebx
jne 0x1198772
xor esi, esi
cmp esi, ebx
jne 0x11986ee
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
jne 0x119878b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x818]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x828]
call fcn.0103290a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x81c]
call fcn.0103290a
mov eax, dword [ebp - 0x824]
jmp 0x11987d2
push dword [esi]
mov ecx, dword [ebp - 0x814]
push 0xf
push 0x80004005
call fcn.01198269
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0115fe1a
leave
ret 0x14