joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a0e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
push esi
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x49a1ff
test edi, edi
je 0x49a1ff
test ecx, ecx
je 0x49a1ff
push 0x208
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push str.QMConfig
push 0x104
push eax
call fcn.004b586c
push 0xffffffffffffffff
push str.0s
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004bbb52
push 0x103
push str.QQDoctorQQDoctorComCfg
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004bbb52
add esp, 0x30
lea eax, [ebp - 0x210]
push 0
push eax
push ecx
lea ecx, [ebp - 0x214]
call fcn.00499e30
test eax, eax
je 0x49a1d4
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x49a1da
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp - 0x218]
push 3
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x49a1d4
mov eax, dword [ebp - 0x214]
mov dword [ebx], esi
xor esi, esi
jmp 0x49a1df
mov eax, dword [ebp - 0x214]
mov esi, 0x80004005
test eax, eax
je 0x49a1ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a474b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49b2e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da9f3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi], vtable.TiXmlNode.0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
cmp dword [esi + 0x34], 0x10
jb 0x49b33f
mov eax, dword [esi + 0x20]
jmp 0x49b342
lea eax, [esi + 0x20]
mov byte [eax], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [esi], vtable.TiXmlElement.0
lea ecx, [eax + 0x14]
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x49b3b3
mov ecx, dword [ecx]
mov byte [ecx], 0
lea ecx, [eax + 0x2c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x49b3cf
mov ecx, dword [ecx]
mov byte [ecx], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x48], eax
mov dword [eax + 0x44], eax
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
cmp byte [edi], 0
jne 0x49b3fd
xor ecx, ecx
jmp 0x49b40b
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b402
sub ecx, ebx
push ecx
push edi
lea ecx, [esi + 0x20]
call fcn.00438e80
mov eax, esi
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 0x49f0c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dad96
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.00439070
push 1
push ecx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 0x5c
call fcn.00446480
cmp eax, 0xffffffff
je 0x49f1c5
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0044b5b0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x49f180
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x49f163
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433850
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0044b5f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x49f199
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433850
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00439070
call fcn.0049f0c0
add esp, 0x18
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49f1ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49f1ef
or esi, 0xffffffff
jmp 0x49f1f1
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x49f206
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433850
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x49f22f
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00433850
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret

Function at 0x49f3b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49f41d
mov eax, dword [ebp - 0x114]
cmp eax, 6
jb 0x49f40a
jne 0x49f41d
cmp dword [ebp - 0x110], 0
jne 0x49f41d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x49f430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dae20
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x511070]
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 ebx, ecx
mov dword [ebp - 0x44], ebx
cmp dword [ebx + 0x84], 0
mov esi, dword [ebp + 8]
je 0x49f473
xor eax, eax
jmp 0x49f647
cmp dword [ebx + 4], 0
je 0x49f46c
call fcn.0049f3b0
push esi
test eax, eax
je 0x49f533
lea ecx, [ebp - 0x40]
call fcn.00438880
push 8
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.0044b5b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x14]
lea ebx, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp edi, 8
mov eax, dword [ebp - 0x18]
cmovae ecx, esi
mov dword [ebp - 0x48], fcn.004b4b93
cmovae ebx, esi
lea edx, [ecx + eax*2]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
cmovae ecx, esi
push ebx
call fcn.00453e60
add esp, 8
lea ecx, [ebp - 0x28]
mov edx, str.https:__
call fcn.00458320
test al, al
je 0x49f503
push 7
push str.http:__
push 8
push 0
lea ecx, [ebp - 0x40]
call fcn.00449970
mov ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
lea ecx, [ebx + 0x10]
cmp ecx, eax
je 0x49f51a
push 0xffffffffffffffff
push 0
push eax
call fcn.00439070
lea ecx, [ebp - 0x28]
call fcn.00433800
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00433800
jmp 0x49f53b
lea ecx, [ebx + 0x10]
call fcn.004394e0
cmp dword [ebx + 8], 0
jne 0x49f552
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x49f46c
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebx + 0x80]
test ecx, ecx
je 0x49f57e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x80], 0
call fcn.004a03a0
test eax, eax
je 0x49f59d
push 0x58
call fcn.004a477f
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, eax
call fcn.004a13e0
jmp 0x49f5d0
push 0x2c
call fcn.004a477f
add esp, 4
mov dword [ebp - 0x44], eax
xor ecx, ecx
mov dword [eax], vtable.QQDectector2::CWininetFile.0
mov dword [eax + 0x20], 7
mov dword [eax + 0x1c], 0
mov word [eax + 0xc], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.STATIC
push 0
mov dword [ebx + 0x80], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x4a02c0
push 0xfffffffffffffffc
push eax
mov dword [ebx + 0x60], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x4c]
mov dword [ebx + 0x84], 1
push eax
push 0
push ebx
push 0x49fa50
push 0
push 0
mov dword [ebp - 0x4c], 0
call fcn.004ae850
mov ecx, eax
add esp, 0x18
mov dword [ebx + 0xc], ecx
test ecx, ecx
jne 0x49f640
mov dword [ebx + 0x84], eax
xor eax, eax
test ecx, ecx
setne al
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.004a474b
mov esp, ebp
pop ebp
ret 4
Function at 0x49f920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x412
mov dword [ebp - 0x41c], eax
mov ebx, edx
lea eax, [ebp - 0x418]
mov esi, ecx
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push esi
call fcn.004a6ff1
mov edi, eax
add esp, 8
test edi, edi
je 0x49fa13
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push str.QMDownload
push eax
call esi
sub esp, 0x18
lea eax, [ebp - 0x418]
mov ecx, esp
push eax
call fcn.00438880
call fcn.0049f0c0
add esp, 0x18
lea eax, [ebp - 0x418]
add edi, 2
push edi
push eax
call esi
cmp word [ebp - 0x418], 0
jne 0x49f9c8
xor ecx, ecx
jmp 0x49f9e0
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f9d1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x418]
mov ecx, ebx
push eax
call fcn.004393e0
cmp word [edi], 0
jne 0x49f9fb
xor ecx, ecx
push ecx
push edi
jmp 0x49fa28
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49fa00
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x49fa28
push 0
push 0x4ec230
mov ecx, ebx
call fcn.004393e0
push 0
push 0x4ec230
mov ecx, dword [ebp - 0x41c]
call fcn.004393e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a474b
mov esp, ebp
pop ebp
ret

Function at 0x4a0200
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov esi, ecx
call fcn.004a73c0
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004ae4a4
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a0279
sub esp, 0x18
lea eax, [ebp - 0x210]
mov ecx, esp
push eax
call fcn.00438880
call fcn.0049f0c0
add esp, 0x18
add esi, 0x28
cmp dword [esi + 0x14], 8
jb 0x4a0286
mov eax, dword [esi]
jmp 0x4a0288
mov eax, esi
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0xc], 0
mov edi, eax
je 0x4a02a9
cmp dword [esi + 0x14], 8
jb 0x4a02a2
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a474b
mov esp, ebp
pop ebp
ret 8
Function at 0x4a03a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a0429
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x4a03fe
mov eax, dword [ebp - 0x118]
cmp eax, 1
jne 0x4a0410
cmp word [ebp - 0xc], ax
jae 0x4a0429
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4a0429
cmp word [ebp - 0xc], 3
jae 0x4a0429
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x4a2360
Capabilities:
Check http status code
Check internet connectivity via wininet
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x50d4c8
push 0x4a96a0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x511070]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x54], edi
xor esi, esi
mov dword [ebp - 0x58], esi
movups xmm0, xmmword [0x4fc9e0]
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [0x4fc9f0]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 4
test edx, edx
jne 0x4a23e5
xor eax, eax
jmp 0x4a2534
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 4], ebx
push 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [ebp - 0x44], 0x20
je 0x4a240e
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x40]
jmp 0x4a252c
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x4a2438
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2420
sub ecx, edi
sar ecx, 1
je 0x4a2438
mov eax, 3
jmp 0x4a243c
xor eax, eax
xor edx, edx
push 0
push 0
push edx
push eax
push str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT_6.1__QQPCMgr7.0_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x4a23ff
push 0
push 0x84000100
push 0xffffffffffffffff
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x60]
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
je 0x4a23ff
push 0x20a
push 0
lea eax, [ebp - 0x278]
push eax
call fcn.004a73c0
add esp, 0xc
mov dword [ebp - 0x64], 0x208
push 0
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x278]
push 0x2f
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a23ff
cmp dword [ebp - 0x48], 0xc8
jne 0x4a23ff
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x40]
test eax, eax
je 0x4a24fd
mov eax, dword [ebp - 0x50]
mov dword [ecx + 0x24], eax
mov ebx, 1
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a252c
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 8
Function at 0x4a26d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x515350], 0
jne 0x4a274f
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4fca1c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov dword [0x515350], eax
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret

Function at 0x4c23ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c224d

Function at 0x4c85b9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c8279
Function at 0x100014c7
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push 1
pop edi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.1009d804
call sym.runtime.dll_runtimeGetRuntime
push dword [ebp - 8]
mov dword [0x10131388], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
call fcn.100016c9
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
mov al, byte [ebp - 1]
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x18], al
call fcn.10002047
push ebx
call fcn.1009d120
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.10002275
mov al, byte [ebp - 1]
mov byte [ebp - 0x28], al
push esi
lea ecx, [ebp - 0x28]
call fcn.10002047
cmp dword [ebp - 0x10], esi
je 0x10001581
cmp dword [ebp - 0x14], esi
je 0x1000154e
lea ecx, [ebp - 0x18]
call fcn.1000201b
mov eax, dword [ebp - 0x14]
jmp 0x10001553
mov eax, 0x10105434
cmp byte [eax], 0x20
jne 0x10001581
push dword [0x10105430]
lea eax, [ebp - 0x38]
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.10001bf3
push dword [0x10105430]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001ecb
push edi
lea ecx, [ebp - 0x38]
jmp 0x10001532
push edi
push esi
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x22
call fcn.10001f99
test eax, eax
jne 0x10001607
push edi
push edi
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x22
call fcn.10001f99
mov ebx, eax
mov eax, dword [0x10105430]
cmp ebx, eax
je 0x10001675
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001bf3
push dword [0x10105430]
lea ecx, [ebp - 0x28]
push esi
push eax
call fcn.10001ecb
push edi
lea ecx, [ebp - 0x38]
call fcn.10002047
dec ebx
push ebx
push edi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001bf3
push dword [0x10105430]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001ecb
push edi
lea ecx, [ebp - 0x38]
jmp 0x10001670
push edi
push esi
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x20
call fcn.10001f99
mov ebx, eax
mov eax, dword [0x10105430]
cmp ebx, eax
je 0x10001675
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001bf3
push dword [0x10105430]
lea ecx, [ebp - 0x28]
push esi
push eax
call fcn.10001ecb
push edi
lea ecx, [ebp - 0x38]
call fcn.10002047
push ebx
push esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001bf3
push dword [0x10105430]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001ecb
push edi
lea ecx, [ebp - 0x38]
call fcn.10002047
mov eax, dword [ebp - 0x24]
cmp eax, esi
jne 0x10001681
mov eax, 0x10105434
mov ecx, dword [0x10131388]
mov edx, dword [ecx]
push esi
push eax
push dword [0x10131380]
call dword [edx + 0x24]
mov ecx, dword [0x10131388]
mov eax, dword [ecx]
call dword [eax + 0x10]
push esi
push esi
push dword [ebp - 8]
call fcn.1009d804
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001b63
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov ecx, 0x10131360
call fcn.10002234
mov eax, dword [ebp - 4]
cmp eax, dword [0x10131364]
jne 0x10001ba1
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov ecx, 0x10131340
call fcn.10002234
mov eax, dword [ebp - 4]
cmp eax, dword [0x10131344]
je 0x10001ba6
mov eax, dword [eax + 0x1c]
jmp 0x10001be7
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.Cant_find_symbol:
push eax
call fcn.10003185
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x10001bc6
mov eax, 0x10105434
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 4

Function at 0x10003ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ffa80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push edi
or ecx, 0xffffffff
xor ebx, ebx
mov byte [esp + 8], al
xor eax, eax
mov edi, str.Startup_Error:
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Startup_Error:
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.10002275
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x3c], ebx
call fcn.10004120
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x30], 2
je 0x10003f52
lea ecx, [eax - 1]
mov al, byte [ecx]
cmp al, bl
je 0x10003f49
cmp al, 0xff
je 0x10003f49
dec al
mov byte [ecx], al
jmp 0x10003f52
push ecx
call fcn.10090902
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x10003f6b
mov eax, 0x10105434
mov ecx, dword [0x101314b4]
push eax
call fcn.1003c670
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x10003fac
mov al, byte [ecx - 1]
cmp al, bl
je 0x10003fa2
cmp al, 0xff
je 0x10003fa2
dec al
pop edi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call fcn.10090902
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x100315a0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov ebx, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
mov dword [esi], 0x101054fc
jge 0x100315d7
push 4
lea eax, [esp + 0x10]
push eax
push 0xffffff7f
push 0xffff
push ebx
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_setsockopt
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x10], eax
call fcn.10090902
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0xc]
push eax
mov dword [esp + 0x14], eax
call fcn.10090902
add esp, 8
mov ecx, esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.100363a0
pop edi
pop esi
pop ebx
pop ecx
ret