joyce8/EMBER2024-capa huggingface dataset:
Function at 0x72c660
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x72c6f3
mov dword [eax + 0x48], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x44], 0x5be0cd19
mov dword [eax + 0x40], 0x137e2179
xor eax, eax
ret
mov eax, 1
ret

Function at 0x72c7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x320
mov eax, 0xffffffc0
nop word cs:[eax + eax]
nop
movsd xmm0, qword [ecx + eax + 0x48]
movsd qword [esp + eax + 0x90], xmm0
add eax, 8
jne 0x72c810
mov dword [esp + 0x94], ecx
mov eax, 0xffffff80
mov ecx, dword [edx + eax + 0x80]
mov esi, dword [edx + eax + 0x84]
bswap esi
bswap ecx
mov dword [esp + eax + 0x11c], ecx
mov dword [esp + eax + 0x118], esi
add eax, 8
jne 0x72c830
mov eax, 0xfffffe00
nop word [eax + eax]
mov esi, dword [esp + eax + 0x308]
mov ecx, dword [esp + eax + 0x30c]
mov edi, ecx
shld edi, esi, 0xd
mov edx, esi
shld edx, ecx, 0xd
mov ebx, ecx
shld ebx, esi, 0x1a
xor ebx, edi
mov edi, ecx
shld edi, esi, 3
shld esi, ecx, 3
xor ebx, esi
mov dword [esp + 8], ebx
shr ecx, 6
xor ecx, edx
xor ecx, edi
mov edi, dword [esp + eax + 0x2a0]
mov edx, dword [esp + eax + 0x2a4]
mov esi, edx
shld esi, edi, 0x1f
mov ebx, edx
shld ebx, edi, 0x19
xor ebx, esi
mov esi, edx
shld esi, edi, 0x18
xor ebx, esi
mov esi, edi
shld esi, edx, 0x1f
shld edi, edx, 0x18
shr edx, 7
xor edx, esi
xor edx, edi
mov esi, dword [esp + eax + 0x298]
add esi, dword [esp + eax + 0x2e0]
mov edi, dword [esp + eax + 0x29c]
adc edi, dword [esp + eax + 0x2e4]
add esi, dword [esp + 8]
adc edi, ecx
add esi, ebx
adc edi, edx
mov dword [esp + eax + 0x318], esi
mov dword [esp + eax + 0x31c], edi
add eax, 8
jne 0x72c860
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], 0
nop word [eax + eax]
Function at 0x72d690
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
push edi
push esi
sub esp, 0xa0
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
push edi
push 0x20
push dword [esp + 0xc0]
call fcn.0072d460
add esp, 0xc
and byte [edi], 0xf8
mov al, byte [edi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
mov ebx, esp
push edi
push ebx
call fcn.00727780
add esp, 8
push ebx
push esi
call fcn.00727710
add esp, 0xa8
pop esi
pop edi
pop ebx
ret
Function at 0x406621
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c3c8
cmp edx, dword [eax]
je 0x406643
add eax, 8
inc ecx
cmp eax, 0x40c458
jl 0x406634
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c3c8]
jne 0x406771
mov eax, dword [0x40cf18]
cmp eax, 1
je 0x40674b
test eax, eax
jne 0x406674
cmp dword [0x40c204], 1
je 0x40674b
cmp edx, 0xfc
je 0x406771
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4066ab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402a10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402990
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4066ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402990
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a5cc
push edi
call fcn.00407a20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402a10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402a20
lea eax, [ebp - 0xa0]
push 0x40a5ac
push eax
call fcn.00402a20
push dword [esi + 0x40c3cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402a20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407991
add esp, 0x2c
pop edi
jmp 0x406771
lea eax, [ebp + 8]
lea esi, [esi + 0x40c3cc]
push 0
push eax
push dword [esi]
call fcn.00402990
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x438c9b
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
or eax, ebx
call fcn.00438cd3
sub esp, 4
mov dword [esp], eax
pop ebx
or ebx, eax
push 0xc59c1baa
pop eax
xor dword [esi], edx
mov ebx, ebx
add eax, eax
and eax, ebx
inc esi
sub eax, 0xe73e9ce5
cmp esi, ecx
jne fcn.00438c9b
mov ebx, 0xb67ac4d8
ret
Function at 0x4023b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
lea edi, [ebp - 0x160]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4953e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.0040f9c0
add esp, 0xc
mov dword [ebp - 0x9c], 0x94
mov dword [0x496ec0], 1
mov esi, esp
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call fcn.0040f930
test eax, eax
je 0x4024b2
cmp dword [ebp - 0x8c], 2
jne 0x4024b2
cmp dword [ebp - 0x98], 5
jne 0x40244b
cmp dword [ebp - 0x94], 0
jne 0x40244b
mov dword [0x496ec0], 2
jmp 0x4024b2
cmp dword [ebp - 0x98], 5
jne 0x402469
cmp dword [ebp - 0x94], 1
jne 0x402469
mov dword [0x496ec0], 3
jmp 0x4024b2
cmp dword [ebp - 0x98], 5
jne 0x402487
cmp dword [ebp - 0x94], 2
jne 0x402487
mov dword [0x496ec0], 4
jmp 0x4024b2
cmp dword [ebp - 0x98], 6
jb 0x4024b2
cmp dword [ebp - 0x90], 0x1b58
jae 0x4024a8
mov dword [0x496ec0], 5
jmp 0x4024b2
mov dword [0x496ec0], 6
push edx
mov ecx, ebp
push eax
lea edx, [0x4024e4]
call fcn.0040f8d0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f960
add esp, 0x160
cmp ebp, esp
call fcn.0040f930
mov esp, ebp
pop ebp
ret

Function at 0x4027f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea edi, [ebp - 0x108]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp esi, esp
call fcn.0040f930
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x40282d
jmp 0x4028ca
mov esi, esp
push 0x12c
push 0x2724
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp esi, esp
call fcn.0040f930
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x402853
jmp 0x4028ca
mov esi, esp
mov eax, dword [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.0040f930
mov dword [ebp - 0x14], eax
mov esi, esp
mov eax, dword [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.0040f930
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40288b
jmp 0x4028ca
mov esi, esp
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.0040f930
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4028a9
jmp 0x4028ca
mov esi, esp
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.0040f930
push edx
mov ecx, ebp
push eax
lea edx, [0x4028f0]
call fcn.0040f8d0
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x108
cmp ebp, esp
call fcn.0040f930
mov esp, ebp
pop ebp
ret
Function at 0x402960
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push ebx
push esi
push edi
lea edi, [ebp - 0xec]
mov ecx, 0x3b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4953e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 5
cmp dword [0x496ec0], 0
jne 0x4029ae
call fcn.004023b0
xor eax, eax
jne 0x4029a0
cmp dword [0x496ec0], 3
jg 0x4029c2
mov eax, 1
jmp 0x402a31
mov esi, esp
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp esi, esp
call fcn.0040f930
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402a2e
mov esi, esp
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp esi, esp
call fcn.0040f930
test eax, eax
jne 0x402a1b
mov dword [ebp - 0xc], 0
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, esp
call fcn.0040f930
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x402a60]
call fcn.0040f8d0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f960
add esp, 0xec
cmp ebp, esp
call fcn.0040f930
mov esp, ebp
pop ebp
ret
Function at 0x4088b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
lea edi, [ebp - 0xc0]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
call fcn.00401163
test eax, eax
je 0x408ab3
mov esi, esp
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.0040f930
mov dword [0x496ed4], eax
cmp dword [0x496ed4], 0
jne 0x40891b
push str.loading_DLL_advapi32.dll_failed_n
push 0x47cd14
push str.usb_service_load_dll
call fcn.0040116d
add esp, 0xc
xor eax, eax
jmp 0x408ab8
mov esi, esp
push str.OpenSCManagerA
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0040f930
mov dword [0x496ee0], eax
mov esi, esp
push str.OpenServiceA
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0040f930
mov dword [0x496ee4], eax
mov esi, esp
push str.ChangeServiceConfigA
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0040f930
mov dword [0x496ee8], eax
mov esi, esp
push str.CloseServiceHandle
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0040f930
mov dword [0x496eec], eax
mov esi, esp
push str.CreateServiceA
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0040f930
mov dword [0x496ef0], eax
mov esi, esp
push str.DeleteService
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0040f930
mov dword [0x496ef4], eax
mov esi, esp
push str.StartServiceA
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0040f930
mov dword [0x496ef8], eax
mov esi, esp
push str.QueryServiceStatus
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0040f930
mov dword [0x496efc], eax
mov esi, esp
push str.ControlService
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.0040f930
mov dword [0x496f00], eax
cmp dword [0x496ee0], 0
je 0x408a83
cmp dword [0x496ee4], 0
je 0x408a83
cmp dword [0x496ee8], 0
je 0x408a83
cmp dword [0x496eec], 0
je 0x408a83
cmp dword [0x496ef0], 0
je 0x408a83
cmp dword [0x496ef4], 0
je 0x408a83
cmp dword [0x496ef8], 0
je 0x408a83
cmp dword [0x496efc], 0
je 0x408a83
cmp dword [0x496f00], 0
jne 0x408ab3
mov esi, esp
mov eax, dword [0x496ed4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, esp
call fcn.0040f930
push str.loading_exported_functions_of_advapi32.dll_failed
push 0x47cd14
push str.usb_service_load_dll
call fcn.0040116d
add esp, 0xc
xor eax, eax
jmp 0x408ab8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.0040f930
mov esp, ebp
pop ebp
ret
Function at 0x408e90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe40
push ebx
push esi
push edi
lea edi, [ebp - 0xe40]
mov ecx, 0x390
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4953e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0xe
mov esi, 0x47d85c
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1c
mov esi, str._added_by_libusb_to_break_this_files_digital_signature
lea edi, [ebp - 0xb8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xcd4], 0
mov dword [ebp - 0xd70], 0x94
mov esi, esp
lea eax, [ebp - 0xd70]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call fcn.0040f930
test eax, eax
jne 0x408f0f
or eax, 0xffffffff
jmp 0x4090d8
cmp dword [ebp - 0xd6c], 5
jne 0x408ff1
cmp dword [ebp - 0xd68], 1
jb 0x408ff1
push 0x47d928
mov eax, dword [ebp + 8]
push eax
call fcn.00412c80
add esp, 8
mov dword [ebp - 0xd7c], eax
cmp dword [ebp - 0xd7c], 0
jne 0x408f51
or eax, 0xffffffff
jmp 0x4090d8
mov eax, dword [ebp - 0xd7c]
push eax
push 0x400
lea ecx, [ebp - 0xcc8]
push ecx
call fcn.00413910
add esp, 0xc
test eax, eax
je 0x408f98
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xcc8]
push ecx
call fcn.004104b0
add esp, 8
test eax, eax
je 0x408f96
mov dword [ebp - 0xcd4], 1
jmp 0x408f98
jmp 0x408f51
mov eax, dword [ebp - 0xd7c]
push eax
call fcn.00412540
add esp, 4
cmp dword [ebp - 0xcd4], 0
jne 0x408fec
push 0x47d92c
mov eax, dword [ebp + 8]
push eax
call fcn.00412c80
add esp, 8
mov dword [ebp - 0xd7c], eax
mov eax, dword [ebp - 0xd7c]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00413b80
add esp, 8
mov eax, dword [ebp - 0xd7c]
push eax
call fcn.00412540
add esp, 4
jmp 0x4090d6
push str.ra_n1
mov eax, dword [ebp + 8]
push eax
call fcn.00412c80
add esp, 8
mov dword [ebp - 0xd7c], eax
cmp dword [ebp - 0xd7c], 0
jne 0x409019
or eax, 0xffffffff
jmp 0x4090d8
mov eax, dword [ebp - 0xd7c]
push eax
push 0x400
lea ecx, [ebp - 0x4c0]
push ecx
call fcn.00412660
add esp, 0xc
test eax, eax
je 0x40905d
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x4c0]
push ecx
call fcn.0040eb10
add esp, 8
test eax, eax
je 0x40905b
mov dword [ebp - 0xcd4], 1
jmp 0x40905d
jmp 0x409019
mov eax, dword [ebp - 0xd7c]
push eax
call fcn.00412540
add esp, 4
cmp dword [ebp - 0xcd4], 0
jne 0x4090d6
push 0x47d934
mov eax, dword [ebp + 8]
push eax
call fcn.00412c80
add esp, 8
mov dword [ebp - 0xd7c], eax
mov eax, dword [ebp - 0xd7c]
push eax
push 0x47d938
call fcn.00412d60
add esp, 8
mov eax, dword [ebp - 0xd7c]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00412d60
add esp, 8
mov eax, dword [ebp - 0xd7c]
push eax
push 0x47d938
call fcn.00412d60
add esp, 8
mov eax, dword [ebp - 0xd7c]
push eax
call fcn.00412540
add esp, 4
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x409108]
call fcn.0040f8d0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f960
add esp, 0xe40
cmp ebp, esp
call fcn.0040f930
mov esp, ebp
pop ebp
ret
Function at 0x409410
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
lea edi, [ebp - 0xc0]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 1
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp esi, esp
call fcn.0040f930
push eax
push 0
push 0
call fcn.004010d7
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.0040f930
mov esp, ebp
pop ebp
ret
Function at 0x40a3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0x103
mov esi, esp
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x310
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.UpperFilters
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.0040f930
test eax, eax
je 0x40a42d
push 0x104
push 0
mov eax, dword [ebp + 8]
add eax, 0x310
push eax
call fcn.0040f9c0
add esp, 0xc
mov dword [ebp - 0x14], 0x103
mov esi, esp
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x414
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.LowerFilters
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.0040f930
test eax, eax
je 0x40a47c
push 0x104
push 0
mov eax, dword [ebp + 8]
add eax, 0x414
push eax
call fcn.0040f9c0
add esp, 0xc
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x40a4a8]
call fcn.0040f8d0
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.0040f930
mov esp, ebp
pop ebp
ret
Function at 0x40bf60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
lea edi, [ebp - 0x44c]
mov ecx, 0x113
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4953e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x354], 0
call fcn.00401163
test eax, eax
je 0x40bfa4
mov dword [ebp - 0xc], str.SYSTEMCurrentControlSetControlClass_
jmp 0x40bfab
mov dword [ebp - 0xc], str.SYSTEMCurrentControlSetServicesClass_
mov esi, esp
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, esp
call fcn.0040f930
test eax, eax
jne 0x40c193
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x378], 0x104
push 0x104
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.0040f9c0
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x388]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x378]
push ecx
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x36c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp esi, esp
call fcn.0040f930
test eax, eax
jne 0x40c180
lea eax, [ebp - 0x130]
push eax
call fcn.00410280
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040e6e0
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.0040e6e0
add esp, 4
add esi, eax
cmp esi, 0x104
jae 0x40c14c
push 0x104
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.0040f9c0
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str._s_s
lea edx, [ebp - 0x348]
push edx
call fcn.00413720
add esp, 0x10
mov esi, esp
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x348]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, esp
call fcn.0040f930
test eax, eax
jne 0x40c14c
mov dword [ebp - 0x378], 0x104
mov esi, esp
lea eax, [ebp - 0x378]
push eax
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x360]
push edx
push 0
push str.Class
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.0040f930
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.0040f930
push 1
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x348]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040107d
add esp, 0x18
push 0x104
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.0040f9c0
add esp, 0xc
mov dword [ebp - 0x378], 0x104
mov eax, dword [ebp - 0x36c]
add eax, 1
mov dword [ebp - 0x36c], eax
jmp 0x40c000
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.0040f930
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x40c1c8]
call fcn.0040f8d0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f960
add esp, 0x44c
cmp ebp, esp
call fcn.0040f930
mov esp, ebp
pop ebp
ret
Function at 0x43d300
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 4
imul eax, eax, 0x17
mov ecx, dword [eax + 0x497e60]
xor ecx, dword [0x4953e0]
mov dword [ebp - 4], ecx
je 0x43d332
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 4]
jmp 0x43d351
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0043d1c0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x58], 0
pop esi
pop ebp
ret
Function at 0x401df0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x14]
xor edx, edx
bswap eax
bswap ecx
sub esi, edi
jmp 0x401e10
lea edi, [esi + edx*4]
mov edi, dword [ebp + edi - 0x14]
bswap edi
mov dword [ebp + edx*4 - 0x14], edi
add edx, 1
cmp edx, 4
jl 0x401e10
xor edx, edx
mov dword [ebp - 4], 0x10
mov edi, edi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x10]
mov edi, ecx
shl edi, 4
add edi, dword [ebp - 0x14]
sub edx, 0x61c88647
xor esi, edi
lea edi, [edx + ecx]
xor esi, edi
add eax, esi
mov esi, eax
shr esi, 5
add esi, dword [ebp - 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 0xc]
xor esi, edi
lea edi, [edx + eax]
xor esi, edi
add ecx, esi
sub dword [ebp - 4], 1
jne 0x401e30
mov edx, dword [ebp + 0xc]
bswap eax
bswap ecx
pop edi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401e80
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x14]
xor edx, edx
bswap ecx
bswap eax
sub esi, edi
jmp 0x401ea0
lea edi, [esi + edx*4]
mov edi, dword [ebp + edi - 0x14]
bswap edi
mov dword [ebp + edx*4 - 0x14], edi
add edx, 1
cmp edx, 4
jl 0x401ea0
mov edx, 0xe3779b90
mov dword [ebp - 4], 0x10
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 8]
mov edi, ecx
shl edi, 4
add edi, dword [ebp - 0xc]
xor esi, edi
lea edi, [edx + ecx]
xor esi, edi
sub eax, esi
mov esi, eax
shr esi, 5
add esi, dword [ebp - 0x10]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 0x14]
xor esi, edi
lea edi, [edx + eax]
xor esi, edi
sub ecx, esi
add edx, 0x61c88647
sub dword [ebp - 4], 1
jne 0x401ec1
mov edx, dword [ebp + 0xc]
bswap ecx
bswap eax
pop edi
mov dword [edx], ecx
mov dword [edx + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402be0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x402beb
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
jmp fcn.00402c00