joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1180db5
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1287528
call fcn.01160458
mov eax, 0x1018
call fcn.01160620
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.01180beb
mov edi, eax
cmp edi, ebx
jge 0x1180e13
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180e0c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x1180f09
cmp dword [ebp - 0x1014], ebx
jne 0x1180e39
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180e2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x1180f09
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 0x1180ee2
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1180ec1
cmp dword [ebp - 0x1018], ebx
je 0x1180f22
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 0x1180f48
mov ecx, dword [ebp - 0x1020]
xor eax, eax
cmp ecx, dword [ebp - 0x1018]
sete al
cmp eax, ebx
je 0x1180ee2
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 0x1180e6c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01082eef
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180f04
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.0116015a
leave
ret 8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01082eef
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180f44
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x1180f09
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x101c]
call fcn.01082eef
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x1180f6a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1024]
jmp 0x1180f09
Function at 0x1183add
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 0x1184124
Capabilities:
Get disk information

Disassembly:
mov eax, 0x12877a6
call fcn.01160458
push ecx
push esi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0104525f
test eax, eax
jge 0x1184157
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x118414d
mov dword [eax], 0xf1fe
mov esi, 0x80004005
jmp 0x11841d7
lea ecx, [ebp + 8]
call fcn.01045236
lea ecx, [ebp - 0x10]
call fcn.01045169
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0107d5c8
test eax, eax
jl 0x1184198
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1184198
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x11841c6
mov dword [eax], 0xf23c
jmp 0x11841c6
lea ecx, [ebp + 8]
call fcn.0107c805
lea ecx, [ebp + 8]
call fcn.01183add
cmp eax, 0xffffffff
je 0x11841b9
test al, 1
jne 0x11841b9
test al, 0x10
je 0x11841b9
xor esi, esi
jmp 0x11841cb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x11841c6
mov dword [eax], 0xf23b
mov esi, 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01045295
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01045295
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x118600d
Capabilities:
Get common file path
Get session user name

Disassembly:
mov eax, 0x1287a34
call fcn.01160458
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.01045169
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.0103297b
lea ecx, [ebp - 0x428]
push ecx
push eax
push 3
mov dword [ebp - 0x428], ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x118610e
push dword [ebp - 0x428]
lea ecx, [ebp - 0x424]
call fcn.0103297b
lea ecx, [ebp - 0x428]
push ecx
push eax
push 3
call sub.Secur32.dll_GetUserNameExW
push 0xffffffffffffffff
lea ecx, [ebp - 0x424]
call fcn.010329e8
lea eax, [ebp - 0x424]
push eax
mov ecx, edi
call fcn.01044de0
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 0x11861c0
lea eax, [ebp - 0x218]
push eax
call fcn.01045196
push 0x17
push 0
push 0x1011290
lea ecx, [esi + 0x7c]
call fcn.01102bf1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x424]
call fcn.010328fe
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.0116015a
leave
ret
Function at 0x1193624
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x1288c9f
call fcn.01160458
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.01199f7e
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x10]
call fcn.01199f7e
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.01199f7e
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 0x1195c78
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 0x1195c8b
mov dword [eax], ebx
cmp dword [ebp + 0xc], ebx
je 0x1195cea
mov edi, dword [ebp + 0x10]
cmp edi, 1
jge 0x1195ca4
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.01160620
cmp esp, ebx
mov dword [ebp + 0x10], esp
je 0x1195cea
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 0x1195cea
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
jmp 0x1195cec
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1195cfb
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 0x1195d1a
xor eax, eax
inc eax
leave
ret
mov eax, dword [ebp - 4]
shr eax, 6
and eax, 1
leave
ret
Function at 0x11966c8
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 0x1196715
mov eax, 0x80004005
jmp 0x119678c
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 0x119676b
cmp dword [ebp - 0x408], ebx
je 0x119677c
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x410]
call fcn.01195e3c
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 0x1196735
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.0116015a
leave
ret 8
Function at 0x1196e6d
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, 0x128924a
call fcn.01160458
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 0x1196ebf
mov esi, 0x80004005
jmp 0x1197066
lea ecx, [ebp - 0x418]
call fcn.01045169
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 0x1196eeb
mov esi, eax
jmp 0x1197058
lea eax, [ebp - 0x418]
push eax
push ebx
push 0x101445c
mov ecx, eax
call fcn.011962bd
cmp eax, ebx
jl 0x1196ee4
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 0x1196fa7
cmp esi, ebx
mov dword [ebp - 0x41c], ebx
jne 0x1196f78
push 0xc
lea eax, [ebp - 0x410]
push 0x101444c
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1196f98
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 0x1196f9f
mov byte [ebp - 0x411], 1
add esi, dword [ebp - 0x41c]
jmp 0x1196fae
mov byte [ebp - 0x411], 1
cmp dword [ebp - 0x424], ebx
je 0x1196fc2
cmp byte [ebp - 0x411], bl
je 0x1196f2a
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [ebp - 0x420]
call fcn.011ba0af
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x64
pop edi
jbe 0x1197047
cmp byte [ebp - 0x411], bl
jne 0x1197047
push dword [ebp - 0x428]
lea ecx, [ebp - 0x41c]
call fcn.01046065
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 0x1197028
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.01045295
jmp 0x1197058
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.01045295
xor esi, esi
jmp 0x1197058
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.01045295
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x420]
call fcn.011ba110
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0116015a
leave
ret 0xc
Function at 0x119840a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x12896ce
call fcn.01160458
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x10], esi
mov dword [esi], fcn.01123ab4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x3c]
call fcn.01045169
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.011982ed
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 0x1198724
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov eax, 0x12894fc
call fcn.01160458
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.011984f6
cmp byte [ebp + 0xc], 0
jne 0x11987e0
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 0x1198771
test byte [ebp - 0x10], 2
jne 0x1198771
push esi
push 1
call dword [sym.imp.WININET.dll_InternetAutodial]
push esi
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
cmp eax, esi
jne 0x11987b2
push ebx
lea eax, [ebp - 0x14]
lea ecx, [edi + 0x4c]
push eax
call fcn.01198398
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.010328fe
test bl, bl
pop ebx
je 0x11987b7
push esi
push 0xd
jmp 0x1198818
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x4c]
call fcn.01198398
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.010328fe
push esi
push esi
push 3
mov ecx, edi
call fcn.011984f6
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 0x1198815
cmp byte [edi + 0x39], 0
jne 0x1198815
xor eax, eax
jmp 0x1198824
push esi
push 0xe
mov ecx, edi
push 0x80004005
call fcn.01198548
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x11988cb
Capabilities:
Print debug messages
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x1289537
call fcn.01160458
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.01195d47
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 0x1198a9d
mov eax, dword [ebp - 0x814]
cmp byte [eax + 0x39], bl
jne 0x1198a9d
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.01045196
push 0xa0000000
push 0xffffffffffffffff
push dword [ebp - 0x81c]
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x1198997
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1198a59
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 0x11989c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x824], 0x80004005
jmp 0x1198a59
mov ecx, dword [ebp - 0x818]
call fcn.01047cc7
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.01077147
mov byte [ebp - 4], 2
push dword [ebp - 0x814]
lea ecx, [ebp - 0x820]
push ecx
mov ecx, eax
call fcn.01052d4f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x818]
push eax
call fcn.01044f22
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x820]
call fcn.010328fe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x82c]
call fcn.010328fe
cmp dword [ebp - 0x814], ebx
jne 0x1198a51
xor esi, esi
cmp esi, ebx
jne 0x11989cd
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
jne 0x1198a6a
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.010328fe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x81c]
call fcn.010328fe
mov eax, dword [ebp - 0x824]
jmp 0x1198ab1
push dword [esi]
mov ecx, dword [ebp - 0x814]
push 0xf
push 0x80004005
call fcn.01198548
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0116015a
leave
ret 0x14
Function at 0x11993b4
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1289643
call fcn.01160458
mov eax, 0x101c
call fcn.01160620
mov eax, dword [0x12cf8c8]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [esi]
mov dword [ebp - 0x10], eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x100355c
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
je 0x119953d
cmp word [ebp - 0x1010], bx
push edi
lea edi, [ebp - 0x1010]
je 0x119953c
push edi
lea ecx, [ebp - 0x1024]
call fcn.01039a07
mov dword [ebp - 4], ebx
cmp word [edi], 0x5f
je 0x1199518
push dword [esi]
push ebx
push 0x10149a4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [esi]
mov ecx, dword [ebp - 0x1018]
push 0x1014880
push edi
lea eax, [ebp - 0x1028]
push eax
call fcn.01196b7f
mov byte [ebp - 4], 1
push dword [esi]
mov ecx, dword [ebp - 0x1018]
push 0x1014894
push edi
lea eax, [ebp - 0x1020]
push eax
call fcn.01196b7f
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1020]
cmp dword [eax - 8], 5
jl 0x11994fb
push edi
lea ecx, [ebp - 0x1014]
call fcn.01039a07
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1014]
call fcn.01052b2a
lea ecx, [ebp - 0x1014]
call fcn.01075c55
lea ecx, [ebp - 0x101c]
call fcn.0119642f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x101c]
call fcn.01044de0
mov ecx, dword [ebp - 0x1018]
lea eax, [ebp - 0x101c]
push eax
call fcn.01199342
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x101c]
call fcn.0119645c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1014]
call fcn.010328fe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1020]
call fcn.010328fe
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1028]
call fcn.010328fe
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea edi, [edi + eax*2 + 2]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1024]
call fcn.010328fe
cmp word [edi], bx
jne 0x1199414
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0116015a
leave
ret 4
Function at 0x1199bd0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x1199bea
mov eax, 0x800003ea
jmp 0x1199d17
push ebx
push dword [ebp + 0xc]
lea ebx, [esi + 0x3c]
mov ecx, ebx
call fcn.01045196
push dword [ebp + 0x18]
lea ecx, [esi + 0x44]
call fcn.01045196
push dword [ebp + 0x1c]
lea ecx, [esi + 0x48]
call fcn.01045196
push dword [ebp + 0x14]
lea ecx, [esi + 0x40]
call fcn.01045196
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov al, byte [ebp + 0x20]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], edi
mov byte [esi + 0x38], al
mov al, byte [ebp + 0x24]
mov edi, 0x100685a
push edi
lea ecx, [esi + 0x68]
mov byte [esi + 0x3a], al
mov byte [esi + 0x39], 0
mov dword [esi + 0x64], 1
call fcn.010b8db3
push edi
lea ecx, [esi + 0x6c]
call fcn.010b8db3
push edi
lea ecx, [esi + 0x70]
call fcn.010b8db3
mov ecx, dword [ebx]
xor eax, eax
cmp dword [ecx - 8], eax
je 0x1199d11
cmp dword [ebp + 0x14], eax
je 0x1199d11
mov edi, dword [ebp + 0x10]
cmp edi, eax
je 0x1199d11
cmp word [edi], ax
je 0x1199d11
mov ecx, ebx
call fcn.0107c805
push edi
lea ecx, [esi + 0x4c]
call fcn.01196484
lea edi, [esi + 0x74]
mov ecx, edi
call fcn.011979dd
push dword [ebp + 0x2c]
lea eax, [esi + 0x34]
push dword [ebp + 0x28]
push eax
push edi
push ebx
call fcn.01199b6b
cmp eax, 0x80070006
jne 0x1199ccd
push dword [ebx]
push 0xc
push 0x80004005
mov ecx, esi
call fcn.01198548
jmp 0x1199d16
xor edi, edi
cmp dword [esi + 0x78], edi
mov ecx, esi
jne 0x1199ce1
push dword [ebx]
push 0xc
push 0x80004005
jmp 0x1199cc6
call fcn.01196672
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 0x11997a2
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 8], eax
jne 0x1199d0d
push edi
push 0x1c
push 0x8000ffff
jmp 0x1199cc4
xor eax, eax
jmp 0x1199d16
mov eax, 0x80004005
pop ebx
pop edi
pop esi
pop ebp
ret 0x28