joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4136a0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bf71
mov eax, dword fs:[0]
push eax
mov eax, 0x113c
call fcn.0042b260
mov eax, dword [0x451550]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1128], 0
push 0x4497dc
lea ecx, [ebp - 0x111c]
call fcn.00404760
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1134]
push eax
push 0x1000
lea ecx, [ebp - 0x1114]
push ecx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x413743
push 0x446e93
mov ecx, dword [ebp + 8]
call fcn.00404760
mov edx, dword [ebp - 0x1128]
or edx, 1
mov dword [ebp - 0x1128], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x111c]
call fcn.00403db0
mov eax, dword [ebp + 8]
jmp 0x4138f0
mov eax, dword [ebp - 0x1134]
shr eax, 2
mov dword [ebp - 0x1140], eax
mov cl, byte [0x446e96]
mov byte [ebp - 0x114], cl
push 0x103
push 0
lea edx, [ebp - 0x113]
push edx
call fcn.00428830
add esp, 0xc
lea ecx, [ebp - 0x1118]
call fcn.00403c10
mov byte [ebp - 4], 1
mov dword [ebp - 0x1144], 0
mov dword [ebp - 0x1120], 0
jmp 0x4137a8
mov eax, dword [ebp - 0x1120]
add eax, 1
mov dword [ebp - 0x1120], eax
mov ecx, dword [ebp - 0x1120]
cmp ecx, dword [ebp - 0x1140]
jae 0x4138ae
mov edx, dword [ebp - 0x1120]
mov eax, dword [ebp + edx*4 - 0x1114]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1124], eax
cmp dword [ebp - 0x1124], 0
je 0x4138a9
lea ecx, [ebp - 0x1148]
push ecx
push 4
lea edx, [ebp - 0x112c]
push edx
mov eax, dword [ebp - 0x1124]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x41389c
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x112c]
push edx
mov eax, dword [ebp - 0x1124]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x1118]
call fcn.00404740
lea ecx, [ebp - 0x1118]
call fcn.00405c40
push 0x4497e0
lea edx, [ebp - 0x1118]
push edx
lea eax, [ebp - 0x1130]
push eax
call fcn.004037b0
add esp, 0xc
mov dword [ebp - 0x1138], eax
mov ecx, dword [ebp - 0x1138]
mov dword [ebp - 0x113c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x113c]
push edx
lea ecx, [ebp - 0x111c]
call fcn.00403bf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1130]
call fcn.00403db0
mov eax, dword [ebp - 0x1124]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413799
lea ecx, [ebp - 0x111c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403a50
mov edx, dword [ebp - 0x1128]
or edx, 1
mov dword [ebp - 0x1128], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1118]
call fcn.00403db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x111c]
call fcn.00403db0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426ce7
mov esp, ebp
pop ebp
ret
Function at 0x413910
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bfb3
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x451550]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x413998
mov dword [ebp - 0x148], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403db0
mov eax, dword [ebp - 0x148]
jmp 0x413aae
lea ecx, [ebp + 8]
call fcn.00405c40
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x413a85
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00404760
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00405c40
lea ecx, [ebp + 8]
call fcn.00403210
push eax
lea ecx, [ebp - 0x13c]
call fcn.00403580
test eax, eax
jne 0x413a64
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x154]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x144], eax
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x150], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00403db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403db0
mov eax, dword [ebp - 0x150]
jmp 0x413aae
push 0xffffffffffffffff
lea ecx, [ebp - 0x13c]
call fcn.00403860
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00403db0
jmp 0x4139a0
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00403860
mov dword [ebp - 0x14c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403db0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426ce7
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp + 8]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x413aff
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x413aff
mov dword [ebp - 8], 1
jmp 0x413b06
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp + 8]
call fcn.00403db0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x413e10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c030
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x451550]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004022e0
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
push edx
mov ecx, 0x546bf8
call fcn.00403d90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403db0
push 0x4497fc
lea ecx, [ebp - 0x18]
call fcn.00404760
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], 0x34
push 0
mov ecx, 0x546bf8
call fcn.00403210
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x413f48
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
call fcn.00414633
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, 0x546bf8
call fcn.00403210
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x413f36
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0x449800
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x413f36
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push str._d_d
lea ecx, [ebp - 0x18]
push ecx
call fcn.004039e0
add esp, 0x10
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0041463c
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403a50
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403db0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x413f80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c060
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x451550]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004022e0
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
push edx
mov ecx, 0x546bf8
call fcn.00403d90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403db0
push 0x44980c
lea ecx, [ebp - 0x1c]
call fcn.00404760
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], 0x34
push 0
mov ecx, 0x546bf8
call fcn.00403210
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4140db
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
call fcn.00414633
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, 0x546bf8
call fcn.00403210
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4140c9
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x449810
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4140c9
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push str._d._d._d._d
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004039e0
add esp, 0x18
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0041463c
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403a50
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00403db0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x415512
Capabilities:
Get disk information

Disassembly:
push 0x158
mov eax, 0x43c18a
call fcn.00428f1f
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
test esi, esi
mov edi, dword [ebp + 0x10]
setne al
mov dword [ebp - 0x158], esi
test eax, eax
jne 0x415540
call fcn.00414bac
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x41553b
lea eax, [ebp - 0x154]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x415588
push 0xffffffffffffffff
push ebx
push 0x104
push esi
call fcn.00428ce9
push eax
call fcn.00403450
add esp, 0x14
push ebx
push edi
call fcn.004154e5
xor eax, eax
jmp 0x4156a9
cmp eax, 0x104
jb 0x4155a5
test edi, edi
je 0x415581
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.004046f0
jmp 0x415581
call fcn.004150a2
push eax
lea ecx, [ebp - 0x15c]
call fcn.00403dd0
and dword [ebp - 4], 0
lea eax, [ebp - 0x15c]
push eax
push esi
call fcn.0041549b
mov esi, dword [ebp - 0x15c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x41569e
xor ecx, ecx
lea eax, [ebp - 0x160]
push ecx
push ecx
push eax
lea eax, [ebp - 0x164]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x415610
push ebx
push edi
call fcn.004154e5
lea ecx, [esi - 0x10]
call fcn.00404200
jmp 0x415581
mov eax, dword [ebp - 0x160]
test al, 2
jne 0x41562c
push dword [ebp - 0x158]
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp - 0x160]
test al, 4
jne 0x41569e
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41569e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x4155fc
cmp eax, dword [ebp - 0x158]
jbe 0x4155fc
lea eax, [ebp - 0x124]
push eax
call fcn.004288c0
mov edx, dword [ebp - 0x154]
sub edx, dword [ebp - 0x158]
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x4156b1
lea eax, [ebp - 0x124]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x154]
call fcn.00429827
push eax
call fcn.00403450
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00404200
xor eax, eax
inc eax
call fcn.00428ece
ret 0xc
test edi, edi
je 0x415603
push ebx
lea ecx, [edi + 0x10]
mov dword [edi + 8], 3
call fcn.004046f0
jmp 0x415603

Function at 0x41818a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4181cf
call fcn.0041655b
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4181cf
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4181eb
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00414161
mov ebx, eax
test edi, edi
je 0x4181e9
test esi, esi
je 0x4181e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x421f47
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x451550]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x421fd9
test esi, esi
je 0x421fd9
push esi
call fcn.004288c0
push 0xff
mov ebx, eax
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x103]
push 0
push eax
call fcn.00428830
mov eax, pe_nt_image_headers32
add esp, 0x10
cmp ebx, eax
ja 0x421fbe
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x421fbe
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x421fc6
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426ce7
mov esp, ebp
pop ebp
ret 8
call fcn.00414bac
int3
Function at 0x435bcb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x451550]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042e712
mov dword [ebp - 0x14], eax
cmp dword [0x546a6c], esi
jne 0x435cbe
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x435c4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x435d9e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x435d9e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435d9e
push eax
call ebx
push 0x44239c
push edi
mov dword [0x546a6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4423ac
push edi
mov dword [0x546a70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x546a74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x546a7c], eax
test eax, eax
je 0x435cbb
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x546a78], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x435ce3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x435cd6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x435cf8
push 4
pop eax
jmp 0x435da0
cmp dword [ebp - 0x14], esi
je 0x435cf8
push dword [0x546a6c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x435cdd
mov eax, dword [0x546a78]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x435d56
cmp dword [0x546a7c], edi
je 0x435d56
push eax
call ebx
push dword [0x546a7c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x435d56
test eax, eax
je 0x435d56
call ecx
test eax, eax
je 0x435d4b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x435d4b
test byte [ebp - 8], 1
jne 0x435d56
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x435d86
mov eax, dword [0x546a70]
cmp eax, edi
je 0x435d83
push eax
call ebx
test eax, eax
je 0x435d83
call eax
mov esi, eax
test esi, esi
je 0x435d83
mov eax, dword [0x546a74]
cmp eax, edi
je 0x435d83
push eax
call ebx
test eax, eax
je 0x435d83
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x546a6c]
call ebx
test eax, eax
je 0x435d9e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x435da0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426ce7
mov esp, ebp
pop ebp
ret
Function at 0x401933
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x42683f
call fcn.004256c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.004032ae
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.0040198c
lea ecx, [esi + 0x30]
call fcn.004032ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405386
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x405512
Capabilities:
Create directory

Disassembly:
mov eax, 0x426bd0
call fcn.004256c0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405535
mov al, 1
jmp 0x40557b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x405546
xor al, al
jmp 0x40557b
lea ecx, [ebp - 0x44]
call fcn.0040573f
lea ecx, [ebp - 0x1c]
call fcn.004032ae
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040598d
test al, al
je 0x405570
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00403a73
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40598c
or eax, eax
ret

Function at 0x406d48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x406d57
pop dword [ebp - 0x34]
mov eax, 0x10d5b570
add eax, 0xef6ab7e7
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x39daa
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x4b58
xor edx, edx
add edx, eax
mov edi, 0x267b8243
sub edi, 0x26381443
add edi, dword [ebp - 0x34]
mov esi, 0x28745d8c
add esi, 0x27df69ed
xor dword [ebp - 0x14], eax
mov ebx, dword [edi]
add ebx, esi
xor dword [ebp - 0x10], 0x321d12aa
mov dword [edx], ebx
xor dword [ebp - 4], 0x70276d06
add edx, 4
add edi, 0x5280af1a
add edi, 0xad7f50ea
loop 0x406dad
add eax, 0x17287d7f
sub eax, 0x17275d4c
mov ebx, eax
add eax, 0x74a694e
sub eax, 0x74a6949
mov ecx, 0xc4282111
sub ecx, 0xc3e82111
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x40ffd9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40ffe8
pop dword [ebp - 0x48]
mov eax, 0x40ffe8
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x421c4
push 0
mov eax, 0xcc7ce748
add eax, 0x33c56ad0
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0xa4cc2806
add ecx, 0x5b343110
mov ebx, eax
mov edx, 0x3159b731
sub edx, 0x31166331
add edx, dword [ebp - 0x48]
mov edi, 0xfb4f3f91
sub edi, 0xf95fb13f
xor dword [ebp - 0x10], 0xdb06dddc
mov esi, dword [edx]
mov dword [ebp - 0x30], 0xde66a716
add esi, edi
xor dword [ebp - 4], edi
mov dword [ebx], esi
sub dword [ebp - 0x1c], 0x35023563
add ebx, 0x5a975c25
add ebx, 0xa568a3df
add edx, 0x4bec73e3
sub edx, 0x4bec73df
loop 0x410042
add eax, 0x5f283b80
sub eax, 0x5f26e455
mov ebx, eax
add eax, 0x46b44c28
add eax, 0xb94bb3dd
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d05c], 1
mov dword [0x40d058], 1
mov dword [0x40d054], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d00c], eax
mov eax, dword [0x40d068]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d07c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d064]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x40151a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x50
call dbg.__main
mov dword [esp + 0x4c], 0x64
mov dword [esp + 0x35], 0x574f5050
mov dword [esp + 0x38], 0x373457
lea eax, [esp + 0x35]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x44], eax
mov dword [esp + 0x1b], 0x70747468
mov dword [esp + 0x1f], 0x2f2f3a73
mov dword [esp + 0x23], 0x676f6f67
mov dword [esp + 0x27], 0x632e656c
mov dword [esp + 0x2b], 0x732f6d6f
mov dword [esp + 0x2f], 0x63726165
mov word [esp + 0x33], 0x68
mov dword [esp + 0x48], 0
jmp 0x4015cf
mov eax, dword [ebp + 0xc]
add eax, 8
mov edx, dword [eax]
mov eax, dword [esp + 0x48]
add eax, edx
movzx ecx, byte [eax]
mov eax, dword [esp + 0x48]
cdq
idiv dword [esp + 0x44]
mov eax, edx
movzx eax, byte [esp + eax + 0x35]
xor eax, ecx
mov ecx, eax
lea edx, [esp + 0x17]
mov eax, dword [esp + 0x48]
add eax, edx
mov byte [eax], cl
add dword [esp + 0x4c], 0x1806
add dword [esp + 0x48], 1
mov eax, dword [esp + 0x48]
cmp eax, 3
jbe 0x401591
mov edx, dword [esp + 0x4c]
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
add edx, eax
and edx, 1
sub edx, eax
mov eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, 0x40a044
mov dword [esp + 0x44], eax
lea eax, [esp + 0x17]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x10]
mov dword [esp], eax
call sym._time
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], str.Timeout:__f_n
call sym.printf_char_const__..._
lea eax, [esp + 0x10]
mov dword [esp], eax
call sym._gmtime
mov dword [esp], eax
call sym._asctime
mov dword [esp + 4], eax
mov dword [esp], str.Now_Time:__s
call sym.printf_char_const__..._
mov eax, 0
leave
ret