joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a2e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x45a435
cmp di, 0x801
ja 0x45a435
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x45a435
cmp bx, 0xc
ja 0x45a435
mov al, byte [esp + 0x30]
test al, al
je 0x45a334
push edi
call fcn.0045a870
add esp, 4
cmp ax, bx
je 0x45a334
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.0045a440
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.0045a260
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x45a435
test ebx, ebx
jne 0x45a3c9
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x45a42b
test al, al
je 0x45a3bc
push 0xffffffffffffffe1
jmp 0x45a3be
push 0x1f
push ebp
push edi
push esi
call fcn.0045a210
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.0045a210
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.0045a440
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.0045a260
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x45a396
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x45bac0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4841e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x7d9ea0
lea ecx, [esp + 4]
call fcn.00475631
push 0x7be18c
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.00475631
push 0x7be188
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.00475631
push 0x7be184
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.00475631
push 0x7be180
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.00475631
push 0x7be17c
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.00475631
push 0x7be178
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.00475631
push 0x7be174
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.00475631
push 0x7be170
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.00475631
push 0x7be16c
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.00475631
push 0x7be168
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.00475631
push 0x7be164
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.00475631
push 0x7be160
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.00475631
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x45bbf0
cmp eax, 0xc
jle 0x45bbf0
mov ecx, dword [esp + 0x48]
push 0x7d9ea0
call fcn.00475700
jmp 0x45bbfe
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.004756b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.004755c3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.004755c3
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.004755c3
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.004755c3
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.004755c3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.004755c3
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.004755c3
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.004755c3
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.004755c3
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.004755c3
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.004755c3
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.004755c3
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004755c3
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x40486c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406b68
test esi, esi
jne 0x4048a2
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.00406cf0
jmp 0x4048c0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047b0
mov edi, eax
test esi, esi
je 0x4048c0
cmp dword [ebx], 0
je 0x4048c0
dec esi
jmp 0x4048a9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4058e4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405cdc
mov byte [esp], al
cmp byte [esp], 0
jne 0x405a70
test edi, edi
je 0x405a70
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4059a7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405982
cmp edi, 0xffffffff
je 0x405943
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405943
mov byte [esp], 0
jmp 0x405a70
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405982
test ebx, ebx
jne 0x405978
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x405978
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405a70
call 0x405e00
dec ebp
test ebp, ebp
jg 0x405928
cmp edi, 0xffffffff
je 0x4059a7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4059a5
mov byte [esp], 0
jmp 0x405a70
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4058f2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4059a7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405ae0
mov edx, eax
mov ebx, dword [0x5378f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405a0e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405a0c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405a0e
xor edi, edi
cmp byte [esp], 0
je 0x405a37
mov ebx, dword [esi]
test bl, 1
jne 0x405a50
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x405a14
mov byte [esp + 1], 1
jmp 0x405a50
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x405a37
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4059c1
cmp byte [esp], 0
je 0x405a70
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406800
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x537058], 0
je 0x406867
cmp word [0x537344], 0xd7b2
jne 0x406829
cmp dword [0x53734c], 0
jbe 0x406829
mov eax, 0x537340
call dword [0x53735c]
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
mov eax, 0x406894
call fcn.004073d0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x531032], 0
jne 0x406883
push 0
push 0x5319c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406a24
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x531034], 0
je 0x406a4f
mov edx, edi
mov eax, esi
call dword [0x531034]
mov ebx, eax
jmp 0x406a60
mov eax, 8
call fcn.004044ec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x537059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4069ec
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406a95
mov edx, 8
mov eax, ebx
call fcn.00404508
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408f7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4090e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406b68
cmp si, word [0x531a00]
jb 0x409014
cmp si, word [0x531c00]
ja 0x409014
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409014
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x531a00]
jae 0x408fee
mov edi, ebx
dec edi
jmp 0x40900f
cmp si, word [ebx*8 + 0x531a00]
jbe 0x408ffe
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40900f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x531a04]
call fcn.00408e8c
jmp 0x409014
cmp edi, dword [ebp - 8]
jae 0x408fd8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4090c3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4090c3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407744
push dword [ebp - 0x160]
push 0x4090fc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407744
push dword [ebp - 0x164]
push 0x40910c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407744
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040797c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090e8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406bc8
ret
Function at 0x409294
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 0x409397
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x539b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x539ba0]
jne 0x4092e0
mov eax, esi
mov edx, 0x539ba2
mov ecx, 0x55
call fcn.00407744
push 0x539b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409381
push 0x539b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406b68
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40934f
cmp byte [0x539b84], 0
je 0x409314
mov edx, esi
mov eax, ebx
call fcn.00409178
jmp 0x40934f
mov edx, esi
mov eax, ebx
call fcn.00408f7c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40934f
cmp dword [esi], 0
je 0x409338
mov eax, esi
mov edx, 0x4093b0
call fcn.0040789c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408f7c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040789c
push 0x539b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x539ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.004076b0
push eax
push 0x539ba2
call sub.kernel32.dll_lstrcpynW
push 0x539b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40939e
lea eax, [ebp - 4]
call fcn.00406b68
ret
Function at 0x4095cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406c4c
xor eax, eax
push ebp
push 0x4097f1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40960c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409626
push 0x105
mov eax, dword [ebp - 4]
call fcn.004076b0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4097db
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409800
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409800
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40983c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40983c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409870
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4096f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4097db
xor eax, eax
push ebp
push 0x4097d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004093d8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409764
mov eax, dword [ebp - 0x10]
call fcn.004044ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407708
jmp 0x4097af
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4098e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4097af
mov eax, dword [ebp - 0x10]
call fcn.004044ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4098e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097db
cmp dword [ebp - 8], 0
je 0x4097ca
mov eax, dword [ebp - 8]
call fcn.00404508
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097f8
lea eax, [ebp - 4]
call fcn.00406b68
ret
Function at 0x409ad4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406c4c
xor eax, eax
push ebp
push 0x409b94
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407744
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004078f4
mov eax, dword [ebx]
call fcn.0040999c
test al, al
jne 0x409b71
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407744
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004078f4
mov eax, dword [ebx]
call fcn.0040999c
test al, al
jne 0x409b71
mov eax, ebx
call fcn.00406b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b9b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406bc8
lea eax, [ebp - 4]
call fcn.00406b68
ret

Function at 0x40a558
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 0x41da0c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41da65
test eax, edx
je 0x41da68
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41da23
movzx eax, word [eax]
sub eax, ecx
jmp 0x41da4a
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 0x41da4b
add ecx, 4
js 0x41da3b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41da48
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41da4a
xor eax, eax
ret
test eax, eax
je 0x41da74
test edx, edx
jne 0x41da14
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41e0e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41e100
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41e108
mov al, 1
jmp 0x41e125
movzx esi, word [ebp]
mov eax, esi
call fcn.0040f240
test al, al
jne 0x41e121
cmp si, 0x5f
je 0x41e121
xor eax, eax
jmp 0x41e123
mov al, 1
xor al, 1
test al, al
jne 0x41e1b5
test bl, bl
je 0x41e175
mov eax, ebp
test eax, eax
je 0x41e13c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41e1b1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040f2cc
test al, al
jne 0x41e169
cmp di, 0x5f
je 0x41e169
cmp di, 0x2e
je 0x41e169
xor eax, eax
jmp 0x41e16b
mov al, 1
test al, al
je 0x41e1b5
inc esi
dec ebx
jne 0x41e149
jmp 0x41e1b1
mov eax, ebp
test eax, eax
je 0x41e180
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41e1b1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040f2cc
test al, al
jne 0x41e1a7
cmp di, 0x5f
je 0x41e1a7
xor eax, eax
jmp 0x41e1a9
mov al, 1
test al, al
je 0x41e1b5
inc esi
dec ebx
jne 0x41e18d
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.004076b0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41edca
test ah, 4
je 0x41edc3
test bl, bl
jne 0x41ed88
mov al, 1
jmp 0x41edf1
test al, 0x10
je 0x41ed90
xor eax, eax
jmp 0x41edf1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41edb4
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41edf1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41edf1
test al, 0x10
sete al
jmp 0x41edf1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41edeb
cmp ebx, 3
je 0x41edeb
cmp ebx, 0x7b
je 0x41edeb
mov eax, esi
call fcn.0041ed20
test al, al
jne 0x41edef
xor eax, eax
jmp 0x41edf1
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422bb8
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 0x422bf1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406cf0
jmp 0x422bfa
mov eax, ebx
mov edx, esi
call fcn.00406f48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422c04
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 0x422c26
movzx eax, word [esp]
jmp 0x422c28
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4238fc
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 0x423a21
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00423704
mov esi, eax
mov eax, dword [0x536354]
cmp byte [eax], 0
je 0x4239c9
mov eax, dword [0x536064]
call fcn.004049cc
call fcn.00404660
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 [0x4238cc]
call fcn.004089cc
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 0x423a3c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x423a05
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x535fe8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x539c50]
call fcn.00408ac0
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 0x423a28
lea eax, [ebp - 4]
mov edx, dword [0x4238cc]
call fcn.004089d8
ret

Function at 0x424a80
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 0x424b56
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406f90
lea eax, [ebp - 4]
call fcn.00407124
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004076b0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x424b40
mov eax, ebx
call fcn.004044ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x424b39
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.004076b0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x424b23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x424b68
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x424b23
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 0x424b40
mov eax, dword [ebp - 0x10]
call fcn.00404508
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424b5d
lea eax, [ebp - 4]
call fcn.00406b68
ret