joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401290
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret

Function at 0x401ab5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401af4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401af4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401af4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401af4
cmp dword [ecx + 0x74], 0xe
jbe 0x401af4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x410440
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40c015
lea edi, [esi - 0xb015]
push edi
or ebp, 0xffffffff
jmp 0x410462
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410469
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410458
mov eax, 1
add ebx, ebx
jne 0x41047b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410470
jne 0x41048c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410470
xor ecx, ecx
sub eax, 3
jb 0x4104a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x410512
mov ebp, eax
add ebx, ebx
jne 0x4104ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4104b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4104dc
inc ecx
add ebx, ebx
jne 0x4104c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4104bd
jne 0x4104d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4104bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4104fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4104ed
jmp 0x41045e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4104fc
add edi, ecx
jmp 0x41045e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41051a
cmp byte [edi], 5
jne 0x41051a
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 0x41051f
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x41058e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1250c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x125c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41054c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x125c4]
or eax, eax
je 0x410588
mov dword [ebx], eax
add ebx, 4
jmp 0x410569
call dword [esi + 0x125d4]
mov ebp, dword [esi + 0x125c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4105c2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1094058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010941a8
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 0x109407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109406a
add dl, dl
jne 0x1094089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10940dc
xor eax, eax
add dl, dl
jne 0x1094096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109417d
add dl, dl
jne 0x10940a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10940d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1094075
mov eax, 1
add dl, dl
jne 0x10940ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10940e1
sub eax, ebx
mov ebx, 1
jne 0x1094128
mov ecx, 1
add dl, dl
jne 0x109410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1094119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1094105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1094075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x109413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x109414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1094136
cmp eax, 0x7d00
jae 0x109416d
cmp eax, 0x500
jb 0x1094168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1094075
cmp eax, 0x7f
ja 0x1094170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1094075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x109419e
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 0x1094075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4017ea
Capabilities:
Encode data using xor

Disassembly:
sbb eax, 0x2a12b575
push ebp
inc edi
movsx eax, bl
test edx, 0x74b4a931
mov eax, ebp
cmp bl, cl
sub al, bl
jno 0x401809
sbb al, 0x98
mov ebx, 0x71694f1d
test dh, 0x7d
test edi, 0x7a80a6b8
movsx esi, ah
mov bh, 0xcd
dec eax
and eax, eax
lea eax, [ecx]
sub ebx, ebx
add ebx, eax
mov al, 0x91
push ebx
movsx eax, di
pop esi
mov eax, 0xb02022ab
push esi
pop edi
cmp eax, 0x482e
ja 0x40183e
xor ebx, esi
movsx eax, al
mov bl, 0xab
xchg eax, ebx
or al, 0x35
lea ecx, [edi]
and eax, 0xd8aff4df
imul eax, edx
mov bh, 0x1c
and al, 0xf2
adc bh, 0x53
push 0
pop edx
test ecx, ebp
test dl, dl
lea edx, [ecx]
and eax, ecx
mov eax, ebp
lea ecx, [0x6d349a33]
movzx esi, cx
imul ecx, ecx, 0xbc2d1a93
xor ebp, edx
sub ebx, 0x6934674c
cmp ebx, 0x5c318e12
test al, 0xa8
inc ebx
test ch, dh
adc cl, bh
sbb dl, dl
adc ebp, edi
call 0x401894
mov ebx, 0
imul eax, ecx, 0x8867a3a8
inc ecx
mov edi, ebx
movsx ecx, al
test dh, ch
mov cl, ah
add ebx, 0x30c
sbb ebp, ecx
add edi, edx
sub ebx, 0x30b
movsx edi, dx
or eax, 0xd8f39fca
xor al, 0x1e
mov edi, 0x8498a8b6
lea edx, [0x696f2913]
xchg cl, al
xchg dh, dl
cmp ebx, 0x44
jl 0x401899
pop eax
inc ecx
mov edi, eax
test bh, 0xf
or esi, 0x8a6a604c
imul edx, eax, 0xbcb2c6b9
add eax, 0x2820
test ecx, 0xc16a19d0
test esi, 0x5588be72
or dh, bh
and edx, ecx
mov dh, ah
dec ebp
dec ebx
movzx ebx, ah
test ah, cl
test ecx, ebp
js 0x40191c
dec edi
test esi, ecx
dec bh
cmp ebp, 0x97cf
and bh, ah
test dh, 0xdf
dec edx
imul edi, esi, 0xf96529c9
Function at 0x404588
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.00406e64
test esi, esi
jne 0x4045c0
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.00406fa0
jmp 0x4045de
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044cc
mov edi, eax
test esi, esi
je 0x4045de
cmp dword [ebx], 0
je 0x4045de
dec esi
jmp 0x4045c7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406308
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b6050], 0
je 0x406369
cmp word [0x4b632c], 0xd7b2
jne 0x406331
cmp dword [0x4b6334], 0
jbe 0x406331
mov eax, 0x4b6328
call dword [0x4b6344]
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 0x406394
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b3030], 0
jne 0x406385
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4064f4
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 [0x4b3038], 0
je 0x40651a
mov edx, esi
mov eax, ebx
call dword [0x4b3038]
jmp 0x406529
mov eax, 8
call fcn.00404214
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b6051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4064bc
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 0x408c7c
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 0x408de3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406e64
cmp si, word [0x4b37e0]
jb 0x408d16
cmp si, word [0x4b39e0]
ja 0x408d16
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408d16
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b37e0]
jae 0x408cf0
mov edi, ebx
dec edi
jmp 0x408d11
cmp si, word [ebx*8 + 0x4b37e0]
jbe 0x408d00
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408d11
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4b37e4]
call fcn.00408b8c
jmp 0x408d16
cmp edi, dword [ebp - 0xc]
jae 0x408cda
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408dc5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408dc5
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.0040704c
push dword [ebp - 0x164]
push 0x408e00
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040704c
push dword [ebp - 0x168]
push 0x408e10
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040704c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dea
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406e5c
ret
Function at 0x408f9c
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 0x4090a1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b8b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b8b70]
jne 0x408fe8
mov eax, esi
mov edx, 0x4b8b74
mov ecx, 0x55
call fcn.0040704c
push 0x4b8b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40908b
push 0x4b8b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406e64
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409059
cmp byte [0x4b8b54], 0
je 0x40901e
mov edx, esi
mov eax, ebx
call fcn.00408e7c
jmp 0x409059
mov edx, esi
mov eax, ebx
call fcn.00408c7c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409059
cmp dword [esi], 0
je 0x409042
mov eax, esi
mov edx, 0x4090bc
call fcn.00407260
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408c7c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407260
push 0x4b8b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b8b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406ef0
push eax
push 0x4b8b74
call sub.kernel32.dll_lstrcpynW
push 0x4b8b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090a8
lea eax, [ebp - 4]
call fcn.00406e54
ret
Function at 0x4092e0
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.00406e4c
xor eax, eax
push ebp
push 0x4094c5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409320
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40933a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406ef0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4094af
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409508
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40953c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4094af
xor eax, eax
push ebp
push 0x4094a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004090e4
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 0x409438
mov eax, dword [ebp - 0x10]
call fcn.00404214
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.00407010
jmp 0x409483
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40957c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409483
mov eax, dword [ebp - 0x10]
call fcn.00404214
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40957c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094af
cmp dword [ebp - 8], 0
je 0x40949e
mov eax, dword [ebp - 8]
call fcn.00404230
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 0x4094cc
lea eax, [ebp - 4]
call fcn.00406e54
ret
Function at 0x409790
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.00406e4c
mov eax, dword [ebp - 0x21c]
call fcn.00406e4c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40992f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406e64
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406ef0
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 0x409830
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409842
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40982d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4098fb
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 0x40986b
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.004092e0
cmp dword [ebp - 0x220], 0
je 0x4098a3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409684
pop ecx
mov ebx, eax
jmp 0x4098fb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408f9c
mov eax, dword [ebp - 0x224]
call fcn.00409684
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098ee
cmp byte [0x4b8b54], 0
jne 0x4098ee
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408f9c
mov eax, dword [ebp - 0x228]
call fcn.00409684
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098fb
push ebp
call fcn.00409734
pop ecx
mov ebx, eax
test bl, bl
je 0x409911
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040704c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409936
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406e5c
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4b8c4c
push 0xa
push 0x40d074
mov eax, dword [0x4b8c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d004
call fcn.00417da4
push ebx
mov eax, dword [0x4b8c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d01b
call fcn.00417da4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d02d
call fcn.00417da4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b8c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b8c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b8c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b8c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b8c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b8c64], edx
pop esi
pop ebx
ret

Function at 0x410924
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4109cd
test eax, edx
je 0x4109d0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x41094d
push edx
mov edx, eax
mov eax, esp
call fcn.00407068
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410963
push eax
lea eax, [esp + 8]
call fcn.00407068
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410972
movzx eax, word [eax]
sub eax, ecx
jmp 0x410999
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 0x4109b3
add ecx, 4
js 0x41098a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4109b0
push eax
mov eax, ecx
mov edx, 2
call fcn.00406594
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410997
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410999
xor eax, eax
ret
test eax, eax
je 0x4109e0
test edx, edx
jne 0x410934
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x415260
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 0x415299
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406fa0
jmp 0x4152a2
mov eax, ebx
mov edx, esi
call fcn.00406e64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4152ac
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 0x4152ce
movzx eax, word [esp]
jmp 0x4152d0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x415a60
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 0x415b85
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00415870
mov esi, eax
mov eax, dword [0x4b525c]
cmp byte [eax], 0
je 0x415b2d
mov eax, dword [0x4b5010]
call fcn.004049e4
call fcn.0040437c
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 [0x415a38]
call fcn.00408678
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 0x415ba0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415b69
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4b4fac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b8c3c]
call fcn.0040876c
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 0x415b8c
lea eax, [ebp - 4]
mov edx, dword [0x415a38]
call fcn.00408684
ret

Function at 0x416d3c
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 0x416e12
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406eb8
lea eax, [ebp - 4]
call fcn.004078a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406ef0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x416dfc
mov eax, ebx
call fcn.00404214
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x416df5
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.00406ef0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x416ddf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x416e24
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x416ddf
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 0x416dfc
mov eax, dword [ebp - 0x10]
call fcn.00404230
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416e19
lea eax, [ebp - 4]
call fcn.00406e54
ret