joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401462
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x9e3779b9
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x41b4b0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b4b4]
mov dword [ebp - 0x1c], eax
call fcn.0040145b
mov eax, dword [0x41b4b8]
add dword [ebp - 8], 0x23f
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b4bc]
push 0x20
mov dword [ebp - 0x24], eax
pop ebx
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x2d39784]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4014f0
push 0x4181f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d39784]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d39780]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d39780], eax
mov eax, dword [0x2d396d8]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d396d8], eax
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d3977c], 0xf4ea3dee
call fcn.00401438
mov ecx, dword [ebp - 0x14]
xor ecx, eax
sub edi, ecx
mov dword [ebp - 0x14], ecx
mov eax, edi
mov dword [ebp - 0x2c], edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, edi
shr eax, cl
add eax, esi
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec ebx
jne 0x4014b8
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015be
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d39784]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d396dc]
test esi, esi
je 0x401601
cmp eax, 0x959
jne 0x4015ed
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401462
add edi, 8
dec esi
je 0x401601
mov eax, dword [0x2d39784]
jmp 0x4015d4
pop edi
pop esi
ret 4
Function at 0x40c6f9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404f25
mov dword [ebp - 0x14], eax
cmp dword [0x43fe38], esi
jne 0x40c7ec
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c779
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c8cc
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c8cc
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c8cc
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43fe38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43fe3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43fe40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43fe48], eax
test eax, eax
je 0x40c7e9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43fe44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c811
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c804
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c826
push 4
pop eax
jmp 0x40c8ce
cmp dword [ebp - 0x14], esi
je 0x40c826
push dword [0x43fe38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c80b
mov eax, dword [0x43fe44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c884
cmp dword [0x43fe48], edi
je 0x40c884
push eax
call ebx
push dword [0x43fe48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c884
test eax, eax
je 0x40c884
call ecx
test eax, eax
je 0x40c879
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c879
test byte [ebp - 8], 1
jne 0x40c884
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c8b4
mov eax, dword [0x43fe3c]
cmp eax, edi
je 0x40c8b1
push eax
call ebx
test eax, eax
je 0x40c8b1
call eax
mov esi, eax
test esi, esi
je 0x40c8b1
mov eax, dword [0x43fe40]
cmp eax, edi
je 0x40c8b1
push eax
call ebx
test eax, eax
je 0x40c8b1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43fe38]
call ebx
test eax, eax
je 0x40c8cc
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c8ce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041a9
mov esp, ebp
pop ebp
ret
Function at 0x1165c7d
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
sub edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0xc], ecx
mov eax, edx
mov dword [ebp - 8], edx
cmp edi, dword [eax + 0x1136974]
jne 0x1165cb0
cmp ecx, dword [eax + 0x1136978]
je 0x1165cbc
add eax, 0xc
cmp eax, 0xcc
jb 0x1165ca0
jmp 0x1165cc3
mov dword [ebp - 8], 1
mov esi, dword [ebp + 0x14]
mov ecx, dword [esi]
cmp ecx, 0x20
jae 0x1165da0
test ecx, ecx
je 0x1165d35
lea eax, [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp ebx, edi
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x10]
jne 0x1165d06
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 4]
cmp ebx, eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x10]
je 0x1165da0
cmp dword [ebp - 0xc], eax
jmp 0x1165d09
cmp dword [ebp - 0xc], edi
ja 0x1165d16
add dword [ebp - 4], 0xc
inc edx
cmp edx, ecx
jb 0x1165cde
jmp 0x1165d35
cmp ecx, edx
jbe 0x1165d35
imul eax, ecx, 0xc
add eax, 4
add eax, esi
sub ecx, edx
mov edi, eax
lea esi, [eax - 0xc]
sub eax, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
dec ecx
jne 0x1165d24
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov edi, dword [ebp - 8]
imul ecx, edx, 0xc
mov dword [ecx + esi + 4], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov dword [ecx + esi + 8], eax
mov dword [ecx + esi + 0xc], edi
mov eax, dword [0x119a020]
cmp eax, 0x119a020
je 0x1165d9e
test byte [eax + 0x1c], 1
je 0x1165d9e
cmp byte [eax + 0x19], 5
jb 0x1165d9e
mov eax, 0x11368c4
test edi, edi
jne 0x1165d78
mov eax, 0x11368d8
push edx
push eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
call fcn.01141040
mov ecx, dword [0x119a020]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0116541a
inc dword [esi]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x117f62e
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
je 0x117f75b
xor edi, edi
cmp word [esi], di
je 0x117f75b
call fcn.0117f7df
movzx ecx, word [esi]
test cx, cx
je 0x117f729
push 2
pop ebx
cmp cx, 0x3b
je 0x117f75b
cmp cx, 0x22
je 0x117f75b
cmp cx, 0x3c
je 0x117f75b
cmp cx, 0x3e
je 0x117f75b
cmp cx, 0x2a
je 0x117f75b
cmp cx, 0x2b
je 0x117f75b
cmp cx, 0x3d
je 0x117f75b
cmp cx, 0x7c
je 0x117f75b
cmp cx, 0x3f
je 0x117f75b
cmp cx, 0x2c
je 0x117f75b
cmp cx, 0x20
je 0x117f75b
cmp cx, 9
je 0x117f75b
cmp cx, 0x3a
jne 0x117f711
test eax, eax
jne 0x117f71b
add esi, ebx
mov edi, esi
movzx eax, word [esi]
test ax, ax
je 0x117f75b
movzx eax, ax
push eax
call fcn.01198aa4
add esi, ebx
pop ecx
test eax, eax
je 0x117f75b
movzx eax, word [esi]
test ax, ax
jne 0x117f6ea
sub esi, edi
xor eax, eax
and esi, 0xfffffffe
cmp esi, 0xa
setle al
jmp 0x117f75d
test eax, eax
je 0x117f71b
cmp cx, 0x5d
je 0x117f72e
add esi, ebx
movzx ecx, word [esi]
test cx, cx
jne 0x117f65c
xor eax, eax
inc eax
jmp 0x117f75d
add esi, ebx
cmp word [esi], di
je 0x117f729
add esi, ebx
mov edi, esi
movzx eax, word [esi]
test ax, ax
je 0x117f75b
movzx eax, ax
push eax
call fcn.01198aa4
add esi, ebx
pop ecx
test eax, eax
je 0x117f75b
movzx eax, word [esi]
test ax, ax
jne 0x117f741
jmp 0x117f702
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x1198c37
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x11991b8
call fcn.01198abc
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x1198c97
cmp eax, 0xffffffff
je 0x1198c97
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x1198c90
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x1198c90
cmp edx, 0x10000000
jae 0x1198c90
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x1198c8d
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.01198b01
ret 4

Function at 0x1198cf0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1198d2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1198d26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1198d30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1198d16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1198e10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x1198e26
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x1198e41
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4031e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40321c
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40323c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004051b4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403510
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.00404f44
test esi, esi
jne 0x403546
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.00405034
jmp 0x403564
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403414
mov edi, eax
test esi, esi
je 0x403564
cmp dword [ebx], 0
je 0x403564
dec esi
jmp 0x40354d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403dd8
Capabilities:
Query or enumerate registry value

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

Function at 0x404cf0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54804c], 0
je 0x404d51
cmp word [0x548220], 0xd7b2
jne 0x404d19
cmp dword [0x548228], 0
jbe 0x404d19
mov eax, 0x54821c
call dword [0x548238]
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 0x404d78
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x53b030], 0
jne 0x404d6d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404ec8
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 [0x53b034], 0
je 0x404eee
mov edx, esi
mov eax, ebx
call dword [0x53b034]
jmp 0x404efd
mov eax, 8
call fcn.00402fd8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x54804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404e90
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 0x406860
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 0x406a90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4068e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4068e3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406aac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40696c
xor eax, eax
push ebp
push 0x406965
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040669c
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 0x40694a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406acc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40694a
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 0x40696c
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 0x406a86
cmp byte [ebp - 0xd], 0
jne 0x4069b3
cmp byte [ebp - 0x12], 0
je 0x406a86
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4069cc
dec ebx
cmp byte [ebx], 0x2e
je 0x4069db
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4069cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406a86
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406a18
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 0x406a86
cmp byte [ebp - 0xd], 0
je 0x406a86
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 0x406a86
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 0x409918
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40996a
test eax, edx
je 0x40996d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40992d
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 0x409953
add ecx, 4
js 0x409943
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409950
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 0x409979
test edx, edx
jne 0x409920
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004053d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a6fa
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40a71b
cmp ebx, 3
je 0x40a71b
cmp ebx, 0x7b
je 0x40a71b
mov eax, esi
call fcn.0040a69c
test al, al
jne 0x40a71f
xor eax, eax
jmp 0x40a721
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004053d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a73d
test al, 0x10
jne 0x40a741
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a8e8
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004053d4
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40a8fc
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.004053d4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a91e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40e06c
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 0x40e0a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405034
jmp 0x40e0ae
mov eax, ebx
mov edx, esi
call fcn.00404f98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e5e4
mov eax, dword [0x5474b4]
cmp byte [eax], 0
je 0x40e7e8
mov eax, dword [0x547038]
call fcn.0040372c
call fcn.00403134
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.0040ae4c
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 0x40e830
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e81e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x546f88]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x54a7f8]
call fcn.00406644
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 0x40f120
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 0x40f1f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404fdc
lea eax, [ebp - 4]
call fcn.0040542c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004053d4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f1e0
mov eax, ebx
call fcn.00402fd8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f1d9
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.004053d4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f1c3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f208
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f1c3
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 0x40f1e0
mov eax, dword [ebp - 0x10]
call fcn.00402ff4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f1fd
lea eax, [ebp - 4]
call fcn.00404f44
ret

Function at 0x4282a4
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.00427fe0
dec esi
jne 0x4282c6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret