joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025be
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x10088a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1008028]
xor ebp, ebp
cmp eax, ebp
je 0x10025e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1008028], ebp
mov esi, dword [section..data]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, section..data
jmp 0x1002627
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x1002625
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1002622
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002622
cmp eax, 3
je 0x1002622
push 4
push ebp
push dword [esi + 4]
call ebx
mov dword [esi + 4], ebp
mov esi, dword [esi]
cmp esi, edi
jne 0x10025f8
mov esi, dword [0x1008008]
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, 0x1008008
jmp 0x100266b
mov eax, dword [esi + 4]
test eax, eax
je 0x1002669
push eax
call ebp
test eax, eax
jne 0x1002665
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002665
cmp eax, 3
je 0x1002665
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x100263e
mov eax, dword [0x100801c]
cmp eax, 0xffffffff
je 0x1002687
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100801c], 0xffffffff
mov esi, 0x10088c0
push esi
call ebp
test eax, eax
jne 0x10026aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10026aa
cmp eax, 3
je 0x10026aa
push 4
push 0
push esi
call ebx
push 0x10088a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10027de
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
je 0x100280a
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x1008040]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x10027f0
pop edi
pop esi
ret 0xc
Function at 0x1002bf1
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebp
xor ebp, ebp
push ebp
push ebp
push 0x10021b0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1002cb6
push esi
push edi
mov esi, 0x1008b00
push esi
push 0x10021a0
push 0x10088c0
call fcn.0100244b
push ebp
push 0x4000002
push 1
push ebp
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100801c], edx
je 0x1002cb4
push ebx
mov ebx, 0x1008440
xor eax, eax
push ebp
mov ecx, 0x84
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x210
push edi
push ebx
push edx
mov dword [0x1008440], 0x6e776453
mov dword [0x1008444], 0x10000
mov dword [0x1008448], 0xc0000013
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop ebx
je 0x1002ca1
cmp dword [esp + 0xc], edi
jne 0x1002ca1
push esi
push 0x10021b0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1002cb4
push dword [0x100801c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100801c], 0xffffffff
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x1002cb9
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x280
push esi
mov esi, dword [ebp + 0x7c]
cmp esi, 0xffffffff
jne 0x1002cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x1018c20], 0
jne 0x1002d2a
lea eax, [ebp - 0x20c]
push eax
push 0x200
push esi
call fcn.01002556
and byte [ebp - 0xc], 0
push 0x80
lea eax, [ebp - 0xc]
push eax
push 0x20000003
push dword [0x1008020]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [0x1008764]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.010025be
test esi, esi
jne 0x1002d34
inc esi
cmp dword [0x1008024], 0
je 0x1002d4f
push 0x10088a0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x1008024], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1002d83
Capabilities:
Get common file path
Shutdown system

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x1b4
push ebx
push esi
push 0x10021f8
xor ebx, ebx
push ebx
push 0x100000
mov dword [ebp + 0x60], 0x10
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
cmp esi, ebx
je 0x1002dc5
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002ddc
cmp dword [ebp + 0x74], ebx
je 0x1002dd1
push 0xea60
jmp 0x1002dd6
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x50]
push eax
push ebx
push 0x13
call fcn.01002b1c
test eax, eax
je 0x1002ef4
push edi
push 0x10021e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0x74], eax
je 0x1002e29
push 0x10021cc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1002e29
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push dword [ebp + 0x70]
push ebx
push dword [ebp + 0x78]
push ebx
call eax
jmp 0x1002e38
push dword [ebp + 0x6c]
push dword [ebp + 0x70]
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov edi, eax
cmp edi, ebx
jne 0x1002eda
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x94
call esi
cmp dword [ebp - 0x48], 4
jbe 0x1002eda
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x9c
call esi
test byte [ebp + 0x4c], 0x40
je 0x1002eda
push 0x104
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002eda
lea eax, [ebp - 0x150]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
push ebx
push 0x2000000
push 3
push ebx
push 7
mov byte [eax + 1], bl
push 0xc0000000
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002eda
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x1002eda
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
mov edi, eax
cmp dword [ebp + 0x74], ebx
je 0x1002ee8
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 0x50]
push eax
call fcn.01002ba0
mov eax, edi
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x1002faa
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push dword [ebp + 8]
and byte [ebp - 0xc], 0
and byte [ebp - 0xb], 0
and byte [ebp - 0xa], 0
and byte [ebp - 9], 0
and byte [ebp - 8], 0
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1003002
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1003009
xor eax, eax
jmp 0x10030c2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
lea eax, [ebp - 4]
push eax
push 0x10000
push 0x1008c20
push 4
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1003031
xor eax, eax
jmp 0x10030c0
push dword [0x1008c20]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.01002efd
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x100309e
mov ecx, esi
mov esi, dword [0x1008c20]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 4]
push eax
push 0x10000
push 0x1008c20
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100302a
push dword [0x1008c20]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.01002efd
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x10030a5
push 8
call fcn.01002cb9
mov ecx, esi
mov esi, dword [0x1008c20]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop esi
pop ebx
pop edi
leave
ret 0xc
Function at 0x10035ea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10035fd
sub eax, edx
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + eax - 0x104]
cmp byte [eax - 1], 0x5c
pop edi
pop esi
je 0x1003633
mov byte [eax], 0x5c
and byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.01003596
test eax, eax
je 0x1003698
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003698
test al, 0x10
je 0x1003698
push 0x10021e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1003693
push 0x100220c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003693
push 0
lea ecx, [ebp - 0x104]
push ecx
call eax
test eax, eax
jne 0x1003693
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x100369a
xor eax, eax
leave
ret 0xc
Function at 0x100536b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x10053a6
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1005383
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10053c2
dec esi
je 0x10053bb
dec esi
jne 0x10053c7
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x25601740
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x70de6564
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40318c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004055f4
test esi, esi
jne 0x4031c2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004056e4
jmp 0x4031e0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403090
mov edi, eax
test esi, esi
je 0x4031e0
cmp dword [ebx], 0
je 0x4031e0
dec esi
jmp 0x4031c9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403218
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4eb008], 0x8088405
inc edx
mov dword [ebx + 0x4eb008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403234
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4eb008], 0x8088405
inc edx
mov dword [ebx + 0x4eb008], edx
fld qword [ebx + 0x4eb760]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x4044ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4eb024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404584
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404564
xor eax, eax
push ebp
push 0x40455d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4045a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404564
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4eb024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4eb024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4053a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f204c], 0
je 0x405401
cmp word [0x4f2220], 0xd7b2
jne 0x4053c9
cmp dword [0x4f2228], 0
jbe 0x4053c9
mov eax, 0x4f221c
call dword [0x4f2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405428
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4eb030], 0
jne 0x40541d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405578
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4eb038], 0
je 0x40559e
mov edx, esi
mov eax, ebx
call dword [0x4eb038]
jmp 0x4055ad
mov eax, 8
call fcn.00402d94
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405540
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406ec4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4070f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406f47
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4070f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406f47
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407110
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406fd0
xor eax, eax
push ebp
push 0x406fc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406d00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406fae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407130
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406fae
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406fd0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4070ea
cmp byte [ebp - 0xd], 0
jne 0x407017
cmp byte [ebp - 0x12], 0
je 0x4070ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407030
dec ebx
cmp byte [ebx], 0x2e
je 0x40703f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40702f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4070ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40707c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4070ea
cmp byte [ebp - 0xd], 0
je 0x4070ea
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4070ea
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409970
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409a00
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409a00
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4099b3
test edx, 3
jne 0x4099a2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4099ad
jmp 0x4099b3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4099b3
cmp dword [ecx - 8], 1
je 0x4099bd
mov edx, ebx
or edx, 3
call fcn.00405d50
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4099cf
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004055f4

Function at 0x409a0c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409a9c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409a9c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409a4f
test edx, 3
jne 0x409a3e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x409a49
jmp 0x409a4f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409a4f
cmp dword [ecx - 8], 1
je 0x409a59
mov edx, ebx
or edx, 3
call fcn.00405d50
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x409a6b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004055f4

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405ac8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a785
test al, 0x10
je 0x40a789
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405ac8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a7a9
test al, 0x10
jne 0x40a7ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e0d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e111
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004056e4
jmp 0x40e11a
mov eax, ebx
mov edx, esi
call fcn.00405648
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e124
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e146
movzx eax, byte [esp]
jmp 0x40e148
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e7d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e650
mov eax, dword [0x4f17b4]
cmp byte [eax], 0
je 0x40e854
mov eax, dword [0x4f1400]
call fcn.00403650
call fcn.00402ef0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040ae94
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40e89c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e88a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f1370]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f47f8]
call fcn.00406ca8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40f130
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f206
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040568c
lea eax, [ebp - 4]
call fcn.00405b18
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405ac8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f1f0
mov eax, ebx
call fcn.00402d94
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f1e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405ac8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f1d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f218
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f1d3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f1f0
mov eax, dword [ebp - 0x10]
call fcn.00402db0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f20d
lea eax, [ebp - 4]
call fcn.004055f4
ret

Function at 0x422c68
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004229a4
dec esi
jne 0x422c8a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret