joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41d054], 0
je 0x40612f
cmp word [0x41d340], 0xd7b2
jne 0x4060f1
cmp dword [0x41d348], 0
jbe 0x4060f1
mov eax, 0x41d33c
call dword [0x41d358]
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, 0x40615c
call fcn.00406840
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x41b026], 0
jne 0x40614b
push 0
push 0x41b9a2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407990
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 0x407af5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406354
cmp si, word [0x41b9e0]
jb 0x407a28
cmp si, word [0x41bbe0]
ja 0x407a28
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407a28
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41b9e0]
jae 0x407a02
mov edi, ebx
dec edi
jmp 0x407a23
cmp si, word [ebx*8 + 0x41b9e0]
jbe 0x407a12
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407a23
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41b9e4]
call fcn.004078b0
jmp 0x407a28
cmp edi, dword [ebp - 8]
jae 0x4079ec
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x407ad7
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x407ad7
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.0040697c
push dword [ebp - 0x160]
push 0x407b10
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040697c
push dword [ebp - 0x164]
push 0x407b20
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040697c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406b34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407afc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004063b4
ret
Function at 0x407ca8
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 0x407dac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41fb84
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x41fb9c]
jne 0x407cf4
mov eax, esi
mov edx, 0x41fb9e
mov ecx, 0x55
call fcn.0040697c
push 0x41fb84
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x407d96
push 0x41fb84
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00406354
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x407d63
cmp byte [0x41fb80], 0
je 0x407d28
mov edx, esi
mov eax, ebx
call fcn.00407b8c
jmp 0x407d63
mov edx, esi
mov eax, ebx
call fcn.00407990
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407d63
cmp dword [esi], 0
je 0x407d4c
mov eax, esi
mov edx, 0x407dc4
call fcn.00406a54
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00407990
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406a54
push 0x41fb84
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x41fb9c], bx
mov eax, dword [esi]
call fcn.004068e8
mov ecx, eax
mov eax, 0x41fb9e
mov edx, 0xaa
call fcn.00407810
push 0x41fb84
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407db3
lea eax, [ebp - 4]
call fcn.00406354
ret
Function at 0x407fdc
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.00406438
xor eax, eax
push ebp
push 0x408201
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40801c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x408036
mov eax, dword [ebp - 4]
call fcn.004068e8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407810
cmp word [ebp - 0x21a], 0
je 0x4081eb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408210
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408105
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408210
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408105
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40824c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408105
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40824c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408105
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408280
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408105
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4082b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4081eb
xor eax, eax
push ebp
push 0x4081e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407dec
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 0x408174
mov eax, dword [ebp - 0x10]
call fcn.00404030
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.00406940
jmp 0x4081bf
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4082f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4081bf
mov eax, dword [ebp - 0x10]
call fcn.00404030
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4082f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406940
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4081eb
cmp dword [ebp - 8], 0
je 0x4081da
mov eax, dword [ebp - 8]
call fcn.0040404c
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 0x408208
lea eax, [ebp - 4]
call fcn.00406354
ret
Function at 0x4084f0
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.00406438
xor eax, eax
push ebp
push 0x4085b0
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.0040697c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406aac
mov eax, dword [ebx]
call fcn.004083b8
test al, al
jne 0x40858d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040697c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406aac
mov eax, dword [ebx]
call fcn.004083b8
test al, al
jne 0x40858d
mov eax, ebx
call fcn.00406354
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4085b7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004063b4
lea eax, [ebp - 4]
call fcn.00406354
ret

Function at 0x414c84
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 0x414cbd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406490
jmp 0x414cc6
mov eax, ebx
mov edx, esi
call fcn.0040660c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414cd0
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 0x414cf2
movzx eax, word [esp]
jmp 0x414cf4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x415c7c
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 0x415da1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00415a84
mov esi, eax
mov eax, dword [0x41c788]
cmp byte [eax], 0
je 0x415d49
mov eax, dword [0x41c6a0]
call fcn.00404868
call fcn.00404184
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 [0x415c4c]
call fcn.004072c4
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 0x415dbc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x415d85
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41c67c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41fc4c]
call fcn.004074b0
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 0x415da8
lea eax, [ebp - 4]
mov edx, dword [0x415c4c]
call fcn.004073e8
ret
Function at 0x416a08
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x416b08
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406654
lea eax, [ebp - 4]
call fcn.004067c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068e8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x416af2
mov eax, ebx
call fcn.00404030
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x416aeb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068e8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x416ad5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x416b1c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x416ad5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416af2
mov eax, dword [ebp - 0x10]
call fcn.0040404c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416b0f
lea eax, [ebp - 4]
call fcn.00406354
ret

Function at 0x4178bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.KERNEL32.DLL_GetCommandLineW_1
mov ebx, eax
xor eax, eax
movzx edx, word [ebx]
sub dx, 1
jb 0x4178ef
sub dx, 0x20
jb 0x4178df
dec dx
je 0x4178e5
jmp 0x4178e7
test al, al
je 0x4178ef
jmp 0x4178e7
xor al, 1
add ebx, 2
jmp 0x4178c9
add ebx, 2
mov edx, 0x41790c
movzx eax, word [ebx]
call fcn.00412cfc
test al, al
jne 0x4178ec
mov eax, esi
mov edx, ebx
call fcn.00406940
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004068e8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4179d9
test al, 0x10
je 0x4179dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x417ed4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x417edd
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push esi
xor ecx, ecx
mov dword [ebp - 0x4010], ecx
mov dword [ebp - 0x400c], ecx
mov dword [ebp - 0x4008], ecx
mov dword [ebp - 0x4004], ecx
mov esi, edx
xor edx, edx
push ebp
push 0x417ffe
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, 0x2000
lea edx, [ebp - 0x4000]
mov word [edx], 0x20
add edx, 2
dec ecx
jne 0x417f23
sub eax, 1
jb 0x417f3d
je 0x417f73
dec eax
je 0x417fac
jmp 0x417fc6
lea eax, [ebp - 0x4000]
push eax
push 0x2000
call sub.KERNEL32.DLL_GetTempPathW
lea eax, [ebp - 0x4004]
lea edx, [ebp - 0x4000]
mov ecx, 0x2000
call fcn.00406490
mov eax, dword [ebp - 0x4004]
mov edx, esi
call fcn.00412d0c
jmp 0x417fc6
lea eax, [ebp - 0x4000]
push eax
push 0
push 0
push 0x1c
push 0
call sub.SHFolder.dll_SHGetFolderPathW
lea eax, [ebp - 0x4008]
lea edx, [ebp - 0x4000]
mov ecx, 0x2000
call fcn.00406490
mov eax, dword [ebp - 0x4008]
mov edx, esi
call fcn.00412d0c
jmp 0x417fc6
lea edx, [ebp - 0x400c]
xor eax, eax
call fcn.00404390
mov eax, dword [ebp - 0x400c]
mov edx, esi
call fcn.00413450
lea edx, [ebp - 0x4010]
mov eax, dword [esi]
call fcn.00416c78
mov edx, dword [ebp - 0x4010]
mov eax, esi
call fcn.0040660c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418005
lea eax, [ebp - 0x4010]
mov edx, 4
call fcn.004063b4
ret

Function at 0x41800c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x418128
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0xc
call fcn.004048d8
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.004048d8
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
cmp bl, 1
cmc
sbb eax, eax
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, esi
call fcn.004068e8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
jne 0x4180e8
lea edx, [ebp - 4]
mov eax, 0x417ec4
call fcn.00408a7c
xor eax, eax
push ebp
push 0x4180e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x41c6a0]
mov edx, dword [ebp - 4]
call fcn.00404e34
call fcn.00404f34
call fcn.00404184
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418112
lea eax, [ebp - 4]
call fcn.00406354
ret
push 0xffffffffffffffff
mov eax, dword [ebp - 0x68]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
mov eax, dword [ebp - 0x68]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 0x64]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41812f
lea eax, [ebp - 4]
call fcn.00406354
ret
Function at 0x4182a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00406438
xor eax, eax
push ebp
push 0x418355
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x102
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004068e8
push eax
call sub.KERNEL32.DLL_CreateFileW_1
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x38], ebx
xor eax, eax
push ebp
push 0x418338
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
add eax, 0x34
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41833f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
Function at 0x418364
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00406438
xor eax, eax
push ebp
push 0x418546
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 5
mov eax, dword [ebp - 4]
call fcn.004068e8
push eax
mov eax, dword [0x41fc4c]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x41851d
push esi
mov eax, dword [0x41fc4c]
push eax
call sub.KERNEL32.DLL_LoadResource
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
je 0x41851d
lea edx, [ebp - 0xc]
mov eax, 0x418564
call fcn.00418268
mov edx, dword [ebp - 0xc]
lea eax, [edi + 0x3c]
mov ecx, dword [0x417af8]
call fcn.0040742c
mov eax, dword [edi + 8]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [0x41fc4c]
push eax
call sub.KERNEL32.DLL_SizeofResource
xor edx, edx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
mov eax, dword [edi + 0x28]
call fcn.00404030
mov dword [edi + 0x40], eax
push 0x20
lea eax, [edi + 0x18]
mov ecx, 1
mov edx, dword [0x417af8]
call fcn.004072c4
add esp, 4
push 0x20
lea eax, [edi + 0x1c]
mov ecx, 1
mov edx, dword [0x417af8]
call fcn.004072c4
add esp, 4
cmp byte [ebp - 5], 0
je 0x4184fe
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x40]
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
jmp 0x4184c2
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x10]
mov ecx, 0x20
call fcn.004041d4
lea ecx, [ebp - 0x10]
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x18]
call fcn.00417e14
mov edx, dword [ebp - 0x10]
lea eax, [edi + 0x1c]
mov ecx, dword [0x417af8]
call fcn.0040742c
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov ecx, 0x20
call fcn.004041d4
add dword [edi + 0x20], 0x20
adc dword [edi + 0x24], 0
add dword [edi + 0x10], 0x20
add dword [edi + 0x14], 0x20
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
sub eax, dword [edi + 0x20]
sbb edx, dword [edi + 0x24]
cmp edx, 0
jne 0x4184da
cmp eax, 0x20
jae 0x418473
jmp 0x4184dc
jge 0x418473
mov eax, dword [edi + 0x28]
mov ecx, eax
add ecx, dword [edi + 0x40]
dec ecx
mov dword [edi + 0x10], ecx
movzx eax, byte [ecx]
mov byte [edi + 0x30], al
mov bl, 1
movzx eax, al
mov edx, dword [edi + 0x28]
sub edx, eax
dec edx
mov dword [edi + 0x44], edx
jmp 0x418514
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x28]
call fcn.004041d4
mov bl, 1
mov eax, dword [edi + 0x28]
mov dword [edi + 0x44], eax
mov eax, dword [edi + 8]
push eax
call sub.KERNEL32.DLL_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41854d
lea eax, [ebp - 0x10]
mov edx, dword [0x417af8]
mov ecx, 2
call fcn.00406c7c
lea eax, [ebp - 4]
call fcn.00406354
ret
Function at 0x4062ba
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d74], 0
push esi
jne 0x4062f1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4062cb
mov dword [ecx*4 + 0x426d70], eax
inc ecx
cmp ecx, 0x100
jl 0x4062c6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406322
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d70]
xor eax, esi
inc ecx
dec edx
jne 0x406304
pop edi
not eax
pop esi
ret 0xc

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
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
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x100035c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
lea edi, [ebp - 0x1c]
mov ecx, 7
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100d3824]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x100db061
call fcn.100ada70
mov dword [0x100d3a5c], 0
mov esi, esp
push 0
push 0x100036b0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp esi, esp
call fcn.100ada40
mov esi, esp
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [0x100d3a5c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp esi, esp
call fcn.100ada40
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [0x100d399c], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [0x100d3998], eax
mov eax, dword [0x100d3998]
sub eax, 0x1d
mov dword [0x100d3998], eax
mov eax, dword [0x100d399c]
sub eax, 0x37
mov dword [0x100d399c], eax
mov eax, dword [0x100d3a5c]
push edx
mov ecx, ebp
push eax
lea edx, [0x10003690]
call fcn.100ad9e0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100adab0
add esp, 0xdc
cmp ebp, esp
call fcn.100ada40
mov esp, ebp
pop ebp
ret

Function at 0x10003920
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x100db093
call fcn.100ada70
mov dword [0x100d3d1c], 0
mov esi, esp
push 0
push 0x10003860
call dword [sym.imp.USER32.dll_EnumWindows]
cmp esi, esp
call fcn.100ada40
mov eax, dword [0x100d3d1c]
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.100ada40
mov esp, ebp
pop ebp
ret

Function at 0x10003bd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x100db093
call fcn.100ada70
mov esi, esp
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.100ada40
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100ada40
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.100ada40
mov esp, ebp
pop ebp
ret 8