joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406463
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x424494
call fcn.00423584
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.msi.dll_MsiRecordGetInteger]
push edi
push str.196BB40D_1578_3D01_B289_BEFC77A11A1E
mov edi, ecx
call esi
push 5
pop ebx
cmp eax, ebx
je 0x4065a9
push str.DA5E371C_6333_3D8A_93A4_6FD5B20BCC6E
call esi
cmp eax, ebx
je 0x4065a9
push str.F0C3E5D1_1ADE_321E_8167_68EF0DE699A5
call esi
cmp eax, ebx
je 0x4065a9
push str.1D8E6291_B0D5_35EC_8441_6616F567A0F7
call esi
cmp eax, ebx
je 0x4065a9
push str._vcredist_x86.exe
mov edx, 0x45f0a4
lea ecx, [ebp - 0x10]
call fcn.004035ef
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40659c
mov edi, dword [edi]
lea ecx, [ebp - 0x18]
push 0x45f1f0
mov edx, 0x45f1f4
call fcn.004032cc
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push str._download_updates_vcredist_x86.exe
mov edx, 0x45f1e8
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004035ef
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Upgrading_library
mov ebx, eax
call dword [sym.imp.mfc140.dll_Ordinal_310]
push edi
push esi
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Please_wait.
call dword [sym.imp.mfc140.dll_Ordinal_310]
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Upgrading_Microsoft_runtime_library_for_the_first_running..
call dword [sym.imp.mfc140.dll_Ordinal_310]
push ecx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
push ebx
mov ecx, 0x45e030
mov byte [ebp - 4], 2
call fcn.0040d8e1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
xor eax, eax
jmp 0x4065ac
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x407f46
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4247c8
call fcn.00423584
sub esp, 0x338
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408065
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_503]
and dword [ebp - 4], 0
lea eax, [ebp - 0x344]
push esi
push str._s.
push eax
call fcn.004087a7
add esp, 0xc
lea eax, [ebp - 0x344]
lea ecx, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4705]
test eax, eax
je 0x408042
mov ebx, str._s_s
push edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_4725]
lea ecx, [ebp - 0x2c]
mov edi, eax
call dword [sym.imp.mfc140.dll_Ordinal_8140]
test eax, eax
jne 0x408039
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_5562]
mov ecx, eax
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea edx, [ebp - 0x22c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407fe0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x2c]
call fcn.00405457
test eax, eax
lea eax, [ebp - 0x22c]
push eax
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
je 0x408024
call fcn.004087a7
add esp, 0x10
lea ecx, [ebp - 0x12c]
call fcn.00407f46
jmp 0x408039
call fcn.004087a7
add esp, 0x10
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
jne 0x407fab
pop edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_2881]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
test eax, eax
setne bl
call dword [sym.imp.mfc140.dll_Ordinal_1142]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x407f56
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov eax, 0x4247c8
call fcn.00423584
sub esp, 0x338
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408065
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_503]
and dword [ebp - 4], 0
lea eax, [ebp - 0x344]
push esi
push str._s.
push eax
call fcn.004087a7
add esp, 0xc
lea eax, [ebp - 0x344]
lea ecx, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4705]
test eax, eax
je 0x408042
mov ebx, str._s_s
push edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_4725]
lea ecx, [ebp - 0x2c]
mov edi, eax
call dword [sym.imp.mfc140.dll_Ordinal_8140]
test eax, eax
jne 0x408039
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_5562]
mov ecx, eax
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea edx, [ebp - 0x22c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407fe0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x2c]
call fcn.00405457
test eax, eax
lea eax, [ebp - 0x22c]
push eax
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
je 0x408024
call fcn.004087a7
add esp, 0x10
lea ecx, [ebp - 0x12c]
call fcn.00407f46
jmp 0x408039
call fcn.004087a7
add esp, 0x10
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
jne 0x407fab
pop edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_2881]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
test eax, eax
setne bl
call dword [sym.imp.mfc140.dll_Ordinal_1142]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40b7a7
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x424c5f
call fcn.00423584
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push ecx
xor esi, esi
lea eax, [ebp + 0xc]
inc esi
mov ecx, esp
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov ecx, ebx
call 0x40b380
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x40b7e4
cmp eax, 2
jne 0x40b807
lea ecx, [ebx + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebx], eax
test eax, eax
je 0x40b819
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
jmp 0x40b8ac
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x10]
push ecx
push edi
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
inc eax
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.mfc140.dll_Ordinal_265]
pop ecx
lea ecx, [ebp + 0xc]
mov edi, eax
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp - 0x10]
push ecx
push edi
lea ecx, [ebp - 0x1c]
push ecx
push 0
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
call dword [sym.imp.mfc140.dll_Ordinal_316]
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push edi
call dword [sym.imp.mfc140.dll_Ordinal_266]
mov esi, dword [ebx]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
test esi, esi
jne 0x40b89c
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc

Function at 0x40bd0b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push edi
lea ecx, [ebx + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp - 4]
xor edi, edi
push ecx
push 0x20006
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd72
push esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 3
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb esi, esi
cmp dword [ebx + 8], edi
jne 0x40bd65
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esi + 1]
pop esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x40bf1e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push edi
lea ecx, [ebx + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp - 4]
xor edi, edi
push ecx
push 0x20006
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bf85
push esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 3
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb esi, esi
cmp dword [ebx + 8], edi
jne 0x40bf78
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esi + 1]
pop esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x4117c8
Capabilities:
Create process on windows
Create process suspended
Move file
Terminate process

Disassembly:
mov eax, 0x425378
call fcn.00423584
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x64], esi
xor ebx, ebx
lea ecx, [ebp + 0xc]
inc ebx
or dword [ebp - 0x38], ebx
mov word [ebp - 0x34], bx
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp + 8]
mov esi, eax
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, 0x45f0a4
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp + 0xc]
mov esi, eax
call dword [sym.imp.mfc140.dll_Ordinal_5096]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push esi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41185c
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, 0x41185c
ret
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x414b55
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414b94
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414b94
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414b94
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414b94
cmp dword [ecx + 0x74], 0xe
jbe 0x414b94
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4178d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4257d4
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x43a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
test eax, eax
js 0x4179c5
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push eax
push 1
call sub.mfc140.dll_Ordinal_8031
mov edi, eax
test edi, edi
js 0x4179c8
mov ecx, ebx
call fcn.00417200
mov esi, eax
xor ecx, ecx
mov edx, 0x4c
mov dword [ebp + 8], esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.mfc140.dll_Ordinal_265
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41797a
push 0x415b90
push 0x415a00
push dword [ebp + 8]
mov dword [eax], esi
lea esi, [eax + 4]
push 0x4c
push esi
call fcn.00413aec
jmp 0x41797c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4179c5
mov eax, dword [ebp + 0x10]
mov ecx, ebx
push esi
push 0
push 0
push 0
push 0
push 4
push 0
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0xc], 0xffffffff
call sub.mfc140.dll_Ordinal_13574
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000f174
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f1b3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f1b3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f1b3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f1b3
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f1b3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10011e2f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10011ecc
push ebx
push esi
call fcn.10011df8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10011d8c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011e79
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011ecb
push edi
push eax
call fcn.10012dea
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011e99
call fcn.100108d4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011eca
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011d8c
add esp, 0x20
test eax, eax
jne 0x10011eb8
push edi
call fcn.100108d4
jmp 0x10011ec0
push ebx
call fcn.100108d4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10012139
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.10012055
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001216d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x10012173
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100121b7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.10012055
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100121ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100121f6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.10012055
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012230
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100178b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100178dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100178dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xf4a1a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x577000]
push edi
jmp 0xf4a1ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf4a1c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf4a1b0
mov eax, 1
add ebx, ebx
jne 0xf4a1d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf4a1e4
jne 0xf4a203
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf4a203
dec eax
add ebx, ebx
jne 0xf4a1f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xf4a1c8
add ebx, ebx
jne 0xf4a1ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xf4a255
xor ecx, ecx
sub eax, 3
jb 0xf4a21b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf4a28a
sar eax, 1
mov ebp, eax
jmp 0xf4a226
add ebx, ebx
jne 0xf4a226
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf4a1f4
inc ecx
add ebx, ebx
jne 0xf4a234
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf4a1f4
add ebx, ebx
jne 0xf4a241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf4a236
jne 0xf4a252
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf4a236
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf4a274
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf4a266
jmp 0xf4a1b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf4a274
add edi, ecx
jmp 0xf4a1b6
pop esi
mov edi, esi
mov ecx, 0xca3c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf4a292
cmp byte [edi], 0x24
jne 0xf4a292
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xf4a297
lea edi, [esi + 0xb46000]
mov eax, dword [edi]
or eax, eax
je 0xf4a30f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb4f3b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb4f544]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf4a2c4
mov ecx, edi
jns 0xf4a2f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb4f548]
or eax, eax
je 0xf4a309
mov dword [ebx], eax
add ebx, 4
jmp 0xf4a2e1
call dword [esi + 0xb4f558]
mov ebp, dword [esi + 0xb4f54c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x25f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xf4a343
sub esp, 0xffffff80
jmp 0x5f7aeb
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x403203
pop dword [ebp - 0x30]
mov eax, 0x1d18c19
add eax, 0xfe6ea5ea
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x60fc3cae
add dword [ebp - 0x40], 0xed56089d
mov dword [ebp - 0x3c], 0x99467c06
sub dword [ebp - 0x3c], 0x67132fc1
mov dword [ebp - 0x38], 0xe6ee7d15
add dword [ebp - 0x38], 0x655dc719
mov dword [ebp - 0x34], 0xd7e3717d
sub dword [ebp - 0x34], 0xd7e3717d
lea eax, [ebp - 0x40]
push eax
mov eax, 0x1547de5c
add eax, 0xeaf8a230
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x235e4d9b
add dword [ebp - 0x40], 0x51141bbb
mov dword [ebp - 0x3c], 0xe1d1bf9
sub dword [ebp - 0x3c], 0xccb0ba84
mov dword [ebp - 0x38], 0xe9377adb
sub dword [ebp - 0x38], 0x85c80e6f
mov dword [ebp - 0x34], 0x13977b6b
sub dword [ebp - 0x34], 0x13977b6b
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x19c6cd15
add eax, 0xe679b3bf
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3cb49
push 0
call eax
mov ecx, 0x242dbb28
add ecx, 0xdbd2a54a
xor edx, edx
add edx, eax
mov esi, 0x411000
add esi, dword [ebp - 0x30]
mov ebx, 0x6f2423bb
add ebx, 0xd0c17e37
mov dword [ebp - 0x10], 0xa3b558ae
mov edi, dword [esi]
mov dword [ebp - 0x2c], 0xed577036
xor edi, ebx
add dword [ebp - 0x10], edi
mov dword [edx], edi
mov dword [ebp - 0x1c], 0xfc857527
add edx, 0xbca22bd4
sub edx, 0xbca22bd0
add esi, 0x7cad3477
add esi, 0x8352cb8d
loop 0x403321
add eax, 0x9530e580
add eax, 0x6ad08f1b
xor ebx, ebx
add ebx, eax
add eax, 0xa3ca559d
add eax, 0x5c35aa68
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret