joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ffc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor eax, eax
xor ecx, ecx
cmp dword [esi + 4], eax
sete cl
test cl, cl
jne 0x4080c7
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ecx], eax
cmp dword [esi + 0x130], eax
jne 0x4080c3
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov edi, dword [ecx + 0x5c]
cmp edi, eax
je 0x408064
mov eax, dword [edi]
lea edx, [ebp + 0xc]
push edx
lea edx, [edi + 4]
mov dword [ebp + 0xc], 0x40000000
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x24]
test byte [ebp + 0xf], 0x40
je 0x408073
push dword [esi + 4]
push dword [edi + 8]
call fcn.00405c53
pop ecx
mov dword [ebp + 0x10], eax
pop ecx
jmp 0x408073
lea eax, [ebp + 0x10]
push eax
push 0x10
push dword [esi + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x4080c3
lea eax, [esi + 0x2c]
push 0x104
push eax
push 0x8000
push dword [ebp + 0x10]
push dword [esi + 8]
call fcn.00405cbf
add esp, 0x14
test eax, eax
je 0x4080b2
push edi
push 0x66
push 0x111
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 0x10], edi
je 0x4080c3
mov esi, dword [esi + 4]
push dword [ebp + 0x10]
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
push 1
pop eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4083f5
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edi, 0x160
push 0x4009
lea eax, [ebp - 0x160]
push edi
push eax
push 0
push dword [ebp + 8]
call esi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x15c]
push 0x400b
push edi
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x160]
push eax
push 0
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 0x15c]
pop edi
mov dword [ebx + 0x1c], eax
pop esi
pop ebx
leave
ret
Function at 0x408775
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4087af
lea eax, [ebp - 8]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8002
push dword [ebp + 8]
call fcn.004166d0
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
je 0x40887d
mov esi, dword [ebp + 0x10]
push 1
push esi
call fcn.0040fdf0
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40886b
push esi
push edi
push ebx
call fcn.004139b0
add esp, 0xc
push esi
push edi
call fcn.004093a8
pop ecx
mov dword [ebp + 0x10], esi
neg dword [ebp + 0x10]
pop ecx
push 1
push dword [ebp + 0x10]
push ebx
call fcn.00413110
add esp, 0xc
push esi
push edi
push ebx
call fcn.004133d0
add esp, 0xc
push 0
push dword [ebp + 0x14]
push ebx
call fcn.00413110
add esp, 0xc
push esi
push edi
push ebx
call fcn.004139b0
add esp, 0xc
push esi
push edi
call fcn.004093a8
pop ecx
pop ecx
push dword [ebp + 0xc]
push esi
push edi
call fcn.004086a1
add esp, 0xc
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x408862
push 1
push dword [ebp + 0x10]
push ebx
call fcn.00413110
add esp, 0xc
push esi
push edi
push ebx
call fcn.004133d0
add esp, 0xc
push edi
call fcn.0040ecb0
pop ecx
jmp 0x408872
mov dword [ebp + 0x14], 0x20000005
push ebx
call fcn.004137a0
pop ecx
xor esi, esi
jmp 0x408884
mov dword [ebp + 0x14], 0x20000008
push esi
push esi
push 3
push esi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4088b4
lea eax, [ebp - 8]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4093bd
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
test dx, dx
je 0x4093e3
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov bl, dl
add edx, 0xffff
xor bl, byte [ecx]
mov byte [eax], bl
inc eax
inc ecx
test dx, dx
jne 0x4093cf
pop ebx
ret

Function at 0x40a0b9
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
test edx, edx
jbe 0x40a0d1
mov cl, byte [esp + 0xc]
inc cl
xor byte [eax], cl
inc eax
dec edx
jne 0x40a0c9
mov eax, dword [esp + 4]
ret
Function at 0x40a426
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x40a4c2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a4c2
lea eax, [ebp + 0xc]
push eax
push 0x10008
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x40a4c7
push edi
push edi
push edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 4], 0x100
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x40a4ab
cmp esi, edi
jne 0x40a4b7
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call fcn.0040a426
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x40a464
jmp 0x40a4b7
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a4c7
mov esi, 0x3f2
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ad2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
and dword [esi + 4], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
test edi, edi
mov dword [esi], 0x41a4ec
jne 0x40ad57
call fcn.0040bbdf
mov edi, eax
movzx eax, word [esp + 0xc]
push dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
mov dword [esi + 4], eax
je 0x40ad95
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [esi + 4]
mov dword [esi + 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esi + 0xc], eax
je 0x40ad95
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
pop esi
ret 0xc

Function at 0x40c27b
Capabilities:
Create process on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0040b4a0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x40c3be
cmp byte [esi], bl
je 0x40c3be
push dword [0x41e368]
call fcn.0040c22c
push eax
push esi
call fcn.0040a2e6
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
mov dword [esp + 0x10], ebp
jne 0x40c2be
push ebx
jmp 0x40c3b8
push ebp
xor esi, esi
call fcn.0040f1c0
cmp eax, 3
pop ecx
jbe 0x40c334
cmp byte [ebp], 0x24
jne 0x40c334
cmp byte [ebp + 1], 0x7b
jne 0x40c334
push 0x7d
push ebp
call fcn.0040ed10
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40c307
and byte [edi], 0
push 0x2c
push ebp
call fcn.0040ed10
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40c2ff
and byte [esi], 0
inc esi
inc edi
lea ebx, [ebp + 2]
mov dword [esp + 0x10], edi
test ebx, ebx
je 0x40c312
cmp byte [ebx], 0
jne 0x40c312
xor ebx, ebx
test esi, esi
je 0x40c31d
cmp byte [esi], 0
jne 0x40c31d
xor esi, esi
push 1
push 0x421df4
push esi
push dword [esp + 0x1c]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40c33d
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x40c3b7
push dword [esp + 0x10]
call fcn.0040f1c0
pop ecx
add eax, 0x100
push eax
call fcn.0040f110
mov esi, eax
pop ecx
test esi, esi
jne 0x40c365
call fcn.0040bbe5
jmp 0x40c3b0
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0xff
push ebx
push esi
push 0x190
push dword [0x42230c]
call edi
test eax, eax
je 0x40c390
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40c39f
push ebx
push esi
push 0x1b1
push dword [0x42230c]
call edi
push 0x10
push dword [esp + 0x14]
push esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040ecb0
pop ecx
push ebp
call fcn.0040ecb0
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40c64c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
xor byte [eax], cl
inc eax
dec ecx
test cx, cx
jne 0x40c654
ret
Function at 0x40c772
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0xc], 0
push esi
jne 0x40c780
cmp dword [ecx + 0xe], 0
je 0x40c7a0
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40c7a0
mov eax, dword [esp + 8]
movzx si, byte [eax]
add word [ecx + 0x12], si
movzx si, byte [eax]
xor word [ecx + 0x14], si
inc eax
dec edx
jne 0x40c78c
pop esi
ret 0xc

Function at 0x40dfe3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov ebx, 0x41d2d0
je 0x40e006
push esi
call fcn.0040f1c0
test eax, eax
pop ecx
jne 0x40e01b
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.0040f610
pop ecx
lea esi, [ebp - 0x104]
pop ecx
push dword [ebp + 0xc]
mov edi, 0x41ec10
push 0
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call esi
test eax, eax
jne 0x40e054
push 1
push 0x421df4
push 0x15
call fcn.00401939
add esp, 0xc
push dword [ebp + 0xc]
push 0
push edi
push ebx
call esi
neg eax
sbb eax, eax
inc eax
jmp 0x40e056
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
ret

Function at 0x40e147
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
push 1
pop ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, ebx
jne 0x40e1e4
test byte [ebp + 0xd], 8
je 0x40e1dd
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x8c], 2
jne 0x40e1dd
test byte [ebp + 0xc], 0x10
je 0x40e19f
xor esi, esi
push esi
push 0x2000000
jmp 0x40e1a3
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e1e4
lea eax, [ebp - 8]
push esi
push eax
push esi
push esi
lea eax, [ebp - 4]
push 2
push eax
push 0x9c040
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, ebx
jmp 0x40e1df
Function at 0x40e65d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
cmp esi, eax
mov byte [ecx], al
jne 0x40e68e
lea edx, [ebp - 0x40]
push 0x40
push edx
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp + 8]
push edx
push eax
push 0x104
push ecx
jmp 0x40e6b6
mov dl, byte [esi]
push 0x40
mov byte [ebp + 0x14], dl
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp + 8]
push edx
push eax
mov byte [ebp + 0x17], al
push 0x104
mov byte [ebp + 0x15], 0x3a
mov byte [ebp + 0x16], 0x5c
push ecx
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40e6c5
xor eax, eax
jmp 0x40e6c8
push 1
pop eax
pop esi
leave
ret

Function at 0x40e6cb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov al, byte [eax]
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
dec eax
dec eax
je 0x40e70c
dec eax
je 0x40e708
dec eax
je 0x40e704
dec eax
je 0x40e700
dec eax
jne 0x40e708
push 6
jmp 0x40e70e
push 5
jmp 0x40e70e
push 4
jmp 0x40e70e
push 3
jmp 0x40e70e
push 2
pop eax
pop ebp
ret

Function at 0x40e85a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, eax
mov esi, eax
shr eax, 0x10
and eax, 0x1f
push 1
shr esi, 0x15
shr edi, 0x19
mov bx, ax
and esi, 0xf
pop eax
add edi, 0x7bc
cmp si, ax
jb 0x40e890
cmp si, 0xc
jbe 0x40e893
mov si, ax
cmp bx, ax
jb 0x40e89e
cmp bx, 0x1f
jbe 0x40e8a1
mov bx, ax
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push str.Control_PanelInternational
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e8f4
lea eax, [ebp - 4]
mov dword [ebp - 4], 5
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.sDate
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e8e9
mov byte [ebp - 0xc], 0x2f
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e8f8
mov byte [ebp - 0xc], 0x2f
mov eax, dword [0x422538]
sub eax, 3
je 0x40e92d
dec eax
movzx eax, byte [ebp - 0xc]
je 0x40e918
movzx ecx, di
push ecx
push eax
movzx ecx, bx
push ecx
push eax
movzx eax, si
jmp 0x40e93e
movzx ecx, bx
push ecx
push eax
movzx ecx, si
push ecx
push eax
movzx eax, di
push eax
push str._04d_c_02d_c_02d
jmp 0x40e944
movzx eax, byte [ebp - 0xc]
movzx ecx, di
push ecx
push eax
movzx ecx, si
push ecx
push eax
movzx eax, bx
push eax
push str._02d_c_02d_c_04d
push dword [ebp + 0xc]
call fcn.0040f5a0
mov eax, dword [ebp + 0xc]
add esp, 0x1c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e98c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x40e9dc
cmp byte [esi], 0xa
jne 0x40e9dc
cmp byte [esi + 1], 0
jne 0x40e9dc
xor eax, eax
mov al, byte [esi + 2]
mov ah, byte [esi + 3]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x40e9dc
movzx eax, word [ebp + 0x10]
cmp dword [ebp + 0xc], eax
ja 0x40e9dc
push 4
pop edi
push 0x18
call fcn.0040f240
test eax, eax
pop ecx
jne 0x40e9e3
push 1
push 0x421df4
push 0x1b
call fcn.00401939
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [ebp + 0xc], edi
jbe 0x40e9de
mov ecx, 0xff
xor edx, edx
xor ebx, ebx
mov dl, byte [edi + esi + 4]
mov bl, byte [edi + esi + 6]
mov dh, byte [edi + esi + 5]
mov bh, byte [edi + esi + 7]
add edi, 4
cmp edx, 1
mov dword [ebp + 0x10], ebx
jne 0x40eb2f
cmp ebx, 0x18
jne 0x40eb2f
movsx edx, byte [edi + esi + 7]
shl edx, 0x18
mov dword [eax + 0x10], edx
mov bl, byte [edi + esi + 6]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 0x10], ebx
mov dh, byte [edi + esi + 5]
or edx, ebx
mov dword [eax + 0x10], edx
mov bl, byte [edi + esi + 4]
and ebx, ecx
or ebx, edx
mov dword [eax + 0x10], ebx
movsx edx, byte [edi + esi + 0xb]
shl edx, 0x18
mov dword [eax + 0x14], edx
mov bl, byte [edi + esi + 0xa]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 0x14], ebx
mov dh, byte [edi + esi + 9]
or edx, ebx
mov dword [eax + 0x14], edx
mov bl, byte [edi + esi + 8]
and ebx, ecx
or ebx, edx
mov dword [eax + 0x14], ebx
movsx edx, byte [edi + esi + 0xf]
shl edx, 0x18
mov dword [eax + 8], edx
mov bl, byte [edi + esi + 0xe]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 8], ebx
mov dh, byte [edi + esi + 0xd]
or edx, ebx
mov dword [eax + 8], edx
mov bl, byte [edi + esi + 0xc]
and ebx, ecx
or ebx, edx
mov dword [eax + 8], ebx
movsx edx, byte [edi + esi + 0x13]
shl edx, 0x18
mov dword [eax + 0xc], edx
mov bl, byte [edi + esi + 0x12]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 0xc], ebx
mov dh, byte [edi + esi + 0x11]
or edx, ebx
mov dword [eax + 0xc], edx
mov bl, byte [edi + esi + 0x10]
and ebx, ecx
or ebx, edx
mov dword [eax + 0xc], ebx
movsx edx, byte [edi + esi + 0x17]
shl edx, 0x18
mov dword [eax], edx
mov bl, byte [edi + esi + 0x16]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax], ebx
mov dh, byte [edi + esi + 0x15]
or edx, ebx
mov dword [eax], edx
mov bl, byte [edi + esi + 0x14]
and ebx, ecx
or ebx, edx
mov dword [eax], ebx
movsx edx, byte [edi + esi + 0x1b]
shl edx, 0x18
mov dword [eax + 4], edx
mov bl, byte [edi + esi + 0x1a]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 4], ebx
mov dh, byte [edi + esi + 0x19]
or edx, ebx
mov dword [eax + 4], edx
mov bl, byte [edi + esi + 0x18]
and ebx, ecx
or ebx, edx
mov dword [eax + 4], ebx
add edi, dword [ebp + 0x10]
cmp edi, dword [ebp + 0xc]
jb 0x40e9ed
jmp 0x40e9de
Function at 0x40ebbf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
lea eax, [ebp - 8]
push 5
push eax
mov edi, 0x400
push 0x21
push edi
call esi
test eax, eax
je 0x40ec12
cmp byte [ebp - 8], 0x30
jne 0x40ebf2
mov dword [0x422538], 2
jmp 0x40ec03
xor eax, eax
cmp byte [ebp - 8], 0x31
setne al
add eax, 3
mov dword [0x422538], eax
lea eax, [ebp - 8]
push 5
push eax
push 0x23
push edi
call esi
test eax, eax
jne 0x40ec17
push 1
pop eax
jmp 0x40ec27
xor eax, eax
cmp byte [ebp - 8], 0x30
setne al
mov dword [0x422534], eax
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x410590
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x423e20]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4105af
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x423e1c], 1
mov byte [0x423e18], bl
jne 0x410609
mov ecx, dword [0x425450]
test ecx, ecx
je 0x4105f7
mov esi, dword [0x42544c]
sub esi, 4
cmp esi, ecx
jb 0x4105f7
mov eax, dword [esi]
test eax, eax
je 0x4105f0
call eax
mov ecx, dword [0x425450]
sub esi, 4
cmp esi, ecx
jae 0x4105e2
push 0x41c030
push 0x41c024
call fcn.00410640
add esp, 8
push 0x41c038
push 0x41c034
call fcn.00410640
add esp, 8
test ebx, ebx
jne 0x410630
push ebp
mov dword [0x423e20], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x410c90
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x410cac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410cae
xor eax, eax
test eax, eax
je 0x410cbf
push eax
call fcn.004149e0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x411080
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a960
push 0x416128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x423df0], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x423dec], ecx
shl ecx, 8
add ecx, edx
mov dword [0x423de8], ecx
shr eax, 0x10
mov dword [0x423de4], eax
call fcn.00411280
test eax, eax
jne 0x4110ea
push 0x1c
call fcn.00411250
add esp, 4
mov dword [ebp - 4], 0
call fcn.004131d0
call fcn.00416020
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x425448], eax
call fcn.004159e0
mov dword [0x423e40], eax
test eax, eax
je 0x41111d
mov eax, dword [0x425448]
test eax, eax
jne 0x411127
push 0xffffffffffffffff
call fcn.00410550
add esp, 4
call fcn.00415730
call fcn.00415640
call fcn.00410520
mov esi, dword [0x425448]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x411206
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x41116e
test al, al
je 0x41116e
and eax, 0xff
push eax
call fcn.004155e0
add esp, 4
test eax, eax
je 0x411148
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411148
cmp byte [esi], 0x22
jne 0x411177
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x411187
cmp al, 0x20
ja 0x411187
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411177
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4111a8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4111ad
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00410550
jmp 0x4111eb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x411177
inc esi
mov dword [ebp - 0x64], esi
jmp 0x411206

Function at 0x411250
Capabilities:
Terminate process

Disassembly:
cmp dword [0x423e48], 1
jne 0x41125e
call fcn.00416200
mov eax, dword [esp + 4]
push eax
call fcn.00416240
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4133d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x425440]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x41357d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x425340]
lea edi, [ecx*4 + 0x425340]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x41357d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x41343e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x41344f
push 2
push ebp
push eax
call fcn.00413110
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4135ae
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4134f9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4134aa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x413497
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x41347a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41359f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4134f5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x413476
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41356e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x413542
cmp eax, 5
jne 0x41352b
mov dword [0x423ddc], eax
mov dword [0x423dd8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004149e0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x413562
cmp byte [ebp], 0x1a
jne 0x413562
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x423dd8], 0x1c
jmp 0x413587
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x423dd8], 9
pop edi
pop esi
pop ebp
mov dword [0x423ddc], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4134f5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4135df
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4134f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4134f9