joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70305cd4
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 4
mov edi, dword [esp + 0x14]
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0x64]
mov dword [edi + 0x24], edx
mov eax, dword [eax + 0xc]
lea esi, [eax + 0xc]
mov ebx, dword [eax + 0xc]
cmp esi, ebx
je 0x70305d19
mov eax, dword [ebx + 0x30]
movzx eax, word [eax]
mov dword [esp], eax
call fcn.70305c7e
cmp ax, 0x6b
je 0x70305d13
mov ebx, dword [ebx]
cmp esi, ebx
jne 0x70305cf7
jmp 0x70305d19
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x68]
mov edx, dword [eax + 0x3c]
mov ecx, eax
add ecx, dword [eax + edx + 0x78]
mov edx, ecx
mov ecx, dword [ecx + 0x18]
mov dword [edi + 0x38], ecx
mov ecx, eax
add ecx, dword [edx + 0x20]
mov dword [edi + 0x58], ecx
mov ecx, eax
add ecx, dword [edx + 0x1c]
mov dword [edi + 0x34], ecx
add eax, dword [edx + 0x24]
mov dword [edi + 0xc], eax
add esp, 4
pop ebx
pop esi
pop edi
ret

Function at 0x70313bae
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x70313bbe
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x402470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00403840
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
mov ecx, ebx
mov eax, ebx
shr eax, 0xb
mov esi, ebx
shr ecx, 0xd
not esi
and cl, al
mov eax, esi
shr eax, 9
and al, 3
movsx ecx, cl
movsx eax, al
imul ecx, eax
movsx eax, bl
movsx edx, cl
mov ecx, esi
imul edx, eax
mov eax, ebx
and eax, 0x6000
shr ecx, 0xb
or eax, 0x8000
shr esi, 0xb
shr eax, 0xd
and ecx, 1
imul eax, ebx
and esi, 1
shr eax, cl
mov ecx, esi
xor dl, al
mov eax, ebx
and eax, 0x6000
and dl, 0x7f
or eax, 0x8000
shr eax, 0xd
imul eax, ebx
shr eax, cl
xor dl, al
mov byte [ebp + ebx - 0x3a988], dl
inc ebx
cmp ebx, 0x3a980
jb 0x4024f5
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402be8
mov esp, ebp
pop ebp
ret
Function at 0x402620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c44
call fcn.00403840
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
mov eax, ebx
lea ecx, [ebx - 0xa]
or eax, 0xc8000
xor ecx, ebx
shr eax, 0xc
xor edx, edx
div ecx
mov ecx, ebx
add eax, ebx
shr ecx, 9
shr eax, 0xa
and al, cl
movsx ecx, bl
xor al, bl
inc al
movsx eax, al
imul eax, ecx
mov byte [ebp + ebx - 0x50c08], al
inc ebx
cmp ebx, 0x50bfe
jb 0x4026a4
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402be8
mov esp, ebp
pop ebp
ret
Function at 0x404548
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.00406a68
test esi, esi
jne 0x404580
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.00406ba4
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405dfc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50f054], 0
je 0x405e5d
cmp word [0x50f330], 0xd7b2
jne 0x405e25
cmp dword [0x50f338], 0
jbe 0x405e25
mov eax, 0x50f32c
call dword [0x50f348]
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 0x405e88
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50a030], 0
jne 0x405e79
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406008
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 [0x50a034], 0
je 0x40602e
mov edx, esi
mov eax, ebx
call dword [0x50a034]
jmp 0x40603d
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x50f055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fd0
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 0x4088e8
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 0x408a4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a68
cmp si, word [0x50a7dc]
jb 0x408982
cmp si, word [0x50a9dc]
ja 0x408982
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408982
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x50a7dc]
jae 0x40895c
mov edi, ebx
dec edi
jmp 0x40897d
cmp si, word [ebx*8 + 0x50a7dc]
jbe 0x40896c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40897d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x50a7e0]
call fcn.004087f8
jmp 0x408982
cmp edi, dword [ebp - 0xc]
jae 0x408946
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408a31
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a31
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.00406c50
push dword [ebp - 0x164]
push 0x408a6c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c50
push dword [ebp - 0x168]
push 0x408a7c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c50
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a56
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a60
ret
Function at 0x408c08
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 0x408d0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x511b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x511b74]
jne 0x408c54
mov eax, esi
mov edx, 0x511b78
mov ecx, 0x55
call fcn.00406c50
push 0x511b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408cf7
push 0x511b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406a68
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408cc5
cmp byte [0x511b58], 0
je 0x408c8a
mov edx, esi
mov eax, ebx
call fcn.00408ae8
jmp 0x408cc5
mov edx, esi
mov eax, ebx
call fcn.004088e8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408cc5
cmp dword [esi], 0
je 0x408cae
mov eax, esi
mov edx, 0x408d28
call fcn.00406e64
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004088e8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e64
push 0x511b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x511b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406af4
push eax
push 0x511b78
call sub.kernel32.dll_lstrcpynW
push 0x511b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d14
lea eax, [ebp - 4]
call fcn.00406a58
ret
Function at 0x408f4c
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.00406a50
xor eax, eax
push ebp
push 0x409131
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408f8c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408fa6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406af4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40911b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409140
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409035
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409140
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409035
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409174
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409035
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40911b
xor eax, eax
push ebp
push 0x409114
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d50
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 0x4090a4
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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.00406c14
jmp 0x4090ef
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4091e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4090ef
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4091e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40911b
cmp dword [ebp - 8], 0
je 0x40910a
mov eax, dword [ebp - 8]
call fcn.004041f0
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 0x409138
lea eax, [ebp - 4]
call fcn.00406a58
ret
Function at 0x4093fc
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.00406a50
mov eax, dword [ebp - 0x21c]
call fcn.00406a50
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40959b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406a68
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406af4
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 0x40949c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4094ae
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409499
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409567
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 0x4094d7
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.00408f4c
cmp dword [ebp - 0x220], 0
je 0x40950f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004092f0
pop ecx
mov ebx, eax
jmp 0x409567
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408c08
mov eax, dword [ebp - 0x224]
call fcn.004092f0
pop ecx
mov ebx, eax
test bl, bl
jne 0x40955a
cmp byte [0x511b58], 0
jne 0x40955a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408c08
mov eax, dword [ebp - 0x228]
call fcn.004092f0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409567
push ebp
call fcn.004093a0
pop ecx
mov ebx, eax
test bl, bl
je 0x40957d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406c50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095a2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406a60
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x511c50
push 0xa
push 0x40cf4c
mov eax, dword [0x511c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cedc
call fcn.00419ed8
push ebx
mov eax, dword [0x511c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cef3
call fcn.00419ed8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cf05
call fcn.00419ed8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x511c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x511c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x511c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x511c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x511c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x511c68], edx
pop esi
pop ebx
ret

Function at 0x411d54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411dfd
test eax, edx
je 0x411e00
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411d7d
push edx
mov edx, eax
mov eax, esp
call fcn.00406c6c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411d93
push eax
lea eax, [esp + 8]
call fcn.00406c6c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411da2
movzx eax, word [eax]
sub eax, ecx
jmp 0x411dc9
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 0x411de3
add ecx, 4
js 0x411dba
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411de0
push eax
mov eax, ecx
mov edx, 2
call fcn.004060a8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411dc7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411dc9
xor eax, eax
ret
test eax, eax
je 0x411e10
test edx, edx
jne 0x411d64
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406af4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41307a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41309b
cmp ebx, 3
je 0x41309b
cmp ebx, 0x7b
je 0x41309b
mov eax, esi
call fcn.0041301c
test al, al
jne 0x41309f
xor eax, eax
jmp 0x4130a1
mov al, 1
pop esi
pop ebx
ret

Function at 0x4130a4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406af4
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4130c6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x416fbc
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 0x416ff5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406ba4
jmp 0x416ffe
mov eax, ebx
mov edx, esi
call fcn.00406a68
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417008
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 0x41702a
movzx eax, word [esp]
jmp 0x41702c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4177bc
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 0x4178e1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004175cc
mov esi, eax
mov eax, dword [0x50e56c]
cmp byte [eax], 0
je 0x417889
mov eax, dword [0x50e1d4]
call fcn.00404698
call fcn.0040433c
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 [0x417794]
call fcn.004082e4
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 0x4178fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4178c5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x50e150]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x511c40]
call fcn.004083d8
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 0x4178e8
lea eax, [ebp - 4]
mov edx, dword [0x417794]
call fcn.004082f0
ret