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

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x464a56
mov eax, ebx
call fcn.00466ce8
test al, al
jne 0x464a56
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004052b4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x464a43
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x464a63
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405218
jmp 0x464a63
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405218
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x465e0c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465e7a
mov eax, esi
call fcn.0044f984
test al, al
je 0x465e7a
mov eax, dword [ebx + 0x84]
call fcn.0044f5d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465e7a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x465e6e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044f5d4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00447524
jmp 0x465e7a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00465c48
pop esi
pop ebx
ret
Function at 0x4672e8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408060]
call fcn.00405c5c
xor eax, eax
push ebp
push 0x467489
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47b800], 0
jne 0x467343
mov ecx, dword [0x4efe58]
mov dl, 1
mov eax, dword [0x40868c]
call fcn.0040d668
call fcn.00404b58
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004038ec
mov eax, ebx
call fcn.00405b2c
mov dword [ebp - 0x24], eax
mov esi, 0x467498
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406c04
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405b3c
test eax, eax
jle 0x46742c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x467418
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405434
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4673be
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.0040544c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4673d4
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.0040544c
mov eax, dword [ebp - 0x54]
call fcn.00405654
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405434
mov eax, dword [ebp - 0x58]
call fcn.00405654
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46741a
xor eax, eax
test al, al
je 0x467425
mov ebx, 0x15
jmp 0x467431
mov ebx, 0x10
jmp 0x467431
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x47b800]
call fcn.00467168
mov eax, dword [ebp - 4]
call fcn.00467168
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406c1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467490
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004051e8
lea eax, [ebp - 0xc]
mov edx, dword [0x408060]
call fcn.00405d2c
ret
Function at 0x46f0d4
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
mov eax, dword [esi + 0x70]
push eax
call sub.kernel32.dll_PostQueuedCompletionStatus
mov eax, dword [esi + 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0x42000000
push 3
push 0
push 7
push 0xc0000000
mov eax, dword [esi + 0x68]
call fcn.00405654
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
mov eax, esi
call fcn.0046f0c8
mov dword [esi + 0x44], edi
mov eax, esi
call fcn.0046f25c
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x46f143
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
jne 0x46f15d
mov eax, esi
call fcn.0046f0c8
xor eax, eax
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x70], eax
mov eax, esi
call fcn.0046f25c
jmp 0x46f1d2
push 0
mov eax, dword [esi + 4]
push eax
push 0
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
mov ebx, eax
mov eax, esi
call fcn.0046f0c8
mov dword [esi + 0x70], ebx
mov eax, esi
call fcn.0046f25c
xor eax, eax
mov dword [esi + 0x8c], eax
lea eax, [esi + 0x90]
xor ecx, ecx
mov edx, 0x1000
call fcn.004038ec
push 0
lea eax, [esi + 0x74]
push eax
lea eax, [esi + 0x8c]
push eax
mov eax, dword [esi + 0x88]
push eax
cmp byte [esi + 0x6c], 1
cmc
sbb eax, eax
push eax
push 0x1000
lea eax, [esi + 0x90]
push eax
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_ReadDirectoryChangesW
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x46f77b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x46f7d5
mov eax, ebx
add eax, dword [eax + 0x3c]
mov edi, dword [eax + 0x78]
add edi, ebx
xor esi, esi
jmp 0x46f7d0
mov eax, dword [edi + 0x20]
lea edx, [ebx + eax]
mov eax, dword [edx + esi*4]
add eax, ebx
push dword [ebp + 0xc]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x46f7cf
mov edx, dword [edi + 0x24]
lea ecx, [ebx + edx]
mov ax, word [ecx + esi*2]
movzx edx, ax
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + ecx]
mov eax, dword [eax + edx*4]
add eax, ebx
mov dword [ebp - 4], eax
inc esi
cmp esi, dword [edi + 0x18]
jb 0x46f79c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4707b0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004038ec
ret
Function at 0x470b9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
xor edx, edx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x410], edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f4], edx
mov dword [ebp - 0x3f8], eax
xor eax, eax
push ebp
push 0x470e13
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x470e28
call fcn.00470a04
lea eax, [ebp - 0x3f0]
call fcn.004051c4
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.00405654
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x470dd4
xor eax, eax
push ebp
push 0x470dcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x3e9
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 7
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x408]
mov eax, 0x470e68
call fcn.00470a04
mov eax, dword [ebp - 0x408]
call fcn.00405654
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x470c9f
push ebp
mov eax, 0x470e94
call fcn.00470af4
pop ecx
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x40c]
mov eax, 0x470ea0
call fcn.00470a04
mov eax, dword [ebp - 0x40c]
call fcn.00405654
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x470d29
push dword [ebp - 0x3f0]
push 0x470ec8
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.00405434
push dword [ebp - 0x410]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.00405558
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x414]
mov eax, 0x470ed4
call fcn.00470a04
mov eax, dword [ebp - 0x414]
call fcn.00405654
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x470db3
push dword [ebp - 0x3f0]
push 0x470ec8
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.00405434
push dword [ebp - 0x418]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.00405558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470dd4
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
call fcn.00405218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470e1a
lea eax, [ebp - 0x418]
mov edx, 5
call fcn.004051e8
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.004051e8
ret
Function at 0x474a9c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405644
xor eax, eax
push ebp
push 0x474bd7
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x474ba7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405654
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.00409e88
test al, al
jne 0x474b17
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403684
lea eax, [ebp - 0x1d0]
call fcn.00403420
call fcn.0040305c
push dword [0x4f5e3c]
push 0x474bf0
push dword [0x4f5e40]
push 0x474bf0
push dword [0x4f5e44]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.00405558
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.00476b90
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405974
call fcn.00403d40
call fcn.0040305c
lea eax, [ebp - 0x1d0]
call fcn.0040374c
call fcn.0040305c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x474bb1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474bde
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.004051e8
lea eax, [ebp - 4]
call fcn.004051c4
ret
Function at 0x475648
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405644
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4757b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00474f04
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.00474f24
mov ebx, eax
jmp 0x475782
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405434
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a19c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409338
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409338
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004055ec
je 0x475762
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405434
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409338
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409338
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004055ec
jne 0x475777
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.00474f44
mov ebx, eax
test ebx, ebx
jne 0x4756c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4757b7
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004051e8
lea eax, [ebp - 4]
call fcn.004051c4
ret

Function at 0x475bec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405644
xor eax, eax
push ebp
push 0x475cc6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x475cdc
mov edx, dword [ebp - 4]
call fcn.004054dc
mov eax, dword [ebp - 8]
call fcn.00405654
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x475c36.0
jmp dword [eax*4 + 0x475c3d]
mov eax, ebx
mov edx, 0x475ce8
call fcn.00405218
jmp 0x475cab
mov eax, ebx
mov edx, 0x475cfc
call fcn.00405218
jmp 0x475cab
mov eax, ebx
mov edx, 0x475d0c
call fcn.00405218
jmp 0x475cab
mov eax, ebx
mov edx, 0x475d20
call fcn.00405218
jmp 0x475cab
mov eax, ebx
mov edx, 0x475d30
call fcn.00405218
jmp 0x475cab
mov eax, ebx
mov edx, 0x475d44
call fcn.00405218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475ccd
lea eax, [ebp - 8]
mov edx, 2
call fcn.004051e8
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004012f0
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [esp]
push edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov word [esp + 0x60], cx
mov ecx, dword [esp + 0x7c]
push ecx
push edx
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401071
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40ac54], eax
xor eax, eax
add esp, 0x54
ret
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ecx
mov dword [0x40ac58], eax
call dword [0x40ac44]
mov eax, dword [esp]
add esp, 0x54
ret
Function at 0x4010a0
Capabilities:
Accept command line arguments
Link many functions at runtime
Read file via mapping

Disassembly:
sub esp, 0xa08
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa04], eax
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetModuleFileNameW
push esi
call edi
mov dword [0x40ac40], eax
test eax, eax
jne 0x4010e1
xor eax, eax
jmp 0x4012d7
push str.CloseHandle
push esi
call edi
mov dword [0x40ac44], eax
test eax, eax
je 0x4010da
push str.WaitForSingleObject
push esi
call edi
mov dword [0x40ac48], eax
test eax, eax
je 0x4010da
push str.DeleteFileW
push esi
call edi
mov dword [0x40ac4c], eax
test eax, eax
je 0x4010da
push str.UnmapViewOfFile
push esi
call edi
mov dword [0x40ac50], eax
test eax, eax
je 0x4010da
push ebp
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x21a]
push ecx
mov word [esp + 0x21c], ax
call fcn.004012f0
add esp, 0xc
push 0x3e8
lea edx, [esp + 0x214]
push edx
push 0
call dword [0x40ac40]
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004012f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x10]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
mov dword [esp + 0xc], ebp
test ebp, ebp
jne 0x4011bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
mov dword [0x40ac54], eax
call fcn.00401090
add esp, 8
jmp 0x4012d6
push 0x2000
push 0
push 0
push 6
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4011f5
push ebp
call dword [0x40ac44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
mov dword [0x40ac54], eax
call fcn.00401090
add esp, 8
jmp 0x4012d6
cmp dword [esi], 0
jne 0x401238
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x214]
push edx
mov dword [esi], 1
call fcn.00401000
add esp, 8
mov edi, eax
push 0xa
push edi
call dword [0x40ac48]
cmp eax, 0x102
jne 0x40122c
cmp dword [esi], 1
je 0x401217
push edi
call dword [0x40ac44]
jmp 0x4012c6
mov eax, dword [esi + 4]
push ebx
mov dword [esi], 2
test eax, eax
jl 0x401283
lea edi, [esi + 0x814]
lea ebx, [esi + 0x14]
lea ebp, [eax + 1]
push edi
push ebx
call fcn.00401000
add esp, 8
test eax, eax
jne 0x40126a
mov eax, dword [0x40ac54]
mov dword [esi + 0x10], eax
jmp 0x40127a
push eax
call dword [0x40ac44]
mov ecx, dword [0x40ac58]
mov dword [esi + 8], ecx
sub ebp, 1
jne 0x401252
mov ebp, dword [esp + 0x10]
lea ebx, [esi + 0x14]
push ebx
xor edi, edi
call dword [0x40ac4c]
test eax, eax
jne 0x4012bf
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
inc edi
cmp edi, 0x12c
ja 0x4012bb
push 0x3e8
call ebp
push ebx
call dword [0x40ac4c]
test eax, eax
je 0x4012a0
mov ebp, dword [esp + 0x10]
mov dword [esi], 3
pop ebx
push esi
call dword [0x40ac50]
push ebp
call dword [0x40ac44]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa0c]
pop edi
pop esi
xor ecx, esp
call fcn.0040136a
add esp, 0xa08
ret 0x10
Function at 0x40136a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401374
repz ret
jmp fcn.004016cf

Function at 0x4037a3
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.0040267d
and dword [ebp - 4], 0
cmp dword [0x40b580], 0
mov ebx, eax
jne 0x403854
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403905
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403905
push eax
call fcn.0040260b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b580], eax
call esi
push eax
call fcn.0040260b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b584], eax
call esi
push eax
call fcn.0040260b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b588], eax
call esi
push eax
call fcn.0040260b
pop ecx
mov dword [0x40b590], eax
test eax, eax
je 0x403854
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040260b
pop ecx
mov dword [0x40b58c], eax
mov eax, dword [0x40b58c]
cmp eax, ebx
je 0x4038ac
cmp dword [0x40b590], ebx
je 0x4038ac
push eax
call fcn.00402686
push dword [0x40b590]
mov esi, eax
call fcn.00402686
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4038ac
test edi, edi
je 0x4038ac
call esi
test eax, eax
je 0x4038a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4038a3
test byte [ebp - 0xc], 1
jne 0x4038ac
or dword [ebp + 0x10], 0x200000
jmp 0x4038e5
mov eax, dword [0x40b584]
cmp eax, ebx
je 0x4038e5
push eax
call fcn.00402686
pop ecx
test eax, eax
je 0x4038e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4038e5
mov eax, dword [0x40b588]
cmp eax, ebx
je 0x4038e5
push eax
call fcn.00402686
pop ecx
test eax, eax
je 0x4038e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b580]
call fcn.00402686
pop ecx
test eax, eax
je 0x403905
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403907
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401adf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b1e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b1e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b1e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b1e
cmp dword [ecx + 0x74], 0xe
jbe 0x401b1e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407cc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46341b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045812b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407d42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045607a
mov eax, dword [eax]
push 0x4901f0
push eax
call fcn.00448d44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004583b6
test bl, bl
je 0x407d42
push 0x4901f0
lea ecx, [esp + 0xc]
call fcn.00458746
push 0x493d58
lea ecx, [esp + 0xc]
call fcn.00458746
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x407d7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004583b6
jmp 0x407e49
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407e02
lea edx, [esp + 0x7c]
push 0x493d54
push edx
call fcn.00448d44
add esp, 8
test eax, eax
je 0x407e02
lea eax, [esp + 0x7c]
push 0x493d50
push eax
call fcn.00448d44
add esp, 8
test eax, eax
je 0x407e02
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407d92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004583b6
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x408640
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4086a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc