joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fbb30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014f4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101bb518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x101caba8]
test eax, eax
je 0x100fbbaa
lea ecx, [ebp - 0x30]
push ecx
push 1
lea ecx, [ebp + 8]
push ecx
call eax
jmp 0x100fbbba
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
test esi, esi
js 0x100fbc88
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [0x101cabac]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x2c]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x100fbbf9
lea esi, [ebp - 0x10]
push esi
push ecx
push edx
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 8]
call eax
jmp 0x100fbc0e
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0xc0000034
je 0x100fbc86
test esi, esi
jns 0x100fbcae
cmp esi, 0x80000005
je 0x100fbc30
cmp esi, 0xc0000023
jne 0x100fbc88
push dword [ebp - 0x10]
lea ecx, [edi + 0x24]
call fcn.100586a0
mov esi, eax
test esi, esi
js 0x100fbc88
mov eax, dword [0x101cabac]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x2c]
test eax, eax
je 0x100fbc63
lea esi, [ebp - 0x10]
push esi
push ecx
push edx
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 8]
call eax
jmp 0x100fbc78
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x100fbcae
cmp esi, 0xc0000034
jne 0x100fbc88
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x100fbcce
cmp byte [0x101ca990], 0
jne 0x100fbcce
mov ecx, dword [0x101cab8c]
push eax
test ecx, ecx
je 0x100fbcc1
call ecx
jmp 0x100fbcc7
mov eax, dword [edi + 0x2c]
test dword [eax + 4], 0x10000
je 0x100fbc86
mov esi, 0xc0000034
jmp 0x100fbc88
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp + 8], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x101116cd
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x10151d44
call fcn.10119a04
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x101117c5
cmp byte [esi + 0x46], bl
je 0x101117c5
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x10111709
xor al, al
jmp 0x101117c7
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.100586a0
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x10111736
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1011175d
dec eax
je 0x10111761
dec eax
dec eax
je 0x101117b3
xor bl, bl
jmp 0x101117b5
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x10111771
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x10111799
cmp eax, 0x10
jae 0x10111780
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.1011d718
add esp, 0x10
cmp ebx, eax
jne 0x10111759
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x101117b3
test ebx, ebx
jne 0x1011172a
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.100586a0
jmp 0x10111724
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.100586a0
mov al, bl
jmp 0x101117c7
mov al, 1
call fcn.101199c2
ret
Function at 0x10111be0
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x10151d96
call fcn.10119a04
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x10111c02
xor eax, eax
jmp 0x10111d8a
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x10111c2e
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x10111c2e
dec dword [edx]
mov ax, bx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x10111d8a
cmp dword [edi + 0x50], 0
je 0x10111d87
mov ecx, edi
call fcn.1011186e
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x10111c61
push dword [edi + 0x50]
push ebx
call fcn.100586a0
pop ecx
pop ecx
test al, al
je 0x10111d87
movzx esi, bx
jmp 0x10111d87
push ecx
movzx eax, bx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0xf
call fcn.100586a0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jae 0x10111c94
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp ecx, 0x10
jae 0x10111ca2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x48]
push eax
call dword [edx + 0x1c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x10111d7b
cmp eax, 1
jg 0x10111d5f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jb 0x10111cef
mov dword [ebp - 0x2c], eax
jmp 0x10111cf5
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
je 0x10111d27
cmp ecx, 0x10
jae 0x10111d08
lea eax, [ebp - 0x28]
push dword [edi + 0x50]
push edx
push 1
push eax
call fcn.1011d718
mov edx, dword [ebp - 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x10111d57
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea ebx, [ebp - 0x34]
mov byte [edi + 0x46], 1
cmp dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 8]
jne 0x10111d54
test edx, edx
jne 0x10111c8c
cmp dword [ebp - 0x18], 0x20
jae 0x10111d5a
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.100586a0
jmp 0x10111c83
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x10111d78
cmp eax, 3
jne 0x10111d7b
push dword [edi + 0x50]
push dword [ebp - 0x34]
call fcn.100586a0
pop ecx
pop ecx
test al, al
je 0x10111d78
movzx esi, bx
movzx esi, si
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.100586a0
mov ax, si
call fcn.101199c2
ret 4
Function at 0x403f9c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405ab4
test esi, esi
jne 0x403fd2
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.00405bf0
jmp 0x403ff0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403e80
mov edi, eax
test esi, esi
je 0x403ff0
cmp dword [ebx], 0
je 0x403ff0
dec esi
jmp 0x403fd9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43a04c], 0
je 0x40589b
cmp word [0x43a338], 0xd7b2
jne 0x40585d
cmp dword [0x43a340], 0
jbe 0x40585d
mov eax, 0x43a334
call dword [0x43a350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4058c8
call fcn.00405f54
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x435022], 0
jne 0x4058b7
push 0
push 0x43599a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406ff4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407159
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ab4
cmp si, word [0x4359d8]
jb 0x40708c
cmp si, word [0x435bd8]
ja 0x40708c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40708c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4359d8]
jae 0x407066
mov edi, ebx
dec edi
jmp 0x407087
cmp si, word [ebx*8 + 0x4359d8]
jbe 0x407076
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407087
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4359dc]
call fcn.00406f14
jmp 0x40708c
cmp edi, dword [ebp - 8]
jae 0x407050
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40713b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40713b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x160]
push 0x407174
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x164]
push 0x407184
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407160
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405b14
ret
Function at 0x40730c
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 0x40740f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x43cb7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x43cb94]
jne 0x407358
mov eax, esi
mov edx, 0x43cb96
mov ecx, 0x55
call fcn.00406090
push 0x43cb7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4073f9
push 0x43cb7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405ab4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4073c7
cmp byte [0x43cb78], 0
je 0x40738c
mov edx, esi
mov eax, ebx
call fcn.004071f0
jmp 0x4073c7
mov edx, esi
mov eax, ebx
call fcn.00406ff4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4073c7
cmp dword [esi], 0
je 0x4073b0
mov eax, esi
mov edx, 0x407428
call fcn.00406168
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406ff4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406168
push 0x43cb7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x43cb94], bx
push 0xaa
mov eax, dword [esi]
call fcn.00405ffc
push eax
push 0x43cb96
call sub.kernel32.dll_lstrcpynW
push 0x43cb7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407416
lea eax, [ebp - 4]
call fcn.00405ab4
ret
Function at 0x407b58
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b98
xor eax, eax
push ebp
push 0x407c18
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406090
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004061c0
mov eax, dword [ebx]
call fcn.00407a20
test al, al
jne 0x407bf5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406090
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004061c0
mov eax, dword [ebx]
call fcn.00407a20
test al, al
jne 0x407bf5
mov eax, ebx
call fcn.00405ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c1f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405b14
lea eax, [ebp - 4]
call fcn.00405ab4
ret

Function at 0x408190
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 0x414ff4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00405ffc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41505e
test ah, 4
je 0x415057
test bl, bl
jne 0x41501c
mov al, 1
jmp 0x415085
test al, 0x10
je 0x415024
xor eax, eax
jmp 0x415085
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x415048
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x415085
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x415085
test al, 0x10
sete al
jmp 0x415085
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41507f
cmp ebx, 3
je 0x41507f
cmp ebx, 0x7b
je 0x41507f
mov eax, esi
call fcn.00414fb4
test al, al
jne 0x415083
xor eax, eax
jmp 0x415085
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41508c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00405ffc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x415133
test esi, 0x400
jne 0x4150c8
test esi, 0x10
setne bl
jmp 0x415157
cmp byte [esp], 0
je 0x4150fc
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x415157
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x415157
test esi, 0x10
je 0x415108
mov bl, 1
jmp 0x415157
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41512f
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x415157
mov bl, 1
jmp 0x415157
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x415151
cmp eax, 3
je 0x415151
cmp eax, 0x7b
je 0x415151
cmp eax, 0x35
je 0x415151
cmp eax, 0x15
jne 0x415155
xor ebx, ebx
jmp 0x415157
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x415264
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00405ffc
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4152b9
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4152b3
test ah, 4
je 0x4152b3
test al, 0x10
je 0x4152b3
mov eax, esi
call fcn.00405ffc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4152b9
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x416af0
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 0x416b29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405bf0
jmp 0x416b32
mov eax, ebx
mov edx, esi
call fcn.00405d6c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416b3c
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 0x416b5e
movzx eax, word [esp]
jmp 0x416b60
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x417838
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 0x41795d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417640
mov esi, eax
mov eax, dword [0x439414]
cmp byte [eax], 0
je 0x417905
mov eax, dword [0x43933c]
call fcn.004044b8
call fcn.00403d30
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 [0x417808]
call fcn.00406a90
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 0x417978
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417941
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x439314]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x43cc44]
call fcn.00406b48
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 0x417964
lea eax, [ebp - 4]
mov edx, dword [0x417808]
call fcn.00406a9c
ret

Function at 0x418a1c
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.00405e68
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408170
mov edi, eax
cmp edi, 0x104
jbe 0x4189c3
mov eax, edi
add eax, eax
call fcn.00403bdc
mov esi, eax
jmp 0x4189c5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408170
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418a00
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 0x4189ea
mov eax, esp
cmp esi, eax
je 0x418a0d
mov eax, esi
call fcn.00403bf8
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 0x418a48
cmp bl, 0
je 0x418a44
cmp bl, 0x41
jl 0x418a3f
cmp bl, 0x5a
jg 0x418a3f
or bl, 0x20
xor al, bl
inc esi
jmp 0x418a23
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418984

Function at 0x418c68
Capabilities:
Get geographical location

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00405ab4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405ffc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x418f99
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405bf0
jmp 0x418fb2
mov edx, ebx
dec edx
mov eax, esi
call fcn.004060e8
push ebx
mov eax, dword [esi]
call fcn.00405ffc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c204
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x43720c
test edx, edx
jne 0x41c223
xor eax, eax
jmp 0x41c341
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x41c240
push esi
push edx
push eax
call fcn.0041c348
add esp, 0xc
jmp 0x41c341
push esi
push edx
push eax
call fcn.0041c608
add esp, 0xc
jmp 0x41c341
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x430f88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov edi, eax
mov dword [ebx + 0x14], edi
push edi
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
push eax
push esi
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebx + 0x18]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, ebx
pop ecx
call fcn.00430fdc
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x431230
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4312c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4312e0
push ebx
push 0x4312f0
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00406248
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00404528
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405ffc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4312af
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4312cc
lea eax, [ebp - 4]
call fcn.00405ab4
ret