joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401953
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00401041
test eax, eax
je 0x4019da
xor ebp, ebp
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
jne 0x401989
add esi, 0x84
push ebp
push esi
push str.Couldnt_open_service_manager
jmp 0x4019b0
lea ebx, [esi + 0x84]
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
jne 0x4019b3
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
push ebx
push str.Couldnt_open_service
push ebp
jmp 0x4019e9
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
je 0x4019df
push 1
pop eax
jmp 0x4019f1
push 0
push ebx
push str.Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x4019f9
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
mov esi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401a2d
add esi, 0x84
push eax
push esi
push str.Couldnt_open_service_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401a7b
add esi, 0x84
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401a4f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401a29
lea eax, [esp + 8]
push ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
setne al
pop ebx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x401a81
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], 1
mov dword [ebp - 4], eax
lea eax, [ebp + 0x18]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401adf
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
test eax, eax
jne 0x401ad9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x401ae3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b3d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
test eax, eax
jne 0x401b37
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x527080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd0000]
push edi
jmp 0x52709a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5270a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527090
mov eax, 1
add ebx, ebx
jne 0x5270b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5270c4
jne 0x5270e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5270e3
dec eax
add ebx, ebx
jne 0x5270d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5270a8
add ebx, ebx
jne 0x5270df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x527135
xor ecx, ecx
sub eax, 3
jb 0x5270fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52716a
sar eax, 1
mov ebp, eax
jmp 0x527106
add ebx, ebx
jne 0x527106
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5270d4
inc ecx
add ebx, ebx
jne 0x527114
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5270d4
add ebx, ebx
jne 0x527121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x527116
jne 0x527132
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x527116
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x527154
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x527146
jmp 0x527096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x527154
add edi, ecx
jmp 0x527096
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x527172
cmp byte [edi], 0x11
jne 0x527172
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x527177
lea edi, [esi + 0x120000]
mov eax, dword [edi]
or eax, eax
je 0x5271ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x175028]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1751a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5271a4
mov ecx, edi
jns 0x5271d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1751a8]
or eax, eax
je 0x5271e9
mov dword [ebx], eax
add ebx, 4
jmp 0x5271c1
call dword [esi + 0x1751b8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x527220
cmp al, 0xef
ja 0x527213
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5271f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x527202
mov ebp, dword [esi + 0x1751ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x527254
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x57f770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x122000]
push edi
jmp 0x57f78a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57f791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f780
mov eax, 1
add ebx, ebx
jne 0x57f7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57f7b4
jne 0x57f7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7d3
dec eax
add ebx, ebx
jne 0x57f7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57f798
add ebx, ebx
jne 0x57f7cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57f825
xor ecx, ecx
sub eax, 3
jb 0x57f7eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57f85a
sar eax, 1
mov ebp, eax
jmp 0x57f7f6
add ebx, ebx
jne 0x57f7f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
inc ecx
add ebx, ebx
jne 0x57f804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
add ebx, ebx
jne 0x57f811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57f806
jne 0x57f822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57f806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57f844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57f836
jmp 0x57f786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57f844
add edi, ecx
jmp 0x57f786
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57f862
cmp byte [edi], 0x11
jne 0x57f862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x57f867
lea edi, [esi + 0x178000]
mov eax, dword [edi]
or eax, eax
je 0x57f8df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x219868]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2199e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57f894
mov ecx, edi
jns 0x57f8c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2199e8]
or eax, eax
je 0x57f8d9
mov dword [ebx], eax
add ebx, 4
jmp 0x57f8b1
call dword [esi + 0x2199f8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x57f910
cmp al, 0xef
ja 0x57f903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x57f8e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x57f8f2
mov ebp, dword [esi + 0x2199ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x57f944
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x4045e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407078
test esi, esi
jne 0x404620
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.004071b4
jmp 0x40463e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040452c
mov edi, eax
test esi, esi
je 0x40463e
cmp dword [ebx], 0
je 0x40463e
dec esi
jmp 0x404627
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406310
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52c054], 0
je 0x406371
cmp word [0x52c330], 0xd7b2
jne 0x406339
cmp dword [0x52c338], 0
jbe 0x406339
mov eax, 0x52c32c
call dword [0x52c348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40639c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x527030], 0
jne 0x40638d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40651c
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 [0x527038], 0
je 0x406542
mov edx, esi
mov eax, ebx
call dword [0x527038]
jmp 0x406551
mov eax, 8
call fcn.00404274
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x52c055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4064e4
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 0x409030
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409197
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407078
cmp si, word [0x5277e0]
jb 0x4090ca
cmp si, word [0x5279e0]
ja 0x4090ca
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4090ca
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5277e0]
jae 0x4090a4
mov edi, ebx
dec edi
jmp 0x4090c5
cmp si, word [ebx*8 + 0x5277e0]
jbe 0x4090b4
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4090c5
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5277e4]
call fcn.00408f40
jmp 0x4090ca
cmp edi, dword [ebp - 0xc]
jae 0x40908e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409179
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409179
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407270
push dword [ebp - 0x164]
push 0x4091b4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407270
push dword [ebp - 0x168]
push 0x4091c4
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407270
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40919e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407070
ret
Function at 0x409350
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 0x409455
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52eb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x52eb74]
jne 0x40939c
mov eax, esi
mov edx, 0x52eb78
mov ecx, 0x55
call fcn.00407270
push 0x52eb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40943f
push 0x52eb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407078
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40940d
cmp byte [0x52eb58], 0
je 0x4093d2
mov edx, esi
mov eax, ebx
call fcn.00409230
jmp 0x40940d
mov edx, esi
mov eax, ebx
call fcn.00409030
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40940d
cmp dword [esi], 0
je 0x4093f6
mov eax, esi
mov edx, 0x409470
call fcn.00407484
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409030
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407484
push 0x52eb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x52eb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407104
push eax
push 0x52eb78
call sub.kernel32.dll_lstrcpynW
push 0x52eb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40945c
lea eax, [ebp - 4]
call fcn.00407068
ret
Function at 0x409694
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.00407060
xor eax, eax
push ebp
push 0x409879
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4096d4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4096ee
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407104
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409863
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409888
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40977d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409888
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40977d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40977d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409863
xor eax, eax
push ebp
push 0x40985c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409498
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 0x4097ec
mov eax, dword [ebp - 0x10]
call fcn.00404274
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.00407234
jmp 0x409837
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409930
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409837
mov eax, dword [ebp - 0x10]
call fcn.00404274
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409930
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409863
cmp dword [ebp - 8], 0
je 0x409852
mov eax, dword [ebp - 8]
call fcn.00404290
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 0x409880
lea eax, [ebp - 4]
call fcn.00407068
ret
Function at 0x409b44
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00407060
mov eax, dword [ebp - 0x21c]
call fcn.00407060
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409ce3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407078
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407104
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409be4
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409bf6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409be1
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409caf
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409c1f
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409694
cmp dword [ebp - 0x220], 0
je 0x409c57
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409a38
pop ecx
mov ebx, eax
jmp 0x409caf
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409350
mov eax, dword [ebp - 0x224]
call fcn.00409a38
pop ecx
mov ebx, eax
test bl, bl
jne 0x409ca2
cmp byte [0x52eb58], 0
jne 0x409ca2
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409350
mov eax, dword [ebp - 0x228]
call fcn.00409a38
pop ecx
mov ebx, eax
test bl, bl
jne 0x409caf
push ebp
call fcn.00409ae8
pop ecx
mov ebx, eax
test bl, bl
je 0x409cc5
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407270
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cea
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407070
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x52ec5c
push 0xa
push 0x40dcb0
mov eax, dword [0x52ec40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40dc40
call fcn.0041b40c
push ebx
mov eax, dword [0x52ec40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40dc57
call fcn.0041b40c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40dc69
call fcn.0041b40c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x52ec60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x52ec64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x52ec68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x52ec6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x52ec70], ecx
add edx, dword [eax + 0x14]
mov dword [0x52ec74], edx
pop esi
pop ebx
ret

Function at 0x412db0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412e59
test eax, edx
je 0x412e5c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412dd9
push edx
mov edx, eax
mov eax, esp
call fcn.0040728c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412def
push eax
lea eax, [esp + 8]
call fcn.0040728c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412dfe
movzx eax, word [eax]
sub eax, ecx
jmp 0x412e25
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 0x412e3f
add ecx, 4
js 0x412e16
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412e3c
push eax
mov eax, ecx
mov edx, 2
call fcn.004065bc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x412e23
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412e25
xor eax, eax
ret
test eax, eax
je 0x412e6c
test edx, edx
jne 0x412dc0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407104
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41420a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41422b
cmp ebx, 3
je 0x41422b
cmp ebx, 0x7b
je 0x41422b
mov eax, esi
call fcn.004141ac
test al, al
jne 0x41422f
xor eax, eax
jmp 0x414231
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407104
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41424d
test al, 0x10
jne 0x414251
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret