joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f2c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [0x476fe0]
sub esp, 0x84
cmp ecx, 0xffffffff
jne 0x45f2da
xor al, al
add esp, 0x84
ret
mov eax, dword [esp + 0x88]
mov edx, dword [0x732fec]
mov dword [0x732fd8], eax
mov eax, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x94]
cmp eax, 0x613
mov dword [0x732fe0], eax
mov dword [0x732fdc], edx
mov dword [0x732fe4], esi
jne 0x45f376
push edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ecx, dword [0x732fd8]
mov edx, dword [0x732fdc]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x732fe0]
inc eax
mov dword [esp + 0x14], ecx
mov ecx, eax
mov dword [esp + 0x10], edx
mov edx, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
mov dword [0x732fe4], eax
mov dword [esp + 0x18], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
add eax, 0x10
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push eax
mov eax, dword [0x476fe0]
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop edi
jmp 0x45f38b
lea edx, [esp + 4]
push 0
push edx
push 0x10
push 0x732fd8
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
pop esi
jne 0x45f3b0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x45f3a7
cmp eax, 0xe8
je 0x45f3a7
cmp eax, 6
jne 0x45f3b0
xor al, al
add esp, 0x84
ret
mov al, 1
add esp, 0x84
ret
Function at 0x45f490
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
mov eax, dword [0x476fe0]
sub esp, 0xc
cmp eax, 0xffffffff
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x45f4ad
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ebp, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
call ebp
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
lea ebx, [esi + 0x14]
push 0
lea edi, [esi + 0x10]
push eax
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x45f4f5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.kernel32.dll_SetStdHandle]
test eax, eax
jne 0x45f50e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ebx, dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 2
push 0
push 0
push 0x476fe4
call ebx
mov edx, dword [edi]
push eax
push edx
call ebx
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
jne 0x45f53c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0xfffffffffffffff6
call ebp
lea ecx, [esp + 0x10]
mov dword [esi], eax
lea edi, [esi + 0xc]
push 0
add esi, 8
push ecx
push edi
push esi
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x45f56e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [esi]
push edx
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_SetStdHandle]
test eax, eax
jne 0x45f587
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
push 2
push 0
push 0
push 0x476fe0
call ebx
push eax
mov eax, dword [edi]
push eax
call ebx
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
jne 0x45f5af
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
mov ecx, dword [edi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret

Function at 0x45f5d0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x476fe0]
push esi
cmp eax, 0xffffffff
push edi
mov esi, ecx
jne 0x45f5e5
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi]
mov edi, dword [sym.imp.kernel32.dll_SetStdHandle]
push eax
push 0xfffffffffffffff6
call edi
test eax, eax
jne 0x45f5fa
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esi + 4]
push ecx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x45f60a
pop edi
pop esi
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
test eax, eax
mov dword [0x732ff0], eax
jne 0x45f625
pop edi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
push 0
push esi
push 0x45f6f0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
pop ecx
ret
Function at 0x45f650
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x476fe0]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45f661
xor al, al
pop esi
ret
push 0
push 0x610
push 0x8b1
call fcn.0045f2c0
mov eax, dword [0x732ff0]
add esp, 0xc
test eax, eax
je 0x45f685
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [esi + 0x18]
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x45f6bc
push 0x64
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45f6af
mov eax, dword [esi + 0x18]
push 0
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov ecx, dword [esi + 0x18]
push ecx
call edi
mov dword [esi + 0x18], 0
mov eax, dword [0x476fe0]
cmp eax, 0xffffffff
je 0x45f6d3
push eax
call edi
mov dword [0x476fe0], 0xffffffff
mov eax, dword [0x476fe4]
cmp eax, 0xffffffff
je 0x45f6ea
push eax
call edi
mov dword [0x476fe4], 0xffffffff
pop edi
mov al, 1
pop esi
ret
Function at 0x4608d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46096b
mov eax, ebx
push esi
and eax, 0xff
mov byte [0x733028], 1
mov byte [0x733029], al
mov esi, 4
lea edx, [eax + eax*2 + 0x65]
lea eax, [eax + eax*2 + 1]
mov dword [esp + 0x10], edx
lea eax, [eax + eax*2]
lea edx, [eax + 0x65]
inc eax
test ecx, ecx
jle 0x460940
mov edi, ebx
push ebp
sub edi, 0x73302c
mov ebp, ecx
mov bl, byte [edi + esi + 0x733028]
lea eax, [eax + eax*2]
mov cl, al
add cl, 0x65
xor bl, cl
mov byte [esi + 0x733028], bl
inc esi
inc eax
dec ebp
jne 0x460923
pop ebp
mov bl, byte [esp + 0x10]
lea ecx, [esi - 4]
mov eax, ecx
mov byte [esi + 0x733028], 0
sar eax, 8
xor al, bl
xor dl, cl
pop esi
mov byte [0x73302a], al
pop edi
mov byte [0x73302b], dl
mov eax, 0x733028
pop ebx
ret
pop edi
mov eax, 0x733028
pop ebx
ret

Function at 0x460980
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x460989
ret
cmp byte [eax], 1
jne 0x4609e4
movsx ecx, byte [eax + 1]
push ebx
mov bl, byte [eax + 2]
lea ecx, [ecx + ecx*2]
push esi
mov dl, cl
push edi
add dl, 0x65
lea ecx, [ecx + ecx*2 + 3]
xor bl, dl
mov dl, cl
mov byte [eax + 2], bl
mov bl, byte [eax + 3]
add dl, 0x65
xor esi, esi
xor bl, dl
xor edx, edx
mov dh, byte [eax + 2]
inc ecx
mov dl, bl
mov byte [eax + 3], bl
mov edi, edx
test edi, edi
jle 0x4609dd
mov bl, byte [esi + eax + 4]
lea ecx, [ecx + ecx*2]
mov dl, cl
add dl, 0x65
xor bl, dl
inc ecx
mov byte [esi + eax], bl
inc esi
cmp esi, edi
jl 0x4609c6
mov byte [edi + eax], 0
pop edi
pop esi
pop ebx
ret
Function at 0x4609f0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x733024]
sub esp, 0x40c
push ebx
mov bl, 1
test bl, al
push ebp
jne 0x460a22
or al, bl
push 0x733008
mov byte [0x733024], al
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
push 0x460ba0
call fcn.0046101e
add esp, 4
mov ebp, dword [esp + 0x418]
test ebp, ebp
jne 0x460a38
pop ebp
xor eax, eax
pop ebx
add esp, 0x40c
ret
push esi
push edi
push 0x733008
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [ebp], bl
jne 0x460a9b
movsx eax, byte [ebp + 1]
mov dl, byte [ebp + 2]
xor esi, esi
lea eax, [eax + eax*2]
mov cl, al
add cl, 0x65
lea eax, [eax + eax*2 + 3]
xor dl, cl
mov cl, byte [ebp + 3]
mov byte [ebp + 2], dl
mov dl, al
add dl, 0x65
xor cl, dl
inc eax
mov byte [ebp + 3], cl
xor ecx, ecx
mov ch, byte [ebp + 2]
mov cl, byte [ebp + 3]
mov edi, ecx
test edi, edi
jle 0x460a97
mov cl, byte [esi + ebp + 4]
lea eax, [eax + eax*2]
mov dl, al
add dl, 0x65
xor cl, dl
inc eax
mov byte [esi + ebp], cl
inc esi
cmp esi, edi
jl 0x460a80
mov byte [edi + ebp], 0
mov ecx, dword [0x733428]
mov edx, dword [0x733020]
inc ecx
mov dword [0x733020], ebp
test edx, edx
mov dword [0x733428], ecx
je 0x460b7c
cmp edx, ebp
je 0x460b7c
cmp byte [ebp], bl
je 0x460b7c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
je 0x460b7c
lea eax, [esp + 0x1c]
mov byte [edx], bl
and eax, 0xff
xor edi, edi
mov byte [edx + 1], al
lea esi, [eax + eax*2 + 0x65]
lea eax, [eax + eax*2 + 1]
mov dword [esp + 0x18], esi
mov esi, 4
lea eax, [eax + eax*2]
lea ebx, [eax + 0x65]
inc eax
test ecx, ecx
mov dword [esp + 0x14], ebx
jle 0x460b5a
mov bl, byte [esp + edi + 0x1c]
lea eax, [eax + eax*2]
mov cl, al
add cl, 0x65
xor bl, cl
mov ecx, dword [esp + 0x10]
mov byte [esi + edx], bl
inc esi
inc eax
inc edi
cmp edi, ecx
jl 0x460b3a
mov ebx, dword [esp + 0x14]
mov cl, byte [esp + 0x18]
mov byte [esi + edx], 0
add esi, 0xfffffffc
mov eax, esi
mov dword [esp + 0x10], esi
sar eax, 8
xor al, cl
mov byte [edx + 2], al
mov al, byte [esp + 0x10]
xor bl, al
mov byte [edx + 3], bl
push 0x733008
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret

Function at 0x460e30
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
mov eax, ecx
push edi
xor esi, esi
mov edi, eax
mov edx, esi
mov ebx, 8
test dl, 1
je 0x460e4f
shr edx, 1
xor edx, 0xedb88320
jmp 0x460e51
shr edx, 1
dec ebx
jne 0x460e40
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x460e39
pop edi
pop esi
pop ebx
ret
Function at 0x460e70
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.00461a80
mov eax, dword [esp + 0x100c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x101c]
mov ebp, ecx
test eax, eax
mov dword [esi], 0xffffffff
je 0x460f81
cmp byte [eax], 0
je 0x460f81
push 0
push 0x80
push 3
push 0
push 3
push DirectSoundCreate
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x460ee0
mov dword [ebp + 0x400], 2
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1008
ret 8
push edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x1000
push ecx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x460f5b
mov edx, dword [esp + 0x10]
test edx, edx
je 0x460f57
lea edi, [esp + edx + 0x18]
lea edx, [esp + 0x18]
cmp edx, edi
lea ecx, [esp + 0x18]
jae 0x460f39
mov eax, dword [esi]
xor ebx, ebx
mov bl, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [ebp + edx*4]
xor edx, eax
inc ecx
cmp ecx, edi
mov dword [esi], edx
jb 0x460f15
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x1000
push ecx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x460efd
jmp 0x460f5b
test eax, eax
jne 0x460f65
mov dword [ebp + 0x400], 3
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esi]
pop edi
not edx
mov dword [esi], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1008
ret 8
mov dword [ebp + 0x400], 1
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1008
ret 8

Function at 0x462042
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x462062
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.004660c0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x462085
test byte [esp + 8], 2
je 0x462085
call fcn.00466133
mov dword [eax], 0xd
call fcn.0046613c
mov dword [eax], 5
jmp 0x46205e
xor eax, eax
ret
Function at 0x465343
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x478420
cmp edx, dword [eax]
je 0x465365
add eax, 8
inc ecx
cmp eax, 0x4784b0
jl 0x465356
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x478420]
jne 0x465493
mov eax, dword [0x733960]
cmp eax, 1
je 0x46546d
test eax, eax
jne 0x465396
cmp dword [0x4780c4], 1
je 0x46546d
cmp edx, 0xfc
je 0x465493
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4653cd
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00469270
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00468070
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x465410
lea eax, [ebp - 0x1a4]
push eax
call fcn.00468070
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46fb24
push edi
call fcn.00466150
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00469270
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00469280
lea eax, [ebp - 0xa0]
push 0x46fb04
push eax
call fcn.00469280
push dword [esi + 0x478424]
lea eax, [ebp - 0xa0]
push eax
call fcn.00469280
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0046a3d2
add esp, 0x2c
pop edi
jmp 0x465493
lea eax, [ebp + 8]
lea esi, [esi + 0x478424]
push 0
push eax
push dword [esi]
call fcn.00468070
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4012e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401306
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret 4
Function at 0x401310
Capabilities:
Delete file
Extract resource via kernel32 functions
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40210b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00401cce
mov ebx, dword [esp + 0x234]
lea eax, [esp + 0x10]
push ebx
push 0x404080
push eax
mov dword [esp + 0x238], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0xc8]
call fcn.00401b80
push str.FILE
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401393
mov dword [esp + 0x22c], 0xffffffff
jmp 0x4014bc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4013b4
mov dword [esp + 0x22c], 0xffffffff
jmp 0x4014bc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013d1
mov dword [esp + 0x22c], 0xffffffff
jmp 0x4014bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x4013ee
mov dword [esp + 0x22c], 0xffffffff
jmp 0x4014bc
mov edx, dword [esi + 0xc4]
push ebx
push edx
lea eax, [esp + 0x24]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00401650
or ebx, 0xffffffff
lea edi, [esp + 0x1c]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x120]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..tmp
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x120]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x120]
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
lea eax, [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
jne 0x4014cc
mov dword [esp + 0x22c], ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4014f9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret 4
Function at 0x401520
Capabilities:
Create process on windows
Create process suspended
Get comspec environment variable
Query environment variable
Resume thread
Self delete
Set file attributes

Disassembly:
sub esp, 0x464
push edi
lea eax, [esp + 0x58]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x15c]
push 0x104
push ecx
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [esp + 0x58]
push 0x104
lea eax, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x44], ax
mov dword [esp + 4], ecx
lea eax, [esp + 0x15c]
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x268]
push str._s__c_del__s
push ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x260]
push edx
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x401622
push esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
lea edx, [esp + 0x58]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 4]
push 0x40
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
add esp, 0x464
ret

Function at 0x401700
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
mov edx, ecx
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0xc4]
lea ecx, [esp + 0x58]
push eax
push str._s8uftp.exe
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x58]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x401776
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
pop esi
add esp, 0x158
ret
Function at 0x4018d1
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401a81
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4019cf
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401972
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4019b5
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401989
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4019a4
test al, 0x40
je 0x40199b
mov ecx, dword [edi + 0x20]
jmp 0x4019a2
test al, 0x80
je 0x4019b5
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4019b5
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401941
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x436de0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a694b
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.0049ac93
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x436e62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00498310
mov eax, dword [eax]
push 0x6d023c
push eax
call fcn.00489af4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049af1e
test bl, bl
je 0x436e62
push 0x6d023c
lea ecx, [esp + 0xc]
call fcn.0049b2ae
push 0x6d3efc
lea ecx, [esp + 0xc]
call fcn.0049b2ae
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 0x436e9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049af1e
jmp 0x436f69
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 0x436f22
lea edx, [esp + 0x7c]
push 0x6d3ef8
push edx
call fcn.00489af4
add esp, 8
test eax, eax
je 0x436f22
lea eax, [esp + 0x7c]
push 0x6d3ef4
push eax
call fcn.00489af4
add esp, 8
test eax, eax
je 0x436f22
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 0x436eb2
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.0049af1e
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 0x437760
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 0x4377c2
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