joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100531fe
Capabilities:
Print debug messages

Disassembly:
push 0x58
mov eax, 0x100b6256
call fcn.10075f38
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x10053218
xor eax, eax
jmp 0x10053364
mov eax, ebx
call fcn.10051f9e
cmp byte [ebp + 8], 0
jne 0x1005323e
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x1005323e
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.10051da4
jmp 0x1005324b
mov edi, ebx
call fcn.1005392c
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.10052ec5
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.10052f82
cmp dword [ebx + 0x98], esi
je 0x1005327b
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.1005310c
cmp dword [ebx + 0x90], esi
je 0x10053290
push dword [ebx + 0x94]
mov eax, ebx
call fcn.10053040
push 0x100cb25c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x2c]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.10053fd4
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.100512c2
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.1001dd66
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
call fcn.1001dd66
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
je 0x100532ed
cmp dword [ebp - 0x18], eax
je 0x100532f2
call fcn.1006df11
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
je 0x1005334a
lea esi, [ebp - 0x18]
call fcn.100547ad
push dword [eax]
push 0
call fcn.100547ad
add eax, 4
push eax
push ebx
call fcn.10052060
test eax, eax
jne 0x10053340
push 0x38
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10070cb0
or dword [ebp - 0x64], 0xffffffff
add esp, 0xc
call fcn.100547ad
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
lea edx, [ebp - 0x64]
call fcn.1004f84c
lea esi, [ebp - 0x18]
call fcn.10054e6b
jmp 0x100532ce
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
call fcn.10054c25
xor eax, eax
inc eax
call fcn.10075fd7
ret 4
Function at 0x10055fd0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x100b4d83
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100dd3e0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, 0x100f9408
mov ebp, 0x100f4e6c
mov dword [esp + 0x14], 3
lea esp, [esp]
push 0x44
call fcn.1006dd7d
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x3c], ebx
je 0x1005603e
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
mov ecx, dword [ebp - 4]
push edx
push ecx
push eax
call fcn.10056a40
mov edi, eax
jmp 0x10056040
xor edi, edi
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esi]
cmp edi, ecx
je 0x1005605c
cmp ecx, ebx
je 0x1005605a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi], edi
mov ecx, dword [esi]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x20]
push eax
call edx
test al, al
je 0x100560cc
mov eax, dword [esi]
lea ecx, [esp + 0x18]
call fcn.10055d70
mov dword [esp + 0x3c], 1
mov edi, dword [eax]
cmp edi, ebx
je 0x100560a7
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x100560b6
lea ecx, [eax + 4]
call fcn.10034d9c
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edi
mov dword [esp + 0x3c], 0xffffffff
call fcn.10034c56
jmp 0x100560fd
call fcn.1005aaab
test al, al
je 0x100560ee
mov ecx, dword [esp + 0x2c]
push ecx
push str.CreateThread_Failed__last_error_d
push 2
mov ebx, str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projAsyncFrame_asyncframertapi.cpp
call fcn.1005a87b
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add ebp, 0xc
add esi, 4
sub dword [esp + 0x14], 1
jne 0x10056010
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x100571c0
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b61fd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100dd3e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor edi, edi
mov dword [esi], vtable.qmbase::MessageLoop.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea eax, [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov byte [esp + 0x20], 5
mov dword [esi + 0x88], edi
call fcn.100570c0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call ebx
call fcn.100570c0
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10057277
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x24
call fcn.1006dd7d
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x20], 6
je 0x10057298
push eax
call fcn.10059d80
mov ebp, eax
jmp 0x1005729a
xor ebp, ebp
cmp ebp, edi
mov byte [esp + 0x20], 5
je 0x100572a9
lea eax, [ebp + 4]
push eax
call ebx
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x100572b8
lea ecx, [eax + 4]
call fcn.10034d9c
mov eax, esi
mov dword [esi + 0x70], ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x10059c20
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b6128
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100dd3e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0x20], ebx
je 0x10059c75
call fcn.100570c0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esi + 0x20]
jne 0x10059c75
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x10059cc0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b6a50
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x100dd3e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
push edi
xor bl, bl
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x58], 0
cmp dword [esi + 0x20], 0
je 0x10059d4a
call fcn.100570c0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esi + 0x20]
je 0x10059d4a
push 0x38
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projAsyncFrameMessageLoopProxyImpl.cpp
push str.qmbase::MessageLoopProxyImpl::OnDestruct
lea ecx, [esp + 0x20]
call fcn.100349ea
push esi
mov byte [esp + 0x5c], 1
mov ecx, dword [esi + 0x20]
push eax
push ecx
call fcn.10059ea0
lea ecx, [esp + 0x14]
call fcn.10034b4c
mov bl, 1
push edi
mov dword [esp + 0x5c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x10059d68
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x4c
ret

Function at 0x10059d80
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b6103
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100dd3e0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esp + 0x10], eax
lea eax, [esi + 8]
push 0x7d0
push eax
mov dword [esi], vtable.qmbase::MessageLoopProxyImpl.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esp + 0x10], 1
call fcn.100570c0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x100615f1
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0x14
mov eax, 0x100b4c5d
call fcn.10075f38
mov edi, ecx
and dword [ebp - 0x18], 0
lea esi, [ebp - 0x10]
call fcn.100610f4
and dword [ebp - 4], 0
mov eax, dword [0x100f82c0]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x10061733
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
mov esi, 0x100c9b9c
je 0x10061655
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x10]
call fcn.10061445
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
test eax, eax
jl 0x10061669
push esi
push edi
call fcn.1006e7d0
test eax, eax
pop ecx
pop ecx
jne 0x1006166e
or eax, 0xffffffff
jmp 0x10061672
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10061733
lea ecx, [eax + 1]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call fcn.10061180
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.10061445
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1006134a
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov esi, dword [edi - 8]
jle 0x100616ed
test esi, esi
jle 0x100616ed
cmp ebx, esi
jle 0x100616bf
mov ebx, esi
lea eax, [ebp - 0x10]
call fcn.100614cc
mov edi, dword [ebp - 0x10]
mov eax, esi
sub eax, ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [edi + ebx*2]
push eax
mov eax, dword [edi - 4]
lea eax, [eax + eax + 2]
push eax
push edi
call fcn.10024826
add esp, 0x10
sub esi, ebx
mov dword [edi - 8], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x1006170c
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1006173a
cmp dword [edi - 8], 0
jl 0x10061723
push 0x100c9b9c
push edi
call fcn.1006e7d0
test eax, eax
pop ecx
pop ecx
jne 0x10061727
mov eax, esi
jmp 0x1006172b
sub eax, edi
sar eax, 1
cmp eax, esi
jne 0x1006167b
mov dword [ebp - 0x18], 1
lea esi, [ebp - 0x14]
call fcn.1006134a
lea esi, [ebp - 0x10]
call fcn.1006134a
mov eax, dword [ebp - 0x18]
call fcn.10075fd7
ret
Function at 0x10061b69
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x60
mov eax, 0x100b60c9
call fcn.10075fa1
mov esi, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x49], 0
call fcn.10068cef
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100016d0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10004adf
test al, al
je 0x10061bc7
mov eax, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.10068a35
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1000177c
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.10001767
jmp 0x10061bd0
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000177c
lea esi, [ebp - 0x2c]
call fcn.10068ae8
push 0x100cc2cc
lea ecx, [ebp - 0x6c]
call fcn.100016f9
lea ebx, [ebp - 0x6c]
mov edi, esi
mov byte [ebp - 4], 3
call fcn.10068bfb
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10001767
mov ecx, esi
call fcn.10004d1a
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x50]
je 0x10061c1f
and dword [eax + 0x1c], 0
jmp 0x10061ce0
lea esi, [ebp - 0x48]
mov dword [eax + 0x1c], 1
call fcn.1006894b
push 0x100cc2e4
lea ecx, [ebp - 0x6c]
call fcn.100016f9
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.10068b87
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10001767
mov ecx, edi
call fcn.10004d1a
push eax
call ebx
cmp eax, 0xffffffff
je 0x10061c77
mov ecx, dword [ebp - 0x50]
mov eax, edi
push eax
add ecx, 0x80
call fcn.1000177c
jmp 0x10061cdc
push str.SKIN
push str.QMUIRES.dat
push dword [0x100f9018]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10061ce0
push esi
push dword [0x100f9018]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10061ce0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10061ce0
push esi
push dword [0x100f9018]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x50]
mov edi, eax
add esi, 0xb0
mov eax, esi
call fcn.100657d8
push edi
push ebx
push dword [esi]
call fcn.10070d30
add esp, 0xc
mov byte [ebp - 0x49], 1
lea ecx, [ebp - 0x2c]
call fcn.10001767
lea ecx, [ebp - 0x48]
call fcn.10001767
mov al, byte [ebp - 0x49]
call fcn.10075feb
ret
Function at 0x1006211b
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x50
mov eax, 0x100b607c
call fcn.10075fa1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2d], 0
call fcn.10004adf
test al, al
jne 0x1006223d
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000172f
and dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.10068ae8
call fcn.100208fe
mov ecx, edi
mov ebx, eax
call fcn.100014c6
mov edi, eax
test edi, edi
je 0x10062183
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x10062187
xor eax, eax
jmp 0x1006219a
lea eax, [esi + esi]
call fcn.1007ffe0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.100345fd
push eax
lea ecx, [ebp - 0x5c]
call fcn.100016f9
lea ebx, [ebp - 0x5c]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10068bfb
xor ebx, ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.10001767
mov ecx, edi
call fcn.10004d1a
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x10062235
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x1006222c
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x34], ebx
call fcn.1006d3be
mov edi, dword [ebp - 0x3c]
pop ecx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push dword [ebp - 0x38]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006222c
cmp dword [ebp - 0x34], esi
jne 0x1006222c
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
mov eax, dword [edi]
mov byte [esi + eax], bl
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.10001767
mov al, byte [ebp - 0x2d]
lea esp, [ebp - 0x6c]
call fcn.10075feb
ret 8
Function at 0x10063146
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x100b5771
call fcn.10075f38
mov eax, dword [ebp + 0x41c]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x20a]
push edi
push eax
mov word [ebp + 0x208], di
call fcn.10070cb0
push esi
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.10070cb0
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp + 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x100f82c0]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
shr eax, 0x10
test ax, ax
lea eax, [ebp + 0x208]
jne 0x100631ee
movzx eax, ax
push eax
lea ecx, [ebp - 0x10]
call fcn.100611f2
jmp 0x10063223
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x10063223
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.10061372
test eax, eax
je 0x10063223
lea eax, [esi + esi]
push eax
lea ecx, [ebp + 0x208]
push ecx
add eax, 2
push eax
push dword [ebp - 0x10]
call fcn.10020b1c
add esp, 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.100615f1
lea esi, [ebp - 0x10]
mov ebx, eax
call fcn.1006134a
cmp ebx, edi
je 0x10063298
lea eax, [ebp]
push eax
push edi
push 0x100cc3ec
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp]
push 0x100cc3f4
push eax
call fcn.10073a14
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x10063298
push esi
push dword [ebp + 0x420]
push 1
push dword [ebp - 0x14]
call fcn.10073bd6
push esi
call fcn.10073cca
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1006e011
add ebp, 0x414
leave
ret

Function at 0x10067853
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x1008f040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.10070cb0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1008f095
mov eax, 1
jmp 0x1008f0e0
cmp dword [ebp - 0x124], 5
jne 0x1008f0ce
cmp dword [ebp - 0x120], 1
jne 0x1008f0b6
movzx edx, word [ebp - 0x14]
cmp edx, 1
jge 0x1008f0b6
xor eax, eax
jmp 0x1008f0e0
cmp dword [ebp - 0x120], 0
jne 0x1008f0cc
movzx eax, word [ebp - 0x14]
cmp eax, 3
jge 0x1008f0cc
xor eax, eax
jmp 0x1008f0e0
jmp 0x1008f0db
cmp dword [ebp - 0x124], 5
jae 0x1008f0db
xor eax, eax
jmp 0x1008f0e0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e011
mov esp, ebp
pop ebp
ret

Function at 0x1008f5c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b11c7
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000172f
mov byte [ebp - 4], 1
mov ecx, dword [0x100c8090]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x100c8090]
push edx
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.100371b3
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x100c8090]
je 0x1008f67a
mov ecx, dword [ebp - 0x30]
push ecx
push 0
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100018fb
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000177c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.10001767
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.1000172f
mov dword [ebp - 0x64], eax
call fcn.1008f5c0
add esp, 0x1c
push 0
lea ecx, [ebp + 8]
call fcn.10004d1a
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1008f69c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1008f6c5
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10001767
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001767
mov eax, dword [ebp - 0x54]
jmp 0x1008f707
mov dword [ebp - 0x58], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10001767
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001767
mov eax, dword [ebp - 0x58]
jmp 0x1008f707
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e011
mov esp, ebp
pop ebp
ret
Function at 0x10092a49
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0db5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100dd3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
and dword [ebp - 0x14], 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10003b21
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.10092871
pop ecx
push str.Simple_
lea ecx, [ebp - 0x10]
call fcn.10009ef1
push 0
lea ecx, [ebp - 0x10]
call fcn.1003338d
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.ConfigFile
lea ecx, [ebp - 0x10]
call fcn.10009ef1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
call fcn.10003ba5
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.10003b21
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100104e6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 8

Function at 0x10092d76
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xe0
call fcn.1003da81
jmp 0x10092da1
push 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
call fcn.1003dc9f
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xe0
call fcn.1003daa0
push eax
lea ecx, [ebp - 8]
call fcn.10011c2a
movzx eax, al
test eax, eax
je 0x10092e09
lea ecx, [ebp - 8]
call fcn.1003dc11
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.10004d1a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10092e07
mov ecx, dword [ebp - 0xc]
call fcn.10004d1a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10092e07
push 4
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10004d1a
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x10092d93
mov ecx, dword [ebp - 0x38]
add ecx, 0xe0
call fcn.1003db90
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xf0
call fcn.1003da81
jmp 0x10092e39
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.1003dc9f
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xf0
call fcn.1003daa0
push eax
lea ecx, [ebp - 0x14]
call fcn.10011c2a
movzx eax, al
test eax, eax
je 0x10092e73
lea ecx, [ebp - 0x14]
call fcn.1003dc11
mov ecx, eax
call fcn.10004d1a
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10092e2b
mov ecx, dword [ebp - 0x38]
add ecx, 0xf0
call fcn.1003db90
leave
ret