joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb70
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x444220]
cmp ax, 0xcb
je 0x40ec7c
cmp ax, 0xcc
je 0x40ec7c
lea esi, [esi]
mov edx, dword [0x455070]
test edx, edx
je 0x40eba5
mov eax, dword [0x454f20]
call edx
mov ebx, eax
jmp 0x40ebaa
mov ebx, 0x454f24
cmp word [0x454f10], 0
jle 0x40ebd0
mov eax, 0x454ef0
call fcn.0040ede0
mov eax, ebx
call fcn.0040e730
mov eax, ebx
call fcn.0040e7a0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40ebf2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40ebed
mov edx, edi
mov eax, ebx
call fcn.0040dba0
jmp 0x40ebf0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40ebd8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x454f10], 0
jle 0x40ec7c
mov edx, 0x454e30
mov eax, ebx
call fcn.0040dce0
mov edi, eax
test edi, edi
je 0x40ec4c
mov eax, dword [0x454ec4]
mov dword [edi + 0xc], eax
cmp dword [0x454ec4], 0
je 0x40ec40
mov eax, dword [0x454ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x454ec4], eax
nop
sub word [0x454f10], 1
cmp word [0x454f10], 0
sete bl
mov eax, 0x454ef0
call fcn.0040ee00
test bl, bl
je 0x40ec7c
mov eax, 0x454ef0
call fcn.0040edd0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x410960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00410940
push ebp
push 0x411d20
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x410a8a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00409a30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x4109ef
mov edx, 0x4542f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x410a41
call sub.kernel32.dll_GetLastError
call fcn.00402b90
lea eax, [ebp - 0x10]
call fcn.004087f0
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.00408c90
mov edx, dword [ebp - 0x14]
mov ecx, 0x4472a8
lea eax, [ebp - 0x10]
call fcn.00408b20
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.004093d0
jmp 0x410ad8
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x410a5a
cmp eax, ecx
je 0x410a64
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.00409a30
cmp byte [0x444480], 0
jne 0x410ad8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.00409f80
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00409410
lea esi, [esi]
jmp 0x410ad8
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00409a30
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x410aae
mov eax, 0x4542f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x444480], 0
jne 0x410ad8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.00409f80
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00409410
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00410940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410eb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x454260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00411090
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x454260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402130
call sub.kernel32.dll_GetCommandLineA
mov dword [0x444290], eax
mov ebx, eax
jmp 0x411053
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x410f38
cmp byte [ebx], 0
je 0x41105c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x410fb3
mov al, byte [ebx]
cmp al, 1
jb 0x410fa8
sub al, 0x20
jbe 0x410f78
sub al, 2
je 0x410f8c
jmp 0x410fa8
mov al, byte [ebp - 0x114]
test al, al
je 0x410fb8
add dword [ebp - 0x110], 1
jmp 0x410fb0
cmp byte [ebx + 1], 0x22
je 0x410fa3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x410fb0
add ebx, 1
jmp 0x410fb0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x410f68
test dword [ebp - 0x10c], 0xffffffff
je 0x41104c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00411090
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x454260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x411043
mov al, byte [ebx]
cmp al, 1
jb 0x411038
sub al, 0x20
jbe 0x411008
sub al, 2
je 0x41101c
jmp 0x411038
mov al, byte [ebp - 0x114]
test al, al
je 0x411048
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x411040
cmp byte [ebx + 1], 0x22
je 0x411033
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x411040
add ebx, 1
jmp 0x411040
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x410ff8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x410f3b
mov ebx, dword [ebp - 0x10c]
mov dword [0x454250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x454260
call fcn.0040e9b0
mov eax, dword [0x454260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00413960
push ebp
push 0x411d20
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x413a88
mov al, byte [ebp - 0x110]
test al, al
je 0x413a51
lea eax, [ebp - 0xc]
call fcn.004025e0
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.004035d0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00407960
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00408670
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x447ac4
call fcn.00429540
mov edx, 0x4139da
mov ecx, ebp
call fcn.00411be0
jmp 0x413a88
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x447ac4
call fcn.00429540
mov edx, 0x413a51
mov ecx, ebp
call fcn.00411be0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x413b54
mov al, byte [ebp - 0x110]
test al, al
je 0x413b1d
lea eax, [ebp - 0xc]
call fcn.004025e0
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.004035d0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00407960
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00408670
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x447ac4
call fcn.00429540
mov edx, 0x413aa6
mov ecx, ebp
call fcn.00411be0
jmp 0x413b54
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x447ac4
call fcn.00429540
mov edx, 0x413b1d
mov ecx, ebp
call fcn.00411be0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.004136a0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00413960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42a770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov byte [ebp - 0xc], cl
mov eax, dword [ebp - 4]
test eax, eax
jne 0x42a78e
mov eax, 0x4542f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x42a7c6
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x42a7aa
clc
jmp 0x42a7b1
bt dword [0x44c6b8], eax
jb 0x42a7c2
mov eax, ebp
call fcn.0042a8b0
test al, al
je 0x42a7c2
mov bl, 1
jmp 0x42a7f4
xor bl, bl
jmp 0x42a7f4
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x4457c0]
sete bl
mov al, byte [ebp - 0xc]
and al, bl
je 0x42a7f4
and esi, 0x400
je 0x42a7f4
mov eax, ebp
call fcn.0042a820
mov bl, al
lea esi, [esi]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ada0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0042ad90
push ebp
push 0x411d20
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x45593c]
xor edx, edx
call fcn.004070e0
mov dword [ebx*4 + 0x45595c], 0xffffffff
cmp ebx, 7
jl 0x42adc8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x42ae54
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00407ad0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00421c50
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x42ae54
push 4
push ebx
push esi
mov eax, 0x42ac70
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x42ad00
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0042ad90
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b5a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.0042b570
push ebp
push 0x411d20
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.004218f0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004070e0
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.00408670
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.004070e0
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x42b6ac
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00407a30
mov eax, dword [ebp - 8]
test eax, eax
je 0x42b637
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.00408670
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00408010
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00407eb0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004218f0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00407c50
test eax, eax
jne 0x42b6a4
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x42b693
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00407eb0
jmp 0x42b6b5
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x42b620
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0042b570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b6f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x4559a0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x455800], eax
mov eax, dword [ebp - 0x90]
mov dword [0x455810], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x455820], eax
mov eax, dword [ebp - 0x88]
mov dword [0x455830], eax
mov edx, 0x455841
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00402130
lea eax, [ebp - 0x80]
call fcn.00403020
mov byte [0x455840], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4559b0], eax
test eax, eax
je 0x42b790
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x4559b0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x4559a0], eax
nop
cmp dword [0x455810], 6
jae 0x42b7a4
mov dword [0x445080], 0
nop
cmp dword [0x455810], 6
jb 0x42b7c0
cmp dword [0x455820], 1
jb 0x42b7c0
mov dword [0x445090], 2
mov esp, ebp
pop ebp
ret
Function at 0x431670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov edx, str.default
call fcn.00407c50
test eax, 0xffffffff
je 0x4316aa
jmp 0x431693
mov edx, dword [0x445030]
mov eax, dword [ebp - 8]
call fcn.00407c50
test eax, 0xffffffff
je 0x4316aa
jmp 0x4316d3
push 1
push 0
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4316bc
mov eax, 0x4542f0
push eax
mov eax, str.open
push eax
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta byte [ebp - 0xc]
jmp 0x431701
push 1
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4316e3
mov eax, 0x4542f0
push eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4316f0
mov eax, 0x4542f0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta byte [ebp - 0xc]
mov al, byte [ebp - 0xc]
leave
ret
Function at 0x432670
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x43271a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x432736
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x432736
sub dx, 0x20
je 0x432710
sub dx, 0x80
je 0x432710
sub dx, 0x1f62
jb 0x432736
sub dx, 1
jbe 0x432710
sub dx, 6
je 0x432710
sub dx, 0x26
jne 0x432736
nop
jmp 0x432710
cmp eax, dword [ebp - 0x20]
jg 0x4326b8
lea esi, [esi]
jmp 0x432736
cmp dword [ebp - 0x1c], 2
jne 0x43272a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x432736
mov al, byte [ebp - 0xc]
call fcn.00409710
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x4327b4
sub ax, 0x21
je 0x4327c8
sub ax, 0x17
je 0x4327d4
sub ax, 0x222
je 0x4327e0
sub ax, 0x392
je 0x4327e8
sub ax, 1
je 0x4327f0
sub ax, 0x1996
je 0x4327f8
sub ax, 1
je 0x432800
sub ax, 6
je 0x432808
sub ax, 0xb
je 0x432818
sub ax, 0x1b
je 0x432810
sub ax, 0x367
je 0x432820
jmp 0x432828
mov ax, word [ebp - 0x24]
call fcn.00409780
mov byte [ebp - 0x10], al
jmp 0x432830
mov byte [ebp - 0x10], 0x20
jmp 0x432830
mov byte [ebp - 0x10], 0x2e
jmp 0x432830
mov byte [ebp - 0x10], 0x27
jmp 0x432830
mov byte [ebp - 0x10], 0x2c
jmp 0x432830
mov byte [ebp - 0x10], 0x27
jmp 0x432830
mov byte [ebp - 0x10], 0x20
jmp 0x432830
mov byte [ebp - 0x10], 0x20
jmp 0x432830
mov byte [ebp - 0x10], 0x20
jmp 0x432830
mov byte [ebp - 0x10], 0x20
jmp 0x432830
mov byte [ebp - 0x10], 0x2d
jmp 0x432830
mov byte [ebp - 0x10], 0x27
jmp 0x432830
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
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, 0x20
pushal
call 0x403203
pop dword [ebp - 0x10]
mov eax, 0x4483b68a
sub eax, 0x44438487
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x877e1537
sub dword [ebp - 0x20], 0x392bcfec
mov dword [ebp - 0x1c], 0xf763e816
sub dword [ebp - 0x1c], 0xc5309bd1
mov dword [ebp - 0x18], 0xf61a87a0
add dword [ebp - 0x18], 0x5631bc8e
mov dword [ebp - 0x14], 0x53e17156
sub dword [ebp - 0x14], 0x53e17156
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xca243ae9
sub dword [ebp - 0x20], 0x55b1d193
mov dword [ebp - 0x1c], 0x8fb4d3c1
add dword [ebp - 0x1c], 0xb1b78db4
mov dword [ebp - 0x18], 0x883fe0aa
sub dword [ebp - 0x18], 0x24d0743e
mov dword [ebp - 0x14], 0xfd2059b5
add dword [ebp - 0x14], 0x2dfa64b
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3c7dd
push 0
call eax
mov ecx, 0x5f97
mov ebx, eax
mov edx, 0x411000
add edx, dword [ebp - 0x10]
mov edi, 0x55f10696
add edi, 0x7ea62fb
add dword [ebp - 8], 0xd4666da6
mov esi, dword [edx]
xor dword [ebp - 4], 0x67297c97
xor esi, edi
sub dword [ebp - 4], 0x799c09b4
mov dword [ebx], esi
add ebx, 0x7003ea6e
sub ebx, 0x7003ea6a
add edx, 0x2acb8321
add edx, 0xd5347ce3
loop 0x40330f
add eax, 0x59142aeb
add eax, 0xa6ed4644
mov ebx, eax
add eax, 5
mov ecx, 0xe1038581
add ecx, 0x1f3c7a7f
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0xdac370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xdac38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xdd5074
push ecx
mov edi, eax
call fcn.00dc0198
mov esi, eax
add esp, 8
test esi, esi
jne 0xdac3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00dc002e
push esi
call fcn.00dbffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xdaf850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xdaf8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xdda720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xdaf8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00dc01e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xdaf8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xdda720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xdaf92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00dc1082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xdaf957
mov word [eax], si
add eax, 2
push eax
call fcn.00dc1030
add esp, 4
jmp 0xdaf959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xdaf8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xdaf8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xdafff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xdb0080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xdb00c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xdd5458
push ecx
call fcn.00dc01e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00dc01e1
add esp, 0x10
jmp 0xdb00d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00dc020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00dbfdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00db0050
mov eax, dword [0xdda728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xdb013b
push esi
call fcn.00daffb0
add esp, 4
mov dword [0xdda728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xdb014c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00dafff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xdb3440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xdb34b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xdb348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xdb3471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xdb347e
add edx, ecx
cmp ebx, edx
jb 0xdb348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xdb3467
xor ecx, ecx
jmp 0xdb34a2
test eax, eax
jne 0xdb3492
xor ecx, ecx
jmp 0xdb34a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00db33c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret