joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e6350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x70e1a5
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x70e209]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.005871c8
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.00679c40
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x6d8bd0], 0
jne 0x5e6476
mov byte [0x6d8bd0], 1
call fcn.00684670
test eax, eax
je 0x5e6444
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.00586fb0
mov dword [esp], 2
mov esi, dword [fcn.005925b0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x5e6434
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x70d30d
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x6b2884
jmp 0x6b287c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x5e63fa
mov dword [esp], 2
call dword [0x6d7144]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x6b2877
mov dword [esp], 2
call dword [0x6d7144]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x72114c
call fcn.00677640
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.00684230
add esp, 0x18
pop ebx
ret
Function at 0x6b2590
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.005925b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.005925b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
Function at 0x4069fc
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.00409184
test esi, esi
jne 0x406a32
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.0040930c
jmp 0x406a50
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406940
mov edi, eax
test esi, esi
je 0x406a50
cmp dword [ebx], 0
je 0x406a50
dec esi
jmp 0x406a39
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407e78
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.00408250
mov byte [esp], al
cmp byte [esp], 0
jne 0x407ff8
test edi, edi
je 0x407ff8
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407f38
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407f13
cmp edi, 0xffffffff
je 0x407ed7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407ed7
mov byte [esp], 0
jmp 0x407ff8
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407f13
test ebx, ebx
jne 0x407f09
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407f09
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407ff8
call 0x408370
dec ebp
test ebp, ebp
jg 0x407ebc
cmp edi, 0xffffffff
je 0x407f38
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f36
mov byte [esp], 0
jmp 0x407ff8
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407e86
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f38
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408064
mov edx, eax
mov ebx, dword [0x5a58f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407f9c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407f9a
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407f9c
xor edi, edi
cmp byte [esp], 0
je 0x407fc2
mov ebx, dword [esi]
test bl, 1
jne 0x407fd8
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407fa2
mov byte [esp + 1], 1
jmp 0x407fd8
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407fc2
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407f4f
cmp byte [esp], 0
je 0x407ff8
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 0x408b74
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x5a7b10
cmp dword [ebp + 0xc], 2
jl 0x408b88
mov ebx, 0x5a7b40
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x408bc0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4049f8
mov dword [0x5a5018], eax
mov eax, 0x404a00
mov dword [0x5a501c], eax
mov eax, ebx
call fcn.00408a58
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x408bf5
cmp al, 3
jge 0x408bf5
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x408c06
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x408c11
call dword [ecx + eax*4]
cmp dword [0x5a5038], 0
jne 0x408c27
mov byte [0x5a5040], 1
fnstcw word [0x548028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00408eb8
call fcn.00408b08
ret 4

Function at 0x408e20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a5050], 0
je 0x408e87
cmp word [0x5a533c], 0xd7b2
jne 0x408e49
cmp dword [0x5a5344], 0
jbe 0x408e49
mov eax, 0x5a5338
call dword [0x5a5354]
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, 0x408eb4
call fcn.00409abc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x548032], 0
jne 0x408ea3
push 0
push 0x5489c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409044
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 [0x548034], 0
je 0x40906f
mov edx, edi
mov eax, esi
call dword [0x548034]
mov ebx, eax
jmp 0x409080
mov eax, 8
call fcn.0040669c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5a5051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40900c
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 0x4090b0
mov eax, ebx
call fcn.004066b8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40b8f0
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 0x40ba55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409184
cmp si, word [0x548a00]
jb 0x40b988
cmp si, word [0x548c00]
ja 0x40b988
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b988
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x548a00]
jae 0x40b962
mov edi, ebx
dec edi
jmp 0x40b983
cmp si, word [ebx*8 + 0x548a00]
jbe 0x40b972
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b983
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x548a04]
call fcn.0040b810
jmp 0x40b988
cmp edi, dword [ebp - 8]
jae 0x40b94c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ba37
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ba37
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.00409ed8
push dword [ebp - 0x160]
push 0x40ba70
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409ed8
push dword [ebp - 0x164]
push 0x40ba80
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409ed8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ba5c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004091e4
ret
Function at 0x40bc08
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 0x40bd0c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a7b80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5a7b98]
jne 0x40bc54
mov eax, esi
mov edx, 0x5a7b9a
mov ecx, 0x55
call fcn.00409ed8
push 0x5a7b80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bcf6
push 0x5a7b80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409184
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bcc3
cmp byte [0x5a7b7c], 0
je 0x40bc88
mov edx, esi
mov eax, ebx
call fcn.0040baec
jmp 0x40bcc3
mov edx, esi
mov eax, ebx
call fcn.0040b8f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bcc3
cmp dword [esi], 0
je 0x40bcac
mov eax, esi
mov edx, 0x40bd24
call fcn.0040a030
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b8f0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a030
push 0x5a7b80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5a7b98], bx
mov eax, dword [esi]
call fcn.00409e1c
mov ecx, eax
mov eax, 0x5a7b9a
mov edx, 0xaa
call fcn.0040b770
push 0x5a7b80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd13
lea eax, [ebp - 4]
call fcn.00409184
ret
Function at 0x40bf3c
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.00409268
xor eax, eax
push ebp
push 0x40c161
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40bf7c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40bf96
mov eax, dword [ebp - 4]
call fcn.00409e1c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b770
cmp word [ebp - 0x21a], 0
je 0x40c14b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c170
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c065
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c170
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c065
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c1ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c065
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c1ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c065
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c1e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c065
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c214
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c14b
xor eax, eax
push ebp
push 0x40c144
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bd4c
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 0x40c0d4
mov eax, dword [ebp - 0x10]
call fcn.0040669c
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.00409e84
jmp 0x40c11f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c254
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c11f
mov eax, dword [ebp - 0x10]
call fcn.0040669c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c254
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409e84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c14b
cmp dword [ebp - 8], 0
je 0x40c13a
mov eax, dword [ebp - 8]
call fcn.004066b8
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 0x40c168
lea eax, [ebp - 4]
call fcn.00409184
ret
Function at 0x40c450
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.00409268
xor eax, eax
push ebp
push 0x40c510
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.00409ed8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a088
mov eax, dword [ebx]
call fcn.0040c318
test al, al
jne 0x40c4ed
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409ed8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a088
mov eax, dword [ebx]
call fcn.0040c318
test al, al
jne 0x40c4ed
mov eax, ebx
call fcn.00409184
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c517
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004091e4
lea eax, [ebp - 4]
call fcn.00409184
ret

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

Disassembly:
cmp eax, edx
je 0x41cce1
test eax, edx
je 0x41cce4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41cc9f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41ccc6
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 0x41ccc7
add ecx, 4
js 0x41ccb7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41ccc4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41ccc6
xor eax, eax
ret
test eax, eax
je 0x41ccf0
test edx, edx
jne 0x41cc90
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41df70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41df9d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41e070
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.00409e1c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e0da
test ah, 4
je 0x41e0d3
test bl, bl
jne 0x41e098
mov al, 1
jmp 0x41e101
test al, 0x10
je 0x41e0a0
xor eax, eax
jmp 0x41e101
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41e0c4
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41e101
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41e101
test al, 0x10
sete al
jmp 0x41e101
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41e0fb
cmp ebx, 3
je 0x41e0fb
cmp ebx, 0x7b
je 0x41e0fb
mov eax, esi
call fcn.0041e030
test al, al
jne 0x41e0ff
xor eax, eax
jmp 0x41e101
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x421d54
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 0x421d8d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040930c
jmp 0x421d96
mov eax, ebx
mov edx, esi
call fcn.00409564
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421da0
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 0x421dc2
movzx eax, word [esp]
jmp 0x421dc4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x422aac
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 0x422bd1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004228b4
mov esi, eax
mov eax, dword [0x5a470c]
cmp byte [eax], 0
je 0x422b79
mov eax, dword [0x5a4254]
call fcn.00406ef0
call fcn.004067f0
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 [0x422a7c]
call fcn.0040b22c
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 0x422bec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x422bb5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5a41b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5a7c48]
call fcn.0040b410
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 0x422bd8
lea eax, [ebp - 4]
mov edx, dword [0x422a7c]
call fcn.0040b350
ret

Function at 0x4245d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409680
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cd38
mov edi, eax
cmp edi, 0x104
jbe 0x42457f
mov eax, edi
add eax, eax
call fcn.0040669c
mov esi, eax
jmp 0x424581
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040cd38
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4245bc
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4245a6
mov eax, esp
cmp esi, eax
je 0x4245c9
mov eax, esi
call fcn.004066b8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x424604
cmp bl, 0
je 0x424600
cmp bl, 0x41
jl 0x4245fb
cmp bl, 0x5a
jg 0x4245fb
or bl, 0x20
xor al, bl
inc esi
jmp 0x4245df
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x424540

Function at 0x424e60
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00409ed8
add esp, 0x800
pop ebx
ret
Function at 0x425434
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00409184
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00409e1c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x425479
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040930c
jmp 0x425492
mov edx, ebx
dec edx
mov eax, esi
call fcn.00409fb0
push ebx
mov eax, dword [esi]
call fcn.00409e1c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4332b2
test eax, edx
je 0x4332b5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x433275
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 0x43329b
add ecx, 4
js 0x43328b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x433298
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 0x4332c1
test edx, edx
jne 0x433268
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret