joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c650
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x80], ecx
xor ecx, ecx
mov dword [ebx], ecx
mov dword [ebp - 0x7c], eax
mov dword [edi], ecx
test eax, eax
je 0x41c74a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41c74a
push 0x68
push ecx
lea eax, [ebp - 0x70]
push eax
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
and dword [ebp - 0x6c], 0
add esp, 0xc
and dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
push esi
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.0041c150
lea ecx, [ebp - 0x70]
call fcn.0041c1f7
mov ecx, dword [ebp - 0x80]
lea edx, [ebp - 0x78]
and dword [ebp - 0x74], 0
and dword [ebp - 0x78], 0
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [ebp - 0x7c]
call dword [eax + 4]
mov esi, eax
test esi, esi
js 0x41c726
push 0x10
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0041c5c3
test al, al
je 0x41c71d
push dword [ebp - 0x78]
push dword [ebp - 0x74]
push edi
call fcn.0041c5c3
test al, al
jne 0x41c722
mov esi, 0x80004005
test esi, esi
jns 0x41c73e
push dword [ebx]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
and dword [ebx], 0
push dword [edi]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
and dword [edi], 0
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x41c777
mov esi, dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
push 1
call esi
push 1
mov dword [ebx], eax
call esi
pop ecx
pop ecx
mov dword [edi], eax
mov esi, 0x8007000e
mov ecx, dword [ebx]
test ecx, ecx
je 0x41c777
test eax, eax
je 0x41c777
mov byte [ecx], 0
xor esi, esi
mov eax, dword [edi]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41ce71
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x41d738
call fcn.0041d434
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
mov esi, ebx
mov edx, 0x41e7a4
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41ccad
cmp eax, edi
jne 0x41ccc0
xor esi, esi
inc esi
cmp dword [0x41e7a8], 1
jne 0x41cccd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x41cd03
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41cc95
cmp dword [0x41e7a8], ebx
jne 0x41ccf9
mov dword [0x41e7a8], 1
push 0x40102c
push 0x401020
call fcn.0041ce48
pop ecx
pop ecx
test eax, eax
je 0x41cd03
jmp 0x41ce31
mov dword [0x41e304], 1
cmp dword [0x41e7a8], 1
jne 0x41cd27
push 0x40101c
push 0x401004
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x41e7a8], 2
test esi, esi
jne 0x41cd34
xor eax, eax
mov ecx, 0x41e7a4
xchg dword [ecx], eax
cmp dword [0x41e7ac], 0
je 0x41cd56
push 0x41e7ac
call fcn.0041d260
pop ecx
test eax, eax
je 0x41cd56
push ebx
push 2
push ebx
call dword [0x41e7ac]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x41ce31
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x41cdc5
test ax, ax
je 0x41cd7f
test edx, edx
jne 0x41cdc5
movzx eax, word [ecx]
test ax, ax
je 0x41cd94
cmp ax, si
ja 0x41cd94
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x41cd7f
test byte [ebp - 0x3c], 1
je 0x41cda0
movzx eax, word [ebp - 0x38]
jmp 0x41cda3
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x41e300], eax
cmp dword [0x41e318], 0
jne 0x41ce0d
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x41cdd6
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x41cd6e
cmp dword [0x41e304], 0
jne 0x41ce21
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x41e300]
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ce3d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0041d479
ret
call fcn.0041d368
jmp 0x41cc5e

Function at 0x41d153
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41d760
call fcn.0041d434
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d1b3
cmp eax, 0xffffffff
je 0x41d1b3
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41d1ac
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41d1ac
cmp edx, 0x10000000
jae 0x41d1ac
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41d1a9
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0041d479
ret 4
Function at 0x41d210
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41d24e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41d246
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41d250
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41d236
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41d330
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x41d346
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x41d361
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4045a8
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.00406920
test esi, esi
jne 0x4045e0
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.00406a5c
jmp 0x4045fe
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x4045fe
cmp dword [ebx], 0
je 0x4045fe
dec esi
jmp 0x4045e7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e0050], 0
je 0x405edd
cmp word [0x4e032c], 0xd7b2
jne 0x405ea5
cmp dword [0x4e0334], 0
jbe 0x405ea5
mov eax, 0x4e0328
call dword [0x4e0344]
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 0x405f08
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4dc030], 0
jne 0x405ef9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406088
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 [0x4dc034], 0
je 0x4060ae
mov edx, esi
mov eax, ebx
call dword [0x4dc034]
jmp 0x4060bd
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4e0051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406050
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 0x408708
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 0x40886f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406920
cmp si, word [0x4dc7dc]
jb 0x4087a2
cmp si, word [0x4dc9dc]
ja 0x4087a2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4087a2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4dc7dc]
jae 0x40877c
mov edi, ebx
dec edi
jmp 0x40879d
cmp si, word [ebx*8 + 0x4dc7dc]
jbe 0x40878c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40879d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4dc7e0]
call fcn.00408618
jmp 0x4087a2
cmp edi, dword [ebp - 0xc]
jae 0x408766
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408851
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408851
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.00406b20
push dword [ebp - 0x164]
push 0x40888c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406b20
push dword [ebp - 0x168]
push 0x40889c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406b20
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408876
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406918
ret
Function at 0x408a28
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 0x408b2d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e2b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e2b70]
jne 0x408a74
mov eax, esi
mov edx, 0x4e2b74
mov ecx, 0x55
call fcn.00406b20
push 0x4e2b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408b17
push 0x4e2b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406920
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ae5
cmp byte [0x4e2b54], 0
je 0x408aaa
mov edx, esi
mov eax, ebx
call fcn.00408908
jmp 0x408ae5
mov edx, esi
mov eax, ebx
call fcn.00408708
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408ae5
cmp dword [esi], 0
je 0x408ace
mov eax, esi
mov edx, 0x408b48
call fcn.00406d34
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408708
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406d34
push 0x4e2b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e2b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004069ac
push eax
push 0x4e2b74
call sub.kernel32.dll_lstrcpynW
push 0x4e2b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b34
lea eax, [ebp - 4]
call fcn.00406910
ret
Function at 0x408d6c
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.00406908
xor eax, eax
push ebp
push 0x408f51
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408dac
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408dc6
push 0x105
mov eax, dword [ebp - 4]
call fcn.004069ac
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408f3b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408e55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408fc8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408f3b
xor eax, eax
push ebp
push 0x408f34
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408b70
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 0x408ec4
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.00406acc
jmp 0x408f0f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409008
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408f0f
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 0x409008
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406acc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f3b
cmp dword [ebp - 8], 0
je 0x408f2a
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 0x408f58
lea eax, [ebp - 4]
call fcn.00406910
ret
Function at 0x40921c
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.00406908
mov eax, dword [ebp - 0x21c]
call fcn.00406908
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4093bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406920
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004069ac
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 0x4092bc
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4092ce
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4092b9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409387
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 0x4092f7
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.00408d6c
cmp dword [ebp - 0x220], 0
je 0x40932f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409110
pop ecx
mov ebx, eax
jmp 0x409387
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408a28
mov eax, dword [ebp - 0x224]
call fcn.00409110
pop ecx
mov ebx, eax
test bl, bl
jne 0x40937a
cmp byte [0x4e2b54], 0
jne 0x40937a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408a28
mov eax, dword [ebp - 0x228]
call fcn.00409110
pop ecx
mov ebx, eax
test bl, bl
jne 0x409387
push ebp
call fcn.004091c0
pop ecx
mov ebx, eax
test bl, bl
je 0x40939d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406b20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093c2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406918
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4e2c4c
push 0xa
push 0x40cd64
mov eax, dword [0x4e2c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ccf4
call fcn.0041a928
push ebx
mov eax, dword [0x4e2c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cd0b
call fcn.0041a928
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cd1d
call fcn.0041a928
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4e2c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4e2c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4e2c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4e2c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4e2c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4e2c64], edx
pop esi
pop ebx
ret

Function at 0x411f50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411ff9
test eax, edx
je 0x411ffc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411f79
push edx
mov edx, eax
mov eax, esp
call fcn.00406b3c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411f8f
push eax
lea eax, [esp + 8]
call fcn.00406b3c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411f9e
movzx eax, word [eax]
sub eax, ecx
jmp 0x411fc5
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 0x411fdf
add ecx, 4
js 0x411fb6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411fdc
push eax
mov eax, ecx
mov edx, 2
call fcn.00406128
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411fc3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411fc5
xor eax, eax
ret
test eax, eax
je 0x41200c
test edx, edx
jne 0x411f60
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004069ac
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413242
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413263
cmp ebx, 3
je 0x413263
cmp ebx, 0x7b
je 0x413263
mov eax, esi
call fcn.004131e4
test al, al
jne 0x413267
xor eax, eax
jmp 0x413269
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004069ac
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413285
test al, 0x10
jne 0x413289
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x41793c
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 0x417975
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406a5c
jmp 0x41797e
mov eax, ebx
mov edx, esi
call fcn.00406920
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x41813c
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 0x418261
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417f4c
mov esi, eax
mov eax, dword [0x4df944]
cmp byte [eax], 0
je 0x418209
mov eax, dword [0x4df604]
call fcn.004046fc
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 [0x418114]
call fcn.00408104
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 0x41827c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x418245
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4df584]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e2c3c]
call fcn.004081f8
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 0x418268
lea eax, [ebp - 4]
mov edx, dword [0x418114]
call fcn.00408110
ret
Function at 0x419418
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 0x4194ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406974
lea eax, [ebp - 4]
call fcn.00407324
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004069ac
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4194d8
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4194d1
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.004069ac
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4194bb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x419500
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4194bb
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 0x4194d8
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4194f5
lea eax, [ebp - 4]
call fcn.00406910
ret

Function at 0x41a7d0
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.00406438
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41a77a
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x41a77c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41a7b5
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 0x41a79f
mov eax, esp
cmp esi, eax
je 0x41a7c2
mov eax, esi
call fcn.004041f0
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 0x41a7fc
cmp bl, 0
je 0x41a7f8
cmp bl, 0x41
jl 0x41a7f3
cmp bl, 0x5a
jg 0x41a7f3
or bl, 0x20
xor al, bl
inc esi
jmp 0x41a7d7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41a73c