joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417830
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 0x417955
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417638
mov esi, eax
mov eax, dword [0x43f410]
cmp byte [eax], 0
je 0x4178fd
mov eax, dword [0x43f338]
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 [0x417800]
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 0x417970
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417939
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x43f314]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x442c44]
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 0x41795c
lea eax, [ebp - 4]
mov edx, dword [0x417800]
call fcn.00406a9c
ret

Function at 0x418a14
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 0x4189bb
mov eax, edi
add eax, eax
call fcn.00403bdc
mov esi, eax
jmp 0x4189bd
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 0x4189f8
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 0x4189e2
mov eax, esp
cmp esi, eax
je 0x418a05
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 0x418a40
cmp bl, 0
je 0x418a3c
cmp bl, 0x41
jl 0x418a37
cmp bl, 0x5a
jg 0x418a37
or bl, 0x20
xor al, bl
inc esi
jmp 0x418a1b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41897c

Function at 0x418c60
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 0x418f4c
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 0x418f91
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405bf0
jmp 0x418faa
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 0x41c1fc
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, 0x43d20c
test edx, edx
jne 0x41c21b
xor eax, eax
jmp 0x41c339
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x41c238
push esi
push edx
push eax
call fcn.0041c340
add esp, 0xc
jmp 0x41c339
push esi
push edx
push eax
call fcn.0041c600
add esp, 0xc
jmp 0x41c339
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x437158
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.004371ac
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x437400
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 0x437495
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4374b0
push ebx
push 0x4374c0
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 0x43747f
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 0x43749c
lea eax, [ebp - 4]
call fcn.00405ab4
ret
Function at 0x4374c8
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb8
xor eax, eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x338], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4376af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x338]
call fcn.00437210
mov edx, dword [ebp - 0x338]
lea eax, [ebp - 4]
mov ecx, 0x4376c8
call fcn.004061c0
xor ecx, ecx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2e0]
call fcn.004043d0
call fcn.00403d30
lea eax, [ebp - 0x2e0]
call fcn.00404090
call fcn.00403d30
mov edx, 0x4376f0
lea eax, [ebp - 0x2e0]
call fcn.00404a84
call fcn.00404b84
call fcn.00403d30
push 0x437708
lea edx, [ebp - 0x340]
xor eax, eax
call fcn.00403f9c
push dword [ebp - 0x340]
push 0x437720
lea eax, [ebp - 0x33c]
mov edx, 3
call fcn.00406248
mov edx, dword [ebp - 0x33c]
lea eax, [ebp - 0x2e0]
call fcn.00404a84
call fcn.00404b84
call fcn.00403d30
push 0x437730
lea edx, [ebp - 0x348]
xor eax, eax
call fcn.00403f9c
push dword [ebp - 0x348]
push 0x437720
push 0x437754
lea eax, [ebp - 0x344]
mov edx, 4
call fcn.00406248
mov edx, dword [ebp - 0x344]
lea eax, [ebp - 0x2e0]
call fcn.00404a84
call fcn.00404b84
call fcn.00403d30
mov edx, 0x437774
lea eax, [ebp - 0x2e0]
call fcn.00404a84
call fcn.00404b84
call fcn.00403d30
lea eax, [ebp - 0x2e0]
call fcn.004044d0
call fcn.00403d30
lea eax, [ebp - 0x334]
xor ecx, ecx
mov edx, 0x44
call fcn.00404528
mov dword [ebp - 0x308], 1
mov word [ebp - 0x304], 0
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x334]
push eax
push 0
push 0
push 0x40
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 0x437689
mov eax, dword [ebp - 0x2ec]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x2f0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4376b6
lea eax, [ebp - 0x348]
mov edx, 5
call fcn.00405b14
lea eax, [ebp - 4]
call fcn.00405ab4
ret
Function at 0x437924
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x437a14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x444ef0]
call fcn.00405ffc
mov edx, eax
lea eax, [ebp - 8]
call fcn.00406054
mov eax, dword [ebp - 8]
mov edx, 0x40
call fcn.00414e48
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4379f2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
mov eax, ecx
sub eax, 0x13f
xor edx, edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00414f5c
mov edx, 0x444f08
mov ecx, 0x13f
mov eax, dword [ebp - 4]
call fcn.00414f04
cmp byte [0x445044], 0
je 0x4379cb
lea edx, [ebp - 0xc]
mov eax, dword [0x444ef0]
call fcn.004152b8
mov edx, dword [ebp - 0xc]
mov eax, 0x444efc
mov ecx, 0x437a2c
call fcn.004061c0
jmp 0x4379db
mov eax, 0x444efc
mov edx, dword [0x444ef0]
call fcn.00405d6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4379f9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x25815eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x25815ebf
pop dword [ebp - 0x4c]
mov eax, 0xcc5c5c9e
add eax, 0x59250221
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xc965e7d2
sub dword [ebp - 0x5c], 0x7b13a287
mov dword [ebp - 0x58], 0xc4c82706
add dword [ebp - 0x58], 0x6d6b253f
mov dword [ebp - 0x54], 0x47dd5eb2
sub dword [ebp - 0x54], 0xfb911a84
mov dword [ebp - 0x50], 0xa3f8fea8
add dword [ebp - 0x50], 0x5c070158
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xb40fd77f
sub eax, 0x8e8e073b
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x24478421
add dword [ebp - 0x5c], 0x502ae535
mov dword [ebp - 0x58], 0x5d2f29c5
sub dword [ebp - 0x58], 0x1bc2c850
mov dword [ebp - 0x54], 0x6a38d106
sub dword [ebp - 0x54], 0x6c9649a
mov dword [ebp - 0x50], 0xb5442a74
add dword [ebp - 0x50], 0x4abbd58c
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xd007f341
sub eax, 0xaa8622c1
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c3fc
push 0
call eax
mov ecx, 0x46d9
xor edx, edx
add edx, eax
mov esi, 0xb1179a01
add esi, 0x746afbff
add esi, dword [ebp - 0x4c]
mov ebx, 0xdc8e1d68
add dword [ebp - 0xc], 0xb6869f18
mov edi, dword [esi]
sub dword [ebp - 0x34], eax
sub edi, ebx
xor dword [ebp - 0x3c], 0xed3c4735
mov dword [edx], edi
sub dword [ebp - 0x18], 0x235bbd65
add edx, 0x8f4a23a4
sub edx, 0x8f4a23a0
add esi, 4
loop 0x25815fd7
add eax, 0x10e37
xor ebx, ebx
add ebx, eax
add eax, 0x488fc10c
sub eax, 0x488fc107
mov ecx, 0x8932b982
sub ecx, 0x63b2b982
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x3f351cb4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_FindResourceW]
push 0xa
push 0x3e7
push dword [0x3f3a32c0]
mov esi, ecx
call edi
mov ebx, dword [sym.imp.kernel32.dll_LoadResource]
push eax
push dword [0x3f3a32c0]
call ebx
mov ebp, dword [sym.imp.kernel32.dll_LockResource]
push eax
call ebp
push 0xa
push 0x3e6
mov dword [esi + 0xab4], eax
push dword [0x3f3a32c0]
call edi
push eax
push dword [0x3f3a32c0]
call ebx
push eax
call ebp
push 0xa
push 0x3e5
mov dword [esi + 0xab0], eax
push dword [0x3f3a32c0]
call edi
push eax
push dword [0x3f3a32c0]
call ebx
push eax
call ebp
movzx eax, word [eax]
lea edi, [esi + 0xac0]
mov dword [edi], eax
shl eax, 2
push 4
push eax
call fcn.3f3915d6
mov dword [esi + 0xab8], eax
mov eax, dword [edi]
shl eax, 1
push eax
call fcn.3f3915c4
add esp, 0xc
pop edi
mov dword [esi + 0xabc], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x3f351d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x10]
mov eax, ecx
shl eax, 2
cmp ecx, 6
jge 0x3f351dad
add eax, dword [esp + 0x18]
jmp 0x3f351daf
add eax, ebx
mov ecx, dword [edi + 0xab8]
mov esi, eax
shl esi, 2
cmp dword [esi + ecx], 0
jne 0x3f351e24
add eax, 0x3e8
movzx eax, ax
push 0xa
push eax
push dword [0x3f3a32c0]
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
jne 0x3f351e07
test ebx, ebx
jl 0x3f351e24
cmp ebx, 2
jle 0x3f351df8
cmp ebx, 3
jne 0x3f351e24
mov eax, dword [edi + 0xab8]
mov dword [esi + eax], 0x3f102594
jmp 0x3f351e24
mov eax, dword [edi + 0xab8]
mov dword [esi + eax], 0x3f102590
jmp 0x3f351e24
push eax
push dword [0x3f3a32c0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov ecx, dword [edi + 0xab8]
mov dword [esi + ecx], eax
mov eax, dword [edi + 0xab8]
mov eax, dword [esi + eax]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x3f357f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x3f357f2f
pop dword [ebp - 0x20]
mov eax, 0x5a3f8263
sub eax, 0x1b0a0334
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x46770
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x3c60a0ee
add ecx, 0xc39facc2
xor ebx, ebx
add ebx, eax
mov esi, 0xe415d8f8
add esi, 0x5b2a3708
add esi, dword [ebp - 0x20]
mov edi, 0xddada2d4
add edi, 0xe9659c75
mov edx, dword [esi]
sub dword [ebp - 8], ecx
xor edx, edi
sub dword [ebp - 0x14], eax
mov dword [ebx], edx
xor dword [ebp - 0x10], 0xb1e14bc1
add ebx, 0x758bd37e
add ebx, 0x8a742c86
add esi, 0x2ec1ff96
add esi, 0xd13e006e
loop 0x3f357f8b
add eax, 0x3b5a18ce
add eax, 0xc4a710c5
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3f100000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x3f3845bf
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x110
push esi
push edi
push dword [ebp + 0x7c]
xor esi, esi
push dword [ebp + 0x78]
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0x68], esi
call fcn.3f357f20
mov edi, eax
cmp edi, esi
je 0x3f384696
push 0x80
lea eax, [ebp - 0x20]
push eax
push 0xc
push dword [0x3f3a32c0]
call dword [sym.imp.user32.dll_LoadStringA]
test eax, eax
jle 0x3f38468f
mov ecx, dword [ebp + 0x64]
push ebx
push dword [ebp + 0x78]
call fcn.3f38958d
push esi
push esi
mov ebx, eax
push 0x81
lea eax, [ebp - 0xa4]
push eax
push ebx
call fcn.3f390cad
pop ecx
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xa4]
push eax
push 1
push esi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop ebx
jne 0x3f38468f
push 0x80
lea eax, [ebp - 0x20]
push eax
push 0xd
push dword [0x3f3a32c0]
call dword [sym.imp.user32.dll_LoadStringA]
test eax, eax
jle 0x3f38468f
mov ecx, dword [ebp + 0x64]
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.3f357f20
mov dword [ebp + 0x68], eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x68]
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc

Function at 0x3f38a12e
Capabilities:
Parse credit card information

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
add edx, edx
add eax, edx
mov cx, word [eax]
inc eax
push ebx
mov ebx, dword [esp + 0x10]
inc eax
cmp cx, 0x3e
push esi
mov esi, dword [ebx]
je 0x3f38a153
cmp cx, 0x7d
jne 0x3f38a162
dec esi
jne 0x3f38a15d
xor eax, eax
jmp 0x3f38a1fd
mov cx, word [eax]
inc eax
inc eax
cmp cx, 0x3a
je 0x3f38a17a
cmp cx, 0x3b
je 0x3f38a17a
cmp cx, 0x38
je 0x3f38a17a
cmp cx, 0x25
jne 0x3f38a156
dec esi
je 0x3f38a156
mov cx, word [eax]
inc eax
inc eax
cmp cx, 0x2d
je 0x3f38a18e
cmp cx, 0x5e
jne 0x3f38a198
dec esi
test esi, esi
je 0x3f38a156
mov cx, word [eax]
inc eax
inc eax
cmp cx, 0x28
je 0x3f38a1f0
cmp cx, 0x3e
je 0x3f38a1f0
cmp cx, 0x44
je 0x3f38a1f0
cmp cx, 0x49
je 0x3f38a1f0
cmp cx, 0x4f
je 0x3f38a1f0
cmp cx, 0x6f
je 0x3f38a1f0
cmp cx, 0x5c
je 0x3f38a1f0
cmp cx, 0x2f
je 0x3f38a1f0
cmp cx, 0x7c
je 0x3f38a1f0
cmp cx, 0x30
jne 0x3f38a1db
cmp word [eax - 4], 0x38
jne 0x3f38a1f0
cmp cx, 0x29
jne 0x3f38a156
cmp word [eax - 4], 0x38
je 0x3f38a156
sub eax, edx
sub eax, dword [esp + 0xc]
sar eax, 1
mov dword [ebx], eax
xor eax, eax
inc eax
pop esi
pop ebx
ret 0xc
Function at 0x3f38cf7e
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x200
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor ebx, ebx
push ebx
push ebx
push 0x40
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, 0x3f2ff05c
lea edi, [ebp + 0x24]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x1c]
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x3f38cfcd
lea edi, [ebp + 0x24]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x3f38cfda
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x74]
cmp edi, ebx
mov esi, 0x3f2ff054
je 0x3f38d015
push dword [ebp + 0x70]
mov eax, edi
push ebx
call fcn.3f357f20
lea eax, [ebp - 0x1c]
push eax
push esi
mov eax, edi
call fcn.3f357f20
mov eax, dword [ebp + 0x78]
cmp eax, ebx
je 0x3f38d040
push dword [ebp + 0x70]
push ebx
call fcn.3f357f20
mov eax, dword [ebp + 0x78]
push edi
push 0x3f2ff04c
call fcn.3f357f20
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x78]
push esi
call fcn.3f357f20
push dword [ebp + 0x70]
lea eax, [ebp + 0x24]
push ebx
call fcn.3f357f20
cmp edi, ebx
je 0x3f38d05e
push edi
push 0x3f2ff044
lea eax, [ebp + 0x24]
call fcn.3f357f20
cmp dword [ebp + 0x78], ebx
je 0x3f38d073
push dword [ebp + 0x78]
lea eax, [ebp + 0x24]
push 0x3f2ff028
call fcn.3f357f20
push ebx
push 0x3f2ff018
lea eax, [ebp + 0x24]
call fcn.3f357f20
push dword [ebp + 0x7c]
mov esi, 0x3f2ff008
push esi
lea eax, [ebp + 0x24]
call fcn.3f357f20
push esi
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x19c]
push 0x3f2ff000
push eax
call fcn.3f357f20
add esp, 0x10
push ebx
lea eax, [ebp + 0x78]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x19c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x3f38d0ff
mov esi, 0x3f2feff4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x3f38d0d9
sub eax, edx
inc eax
push eax
push esi
push 1
push ebx
push 0x3f2fefe4
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x401500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401519
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401554
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401550
lea ebx, [ebx]
cmp esi, eax
jae 0x401554
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401540
cmp esi, eax
jb 0x40155a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402b40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x40
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402bb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x3c
ret 8
Function at 0x402f80
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x45a9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
lea esi, [edi + 0x1c4]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040c110
mov eax, dword [esi]
push eax
lea ecx, [edi + 0x170]
call fcn.004264f4
mov esi, dword [esi]
push ecx
sub esi, 0x10
mov dword [esp + 0x18], esp
mov ebx, esp
push esi
call fcn.0040c3d0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.004199b0
add esp, 4
mov esi, eax
mov ebx, edx
call fcn.0042263d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40300d
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x2c], 1
mov eax, ebx
mov ecx, ebx
and eax, 0x7fffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
fild qword [esp + 0x14]
and ecx, 0x80000000
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
fild qword [esp + 0x14]
sub esp, 8
lea ecx, [esp + 0x18]
fchs
faddp st(1)
fstp qword [esp]
call fcn.00419ac0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push 0x4629c0
push edx
call fcn.0040bb50
add esp, 0x14
mov byte [esp + 0x2c], 2
mov esi, dword [edi + 0xec]
mov ebx, eax
call fcn.004204a0
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x407860
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 5
push 0
push eax
push ecx
push 0x462b68
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40789b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret 8