joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30013d74
Capabilities:
Accept command line arguments

Disassembly:
push 0x244
mov eax, 0x3003ed69
call fcn.3001eda5
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x30013dd7
push 0x30003bc0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x250]
push eax
call main
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x144]
lea edi, [ebp - 0x144]
push eax
rep movsd dword es:[edi], dword [esi]
call main
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x30013e0b
push dword [edi + esi*4]
lea ecx, [ebp - 0x38]
call fcn.300112b3
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call main
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.300104cf
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x30013dde
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
call fcn.3001ee7d
ret 4

Function at 0x3001405e
Capabilities:
Allocate thread local storage

Disassembly:
push 0x21c
mov eax, 0x3003ee49
call fcn.3001eda5
mov esi, ecx
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
push dword [0x3004f750]
lea ecx, [esi + 4]
push 0x18
push 0x30003c58
push 0x50
call main
and dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x300140d6
push 0x30003c44
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
call main
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x11c]
lea edi, [ebp - 0x11c]
push eax
rep movsd dword es:[edi], dword [esi]
call main
mov eax, esi
call fcn.3001ee7d
ret
Function at 0x30014f07
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x490
mov eax, 0x3003f0f0
call fcn.3001eda5
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jne 0x30014f53
push 0x30004078
lea eax, [ebp - 0x390]
push 0x3a
push eax
call main
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
lea edi, [ebp - 0x178]
rep movsd dword es:[edi], dword [esi]
push 0x30044ba4
lea eax, [ebp - 0x178]
push eax
call main
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x10], 1
call fcn.300102f3
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
push eax
push dword [esi + 0x30]
call edi
cmp eax, ebx
jle 0x30014f8d
and eax, 0xffff
or eax, 0x80070000
cmp eax, 0x80070002
mov dword [ebp - 0x14], eax
je 0x300150be
cmp dword [ebp - 0x18], 7
jne 0x300150be
cmp eax, ebx
jge 0x30014fd7
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
lea ecx, [esi + 8]
call fcn.300102f3
push eax
push 0x30003e20
push dword [ebp - 0x14]
lea eax, [ebp - 0x390]
push eax
call main
add esp, 0x14
jmp 0x30014f35
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
shr eax, 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.30014841
lea eax, [ebp - 0x10]
push eax
push ebx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], ebx
call main
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.300102f3
push eax
push dword [esi + 0x30]
call edi
cmp eax, ebx
jle 0x3001501c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jge 0x30015066
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
lea ecx, [esi + 8]
call fcn.300102f3
push eax
push 0x30003e20
lea eax, [ebp - 0x49c]
push edi
push eax
call main
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
lea edi, [ebp - 0x284]
rep movsd dword es:[edi], dword [esi]
push 0x30044ba4
lea eax, [ebp - 0x284]
jmp 0x30014f4d
push ebx
lea ecx, [ebp - 0x6c]
call main
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.30010485
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x40]
call main
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
call main
lea ecx, [ebp - 0x40]
call fcn.3001032e
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x3001507d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.300104cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.300148b0
mov al, 1
jmp 0x300150c0
xor al, al
call fcn.3001ee7d
ret 8
Function at 0x3001e9d0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x30048178
call fcn.3002152f
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.kernel32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x3001e83b
push 0x12
call fcn.3001e789
pop ecx
jmp 0x3001e9c5
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x3001e859
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x3001e9c5
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x3001e88b
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x3004f824], esi
mov dword [0x3004f82c], eax
mov dword [0x3004f830], ecx
mov dword [0x3004f834], edx
mov dword [0x3004f828], edi
call fcn.3001e7af
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.300214d5
pop ecx
test eax, eax
jne 0x3001e8d3
push 0x1c
call fcn.3001e789
pop ecx
call fcn.300212f6
test eax, eax
jne 0x3001e8e4
push 0x10
call fcn.3001e789
pop ecx
call fcn.30020efb
mov dword [ebp - 4], ebx
call fcn.30020cbb
test eax, eax
jge 0x3001e8fd
push 0x1b
call fcn.300201ad
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x30054a74], eax
call fcn.30020b86
mov dword [0x3004f814], eax
call main
test eax, eax
jge 0x3001e923
push 8
call fcn.300201ad
pop ecx
call fcn.3002085a
test eax, eax
jge 0x3001e934
push 9
call fcn.300201ad
pop ecx
push ebx
call fcn.300202c9
pop ecx
test eax, eax
je 0x3001e946
push eax
call fcn.300201ad
pop ecx
call fcn.300207fd
test byte [ebp - 0x44], bl
je 0x3001e956
movzx ecx, word [ebp - 0x40]
jmp 0x3001e959
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x30000000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x3001e976
push eax
call fcn.30020429
call fcn.3002044b
jmp 0x3001e9ab
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x3001e9ca
mov eax, 0xff
call fcn.30021574
ret
call main
jmp 0x3001e7f0
Function at 0x3001ed97
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3004d9c0]
jne 0x30022520
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3004fda0], eax
mov dword [0x3004fd9c], ecx
mov dword [0x3004fd98], edx
mov dword [0x3004fd94], ebx
mov dword [0x3004fd90], esi
mov dword [0x3004fd8c], edi
mov word [0x3004fdb8], ss
mov word [0x3004fdac], cs
mov word [0x3004fd88], ds
mov word [0x3004fd84], es
mov word [0x3004fd80], fs
mov word [0x3004fd7c], gs
pushfd
pop dword [0x3004fdb0]
mov eax, dword [ebp]
mov dword [0x3004fda4], eax
mov eax, dword [ebp + 4]
mov dword [0x3004fda8], eax
lea eax, [ebp + 8]
mov dword [0x3004fdb4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3004fcf0], 0x10001
mov eax, dword [0x3004fda8]
mov dword [0x3004fca4], eax
mov dword [0x3004fc98], 0xc0000409
mov dword [0x3004fc9c], 1
mov eax, dword [0x3004d9c0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3004d9c4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x3004fce8], eax
push 1
call fcn.3002271b
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x30008668
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x3004fce8], 0
jne 0x30022610
push 1
call fcn.3002271b
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x3002b1db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x3002b1ea
pop dword [ebp - 0x50]
mov eax, 0x3002b1ea
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x49c1c
push 0
mov eax, 0xd8a44941
sub eax, 0xa8a437a1
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xc45b449f
add ecx, 0x3ba510fe
mov edi, eax
mov ebx, 0xbfde8d1a
add ebx, 0x70287ee6
add ebx, dword [ebp - 0x50]
mov edx, 0xd593a5da
xor dword [ebp - 0x2c], 0xc04b14f5
mov esi, dword [ebx]
xor dword [ebp - 0x40], edx
add esi, edx
sub dword [ebp - 0x14], 0xaee5d3ba
mov dword [edi], esi
add edi, 0x93946119
add edi, 0x6c6b9eeb
add ebx, 4
loop 0x3002b23e
add eax, 0xba634b10
sub eax, 0xba6201c9
xor ebx, ebx
add ebx, eax
add eax, 0x17fbda0e
sub eax, 0x17fbda09
mov ecx, 0xd8498b95
sub ecx, 0xa8498b95
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x48edd4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48edde
repz ret
jmp fcn.00493887

Function at 0x491a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048bfb2
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491b6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49b7bc
push ebx
call edi
test eax, eax
je 0x491b6c
mov esi, dword [fcn.00487fe0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00487fe4]
cmp eax, ecx
je 0x491b1d
cmp dword [0x4acb1c], ecx
je 0x491b1d
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491b1d
test ebx, ebx
je 0x491b1d
call edi
test eax, eax
je 0x491b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491b14
test byte [ebp - 8], 1
jne 0x491b1d
or dword [ebp + 0x10], 0x200000
jmp 0x491b50
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491b50
push eax
call esi
test eax, eax
je 0x491b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491b50
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491b50
push eax
call esi
test eax, eax
je 0x491b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048edd4
leave
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x506f150c
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x506fb298]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x506f15c5
call edi
mov esi, eax
cmp esi, ebx
je 0x506f4133
mov dword [0x506fb298], 1
cmp esi, ebx
je 0x506f4154
cmp word [esi], bx
mov eax, esi
je 0x506f156e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, ebp
cmp word [eax], bx
jne 0x506f1560
add eax, ebp
cmp word [eax], bx
jne 0x506f1560
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x506f15b5
push ebp
call fcn.506f2560
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x506f15b5
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x506f4161
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x506f4174
jmp 0x506f1542
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x506f414a
mov eax, ebp
mov dword [0x506fb298], eax
jmp 0x506f15c5
mov eax, dword [0x506fb298]
jmp 0x506f15c5
call edi
mov esi, eax
cmp esi, ebx
je 0x506f417c
jmp 0x506f154a
push dword [esp + 0x10]
call fcn.506f2ca2
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x506f15b1
cmp eax, ebp
je 0x506f4183
cmp eax, ebx
je 0x506f4183
xor eax, eax
jmp 0x506f15be
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x506f417c
cmp byte [esi], bl
je 0x506f419d
inc eax
cmp byte [eax], bl
jne 0x506f4193
inc eax
cmp byte [eax], bl
jne 0x506f4193
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.506f2560
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x506f41b3
xor edi, edi
jmp 0x506f41be
push ebp
push esi
push edi
call fcn.506f7fe8
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x506f15be
Function at 0x506f236f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x506fb050]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.506f2355
mov eax, 0x506f0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.506f1872
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x506f2401
cmp dword [ebp - 0x1c], 5
jb 0x506f23d3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x506f2414
call fcn.506f13e9
test eax, eax
jl 0x506f4772
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.506f22d6
add ebp, 0x78
leave
ret
cmp dword [ebp - 0x10], 1
jne 0x506f23d3
jmp 0x506f475d
cmp dword [ebp - 0x18], 0
jbe 0x506f23d3
jmp 0x506f23cf
cmp dword [ebp - 0x1c], 4
ja 0x506f23cf
jne 0x506f23d3
jmp 0x506f240c
mov byte [0x506fb15c], 1
jmp 0x506f23f1

Function at 0x506f539f
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x506f53b9
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x506f53e2
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x506f53ed
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x506f5a1e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x506fb050]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.506f7fe8
cmp eax, esi
jne 0x506f5aa6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x506f5a6f
lea eax, [ebp - 0x70]
push eax
call fcn.506f5a1e
cmp eax, esi
jne 0x506f5aa5
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x506f5a62
call fcn.506f5305
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.506f5305
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.506f22d6
add ebp, 0x94
leave
ret 4
Function at 0x506f7d48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x506fb050]
push ebx
push esi
push edi
mov dword [ebp + 0x394], eax
mov esi, ecx
call dword [0x506fb66c]
xor edi, edi
cmp dword [ebp + 0x3a0], edi
mov ebx, eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], edi
je 0x506f7dd2
push dword [ebp + 0x3a0]
call dword [sym.imp.kernel32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x506f7db7
push esi
call fcn.506f516a
test al, al
je 0x506f7db7
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.506f19f4
mov eax, esp
jmp 0x506f7dc0
push esi
lea ecx, [ebp - 0x74]
call fcn.506f5b58
push ebx
push esi
push dword [ebp + 0x3a0]
push eax
call fcn.506f7fe8
cmp eax, edi
jne 0x506f7dec
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x506f7de2
lea ecx, [ebp - 0x70]
call fcn.506f59b7
mov esi, 0x8007000e
jmp 0x506f7ea2
push 2
push edi
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x78], esi
jne 0x506f7e0b
call fcn.506f52ae
mov esi, eax
jmp 0x506f7e92
push dword [ebp + 0x3a8]
push dword [ebp + 0x3a4]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov ebx, eax
cmp ebx, edi
je 0x506f7e32
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x506f7e39
call fcn.506f52ae
jmp 0x506f7e87
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x70]
call fcn.506f5bc6
mov edi, dword [ebp - 0x70]
test edi, edi
jne 0x506f7e5f
mov esi, 0x8007000e
jmp 0x506f7e89
push dword [ebp + 0x3ac]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x70]
mov byte [ebx + eax], 0
push dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.506f747e
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x506f7ea2
lea ecx, [ebp - 0x70]
call fcn.506f59b7
lea ecx, [ebp - 0x74]
call fcn.506f58f5
mov eax, esi
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x394]
call fcn.506f22d6
pop edi
pop esi
pop ebx
add ebp, 0x398
leave
ret 0x10
Function at 0x506f8e1c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x506fb050]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x506fb820]
je 0x506f8e51
inc eax
cmp eax, 0x13
jb 0x506f8e42
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x506fb820]
jne 0x506f8f77
mov eax, dword [0x506fb904]
cmp eax, 1
je 0x506f8f4f
cmp eax, edx
jne 0x506f8e81
cmp dword [0x506fb908], 1
je 0x506f8f4f
cmp ecx, 0xfc
je 0x506f8f77
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x506f8eb7
lea eax, [ebp - 0x80]
push 0x506f4d00
push eax
call fcn.506f16e4
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.506f17c8
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x506f8eeb
mov eax, edi
push eax
call fcn.506f17c8
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x506f4cfc
push edi
call fcn.506f39e1
add esp, 0x10
push edi
call fcn.506f17c8
push dword [esi + 0x506fb824]
mov ebx, eax
call fcn.506f17c8
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.506f19f4
mov ebx, esp
push 0x506f8f94
push ebx
call fcn.506f16e4
push edi
push ebx
call fcn.506f3970
push 0x506f4cf8
push ebx
call fcn.506f3970
push dword [esi + 0x506fb824]
push ebx
call fcn.506f3970
push 0x12010
push 0x506f4cd0
push ebx
call fcn.506f7fe8
add esp, 0x2c
jmp 0x506f8f77
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x506fb824]
push dword [esi]
call fcn.506f17c8
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.506f22d6
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000a61a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014704]
jne 0x1000a624
repz ret
jmp fcn.1000ae86

Function at 0x1000ab43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1000ab52
pop dword [ebp - 0x30]
mov eax, 0x1000ab52
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xcc6d869a
add dword [ebp - 0x40], 0x81e4beb1
mov dword [ebp - 0x3c], 0xa8344eac
add dword [ebp - 0x3c], 0x89fefd99
mov dword [ebp - 0x38], 0xf69b689e
sub dword [ebp - 0x38], 0xaa4f2470
mov dword [ebp - 0x34], 0x83e82fda
sub dword [ebp - 0x34], 0x83e82fda
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x1c838d09
add dword [ebp - 0x40], 0x57eedc4d
mov dword [ebp - 0x3c], 0xbed9d75d
add dword [ebp - 0x3c], 0x82928a18
mov dword [ebp - 0x38], 0x44e9f209
sub dword [ebp - 0x38], 0xe17a859d
mov dword [ebp - 0x34], 0x6b9fd4b0
add dword [ebp - 0x34], 0x94602b50
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x35477
push 0
call eax
mov ecx, 0x3c2b
mov edx, eax
mov edi, 0xdfc4235e
add edi, 0x303d78a2
add edi, dword [ebp - 0x30]
mov esi, 0x8c2311fc
add esi, 0xa2d3803c
mov ebx, dword [edi]
mov dword [ebp - 0x14], 0x97e62687
add ebx, esi
xor dword [ebp - 8], ecx
mov dword [edx], ebx
sub dword [ebp - 0xc], 0xdf5ae3d
add edx, 4
add edi, 0x79733dff
add edi, 0x868cc205
loop 0x1000ac5f
add eax, 0xe37f
xor ebx, ebx
add ebx, eax
add eax, 0xddc9d2ac
sub eax, 0xddc9d2a7
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret