joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10597fe
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x107fe5a
call fcn.01032938
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01032890
xor edi, edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
inc esi
push esi
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x1003ac8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x10598b4
mov eax, dword [esi]
cmp eax, edi
je 0x10598b4
movzx edi, word [eax]
test edi, edi
je 0x10598b4
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x10598b4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [esi]
push dword [ebp + 0x10]
mov ecx, edi
mov edi, eax
mov eax, ecx
inc esi
shr ecx, 2
inc esi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x10]
push eax
push 1
push dword [ebp + 0x10]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebx]
push 0
push 0x10170c0
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
mov ecx, ebx
push dword [ebx + 4]
push dword [ebp - 0x18]
call dword [eax + 0xc]
test eax, eax
jl 0x10598ea
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x10017b4
push eax
call dword [ecx]
test eax, eax
jge 0x1059911
mov eax, dword [ebp - 0x10]
test eax, eax
mov byte [ebp - 4], 0
je 0x10598fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x105990c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
jmp 0x1059984
push dword [ebp - 0x1c]
push 0xffffffffffffffeb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x1059957
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push eax
call esi
mov edi, 0x10000
test edi, eax
je 0x1059957
push 0xffffffffffffffec
push dword [ebx + 4]
call esi
or eax, edi
push eax
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp - 0x10]
test eax, eax
mov byte [ebp - 4], 0
je 0x1059971
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1059982
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10616d7
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
cmp ebx, eax
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
je 0x10617a7
cmp dword [ebp + 0xc], eax
je 0x10617a7
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push 0x40
call edi
test eax, eax
mov dword [ebp - 4], eax
jne 0x1061723
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x10617ae
push eax
push ebx
mov ecx, esi
call fcn.0106167a
test eax, eax
mov dword [ebp + 8], eax
jne 0x10617c3
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
lea eax, [ebp - 8]
push eax
push 0
push 1
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x1061715
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push 0x40
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x1061715
lea eax, [ebp - 8]
push eax
push edi
push 1
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1061780
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x1061799
mov eax, dword [ebp - 8]
cmp word [edi + eax*2 - 2], 0xa
jne 0x1061799
lea eax, [edi + eax*2 - 4]
cmp word [eax], 0xd
jne 0x1061799
and word [eax], 0
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x10617ae
mov dword [ebp + 8], 0x57
cmp dword [ebp + 8], 0
je 0x10617c3
cmp dword [ebp - 0xc], 0
je 0x10617c3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x10617d5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
leave
ret 8
Function at 0x106343d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x10809ee
call fcn.01032938
sub esp, 0x440
mov eax, dword [0x109126c]
or dword [ebp - 0x42c], 0xffffffff
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp byte [edi + 0x4a], bl
mov dword [ebp - 0x10], eax
je 0x1063574
lea eax, [ebp - 0x42d]
push eax
push 0x1016f98
lea ecx, [ebp - 0x440]
call fcn.010293e8
lea eax, [ebp - 0x440]
push eax
mov dword [ebp - 4], ebx
call fcn.0102e867
mov eax, dword [ebp - 0x43c]
cmp eax, ebx
jne 0x10634a1
mov eax, 0x1003ac8
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x42c], eax
jne 0x10634f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1063558
cmp eax, ebx
jle 0x10634df
and eax, 0xffff
or eax, 0x80070000
push 1
lea ecx, [ebp - 0x440]
mov esi, eax
call fcn.01025782
jmp 0x1063598
push eax
lea ecx, [ebp - 0x44c]
call fcn.01069875
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 1
call fcn.01064b37
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.01063276
lea ecx, [ebp - 0x428]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.01064b67
cmp esi, ebx
jge 0x1063555
push 1
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x44c], 0x1003fe8
call fcn.01025782
jmp 0x1063583
mov byte [ebp - 4], bl
mov ecx, edi
call fcn.01062475
lea ecx, [ebp - 0x440]
push 1
mov esi, eax
call fcn.01025782
cmp esi, ebx
jl 0x1063583
jmp 0x1063581
mov ecx, edi
call fcn.0106334f
mov esi, eax
cmp esi, ebx
jl 0x1063598
xor esi, esi
cmp dword [ebp - 0x42c], 0xffffffff
je 0x1063598
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0102a8ee
leave
ret

Function at 0x10637cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x101729c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1063827
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004a62
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x106381a
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1063829
xor eax, eax
pop esi
leave
ret 4
Function at 0x1063d5d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x2d], 0
je 0x1063d7c
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
jmp 0x1063dba
cmp dword [ebp + 8], 0
jne 0x1063d86
xor eax, eax
jmp 0x1063dac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01032890
mov eax, esp
push esi
push dword [ebp + 8]
push eax
call fcn.0102f7d4
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1063db1
sub eax, edx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1063ded
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1063ddf
call esi
jmp 0x1063def
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1063def
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
leave
ret 4

Function at 0x1064481
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x1080a55
call fcn.01032938
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
push edi
jne 0x1064585
lea ecx, [ebp - 0x40]
call fcn.0103076d
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.01031043
mov edi, eax
cmp edi, ebx
lea ecx, [ebp - 0x40]
jl 0x106456e
push ebx
push ebx
push 0x100000
push ebx
push ebx
push 0x1003be4
call fcn.01030eb8
mov edi, eax
cmp edi, ebx
jl 0x106456b
cmp dword [esi + 0x10], ebx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jne 0x10644ff
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
jmp 0x1064541
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov edi, 0x1003ac8
jne 0x106450d
mov eax, edi
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x1064544
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1064544
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1064534
mov eax, edi
push eax
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0x18], eax
cmp dword [esi + 0x18], ebx
jne 0x1064579
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x106455b
call esi
mov edi, eax
jmp 0x106456b
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
lea ecx, [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
call fcn.01030ce6
jmp 0x1064587
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.01030ce6
xor edi, edi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x106961c
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
mov ebx, 0x1003ac8
je 0x1069636
mov ebx, eax
mov ecx, esi
mov byte [ebp - 1], 0
call fcn.0106953f
test eax, eax
jl 0x10696e9
push edi
push 4
mov edi, 0x1018b74
push edi
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1069667
add ebx, 8
mov byte [ebp - 1], 1
lea eax, [esi + 0x10]
push eax
mov al, byte [ebp + 8]
neg al
sbb eax, eax
and eax, 0x10000000
push eax
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x10696a3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1069695
call esi
jmp 0x10696e8
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x10696e8
cmp byte [ebp - 1], 0
je 0x10696e6
lea eax, [ebp + 0xb]
push eax
push dword [esi + 0x14]
lea ecx, [ebp - 0x14]
call fcn.010293e8
push edi
push dword [esi + 0x14]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 0x10]
test eax, eax
pop ecx
pop ecx
jne 0x10696d0
mov eax, 0x1003ac8
push eax
push dword [esi + 0x14]
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 1
lea ecx, [ebp - 0x14]
call fcn.01025782
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x106fa54
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106cb1f
push 0
push 1
mov ecx, ebx
call fcn.0106d41e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0102bb09
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x106faa4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x106faea
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x106faea
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x106f7b0
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x106fb0e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x106fafc
call esi
mov esi, eax
jmp 0x106fb12
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x106fb12
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1071ae8
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1081b6e
call fcn.01032938
sub esp, 0x4c
push ebx
push esi
push edi
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.010293e8
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], 0x3c
call fcn.0102e867
xor edi, edi
mov esi, eax
inc edi
cmp esi, ebx
jl 0x1071b9d
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x54], 0x400
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 0x101a9c4
mov dword [ebp - 0x48], 0x1003ac8
je 0x1071b51
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1071b60
cmp word [eax], bx
mov dword [ebp - 0x44], eax
jne 0x1071b63
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1071b9b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1071b89
call esi
mov esi, eax
jmp 0x1071b9d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1071b9d
xor esi, esi
cmp dword [ebp - 0x20], ebx
je 0x1071bab
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [ebp - 0x1c]
call fcn.01025782
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x107339e
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x1081d15
call fcn.01032938
sub esp, 0x44
push ebx
push esi
mov ebx, ecx
mov esi, ebx
neg esi
lea eax, [ebx + 4]
sbb esi, esi
and esi, eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0102b4e5
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0xe
jl 0x10733e7
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x10733e0
lea ecx, [eax + 4]
call fcn.0102aff3
xor al, al
jmp 0x1073469
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1073423
cmp dword [ebp - 0x3c], 0
ja 0x1073423
jb 0x1073418
cmp dword [ebp - 0x40], 0x2000000
jae 0x1073423
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
lea edi, [eax + ebx + 0x34]
jmp 0x107344e
push 0
lea ecx, [ebp - 0x10]
call fcn.0102b51e
push dword [ebp + 0xc]
push dword [ebx + 0x30]
call fcn.0102b47b
test eax, eax
jne 0x1073479
push esi
lea ecx, [ebp - 0x10]
call fcn.0102b51e
cmp byte [edi], 0
je 0x107342c
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1073466
lea ecx, [eax + 4]
call fcn.0102aff3
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x107348c
lea ecx, [eax + 4]
call fcn.0102aff3
xor al, al
jmp 0x1073468
Function at 0x1074dc4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106cb1f
push 0
push 1
mov ecx, ebx
call fcn.01073bf3
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.01073a35
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x1074e14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x1074e5a
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x1074e5a
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x1074d06
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x1074e7e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1074e6c
call esi
mov esi, eax
jmp 0x1074e82
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1074e82
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x1077640
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106cb1f
push 0
push 1
mov ecx, ebx
call fcn.010774df
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0107681e
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x1077690
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x10776d6
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x10776d6
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x1077585
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x10776fa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10776e8
call esi
mov esi, eax
jmp 0x10776fe
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10776fe
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x107b838
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106cb1f
push 0
push 1
mov ecx, ebx
call fcn.0102bf5e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0102ba45
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x107b888
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x107b8ce
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x107b8ce
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x107b254
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x107b8f2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107b8e0
call esi
mov esi, eax
jmp 0x107b8f6
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x107b8f6
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x402a04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040c0
test esi, esi
jne 0x402a3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041b0
jmp 0x402a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402a58
cmp dword [ebx], 0
je 0x402a58
dec esi
jmp 0x402a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45e008], 0x8088405
inc edx
mov dword [ebx + 0x45e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403164
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031dc
xor eax, eax
push ebp
push 0x4031d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403218
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031dc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45e024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45e024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ec0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x460048], 0
je 0x403f21
cmp word [0x46021c], 0xd7b2
jne 0x403ee9
cmp dword [0x460224], 0
jbe 0x403ee9
mov eax, 0x460218
call dword [0x460234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f48
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e034], 0
jne 0x403f3d
push 0
push 0x45e068
push 0x45e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404074
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x460049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40403c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc