joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4257ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00424737
and dword [ebp - 0x14], 0
cmp dword [0x45dc8c], 0
mov dword [ebp - 0x18], eax
jne 0x4258b2
push 0x434914
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42595a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42595a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45dc8c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45dc90], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45dc94], eax
call edi
push eax
call esi
mov dword [0x45dc9c], eax
test eax, eax
je 0x4258b2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45dc98], eax
mov eax, dword [0x45dc98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42590b
cmp dword [0x45dc9c], ecx
je 0x42590b
push eax
call esi
push dword [0x45dc9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42590b
test ebx, ebx
je 0x42590b
call edi
test eax, eax
je 0x425902
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x425902
test byte [ebp - 8], 1
jne 0x42590b
or dword [ebp + 0x10], 0x200000
jmp 0x42593e
mov eax, dword [0x45dc90]
cmp eax, dword [ebp - 0x18]
je 0x42593e
push eax
call esi
test eax, eax
je 0x42593e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42593e
mov eax, dword [0x45dc94]
cmp eax, dword [ebp - 0x18]
je 0x42593e
push eax
call esi
test eax, eax
je 0x42593e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45dc8c]
call esi
test eax, eax
je 0x42595a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42595c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cfe0
leave
ret
Function at 0x50ed00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x50ed22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ed29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ed18
mov eax, 1
add ebx, ebx
jne 0x50ed3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ed30
jne 0x50ed4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ed30
xor ecx, ecx
sub eax, 3
jb 0x50ed60
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50edd2
mov ebp, eax
add ebx, ebx
jne 0x50ed6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50ed78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ed9c
inc ecx
add ebx, ebx
jne 0x50ed88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50ed7d
jne 0x50ed99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ed7d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50edbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50edad
jmp 0x50ed1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50edbc
add edi, ecx
jmp 0x50ed1e
pop esi
mov edi, esi
mov ecx, 0x101
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50edda
cmp byte [edi], 1
jne 0x50edda
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 eax, ebx
loop 0x50eddf
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x50ee57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe514]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe58c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50ee0c
mov ecx, edi
jns 0x50ee3b
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 + 0xe590]
or eax, eax
je 0x50ee51
mov dword [ebx], eax
add ebx, 4
jmp 0x50ee29
call dword [esi + 0xe594]
popal
jmp 0x503280
Function at 0x40201e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x4067f0]
call fcn.004042b1
push dword [ebp + 0xc]
mov esi, eax
push dword [0x406828]
call fcn.00404315
mov edi, eax
cmp edi, ebx
je 0x402183
test byte [edi + 0xa], 4
je 0x402183
push 0xc
lea eax, [ebp - 0x30]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0xc
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0xc
lea eax, [ebp - 0x24]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0xc
lea eax, [ebp - 0xc]
push ebx
push eax
call sub.MSVCRT.dll_memset
movzx eax, word [edi + 4]
movsx ecx, ax
mov dword [ebp + 8], ecx
movsx ecx, word [edi + 6]
fild dword [ebp + 8]
mov dword [ebp + 0xc], ecx
mov word [esi + 0x84], ax
mov ax, word [edi + 6]
fstp dword [ebp + 8]
fld dword [ebp + 8]
add esp, 0x30
fstp dword [ebp - 0x18]
mov word [esi + 0x86], ax
fild dword [ebp + 0xc]
or eax, 0xffffffff
mov word [esi + 0x88], bx
mov dword [esi + 0x14], eax
fstp dword [ebp + 0xc]
mov dword [esi + 0x18], ebx
fld dword [ebp + 0xc]
mov dword [esi + 0x34], eax
fstp dword [ebp - 0x20]
mov dword [esi + 0x38], ebx
fld dword [ebp + 8]
mov dword [esi + 0x54], eax
fstp dword [ebp - 0xc]
mov dword [esi + 0x58], ebx
fld dword [ebp + 0xc]
fstp dword [ebp - 8]
fld dword [ebp - 0x30]
fstp dword [esi + 4]
fld dword [ebp - 0x2c]
fstp dword [esi + 8]
fld dword [ebp - 0x28]
fstp dword [esi + 0xc]
fld1
fst dword [esi + 0x10]
fldz
fst dword [esi + 0x1c]
fst dword [esi + 0x20]
fld dword [ebp - 0x18]
fstp dword [esi + 0x24]
fld dword [ebp - 0x14]
fstp dword [esi + 0x28]
fld dword [ebp - 0x10]
fstp dword [esi + 0x2c]
fxch st(1)
fst dword [esi + 0x30]
fst dword [esi + 0x3c]
fxch st(1)
fst dword [esi + 0x40]
fld dword [ebp - 0x24]
fstp dword [esi + 0x44]
fld dword [ebp - 0x20]
fstp dword [esi + 0x48]
fld dword [ebp - 0x1c]
fstp dword [esi + 0x4c]
fxch st(1)
fst dword [esi + 0x50]
fxch st(1)
fstp dword [esi + 0x5c]
fst dword [esi + 0x60]
mov dword [esi + 0x78], ebx
fld dword [ebp - 0xc]
mov dword [esi + 0x74], eax
fstp dword [esi + 0x64]
mov ebx, esi
fld dword [ebp - 8]
fstp dword [esi + 0x68]
fld dword [ebp - 4]
fstp dword [esi + 0x6c]
fst dword [esi + 0x70]
fst dword [esi + 0x7c]
fstp dword [esi + 0x80]
mov eax, dword [edi]
mov dword [esi], eax
mov ax, word [edi + 0xa]
mov word [esi + 0x8a], ax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x4027b2
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x4027ca
push dword [esp + 4]
push 0x40274b
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x402807
push esi
mov esi, dword [0x4067f8]
test esi, esi
je 0x402806
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4027fe
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x4067f8
call fcn.004044fc
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4027d7
pop edi
pop ebx
pop esi
ret 4
Function at 0x403033
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4030b8
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push esi
push dword [0x4067cc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, esi
je 0x4030b0
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.004039b5
push edi
push esi
push dword [0x4067cc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x404598
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.0040718c
test esi, esi
jne 0x4045d0
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.004072c8
jmp 0x4045ee
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044dc
mov edi, eax
test esi, esi
je 0x4045ee
cmp dword [ebx], 0
je 0x4045ee
dec esi
jmp 0x4045d7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4061f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f04c], 0
je 0x406251
cmp word [0x47f328], 0xd7b2
jne 0x406219
cmp dword [0x47f330], 0
jbe 0x406219
mov eax, 0x47f324
call dword [0x47f340]
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 0x40627c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x479030], 0
jne 0x40626d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4063fc
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 [0x479038], 0
je 0x406422
mov edx, esi
mov eax, ebx
call dword [0x479038]
jmp 0x406431
mov eax, 8
call fcn.00404244
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4063c4
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 0x408e3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408fa3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040718c
cmp si, word [0x4797dc]
jb 0x408ed6
cmp si, word [0x4799dc]
ja 0x408ed6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408ed6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4797dc]
jae 0x408eb0
mov edi, ebx
dec edi
jmp 0x408ed1
cmp si, word [ebx*8 + 0x4797dc]
jbe 0x408ec0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408ed1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4797e0]
call fcn.00408d4c
jmp 0x408ed6
cmp edi, dword [ebp - 0xc]
jae 0x408e9a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408f85
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f85
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407374
push dword [ebp - 0x164]
push 0x408fc0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407374
push dword [ebp - 0x168]
push 0x408fd0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407374
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040772c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408faa
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407184
ret
Function at 0x40915c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409261
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x481b54
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x481b6c]
jne 0x4091a8
mov eax, esi
mov edx, 0x481b70
mov ecx, 0x55
call fcn.00407374
push 0x481b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40924b
push 0x481b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040718c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409219
cmp byte [0x481b50], 0
je 0x4091de
mov edx, esi
mov eax, ebx
call fcn.0040903c
jmp 0x409219
mov edx, esi
mov eax, ebx
call fcn.00408e3c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409219
cmp dword [esi], 0
je 0x409202
mov eax, esi
mov edx, 0x40927c
call fcn.00407588
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408e3c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407588
push 0x481b54
call sub.kernel32.dll_EnterCriticalSection
mov word [0x481b6c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407218
push eax
push 0x481b70
call sub.kernel32.dll_lstrcpynW
push 0x481b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409268
lea eax, [ebp - 4]
call fcn.0040717c
ret
Function at 0x409950
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00407174
mov eax, dword [ebp - 0x21c]
call fcn.00407174
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409aef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040718c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407218
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x4099f0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409a02
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4099ed
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409abb
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409a2b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004094a0
cmp dword [ebp - 0x220], 0
je 0x409a63
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409844
pop ecx
mov ebx, eax
jmp 0x409abb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040915c
mov eax, dword [ebp - 0x224]
call fcn.00409844
pop ecx
mov ebx, eax
test bl, bl
jne 0x409aae
cmp byte [0x481b50], 0
jne 0x409aae
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040915c
mov eax, dword [ebp - 0x228]
call fcn.00409844
pop ecx
mov ebx, eax
test bl, bl
jne 0x409abb
push ebp
call fcn.004098f4
pop ecx
mov ebx, eax
test bl, bl
je 0x409ad1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409af6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407184
ret

Function at 0x40a238
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 0x40ba54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x481c48
push 0xa
push 0x40bae8
mov eax, dword [0x481c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ba78
call fcn.004168c8
push ebx
mov eax, dword [0x481c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40ba8f
call fcn.004168c8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40baa1
call fcn.004168c8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x481c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x481c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x481c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x481c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x481c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x481c60], edx
pop esi
pop ebx
ret

Function at 0x40f484
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40f52d
test eax, edx
je 0x40f530
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40f4ad
push edx
mov edx, eax
mov eax, esp
call fcn.00407390
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40f4c3
push eax
lea eax, [esp + 8]
call fcn.00407390
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40f4d2
movzx eax, word [eax]
sub eax, ecx
jmp 0x40f4f9
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 0x40f513
add ecx, 4
js 0x40f4ea
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40f510
push eax
mov eax, ecx
mov edx, 2
call fcn.0040649c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40f4f7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40f4f9
xor eax, eax
ret
test eax, eax
je 0x40f540
test edx, edx
jne 0x40f494
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407218
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410832
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x410853
cmp ebx, 3
je 0x410853
cmp ebx, 0x7b
je 0x410853
mov eax, esi
call fcn.004107d4
test al, al
jne 0x410857
invalid

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407218
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x410875
test al, 0x10
jne 0x410879
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x413ea4
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
test eax, eax
jle 0x413edd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004072c8
jmp 0x413ee6
mov eax, ebx
mov edx, esi
call fcn.0040718c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413ef0
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
test eax, eax
jle 0x413f12
movzx eax, word [esp]
jmp 0x413f14
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4146a4
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 0x4147c9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004144b4
mov esi, eax
mov eax, dword [0x47e5bc]
cmp byte [eax], 0
je 0x414771
mov eax, dword [0x47e440]
call fcn.00404970
call fcn.0040438c
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41467c]
call fcn.00408774
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4147e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4147ad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x47e40c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x481c38]
call fcn.0040892c
push eax
call sub.user32.dll_LoadStringW
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 0x4147d0
lea eax, [ebp - 4]
mov edx, dword [0x41467c]
call fcn.00408874
ret