joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40531a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055b9
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40534e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x4054d3
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40536c
test eax, eax
je 0x405484
test byte [ebp + 0xc], 2
je 0x405484
mov esi, 0x42b4a0
push edi
push esi
call fcn.004059cc
test ebx, ebx
je 0x405389
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40538f
push edi
call fcn.00405520
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40547a
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405504
cmp byte [eax], 0
je 0x4053e0
cmp byte [ebp - 0x18], 0
je 0x4053e0
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053f6
mov al, byte [esi + 1]
test al, al
je 0x405459
cmp al, 0x2e
jne 0x4053f6
cmp byte [esi + 2], 0
je 0x405459
push esi
push ebx
call fcn.004059cc
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x40541c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405459
push dword [ebp + 0xc]
push edi
call fcn.0040531a
jmp 0x405459
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405451
test byte [ebp + 0xc], 4
je 0x405449
push edi
push 0xfffffffffffffff1
call fcn.00404d7b
push 0
push edi
call fcn.00405714
jmp 0x405459
inc dword [0x42f0a8]
jmp 0x405459
push edi
push 0xfffffffffffffff2
call fcn.00404d7b
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053be
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405484
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054d3
cmp dword [ebp - 8], esi
jne 0x405499
inc dword [0x42f0a8]
jmp 0x4054d3
push edi
call fcn.00405ca1
test eax, eax
je 0x4054d3
push edi
call fcn.004054d9
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054cb
test byte [ebp + 0xc], 4
je 0x405491
push edi
push 0xfffffffffffffff1
call fcn.00404d7b
push esi
push edi
call fcn.00405714
jmp 0x4054d3
push edi
push 0xffffffffffffffe5
call fcn.00404d7b
pop edi
pop esi
leave
ret 8
Function at 0x4055b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b8a0
push esi
call fcn.004059cc
push esi
call fcn.0040556c
mov edi, eax
test edi, edi
jne 0x4055da
xor eax, eax
jmp 0x40562c
push edi
call fcn.00405c08
test byte [0x42f030], 0x80
je 0x4055f3
mov al, byte [edi]
test al, al
je 0x4055d6
cmp al, 0x5c
je 0x4055d6
sub edi, esi
jmp 0x40560b
call fcn.00405ca1
test eax, eax
je 0x405605
test byte [eax], 0x10
je 0x4055d6
push esi
call fcn.00405520
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055f7
call fcn.004054d9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40569d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405710
test edi, edi
jne 0x4056d7
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40570a
Function at 0x405714
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405cdf
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405740
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405886
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c628], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c628
je 0x405784
push 1
push 0
push esi
call fcn.0040569d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40588c
cmp eax, edi
jg 0x40588c
mov esi, 0x42c0a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40588c
cmp eax, edi
jg 0x40588c
push esi
push ebp
push str._s_s_r_n
push 0x42bca0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405886
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40587f
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40587f
cmp edi, dword [esp + 0x18]
jne 0x40587f
push str._Rename__r_n
push esi
call fcn.00405631
test eax, eax
jne 0x405893
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059cc
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42bca0
push eax
call fcn.0040567d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42f0b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409308
push eax
call fcn.00405631
test eax, eax
je 0x40584a
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x4058bc
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x4058af
sub eax, esi
jmp 0x40584c
Function at 0x4058c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405924
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405913
cmp dword [ebp + 0x14], 1
je 0x405915
cmp dword [ebp + 0x14], 2
je 0x405915
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4059ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405a0f
mov ecx, dword [0x42e7fc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42f058]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42dfc0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405be2
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405be2
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bef
inc ebx
cmp cl, 0xfc
jbe 0x405bd5
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405b80
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405aa3
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405b1b
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405ac2
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058c0
jmp 0x405b16
cmp eax, 0x26
jne 0x405af2
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058c0
cmp byte [edi], 0
jne 0x405b78
push str.C:Program_Files
push edi
call fcn.004059cc
jmp 0x405b16
cmp eax, 0x25
jne 0x405b05
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405b16
cmp eax, 0x24
jne 0x405b1b
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b78
cmp dword [0x42f0a4], 0
jne 0x405b27
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x42f024]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b5d
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00405235
cmp dword [ebp - 8], 0
jne 0x405b64
jmp 0x405b60
and byte [edi], 0
test esi, esi
jne 0x405b27
cmp byte [edi], 0
je 0x405b78
cmp dword [ebp + 0xc], 0
je 0x405b78
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405c08
jmp 0x405bc6
cmp byte [ebp + 0xf], 0xfd
jne 0x405bb4
cmp esi, 0x1b
jne 0x405b99
push dword [0x42f024]
push edi
call fcn.0040592a
jmp 0x405baa
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059cc
add esi, 0xffffffeb
cmp esi, 6
jae 0x405bc6
jmp 0x405b78
cmp byte [ebp + 0xf], 0xff
jne 0x405bc6
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059ee
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42dfc0
jmp 0x405be2
jne 0x405bdf
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405be2
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a3a
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405c04
push eax
push dword [ebp + 8]
call fcn.004059cc
leave
ret 8
Function at 0x405d3c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca2c], 0
push esi
jne 0x405d73
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d4d
mov dword [ecx*4 + 0x42ca28], eax
inc ecx
cmp ecx, 0x100
jl 0x405d48
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405da4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ca28]
xor eax, esi
inc ecx
dec edx
jne 0x405d86
pop edi
not eax
pop esi
ret 0xc
Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
xor ecx, ecx
jmp 0x401010
movzx eax, word [esi]
cmp ax, 0x20
ja 0x401022
test ax, ax
je 0x401052
test ecx, ecx
je 0x401036
cmp ax, 0x22
jne 0x401031
xor eax, eax
test ecx, ecx
sete al
mov ecx, eax
add esi, 2
jmp 0x401010
movzx eax, word [esi]
test ax, ax
je 0x401052
mov edi, edi
cmp ax, 0x20
ja 0x401052
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x401040
push str.SogouExplorer.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x40203c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call eax
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x403378
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.004052a8
test esi, esi
jne 0x4033ae
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.00405398
jmp 0x4033cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040327c
mov edi, eax
test esi, esi
je 0x4033cc
cmp dword [ebx], 0
je 0x4033cc
dec esi
jmp 0x4033b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4041c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ae024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404258
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404238
xor eax, eax
push ebp
push 0x404231
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 0x404274
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 0x404238
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4ae024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ae024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405074
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5ac04c], 0
je 0x4050d5
cmp word [0x5ac220], 0xd7b2
jne 0x40509d
cmp dword [0x5ac228], 0
jbe 0x40509d
mov eax, 0x5ac21c
call dword [0x5ac238]
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 0x4050fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ae030], 0
jne 0x4050f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40522c
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 [0x4ae038], 0
je 0x405252
mov edx, esi
mov eax, ebx
call dword [0x4ae038]
jmp 0x405261
mov eax, 8
call fcn.00402f8c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5ac04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051f4
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 0x406a60
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 0x406c90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406ae3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406ae3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406cac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406b6c
xor eax, eax
push ebp
push 0x406b65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040689c
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 0x406b4a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406ccc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406b4a
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 0x406b6c
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 0x406c86
cmp byte [ebp - 0xd], 0
jne 0x406bb3
cmp byte [ebp - 0x12], 0
je 0x406c86
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406bcc
dec ebx
cmp byte [ebx], 0x2e
je 0x406bdb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406bcb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406c86
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406c18
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 0x406c86
cmp byte [ebp - 0xd], 0
je 0x406c86
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 0x406c86
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 0x409880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4098d2
test eax, edx
je 0x4098d5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409895
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4098bb
add ecx, 4
js 0x4098ab
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4098b8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4098e1
test edx, edx
jne 0x409888
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a485
test al, 0x10
je 0x40a489
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a4a9
test al, 0x10
jne 0x40a4ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a4b4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405738
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a4d6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d9e8
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 0x40da21
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405398
jmp 0x40da2a
mov eax, ebx
mov edx, esi
call fcn.004052fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40da34
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 0x40da56
movzx eax, byte [esp]
jmp 0x40da58
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e0e8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40df60
mov eax, dword [0x5ab6c4]
cmp byte [eax], 0
je 0x40e164
mov eax, dword [0x5ab32c]
call fcn.00403804
call fcn.004030e8
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.0040a8a4
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 0x40e1ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e19a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5ab2ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5ae7f8]
call fcn.00406844
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 0x40ea64
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 0x40eb3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405340
lea eax, [ebp - 4]
call fcn.00405790
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405738
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40eb24
mov eax, ebx
call fcn.00402f8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40eb1d
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.00405738
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40eb07
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40eb4c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40eb07
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 0x40eb24
mov eax, dword [ebp - 0x10]
call fcn.00402fa8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb41
lea eax, [ebp - 4]
call fcn.004052a8
ret

Function at 0x4212d0
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.0042100c
dec esi
jne 0x4212f2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret