joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40107e
Capabilities:
Delete file
Manipulate console buffer
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.0040dcd0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
xor ebx, ebx
cmp dword [0x43a674], 0x594
push edi
mov dword [ebp - 0x14], ecx
jne 0x4010b6
push ebx
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x42b338]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42b33c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.00401077
mov eax, dword [0x42b340]
add dword [ebp - 0xc], 0x23f
mov dword [ebp - 0x34], eax
mov eax, dword [0x42b344]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4010f4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
cmp dword [0x43a674], 0xc
mov dword [ebp - 4], eax
jne 0x40114f
push ebx
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x1040]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 0x34]
add dword [ebp - 4], eax
mov eax, dword [0x43a674]
cmp eax, 0xfa9
jne 0x40116b
mov dword [0x43a670], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401191
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x43a5c8], ebx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea eax, [edi + edx]
shr edx, cl
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [0x43a66c], 0xf4ea3dee
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add edi, esi
shr esi, cl
mov dword [ebp - 0x1c], edi
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
cmp dword [0x43a674], 0xb03
jne 0x401208
push str.yacey_jutesepage_vomebawaridamuzixobonawodewagim
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor dword [ebp - 4], esi
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
add dword [ebp - 0xc], 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010f1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x401443
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423fa1
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
cmp dword [0x43a674], 0x400
push edi
jne 0x401504
push 0xf
pop esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x44], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401be0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401920
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004015d0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.0040192a
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401700
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401aa0
fstp st(0)
or dword [esp + 0x44], 0xffffffff
add esp, 8
cmp dword [esp + 0x2c], 0x10
jb 0x4014f8
push dword [esp + 0x18]
call fcn.00401950
pop ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
call esi
call esi
cmp edi, 0x206d51
jg 0x401521
inc edi
cmp edi, 0x4eed4
jl 0x40150c
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp esi, 0x2b2589
jg 0x40153b
inc esi
cmp esi, 0x118b1
jl 0x401523
xor esi, esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
cmp esi, 0x2afdec
jle 0x40155b
cmp dword [esp + 0x10], 0x787c7e45
jne 0x401564
inc esi
cmp esi, 0x42f7
jl 0x40153d
mov eax, dword [0x42dc8c]
mov dword [0x43a674], eax
call fcn.00401244
mov esi, 0x3078f
cmp dword [0x43a674], 0x51f
jne 0x40158d
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
dec esi
jne 0x401578
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403400
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a1c8]
jne 0x40340a
repz ret
jmp fcn.00407fee
Function at 0x407c1b
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.0040490b
and dword [ebp - 4], 0
cmp dword [0x42f62c], 0
mov ebx, eax
jne 0x407ccc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407d7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407d7d
push eax
call fcn.00404899
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f62c], eax
call esi
push eax
call fcn.00404899
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42f630], eax
call esi
push eax
call fcn.00404899
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42f634], eax
call esi
push eax
call fcn.00404899
pop ecx
mov dword [0x42f63c], eax
test eax, eax
je 0x407ccc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404899
pop ecx
mov dword [0x42f638], eax
mov eax, dword [0x42f638]
cmp eax, ebx
je 0x407d24
cmp dword [0x42f63c], ebx
je 0x407d24
push eax
call fcn.00404914
push dword [0x42f63c]
mov esi, eax
call fcn.00404914
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407d24
test edi, edi
je 0x407d24
call esi
test eax, eax
je 0x407d1b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407d1b
test byte [ebp - 0xc], 1
jne 0x407d24
or dword [ebp + 0x10], 0x200000
jmp 0x407d5d
mov eax, dword [0x42f630]
cmp eax, ebx
je 0x407d5d
push eax
call fcn.00404914
pop ecx
test eax, eax
je 0x407d5d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407d5d
mov eax, dword [0x42f634]
cmp eax, ebx
je 0x407d5d
push eax
call fcn.00404914
pop ecx
test eax, eax
je 0x407d5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f62c]
call fcn.00404914
pop ecx
test eax, eax
je 0x407d7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407d7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407563
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x4075a7
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x407576
jmp 0x4075a7
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x407597
pop esi
pop ebp
ret

Function at 0x407fdf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x408014
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40803e
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40803e
test edi, edi
je 0x40800b
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40800b
test edi, edi
je 0x408046
mov eax, edi
jmp 0x40800d
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40800d
int3
Function at 0x40abb7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestVariant.exe_gMozillaPoisonSize], eax
call fcn.00407fdf
pop ecx
mov ecx, dword [sym.TestVariant.exe_gMozillaPoisonSize]
mov dword [sym.TestVariant.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40abef
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestVariant.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x401007
Capabilities:
Delete file
Manipulate console buffer
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.0040dcb0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
xor ebx, ebx
cmp dword [0x43a674], 0x594
push edi
mov dword [ebp - 0x14], ecx
jne 0x40103f
push ebx
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x42b338]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42b33c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.00401000
mov eax, dword [0x42b340]
add dword [ebp - 0xc], 0x23f
mov dword [ebp - 0x34], eax
mov eax, dword [0x42b344]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
jmp 0x40107d
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
cmp dword [0x43a674], 0xc
mov dword [ebp - 4], eax
jne 0x4010d8
push ebx
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x1040]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 0x34]
add dword [ebp - 4], eax
mov eax, dword [0x43a674]
cmp eax, 0xfa9
jne 0x4010f4
mov dword [0x43a670], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40111a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x43a5c8], ebx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea eax, [edi + edx]
shr edx, cl
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [0x43a66c], 0xf4ea3dee
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add edi, esi
shr esi, cl
mov dword [ebp - 0x1c], edi
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
cmp dword [0x43a674], 0xb03
jne 0x401191
push str.wuricogu_cetatiwore_datufijed
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor dword [ebp - 4], esi
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
add dword [ebp - 0xc], 0x61c88647
dec dword [ebp - 0x20]
jne 0x40107a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x401427
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423ae1
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
cmp dword [0x43a674], 0x400
push edi
jne 0x4014e8
push 0xf
pop esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x44], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401bc0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401900
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004015b0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.0040190a
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004016e0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401a80
fstp st(0)
or dword [esp + 0x44], 0xffffffff
add esp, 8
cmp dword [esp + 0x2c], 0x10
jb 0x4014dc
push dword [esp + 0x18]
call fcn.00401930
pop ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
call esi
call esi
cmp edi, 0x206d51
jg 0x401505
inc edi
cmp edi, 0x4eed4
jl 0x4014f0
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp esi, 0x2b2589
jg 0x40151f
inc esi
cmp esi, 0x118b1
jl 0x401507
xor esi, esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
cmp esi, 0x2afdec
jle 0x40153f
cmp dword [esp + 0x10], 0x787c7e45
jne 0x401548
inc esi
cmp esi, 0x42f7
jl 0x401521
mov eax, dword [0x42dc8c]
mov dword [0x43a674], eax
call fcn.004011cd
mov esi, 0x3078f
cmp dword [0x43a674], 0x51f
jne 0x401571
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
dec esi
jne 0x40155c
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4033e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a1c8]
jne 0x4033ea
repz ret
jmp fcn.00407fce
Function at 0x407bfb
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.004048eb
and dword [ebp - 4], 0
cmp dword [0x42f62c], 0
mov ebx, eax
jne 0x407cac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407d5d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407d5d
push eax
call fcn.00404879
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f62c], eax
call esi
push eax
call fcn.00404879
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42f630], eax
call esi
push eax
call fcn.00404879
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42f634], eax
call esi
push eax
call fcn.00404879
pop ecx
mov dword [0x42f63c], eax
test eax, eax
je 0x407cac
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404879
pop ecx
mov dword [0x42f638], eax
mov eax, dword [0x42f638]
cmp eax, ebx
je 0x407d04
cmp dword [0x42f63c], ebx
je 0x407d04
push eax
call fcn.004048f4
push dword [0x42f63c]
mov esi, eax
call fcn.004048f4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407d04
test edi, edi
je 0x407d04
call esi
test eax, eax
je 0x407cfb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407cfb
test byte [ebp - 0xc], 1
jne 0x407d04
or dword [ebp + 0x10], 0x200000
jmp 0x407d3d
mov eax, dword [0x42f630]
cmp eax, ebx
je 0x407d3d
push eax
call fcn.004048f4
pop ecx
test eax, eax
je 0x407d3d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407d3d
mov eax, dword [0x42f634]
cmp eax, ebx
je 0x407d3d
push eax
call fcn.004048f4
pop ecx
test eax, eax
je 0x407d3d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f62c]
call fcn.004048f4
pop ecx
test eax, eax
je 0x407d5d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407d5f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402778
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4027a7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403908
jmp 0x4027c5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402700
mov edi, eax
test ebx, ebx
je 0x4027c5
cmp dword [esi], 0
je 0x4027c5
dec ebx
jmp 0x4027ae
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x44403c], 0x8088405
inc edx
mov dword [0x44403c], edx
mul edx
mov eax, edx
ret

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

Disassembly:
imul edx, dword [0x44403c], 0x8088405
inc edx
mov dword [0x44403c], edx
fld qword [0x440024]
push 0
push edx
fild qword [esp]
add esp, 8
fscale
fstp st(1)
ret

Function at 0x402b54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402bec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402bcc
xor eax, eax
push ebp
push 0x402bc5
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 0x402c08
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 0x402bcc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404f48
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405100
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404fa9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40511c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405016
xor eax, eax
push ebp
push 0x40500f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404ff8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40513c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405016
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4050f7
cmp byte [ebp - 0xd], 0
jne 0x405058
cmp byte [ebp - 0x12], 0
je 0x4050f7
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405071
dec ebx
cmp byte [ebx], 0x2e
je 0x405080
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405070
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4050f7
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4050ad
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4050f7
cmp byte [ebp - 0xd], 0
je 0x4050f7
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4050f7
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4081ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408225
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403908
jmp 0x40822e
mov eax, ebx
mov edx, esi
call fcn.004038bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408238
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408259
mov al, byte [esp]
jmp 0x40825b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov word [ebp - 0x12], dx
mov dword [ebp - 0x10], eax
mov word [ebp - 2], 0
mov word [ebp - 4], 0
movzx eax, word [ebp - 0x12]
mov dword [ebp - 0x18], eax
mov ax, word [ebp - 0x18]
test ax, ax
jbe 0x41130d
mov word [ebp - 0x1a], ax
mov word [ebp - 6], 1
movzx eax, word [ebp - 6]
mov edx, dword [ebp - 0x10]
mov al, byte [edx + eax - 1]
mov byte [ebp - 7], al
push ax
push bx
push cx
push dx
mov dx, word [ebp - 2]
mov bx, word [ebp - 4]
mov cx, word [ebp - 6]
xor ax, ax
mov al, byte [ebp - 7]
xor dx, ax
mul cl
add bx, ax
mov word [ebp - 2], dx
mov word [ebp - 4], bx
pop dx
pop cx
pop bx
pop ax
inc word [ebp - 6]
dec word [ebp - 0x1a]
jne 0x4112c3
mov ax, word [ebp - 4]
mov word [ebp - 0xc], ax
mov ax, word [ebp - 2]
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4115b8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 4], ax
cmp dword [0x44466c], 0
jle 0x4115f1
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, dword [0x444664]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4115ef
cmp eax, 0xc8
jbe 0x411614
jmp 0x4115f1
jle 0x411614
xor eax, eax
call fcn.00411508
movzx eax, ax
mov dword [0x444668], eax
call sub.kernel32.dll_GetTickCount
mov dword [0x444664], eax
mov dword [0x44466c], 5
dec dword [0x44466c]
mov ax, word [0x444668]
mov word [ebp - 2], ax
mov ax, word [ebp - 2]
pop ecx
pop ebp
ret

Function at 0x4129f4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x412a85
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
call fcn.00412538
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403c64
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x412a6f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x443ca8]
call fcn.0040529c
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x412384]
call fcn.00408950
call fcn.0040331c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a8c
lea eax, [ebp - 0x10]
call fcn.00403824
ret