joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423e80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452df8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push edi
mov eax, dword [0x465100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CDownload::Init__
push 3
call fcn.004236c0
add esp, 8
cmp dword [esi + 0xc], 0
jne 0x423f5c
cmp dword [esi + 0x64], 0
mov dword [esi + 0xc0], 0x5dc
jne 0x423f17
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x68], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x70], eax
lea eax, [esi + 0x74]
push eax
push 0
push esi
push 0x425ec0
push 0
push 0
call fcn.0043f592
add esp, 0x18
mov dword [esi + 0x64], eax
lea eax, [esi + 0x90]
lea edi, [eax + 4]
push edi
mov dword [ebp - 0x14], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
push ecx
lea eax, [esi + 0x78]
mov dword [ebp - 0x1c], 1
call fcn.004262f0
mov edx, dword [esi + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x424050
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x465100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CDownload::Uninit__
push 3
call fcn.004236c0
lea edi, [esi + 0x90]
add esp, 8
mov dword [ebp - 0x10], edi
add edi, 4
push edi
mov dword [ebp - 0x14], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 0
lea eax, [esi + 0x78]
mov dword [ebp - 0x1c], 2
call fcn.004262f0
mov ecx, dword [esi + 0x70]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
push ecx
call ebx
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x68]
push edx
call ebx
mov eax, dword [esi + 0x70]
push eax
call ebx
cmp dword [esi + 0x64], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42411b
mov ecx, dword [esi + 0x6c]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42410e
mov edx, dword [esi + 0x64]
push 0x3ff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x64]
push eax
call edi
mov dword [esi + 0x64], 0
mov ecx, dword [esi + 0x70]
push ecx
call edi
mov edx, dword [esi + 0x68]
push edx
call edi
mov eax, dword [esi + 0x6c]
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430620
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4507b8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x465100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x4306a8
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430692
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
cmp edi, ebx
je 0x43067d
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4306dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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 0x4330a0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push eax
push 0
push 0
push closesocket
push closesocket
push closesocket
push closesocket
push 0xcf0000
push str.TENCENT_INSTLLER_WINDOW
push str.TENCENT_INSTLLER
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x4330da
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [edi], esi
mov eax, 1
pop esi
ret

Function at 0x433e50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451848
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x465100]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
push ebx
lea ecx, [ebp + 8]
mov word [ebp - 0x2c], ax
push ecx
mov esi, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
call fcn.00401690
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea edi, [ebx + 1]
mov dword [ebp - 0x4c], 0x5c
call fcn.00412a40
cmp eax, 0xffffffff
je 0x433f2a
push eax
xor ecx, ecx
lea esi, [ebp - 0x48]
lea edx, [ebp - 0x2c]
call fcn.004129a0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004129d0
mov edi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], edi
jb 0x433ef7
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0043bc47
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401690
call fcn.00433e50
add esp, 0x1c
mov esi, 7
jmp 0x433f2f
mov edi, 8
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x433f3a
lea eax, [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x433f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x433f86
cmp dword [ebp - 0x18], edi
jb 0x433f64
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043bc47
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp + 0x1c], edi
jb 0x433f81
mov eax, dword [ebp + 8]
push eax
call fcn.0043bc47
add esp, 4
or eax, 0xffffffff
jmp 0x433fb6
cmp dword [ebp - 0x18], edi
jb 0x433f97
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043bc47
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp + 0x1c], edi
jb 0x433fb4
mov eax, dword [ebp + 8]
push eax
call fcn.0043bc47
add esp, 4
xor eax, eax
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.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x4341c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [edi + 0x98], ebx
je 0x4341d6
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
push esi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4341e0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [edi + 0x10]
call fcn.004017a0
cmp dword [edi + 8], ebx
jne 0x43420b
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
cmp eax, ebx
jne 0x43421a
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x94]
cmp ecx, ebx
je 0x434239
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x94], ebx
call fcn.00434fb0
test eax, eax
je 0x434259
push 0x5c
call fcn.0043bcf4
add esp, 4
cmp eax, ebx
je 0x43428b
mov esi, eax
call fcn.00436190
jmp 0x43428d
push 0x30
call fcn.0043bcf4
add esp, 4
cmp eax, ebx
je 0x43428b
mov dword [eax], vtable.QQDectector::CWininetFile.0
mov dword [eax + 0x20], 7
mov dword [eax + 0x1c], ebx
xor ecx, ecx
mov word [eax + 0xc], cx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
jmp 0x43428d
xor eax, eax
lea edx, [ebp - 4]
push edx
push ebx
push edi
push 0x4346f0
push ebx
push ebx
mov dword [edi + 0x94], eax
mov dword [edi + 0x98], 1
mov dword [ebp - 4], ebx
call fcn.0043f592
add esp, 0x18
mov dword [edi + 0xc], eax
cmp eax, ebx
jne 0x4342c2
mov dword [edi + 0x98], ebx
xor ecx, ecx
cmp eax, ebx
setne cl
pop esi
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x434590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor ecx, ecx
mov ebx, edx
push 0x410
push ecx
lea edx, [ebp - 0x416]
push edx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x418], cx
call fcn.0043f7e0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push esi
call fcn.0043c850
mov edi, eax
add esp, 8
test edi, edi
je 0x4346ba
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x45deb8
lea ecx, [ebp - 0x418]
push ecx
call ebx
sub esp, 0x1c
mov esi, esp
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x418]
mov word [esi], dx
mov dword [ebp - 0x424], esp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434640
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x418]
call fcn.004017a0
call fcn.00433e50
add esp, 0x1c
add edi, 2
push edi
lea eax, [ebp - 0x418]
push eax
call ebx
lea eax, [ebp - 0x418]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434680
mov esi, dword [ebp - 0x420]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x418]
call fcn.004017a0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4346a6
sub eax, edx
sar eax, 1
push eax
mov eax, edi
jmp 0x4346cf
push 0
mov eax, 0x457794
mov esi, ebx
call fcn.004017a0
push 0
mov eax, 0x457794
mov esi, dword [ebp - 0x41c]
call fcn.004017a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x434e70
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x208
mov ebx, ecx
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0043f7e0
lea edx, [ebp - 0x210]
add esp, 0xc
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x434eb3
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x434f26
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x10], eax
xor ecx, ecx
lea eax, [ebp - 0x210]
mov dword [esi + 0x14], 7
mov dword [ebp - 0x214], esp
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434f03
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
call fcn.004017a0
call fcn.00433e50
add esp, 0x1c
lea esi, [ebx + 0x2c]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x434f37
mov eax, dword [esi]
jmp 0x434f39
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 0x434f59
cmp dword [esi + 0x14], ebx
jb 0x434f52
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8

Function at 0x434fb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0043f7e0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x435039
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x43500e
mov eax, dword [ebp - 0x118]
cmp eax, 1
jne 0x435020
cmp word [ebp - 0xc], ax
jae 0x435039
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x435039
cmp word [ebp - 0xc], 3
jae 0x435039
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x436e80
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 0x45fdc8
push 0x443640
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x465100]
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 edx, ecx
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], ecx
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov ecx, 8
mov esi, 0x45e034
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [ebp - 0x60], ecx
xor esi, esi
xor edi, edi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], 4
cmp eax, ecx
jne 0x436f02
xor eax, eax
jmp 0x437052
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 4], ebx
push 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [ebp - 0x60], 0x20
je 0x436f2c
mov dword [ebp - 4], 0xfffffffe
jmp 0x437043
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x436f58
mov eax, edx
lea ebx, [eax + 2]
jmp 0x436f40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436f40
sub eax, ebx
sar eax, 1
je 0x436f58
mov esi, 3
mov edi, edx
push 0
push 0
push edi
push esi
push 0x45df60
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x436f20
push 0
push 0x84000100
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x437020
xor eax, eax
mov word [ebp - 0x274], ax
push 0x208
push eax
lea ecx, [ebp - 0x272]
push ecx
call fcn.0043f7e0
add esp, 0xc
mov dword [ebp - 0x68], 0x208
push 0
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x274]
push eax
push 0x2f
push esi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
call edi
mov dword [ebp - 0x5c], 0
push 0
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0x20000013
push esi
call edi
test eax, eax
je 0x437020
cmp dword [ebp - 0x5c], 0xc8
jne 0x437020
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0x20000005
push esi
call edi
test eax, eax
je 0x437019
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x28], edx
mov dword [ebp - 0x44], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x437046
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x54]
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x44]
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.0043b634
mov esp, ebp
pop ebp
ret 8
Function at 0x4371d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x49c000], 0
jne 0x437257
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0043f7e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x45e070
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edx, edx
test eax, eax
setne dl
mov dword [0x49c000], eax
mov eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0043b634
mov esp, ebp
pop ebp
ret

Function at 0x437570
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x8001
mov edi, 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x5170c8
push 0x2004
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x5170c8
call fcn.00437c70
push 0x5170c8
call fcn.00437910
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4375d9
push 0x5170c8
call fcn.00438460
push 0
push 0x5170c8
call esi
push 0x5170c8
push 0x5130c0
call fcn.00437a40
test eax, eax
jne 0x437636
push 0x1fff
push 0x5170c8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push 0x5170c8
call fcn.00437c60
push 0x5170c8
call fcn.00437c70
push 0x5170c8
call fcn.00437910
test eax, eax
je 0x437666
push 0x5170c8
call fcn.00438460
push 0
push 0x5170c8
call esi
push 0x5170c8
push 0x5130c0
call fcn.00437a40
test eax, eax
je 0x437666
push 0x5130c0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00438fe0
test eax, eax
jne 0x437668
call fcn.00438e60
push 1
mov esi, eax
call fcn.00437d80
pop edi
mov eax, esi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x437830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x466d40
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
mov dword [0x466d40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x43786b
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x437a00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp + 0x10]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push 0
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
pop ebp
ret 0xc
Function at 0x437a40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x64
mov edi, edi
mov eax, dword [0x454664]
mov ecx, dword [0x454668]
dec esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x1a
div ecx
push edi
push 0
add word [ebp - 8], dx
lea edx, [ebp - 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x437ab1
test esi, esi
jne 0x437a60
mov word [edi], ax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8

Function at 0x437ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x18]
xor eax, eax
neg edx
push esi
mov esi, dword [ebp + 0x14]
sbb edx, edx
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
and edx, 0x100
or edx, 0x20019
push edx
push eax
mov word [esi], ax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x437b50
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push ecx
push edx
mov dword [ebp + 0x18], 0x4008
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x437b38
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x437b3d
cmp eax, 2
je 0x437b3d
xor eax, eax
mov word [esi], ax
mov edx, dword [ebp + 0x14]
xor ecx, ecx
push edx
mov word [esi + 0x4006], cx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14

Function at 0x437d80
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x437dab
mov eax, dword [0x465028]
cmp eax, 0xffffffff
je 0x437d9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x465028], 0xffffffff
mov esp, ebp
pop ebp
ret 4
cmp dword [0x49cfc8], 0
je 0x437e65
cmp word [0x4a6000], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x437e28
cmp dword [0x465028], 0xffffffff
jne 0x437e31
push 0x4a6000
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push 0x4a6000
mov esi, eax
call fcn.00437a00
mov dword [0x465028], eax
cmp eax, 0xffffffff
je 0x437e63
cmp esi, 0xffffffff
jne 0x437e1b
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp + 8]
push edx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x465028]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x465028], 0xffffffff
je 0x437e63
push 0x454680
push 0x49cfe0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x49cfe0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea ecx, [ebp + 8]
push ecx
lea edx, [eax + eax]
mov eax, dword [0x465028]
push edx
push 0x49cfe0
push eax
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4384e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0x2004
push eax
push 0x466d88
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x466d88
call fcn.00437950
mov esi, eax
test esi, esi
jne 0x43850f
xor eax, eax
pop esi
pop ebp
ret 4
push esi
call fcn.00437c70
test byte [0x49cfa8], 0x80
je 0x43852b
movzx eax, word [esi]
test ax, ax
je 0x438508
cmp eax, 0x5c
je 0x438508
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, 0x466d88
push 0x466d88
sar esi, 1
call edi
mov ebx, dword [sym.imp.USER32.dll_CharPrevW]
cmp eax, esi
jle 0x4385a8
lea esp, [esp]
push 0x46ad90
push 0x466d88
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x438575
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x46ad90], 0x10
je 0x4385f0
push 0x466d88
call edi
lea eax, [eax*2 + 0x466d88]
cmp word [eax], 0x5c
je 0x438598
push eax
push 0x466d88
call ebx
cmp eax, 0x466d88
ja 0x438583
xor ecx, ecx
push 0x466d88
mov word [eax], cx
call edi
cmp eax, esi
jg 0x438550
push 0x466d88
call edi
lea edx, [eax*2 + 0x466d88]
push edx
push 0x466d88
call ebx
cmp word [eax], 0x5c
je 0x4385d4
push 0x45812c
push 0x466d88
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x466d88
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop ebx
pop esi
mov eax, ecx
pop ebp
ret 4
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 4