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

Disassembly:
push 0xc
mov eax, 0x472392
call fcn.0044ea41
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x8c], edi
je 0x425181
call fcn.00424d39
test eax, eax
je 0x425189
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push 0x42502b
push edi
push edi
call fcn.004543e8
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x425181
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
call fcn.0044eae6
ret
mov eax, dword [esi + 0xb0]
cmp eax, edi
je 0x425181
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
push edi
mov edx, dword [ebp - 0x14]
neg edx
push edx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push edi
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
push edi
push dword [esi + 0x90]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x425181
push edi
mov ecx, esi
call fcn.00424652
xor eax, eax
inc eax
jmp 0x425183

Function at 0x425c3d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x47242f
call fcn.0044ea41
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
call fcn.0043a0a3
mov eax, dword [eax + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x425ca9
call fcn.0043a0a3
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x425ca9
call fcn.0043a0a3
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x425cb3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
call fcn.0044eae6
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x425d00
cmp dword [ebp + 0xc], 0
je 0x425d00
push edi
push eax
push dword [ebp + 0xc]
call fcn.00451920
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push esi
mov ecx, dword [ebp - 0x14]
call fcn.00425921
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x425cab
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x425ca2
Function at 0x42670e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x2c4
mov eax, 0x472773
call fcn.0044eaad
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x22c], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x220], esi
xor edi, edi
mov dword [ebp - 4], edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
jne 0x426745
xor eax, eax
inc eax
jmp 0x42677d
lea eax, [ebp - 0x224]
push eax
push 0x20019
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x426783
cmp eax, 2
jne 0x426770
push str.Key_not_found._n
call fcn.00453c94
pop ecx
jmp 0x426740
push str.Error_opening_key._n
call fcn.00453c94
pop ecx
xor eax, eax
call fcn.0044eb09
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
mov dword [ebp - 0x234], esi
cmp word [esi - 2], 0x5c
je 0x4267ad
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
mov dword [ebp - 0x234], esi
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x228], 0x104
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4267f2
lea eax, [ebp - 0x21c]
push eax
push 0x208
push esi
call fcn.00425d13
push dword [ebp - 0x220]
push dword [ebp - 0x22c]
call fcn.0042670e
pop ecx
pop ecx
test eax, eax
je 0x426817
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x23c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x224]
call ebx
cmp eax, edi
je 0x4267bf
dec esi
dec esi
mov dword [ebp - 0x234], esi
xor eax, eax
mov word [esi], ax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x220]
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
je 0x426740
or dword [ebp - 4], 0xffffffff
jmp 0x42677b
Function at 0x426fbc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
mov eax, 0x472952
call fcn.0044ea41
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004028a9
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call esi
test eax, eax
je 0x427055
lea eax, [ebp - 0x1c]
push eax
push 0x20119
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x427055
push 0x476c24
mov ecx, dword [ebp + 8]
call fcn.00403cf0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004028d3
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004028d3
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x14]
call fcn.004028d3
mov eax, dword [ebp + 8]
jmp 0x427220
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
mov dword [ebp - 0x28], eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.00402a51
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 4
jmp 0x4270e3
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00425d7b
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x28], ebx
je 0x42710d
push 0x47b0cc
call fcn.0040364f
jmp 0x427023
lea eax, [ebp - 0x14]
push eax
call fcn.00402e10
jmp 0x427023
call fcn.0044eae6
ret
Function at 0x42734e
Capabilities:
Set registry value

Disassembly:
push 0x2d0
mov eax, 0x472b22
call fcn.0044eaad
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.004204fd
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x234], esp
lea eax, [ebp + 8]
push eax
call fcn.00402e10
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
call fcn.00425e7a
pop ecx
push eax
call fcn.00426be7
pop ecx
pop ecx
lea eax, [ebp - 0x238]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x234], esp
lea eax, [ebp + 8]
push eax
call fcn.00402e10
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
call fcn.00425e7a
pop ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427442
lea eax, [ebp - 0x238]
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x234], esp
lea eax, [ebp + 8]
push eax
call fcn.00402e10
mov byte [ebp - 4], 7
mov byte [ebp - 4], 4
call fcn.00425e7a
pop ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x427442
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.004028d3
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004028d3
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.004028d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004028d3
push 0xfffffffffffffff6
pop eax
jmp 0x42760e
lea ecx, [ebp - 0x230]
call fcn.00405be1
mov byte [ebp - 4], 8
push dword [ebp + 0x14]
lea ecx, [ebp - 0x230]
call fcn.004061dd
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x427474
lea eax, [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
add ecx, ecx
push ecx
push eax
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp + 0x14]
call fcn.00425d7b
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.00405a7c
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.004028d3
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004028d3
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.004028d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004028d3
mov eax, esi
jmp 0x42760e
call fcn.0044eb09
ret
Function at 0x429719
Capabilities:
Reference wmi statements

Disassembly:
push 8
mov eax, 0x473129
call fcn.0044ea0e
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
and dword [ebp - 0x10], 0
push str.Caption
push 0x476a4d
push str.SELECT__FROM_Win32_OperatingSystem
push str.ROOTcimv2
push esi
mov dword [ebp - 0x14], esi
call fcn.00428b11
add esp, 0x14
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
call fcn.0044eae6
ret

Function at 0x429763
Capabilities:
Get geographical location

Disassembly:
push 0x4bc
mov eax, 0x47328f
call fcn.0044eaad
mov esi, dword [ebp + 8]
mov dword [ebp - 0x434], esi
and dword [ebp - 0x430], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x214], ax
push 0x1fc
push eax
lea eax, [ebp - 0x212]
push eax
call fcn.0044ec60
add esp, 0xc
push 0x1fe
lea eax, [ebp - 0x214]
push eax
push 0x59
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [ebp - 0x418]
call fcn.004028a9
mov byte [ebp - 4], 2
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x418]
call fcn.004034da
lea eax, [ebp - 0x418]
push eax
mov ecx, esi
call fcn.00402e10
mov dword [ebp - 0x430], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x418]
call fcn.004028d3
mov eax, esi
jmp 0x429913
call fcn.0044eb09
ret
Function at 0x42b607
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42b64f
call fcn.0043a0a3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42b64f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42b692
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42b67b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42b67b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42b68f
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x438b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x438b87
call fcn.0043a0a3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x438b87
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x438ba3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004386b8
mov esi, eax
test edi, edi
je 0x438ba1
test ebx, ebx
je 0x438ba1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43932a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x473d9f
call fcn.0044ea0e
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43934f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x439395
lea ecx, [ebp - 0x10]
call fcn.004028a9
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042aa86
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401109
mov eax, esi
call fcn.0044eae6
ret 8

Function at 0x441325
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x441349
cmp dword [edi + 0x54], 0
jne 0x441349
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043a0a3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004412e6
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x445678
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4456a3
call fcn.0043a0a3
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4456c6
push eax
push dword [esi + 4]
call fcn.004455fe
push esi
push eax
mov ecx, 0x49c840
call fcn.00445285
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x446148
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x47478a
call fcn.0044ea0e
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00446108
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004028a9
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4461ae
push eax
push dword [esi + 8]
call fcn.004455fe
push dword [esi + 0xc]
mov ecx, 0x49c840
push eax
call fcn.00445285
mov eax, esi
call fcn.0044eae6
ret 0x18

Function at 0x44e9ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4993a0]
jne 0x44ea09
repz ret
jmp fcn.00459f7c

Function at 0x462be7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004563f2
and dword [ebp - 4], 0
cmp dword [0x49d690], 0
mov ebx, eax
jne 0x462c98
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x462d49
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x462d49
push eax
call fcn.00456380
mov dword [esp], 0x480238
push edi
mov dword [0x49d690], eax
call esi
push eax
call fcn.00456380
mov dword [esp], 0x480224
push edi
mov dword [0x49d694], eax
call esi
push eax
call fcn.00456380
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49d698], eax
call esi
push eax
call fcn.00456380
pop ecx
mov dword [0x49d6a0], eax
test eax, eax
je 0x462c98
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00456380
pop ecx
mov dword [0x49d69c], eax
mov eax, dword [0x49d69c]
cmp eax, ebx
je 0x462cf0
cmp dword [0x49d6a0], ebx
je 0x462cf0
push eax
call fcn.004563fb
push dword [0x49d6a0]
mov esi, eax
call fcn.004563fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x462cf0
test edi, edi
je 0x462cf0
call esi
test eax, eax
je 0x462ce7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x462ce7
test byte [ebp - 0xc], 1
jne 0x462cf0
or dword [ebp + 0x10], 0x200000
jmp 0x462d29
mov eax, dword [0x49d694]
cmp eax, ebx
je 0x462d29
push eax
call fcn.004563fb
pop ecx
test eax, eax
je 0x462d29
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x462d29
mov eax, dword [0x49d698]
cmp eax, ebx
je 0x462d29
push eax
call fcn.004563fb
pop ecx
test eax, eax
je 0x462d29
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49d690]
call fcn.004563fb
pop ecx
test eax, eax
je 0x462d49
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x462d4b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4065f4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406636
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406656
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040a240
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4068ac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004095b8
test esi, esi
jne 0x4068e2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409740
jmp 0x406900
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406790
mov edi, eax
test esi, esi
je 0x406900
cmp dword [ebx], 0
je 0x406900
dec esi
jmp 0x4068e9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x60f008], 0x8088405
inc edx
mov dword [ebx + 0x60f008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4082e4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004086bc
mov byte [esp], al
cmp byte [esp], 0
jne 0x408464
test edi, edi
je 0x408464
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4083a4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40837f
cmp edi, 0xffffffff
je 0x408343
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408343
mov byte [esp], 0
jmp 0x408464
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40837f
test ebx, ebx
jne 0x408375
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408375
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408464
call 0x4087dc
dec ebp
test ebp, ebp
jg 0x408328
cmp edi, 0xffffffff
je 0x4083a4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4083a2
mov byte [esp], 0
jmp 0x408464
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4082f2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4083a4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004084d0
mov edx, eax
mov ebx, dword [0x61d8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408408
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408406
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408408
xor edi, edi
cmp byte [esp], 0
je 0x40842e
mov ebx, dword [esi]
test bl, 1
jne 0x408444
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40840e
mov byte [esp + 1], 1
jmp 0x408444
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40842e
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4083bb
cmp byte [esp], 0
je 0x408464
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409218
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61d058], 0
je 0x40927f
cmp word [0x61d344], 0xd7b2
jne 0x409241
cmp dword [0x61d34c], 0
jbe 0x409241
mov eax, 0x61d340
call dword [0x61d35c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4092ac
call fcn.00409e3c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x60f032], 0
jne 0x40929b
push 0
push 0x60f9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret