joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e500
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x45e5a2
cmp dword [ebx + 0x90], 0
jne 0x45e59c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e478
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x45e59c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x45e562
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e59c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00418be0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e571
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45e7c0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x46b17c]
cmp dword [eax + 0x170], 0
je 0x45e925
test bl, bl
jne 0x45e873
cmp dword [esi + 0x98], 0
jne 0x45e868
mov eax, esi
call fcn.00461300
push eax
push 0x45e6cc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x45e839
mov eax, dword [0x46b17c]
cmp byte [eax + 0xcf], 0
je 0x45e839
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x45e839
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45e822
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45e868
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418be0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45e848
inc dword [esi + 0x98]
jmp 0x45e925
cmp dword [esi + 0x98], 0
jle 0x45e925
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x45e925
cmp dword [esi + 0x40], 0
je 0x45e8d0
mov eax, dword [0x46b17c]
cmp byte [eax + 0xcf], 0
je 0x45e8d0
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x45e8d0
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45e8b9
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45e8ff
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418be0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45e8df
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4540f4]
call fcn.00406414
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45f4e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x45f54b
cmp byte [ebx + 0xcf], 0
jne 0x45f54b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040553c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x45f538
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45f558
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
jmp 0x45f558
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x460ac0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x460b2e
mov eax, esi
call fcn.00447a7c
test al, al
je 0x460b2e
mov eax, dword [ebx + 0x80]
call fcn.00447774
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460b2e
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x460b22
push 0
mov eax, dword [ebx + 0x80]
call fcn.00447774
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0043eef4
jmp 0x460b2e
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0046090c
pop esi
pop ebx
ret

Function at 0x461f60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004053e8
lea edi, [ebp - 0x230]
xor eax, eax
push ebp
push 0x4620c8
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00461d28
mov esi, eax
mov dword [edi], 0x22c
mov edx, edi
mov eax, esi
call fcn.00461d48
mov ebx, eax
jmp 0x46209a
lea eax, [ebp - 0x23c]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004055b8
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
call fcn.0040add0
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x234]
call fcn.00409ed4
mov eax, dword [ebp - 0x234]
push eax
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 4]
call fcn.00409ed4
mov edx, dword [ebp - 0x240]
pop eax
call fcn.00405a04
je 0x46207a
lea eax, [ebp - 0x248]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004055b8
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.00409ed4
mov eax, dword [ebp - 0x244]
push eax
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 4]
call fcn.00409ed4
mov edx, dword [ebp - 0x24c]
pop eax
call fcn.00405a04
jne 0x46208f
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.00461d68
mov ebx, eax
test ebx, ebx
jne 0x461fdb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4620cf
lea eax, [ebp - 0x24c]
mov edx, 7
call fcn.004053f8
lea eax, [ebp - 4]
call fcn.004053f0
ret
Function at 0x1002c0a
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10031e0
call fcn.01002db4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004bd8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002a1f
cmp eax, esi
jne 0x1002a12
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002a22
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10029f9
xor esi, esi
inc esi
mov eax, dword [0x1004bd4]
cmp eax, esi
jne 0x1002a35
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002a70
mov eax, dword [0x1004bd4]
test eax, eax
jne 0x1002a6a
mov dword [0x1004bd4], esi
push 0x1001140
push 0x1001134
call fcn.01002976
pop ecx
pop ecx
test eax, eax
je 0x1002a70
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002b3a
mov dword [0x1004894], esi
mov eax, dword [0x1004bd4]
cmp eax, esi
jne 0x1002a94
push 0x1001130
push 0x1001128
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004bd4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002aa1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004bdc], ebx
je 0x1002ac2
push 0x1004bdc
call fcn.01002d29
pop ecx
test eax, eax
je 0x1002ac2
push ebx
push 2
push ebx
call dword [0x1004bdc]
push dword [0x100487c]
push dword [0x1004880]
push dword [0x1004878]
call fcn.01001bab
add esp, 0xc
mov dword [0x1004890], eax
cmp dword [0x1004884], ebx
jne 0x1002b20
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004894], ebx
jne 0x1002b2e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004890]
call fcn.01002df9
ret
call fcn.01002f01
jmp 0x10029d7

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x29bd471a
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x600751b9
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403350
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.00405150
test esi, esi
jne 0x403386
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.00405240
jmp 0x4033a4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031f4
mov edi, eax
test esi, esi
je 0x4033a4
cmp dword [ebx], 0
je 0x4033a4
dec esi
jmp 0x40338d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404048
Capabilities:
Query or enumerate registry value

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

Function at 0x404efc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49604c], 0
je 0x404f5d
cmp word [0x496220], 0xd7b2
jne 0x404f25
cmp dword [0x496228], 0
jbe 0x404f25
mov eax, 0x49621c
call dword [0x496238]
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 0x404f84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x493030], 0
jne 0x404f79
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4050d4
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 [0x493038], 0
je 0x4050fa
mov edx, esi
mov eax, ebx
call dword [0x493038]
jmp 0x405109
mov eax, 8
call fcn.00402ef8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40509c
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 0x406b48
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 0x406d78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406bcb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406bcb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406c54
xor eax, eax
push ebp
push 0x406c4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406984
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 0x406c32
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406db4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406c32
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 0x406c54
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 0x406d6e
cmp byte [ebp - 0xd], 0
jne 0x406c9b
cmp byte [ebp - 0x12], 0
je 0x406d6e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406cb4
dec ebx
cmp byte [ebx], 0x2e
je 0x406cc3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406cb3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406d6e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406d00
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 0x406d6e
cmp byte [ebp - 0xd], 0
je 0x406d6e
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 0x406d6e
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 0x406c54
Capabilities:
Get geographical location

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 0x406d78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406bcb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406bcb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406c54
xor eax, eax
push ebp
push 0x406c4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406984
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 0x406c32
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406db4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406c32
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 0x406c54
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 0x406d6e
cmp byte [ebp - 0xd], 0
jne 0x406c9b
cmp byte [ebp - 0x12], 0
je 0x406d6e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406cb4
dec ebx
cmp byte [ebx], 0x2e
je 0x406cc3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406cb3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406d6e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406d00
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 0x406d6e
cmp byte [ebp - 0xd], 0
je 0x406d6e
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 0x406d6e
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 0x40970c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40975e
test eax, edx
je 0x409761
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409721
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 0x409747
add ecx, 4
js 0x409737
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409744
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 0x40976d
test edx, edx
jne 0x409714
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004055f0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a672
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40a693
cmp ebx, 3
je 0x40a693
cmp ebx, 0x7b
je 0x40a693
mov eax, esi
call fcn.0040a614
test al, al
jne 0x40a697
xor eax, eax
jmp 0x40a699
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004055f0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a6b5
test al, 0x10
jne 0x40a6b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e254
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 0x40e28d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405240
jmp 0x40e296
mov eax, ebx
mov edx, esi
call fcn.004051a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e7cc
mov eax, dword [0x495684]
cmp byte [eax], 0
je 0x40e9d0
mov eax, dword [0x49532c]
call fcn.004037dc
call fcn.00403054
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.0040aaec
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 0x40ea18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ea06
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4952b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4987f8]
call fcn.0040692c
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 0x40f2d8
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 0x40f3ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004051e8
lea eax, [ebp - 4]
call fcn.00405648
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004055f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f398
mov eax, ebx
call fcn.00402ef8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f391
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.004055f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f37b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f3c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f37b
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 0x40f398
mov eax, dword [ebp - 0x10]
call fcn.00402f14
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3b5
lea eax, [ebp - 4]
call fcn.00405150
ret

Function at 0x422c90
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x422cde
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004229cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x422cf7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret