joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409bc0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x409bfd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x409be3
cmp byte [esi], bl
jne 0x409be3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x4327d0]
test bl, bl
jne 0x409bd4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00409b60
Function at 0x413f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2fa8], 0
lea esi, [edi + 0x2fac]
je 0x413fc2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x413f7c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00415ab0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004041d0
mov edx, dword [esi]
mov ecx, 0x43967c
push dword [edi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004041d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41db70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41dbaa
mov eax, dword [0x439680]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x41db9d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41dbdb
mov eax, dword [0x439680]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x41dbce
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41dc0c
mov eax, dword [0x439680]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x41dbff
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x41dc59
mov eax, dword [0x439680]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x41dc4c
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x41dc8a
mov eax, dword [0x439680]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x41dc7d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x41dcbb
mov eax, dword [0x439680]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x41dcae
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00420420
Function at 0x42fe74
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x42fea9
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x42fea6
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x42feb2
add edx, 0x28
cmp edx, esi
jne 0x42fe94
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x42feaf

Function at 0x430a58
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x430a97
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x430a97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x430a97
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x430a97
cmp dword [ecx + 0x74], 0xe
jbe 0x430a97
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x107ae058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.107ae1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x107ae07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107ae06a
add dl, dl
jne 0x107ae089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107ae0dc
xor eax, eax
add dl, dl
jne 0x107ae096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107ae17d
add dl, dl
jne 0x107ae0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107ae0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107ae0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107ae0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x107ae0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x107ae075
mov eax, 1
add dl, dl
jne 0x107ae0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107ae0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107ae0e1
sub eax, ebx
mov ebx, 1
jne 0x107ae128
mov ecx, 1
add dl, dl
jne 0x107ae10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107ae119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107ae105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107ae075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x107ae13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107ae14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107ae136
cmp eax, 0x7d00
jae 0x107ae16d
cmp eax, 0x500
jb 0x107ae168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107ae075
cmp eax, 0x7f
ja 0x107ae170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107ae075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x107ae19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x107ae075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x43b640
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
mov edi, 0xc2d2958
call fcn.0043b689
add edi, edi
mov eax, 0xf020fac2
sub edi, edi
xor dword [ebx], edx
add eax, 0x16f4953e
sub edi, eax
inc ebx
mov eax, 0xb4e12e3e
add edi, 0x253443bf
cmp ebx, esi
jne fcn.0043b640
add edi, 1
add eax, edi
ret
Function at 0x4064a9
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.004063cd
mov dword [esp + 0x18], eax
test bl, 8
je 0x4064eb
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4244c8], eax
jmp 0x406685
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x406508
test eax, eax
je 0x406674
test bl, 2
je 0x40663e
push esi
push 0x421a58
call fcn.004068b6
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40652b
push str..
push 0x421a58
call ebp
jmp 0x406531
push esi
call fcn.00406a6e
cmp byte [esi], 0
jne 0x40653f
cmp byte [0x421a58], 0x5c
jne 0x406547
push 0x408298
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x421a58
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40662c
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00406390
cmp byte [eax], 0
je 0x406599
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x4065b0
mov al, byte [ebp + 1]
test al, al
je 0x406607
cmp al, 0x2e
jne 0x4065b0
cmp byte [ebp + 2], 0
je 0x406607
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.004068b6
test byte [esp + 0x20], 0x10
je 0x4065d4
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x40660b
push ebx
push esi
call fcn.004064a9
jmp 0x40660b
push edi
push esi
call fcn.0040631f
test eax, eax
jne 0x4065fd
test edi, edi
je 0x4065f5
push esi
push 0xfffffffffffffff1
call fcn.00405b2f
push 0
push esi
call fcn.00406091
jmp 0x40660b
inc dword [0x4244c8]
jmp 0x40660b
push esi
push 0xfffffffffffffff2
call fcn.00405b2f
jmp 0x40660b
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406572
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x406684
cmp dword [esp + 0x1c], 0
mov byte [ebp - 1], 0
je 0x406674
push esi
call fcn.00406369
test eax, eax
je 0x406684
push esi
call fcn.004062f2
mov eax, edi
or eax, 1
push eax
push esi
call fcn.0040631f
test eax, eax
jne 0x40667c
test edi, edi
je 0x406674
push esi
push 0xfffffffffffffff1
call fcn.00405b2f
push 0
push esi
call fcn.00406091
jmp 0x406684
inc dword [0x4244c8]
jmp 0x406684
push esi
push 0xffffffffffffffe5
call fcn.00405b2f
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x4010f0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x4103ac]
mov ecx, dword [esp + 4]
sub esp, 0x80
cmp eax, ecx
jl 0x401132
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x8c]
push ecx
push edx
lea eax, [esp + 8]
push 0x7f
push eax
call fcn.00402a66
add esp, 0x10
lea ecx, [esp]
mov byte [esp + 0x7f], 0
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x80
ret

Function at 0x401140
Capabilities:
Read .ini file

Disassembly:
push 0
mov dword [0x40ff54], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x401159
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
push 0x200
push 0x40ff58
push eax
mov dword [0x40ff54], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x2e
push 0x40ff58
call fcn.00402ac0
mov byte [eax], 0
mov edi, str..ini
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40ff58
mov esi, edi
mov edx, ecx
mov edi, 0x40ff58
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x40
and ecx, 3
push 0x410158
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.usbvideo
push str.DriverName
push str.annie
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x40ff58
push 0xffffffffffffffff
push 0x40d0cc
push str.annie
call esi
push 0x40ff58
push 0xffffffffffffffff
push 0x40d0c8
push str.annie
mov dword [0x41039c], eax
call esi
push 0x40ff58
push 0x200
push 0x410198
push str.C:_amcap.exe
push str.AppPath
push str.annie
mov dword [0x4103a0], eax
call edi
push 0x40ff58
push 0xc8
push str.PollTrigger
push str.annie
call esi
push 0x40ff58
push 0x3e8
push str.PollDevice
push str.annie
mov dword [0x4103a4], eax
call esi
push 0x40ff58
push 0x42
push str.SensorI2C
push str.annie
mov dword [0x4103a8], eax
call esi
push 0x40ff58
push 0
push str.Verbose
mov dword [0x410398], eax
push str.annie
call esi
push 0x40ff58
push 0
push str.ShowTray
push str.annie
mov dword [0x4103ac], eax
call esi
push 0x40ff58
push 0
push str.ShowWindow
push str.annie
mov dword [0x4103b4], eax
call esi
push 0x41041c
mov dword [0x4103b0], eax
mov dword [0x4103bc], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
mov dword [0x410434], 0
mov eax, 1
pop esi
ret
Function at 0x402250
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.AmcapExeG
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x402268
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40333c
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.00404ddc
test esi, esi
jne 0x403372
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.00404ecc
jmp 0x403390
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403240
mov edi, eax
test esi, esi
je 0x403390
cmp dword [ebx], 0
je 0x403390
dec esi
jmp 0x403379
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403c28
Capabilities:
Query or enumerate registry value

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

Function at 0x404b88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ba04c], 0
je 0x404be9
cmp word [0x4ba220], 0xd7b2
jne 0x404bb1
cmp dword [0x4ba228], 0
jbe 0x404bb1
mov eax, 0x4ba21c
call dword [0x4ba238]
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 0x404c10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b5030], 0
jne 0x404c05
push 0
push 0x4b5764
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404d60
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 [0x4b5034], 0
je 0x404d86
mov edx, esi
mov eax, ebx
call dword [0x4b5034]
jmp 0x404d95
mov eax, 8
call fcn.00402f50
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ba04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d28
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 0x40671c
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 0x40694c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40679f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40694c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40679f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406968
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406828
xor eax, eax
push ebp
push 0x406821
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406558
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 0x406806
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406988
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406806
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 0x406828
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 0x406942
cmp byte [ebp - 0xd], 0
jne 0x40686f
cmp byte [ebp - 0x12], 0
je 0x406942
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406888
dec ebx
cmp byte [ebx], 0x2e
je 0x406897
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406887
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406942
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4068d4
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 0x406942
cmp byte [ebp - 0xd], 0
je 0x406942
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 0x406942
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 0x406828
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 0x40694c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40679f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40694c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40679f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406968
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406828
xor eax, eax
push ebp
push 0x406821
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406558
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 0x406806
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406988
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406806
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 0x406828
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 0x406942
cmp byte [ebp - 0xd], 0
jne 0x40686f
cmp byte [ebp - 0x12], 0
je 0x406942
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406888
dec ebx
cmp byte [ebx], 0x2e
je 0x406897
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406887
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406942
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4068d4
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 0x406942
cmp byte [ebp - 0xd], 0
je 0x406942
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 0x406942
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 0x409190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4091e2
test eax, edx
je 0x4091e5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4091a5
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 0x4091cb
add ecx, 4
js 0x4091bb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4091c8
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 0x4091f1
test edx, edx
jne 0x409198
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040526c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409d92
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409db3
cmp ebx, 3
je 0x409db3
cmp ebx, 0x7b
je 0x409db3
mov eax, esi
call fcn.00409d34
test al, al
jne 0x409db7
xor eax, eax
jmp 0x409db9
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040526c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409dd5
test al, 0x10
jne 0x409dd9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d35c
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 0x40d395
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ecc
jmp 0x40d39e
mov eax, ebx
mov edx, esi
call fcn.00404e30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d3a8
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 0x40d3ca
movzx eax, byte [esp]
jmp 0x40d3cc
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret