joyce8/EMBER2024-capa huggingface dataset:
Function at 0x619ea8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x619f9e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x619f49
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00619c20
pop ecx
mov eax, dword [0x6938a4]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0xc]
mov ecx, 0x619fb8
call fcn.00406f8c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x694354]
mov eax, dword [eax]
call eax
mov eax, dword [0x6938a4]
mov eax, dword [eax]
mov edx, dword [eax + 0x40]
lea eax, [ebp - 8]
mov ecx, 0x61a01c
call fcn.00406f8c
mov eax, dword [ebp - 8]
call fcn.00471a74
test al, al
je 0x619f3f
push ebp
mov eax, dword [ebp - 8]
call fcn.00619c20
pop ecx
mov eax, dword [ebp - 8]
call fcn.00406c34
push eax
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x619f83
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x619fa5
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00406ba0
ret

Function at 0x61b1b8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b90
mov eax, dword [ebp - 8]
call fcn.00406b90
xor eax, eax
push ebp
push 0x61b238
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00471a2c
test al, al
jne 0x61b21d
mov eax, dword [ebp - 4]
call fcn.00406c34
push eax
mov eax, dword [ebp - 8]
call fcn.00406c34
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x61b21d
mov eax, dword [ebp - 4]
call fcn.00406c34
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61b23f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x61ba20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x61bb45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 0x61bb60
call fcn.00614910
test al, al
je 0x61bb2a
push 0x61bb8c
push 0x61bbbc
call sub.user32.dll_FindWindowW
mov ebx, eax
test ebx, ebx
jbe 0x61baf0
push 0
push 1
push 0x2aad
push ebx
call sub.user32.dll_PostMessageW
test eax, eax
je 0x61bab7
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x61baa1
push 0x3e8
mov eax, dword [0x6944d4]
mov eax, dword [eax]
call eax
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x2ee0
jae 0x61bb20
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 0x61bb60
call fcn.00614910
test al, al
jne 0x61ba85
jmp 0x61bb20
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 8]
call fcn.004714bc
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x61bbe8
call fcn.00406f8c
mov eax, dword [ebp - 4]
call fcn.00406c34
push eax
mov eax, dword [0x694130]
mov eax, dword [eax]
call eax
jmp 0x61bb20
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10]
call fcn.004714bc
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x61bc34
call fcn.00406f8c
mov eax, dword [ebp - 0xc]
call fcn.00406c34
push eax
mov eax, dword [0x694130]
mov eax, dword [eax]
call eax
mov eax, 0x61bb60
call fcn.0051570c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61bb4c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406ba0
ret
Function at 0x61bc88
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb98
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x464], edx
mov dword [ebp - 0x468], edx
mov dword [ebp - 0x45c], edx
mov dword [ebp - 0x460], edx
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x458], edx
mov dword [ebp - 0x450], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b90
xor eax, eax
push ebp
push 0x61bf0d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00471a74
test al, al
jne 0x61bcfc
mov dword [ebp - 0x10], 0xffffffff
jmp 0x61bee2
xor eax, eax
push ebp
push 0x61bed8
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0050fc9c
mov esi, eax
mov dword [ebp - 0x244], 0x22c
lea edx, [ebp - 0x244]
mov eax, esi
call fcn.0050fcbc
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x61bec0
lea eax, [ebp - 0x450]
lea edx, [ebp - 0x220]
mov ecx, 0x104
call fcn.00406db8
mov eax, dword [ebp - 0x450]
lea edx, [ebp - 0xc]
call fcn.0047221c
lea edx, [ebp - 0x454]
mov eax, dword [ebp - 0xc]
call fcn.004703bc
mov eax, dword [ebp - 0x454]
push eax
lea edx, [ebp - 0x458]
mov eax, 0x61bf2c
call fcn.004703bc
mov eax, dword [ebp - 0x458]
pop edx
call fcn.0040757c
test eax, eax
jg 0x61bead
lea edx, [ebp - 0x460]
xor eax, eax
call fcn.00403634
mov eax, dword [ebp - 0x460]
lea edx, [ebp - 0x45c]
call fcn.0047221c
mov edx, dword [ebp - 0x45c]
mov eax, dword [ebp - 0xc]
call fcn.00470760
test al, al
jne 0x61bead
push 0x61bf44
mov eax, dword [0x694130]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x23c]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, edi
call fcn.00512ad4
push 0x208
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.00512b04
test eax, eax
jne 0x61be26
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406bfc
jmp 0x61be5b
lea eax, [ebp - 0x468]
lea edx, [ebp - 0x44c]
mov ecx, 0x104
call fcn.00406db8
mov eax, dword [ebp - 0x468]
lea edx, [ebp - 0x464]
call fcn.00471f48
mov eax, dword [ebp - 0x464]
lea edx, [ebp - 8]
call fcn.0047a47c
push 0x61bf5c
mov eax, dword [0x694130]
mov eax, dword [eax]
call eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00470650
test eax, eax
jne 0x61bead
cmp dword [ebp - 8], 0
je 0x61bead
cmp dword [ebp - 4], 0
je 0x61bead
push 0
mov eax, dword [ebp - 0x23c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 0x10], eax
push 0xc8
mov eax, dword [0x6944d4]
mov eax, dword [eax]
call eax
lea edx, [ebp - 0x244]
mov eax, esi
call fcn.0050fcdc
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x61bd3a
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61bee2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61bf14
lea eax, [ebp - 0x468]
mov edx, 7
call fcn.00406ba0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406ba0
ret
Function at 0x61c890
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
xor eax, eax
push ebp
push 0x61ca31
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x61c9e1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x61c8de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61ca1b
xor eax, eax
push ebp
push 0x61c9d0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0x61ca40
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x61c9b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jbe 0x61c99b
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x694038]
mov eax, dword [eax]
call eax
test eax, eax
je 0x61c992
push 0x3e8
mov eax, dword [0x6944d4]
mov eax, dword [eax]
call eax
jmp 0x61c981
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x7530
jbe 0x61c96d
call fcn.0040541c
call fcn.0040541c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61ca1b
cmp dword [ebp - 0x20], 3
jne 0x61c992
push 0x3e8
mov eax, dword [0x6944d4]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x61c948
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61c9b9
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61ca38
lea eax, [ebp - 0x28]
call fcn.00406b98
ret
Function at 0x61fef8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x620194
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6dca40], 0
je 0x61ff30
mov edx, dword [0x6dca40]
mov eax, esi
call fcn.0061efec
mov eax, dword [0x6dca50]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x61ff61
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [0x6dca50]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0061efec
dec ebx
cmp ebx, 0xffffffff
jne 0x61ff42
mov eax, dword [0x6dca50]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.0047b2ec
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00471f48
mov edx, dword [ebp - 0xc]
mov eax, 0x6dca60
call fcn.00406ba8
cmp byte [ebp - 1], 0
je 0x620179
mov eax, dword [0x693a10]
cmp byte [eax], 0
je 0x620011
push 0x6201b0
mov eax, dword [0x6dca48]
mov edx, dword [eax]
call dword [edx + 0x14]
lea edx, [ebp - 0x18]
call fcn.004712b0
push dword [ebp - 0x18]
push 0x6201ec
mov eax, dword [0x6dca4c]
mov edx, dword [eax]
call dword [edx + 0x14]
lea edx, [ebp - 0x1c]
call fcn.004712b0
push dword [ebp - 0x1c]
push 0x620208
push dword [0x6dca3c]
push 0x620228
push dword [0x6dca40]
push 0x620244
push dword [0x6dca60]
lea eax, [ebp - 0x14]
mov edx, 0xa
call fcn.0040705c
mov eax, dword [ebp - 0x14]
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [0x6912f8]
call fcn.004a0b90
mov eax, dword [0x6912fc]
call fcn.004a0b90
call fcn.0053639c
mov ebx, dword [0x6dca48]
call fcn.00404a2c
mov eax, ebx
call fcn.00404d4c
or edx, 0xffffffff
call fcn.00404ad8
xor edx, edx
push ebp
push 0x620074
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x6dca48]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62007b
mov eax, dword [0x6dca48]
call fcn.00404cbc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62019b
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00406ba0
ret
Function at 0x676140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff28
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xcc]
mov edx, dword [0x46fbf0]
call fcn.00407644
xor eax, eax
push ebp
push 0x676268
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
mov cl, 1
mov dl, 1
mov eax, dword [0x543438]
call fcn.00544120
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov ecx, 0x676288
mov edx, 0x6762bc
mov eax, ebx
call fcn.005470c8
cmp dword [ebp - 4], 0
jne 0x6761b6
lea eax, [ebp - 4]
push eax
mov ecx, 0x6762d8
mov edx, 0x6762bc
mov eax, ebx
call fcn.005470c8
mov eax, ebx
call fcn.00404490
mov dword [ebp - 0xd0], 0xffffffff
cmp dword [ebp - 4], 0
je 0x676233
xor eax, eax
push ebp
push 0x676229
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xb8]
mov edx, 0x676308
call fcn.00406bfc
mov word [ebp - 0xc4], 0x2d
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 4]
call fcn.00477e6c
fstp qword [ebp - 0xd8]
wait
call fcn.004752c4
fsub qword [ebp - 0xd8]
call fcn.004036d0
mov dword [ebp - 0xd0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x676233
mov eax, dword [ebp - 4]
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67626f
lea eax, [ebp - 0xcc]
mov edx, dword [0x46fbf0]
call fcn.0040771c
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x678eb8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x678ec0
xor eax, eax
push ebp
push 0x6790b9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x6938a4]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x1c]
mov ecx, 0x6790d0
call fcn.00406f8c
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x51714c]
call fcn.00517fc4
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x67908a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x679120
lea eax, [ebp - 4]
push eax
mov ecx, 0x679130
mov edx, 0x67914c
mov eax, dword [ebp - 0x18]
call fcn.00517ed8
push 0x679120
lea eax, [ebp - 8]
push eax
mov ecx, 0x679174
mov edx, 0x67914c
mov eax, dword [ebp - 0x18]
call fcn.00517ed8
push 0x679120
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x679190
mov edx, 0x67914c
mov eax, dword [ebp - 0x18]
call fcn.00517ed8
push 0x6791b4
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x6791d0
mov edx, 0x679204
mov eax, dword [ebp - 0x18]
call fcn.00517ed8
lea eax, [ebp - 0x10]
call fcn.00678a30
push 0x67921c
push dword [ebp - 0x10]
push 0x679244
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040705c
mov eax, dword [ebp - 0x20]
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
mov ecx, 3
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00597340
lea edx, [ebp - 0x28]
call fcn.004712b0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x679258
call fcn.00406f8c
mov eax, dword [ebp - 0x24]
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
mov ecx, 3
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00597340
inc eax
jne 0x679074
push 0x679278
call sub.kernel32.dll_OutputDebugStringW
push 0
push 0x67929c
push ebp
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x14]
call fcn.00678dc0
pop ecx
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00547494
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x6792ac
call fcn.00406f8c
mov eax, dword [ebp - 0x2c]
call fcn.00406c34
push eax
mov eax, dword [0x6938a4]
mov eax, dword [eax]
mov edx, dword [eax + 0xa0]
lea eax, [ebp - 0x38]
mov ecx, 0x6792d8
call fcn.00406f8c
mov eax, dword [ebp - 0x38]
call fcn.00406c34
push eax
push 0x6792ec
push 0
call sub.shell32.dll_ShellExecuteW
mov edx, 0x67914c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x50]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x679091
mov eax, dword [ebp - 0x18]
call fcn.00404490
ret
Function at 0x402810
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4028d8
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 0x402970
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402950
xor eax, eax
push ebp
push 0x402949
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 0x40298c
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 0x402950
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 0x404550
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 0x404708
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4045b1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404724
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40461e
xor eax, eax
push ebp
push 0x404617
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 0x404600
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404744
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 0x40461e
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 0x4046ff
cmp byte [ebp - 0xd], 0
jne 0x404660
cmp byte [ebp - 0x12], 0
je 0x4046ff
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404679
dec ebx
cmp byte [ebx], 0x2e
je 0x404688
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404678
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4046ff
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4046b5
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 0x4046ff
cmp byte [ebp - 0xd], 0
je 0x4046ff
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 0x4046ff
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 0x407420
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40752a
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x407473
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403480
jmp 0x407511
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.004073d4
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.004073f4
mov ebx, eax
test esi, esi
je 0x40749b
dec esi
test esi, esi
jl 0x40749b
cmp edi, ebx
jne 0x40747a
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.004034c0
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.0040370c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403508
cmp eax, 2
jl 0x407511
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x407511
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403508
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x407511
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403508
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.0040370c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407531
lea eax, [ebp - 0x110]
call fcn.0040339c
ret

Function at 0x4075a4
Capabilities:
Get file attributes

Disassembly:
call fcn.00405cd4
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x4075b8
dec eax
and al, 0x10
sete al
ret

Function at 0x4076ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407756
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004034c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00407670
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40775d
lea eax, [ebp - 0x10c]
call fcn.0040339c
ret

Function at 0x407764
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4077ce
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004034c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00407670
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4077d5
lea eax, [ebp - 0x10c]
call fcn.0040339c
ret
Function at 0x4077dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407846
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004034c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00407670
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40784d
lea eax, [ebp - 0x10c]
call fcn.0040339c
ret

Function at 0x407898
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x43fb4c]
mov byte [eax], 1
mov edx, dword [0x405b24]
xor eax, eax
call fcn.00405e70
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x407888
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x407928
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x407943
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x407952
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x4079b0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret

Function at 0x407d34
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407dcc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x407d81
mov eax, dword [ebx + 0x19]
call fcn.004036cc
push eax
push esi
mov eax, edi
call fcn.004036cc
push eax
mov eax, dword [ebx + 0x1d]
call fcn.004036cc
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x407db6
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.004036cc
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00407188
mov eax, dword [ebp - 8]
call fcn.004036cc
push eax
mov eax, edi
call fcn.004036cc
push eax
mov eax, dword [ebx + 0x1d]
call fcn.004036cc
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407dd3
lea eax, [ebp - 8]
call fcn.0040339c
ret