joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009761
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1001f5e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.1000a23f
test eax, eax
je 0x10009876
xor ebx, ebx
mov dword [ebp - 0x214], 0x104
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.shlwapi.dll_PathCreateFromUrlW]
test eax, eax
js 0x10009876
push ebx
push 0x80
push 3
push ebx
inc ebx
lea eax, [ebp - 0x20c]
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10009876
push 0
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x10009876
cmp dword [ebp - 0x218], 4
jne 0x10009876
push 3
lea eax, [ebp - 0x210]
push 0x10017620
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10009840
push 3
lea eax, [ebp - 0x210]
push 0x10017624
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10009840
mov al, bl
jmp 0x10009878
xor eax, eax
push eax
push eax
push eax
movsx ax, byte [ebp - 0x20d]
movzx eax, ax
push eax
call fcn.10009989
mov ecx, dword [0x10020678]
add esp, 0x10
mov edi, eax
mov esi, edx
call fcn.10009989
cmp edx, esi
jb 0x10009872
ja 0x1000983c
cmp eax, edi
jae 0x1000983c
xor bl, bl
jmp 0x1000983c
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013bb0
leave
ret 4

Function at 0x10009989
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10009998
pop dword [ebp - 0x3c]
mov eax, 0x10009998
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3befe
push 0
mov eax, 0xb5ac1a15
sub eax, 0xa5aab8d5
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xf81022a2
add ecx, 0x7f02c21
mov ebx, eax
mov edx, 0x546f458b
add edx, 0xbb92fe75
add edx, dword [ebp - 0x3c]
mov edi, 0xe3573ca7
add edi, 0xfb37d0f3
add dword [ebp - 0xc], 0x33d6adb1
mov esi, dword [edx]
sub dword [ebp - 0x14], 0xd99fa109
add esi, edi
sub dword [ebp - 0x34], 0xc3d860a
mov dword [ebx], esi
xor dword [ebp - 0x18], 0x47e4bfb4
add ebx, 4
add edx, 0x3f95a77b
sub edx, 0x3f95a777
loop 0x100099f2
add eax, 0xc1e726c4
sub eax, 0xc1e5f8e5
xor ebx, ebx
add ebx, eax
add eax, 0x57894088
sub eax, 0x57894083
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x1000d40f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x10015406
call fcn.10013c9a
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x1000d630
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.10009989
add esp, 0x10
test eax, eax
js 0x1000d62a
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x1000d4b3
push edi
call fcn.100081d8
pop ecx
test al, al
je 0x1000d4b3
mov eax, edi
call fcn.10013eb0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000d4c5
push edi
lea ecx, [ebp - 0x424]
call fcn.10009989
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.10009989
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000d62a
push 0x60
push ebx
push eax
call fcn.1000e9b2
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x1000d51d
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.1000e9b2
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x1000d51d
call fcn.100037d1
mov ebx, eax
jmp 0x1000d5f9
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1000d544
call fcn.100037d1
jmp 0x1000d5ec
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x1000d53a
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x1000d577
mov ebx, 0x8007000e
jmp 0x1000d5ee
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10009989
jmp 0x1000d59d
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000d570
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.10009989
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.10009989
mov ebx, eax
test edi, edi
je 0x1000d5f9
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000d612
lea ecx, [ebp - 0x418]
call fcn.1000cc05
or dword [ebp - 4], 0xffffffff
jmp 0x1000d622
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d618
mov eax, ebx
jmp 0x1000d65e
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1000d645
lea ecx, [ebp - 0x418]
call fcn.1000cc05
or dword [ebp - 4], 0xffffffff
jmp 0x1000d655
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d64b
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.10013be7
ret 0x10
Function at 0x1000f1e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x10017bc0
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f269
push str.file:__
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f269
push dword [ebp + 0xc]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f269
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000f26c
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1000f265
add eax, 0xfffffffd
cmp eax, 1
ja 0x1000f26c
mov esi, edi
jmp 0x1000f26c
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.10009989
add esp, 0x10
pop edi
pop esi
leave
ret 0x20
Function at 0x10009bdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10016eb8
call fcn.100165db
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10009c59
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10009c59
call fcn.1000836f
mov esi, eax
jmp 0x10009d5f
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10009c7c
call fcn.1000836f
jmp 0x10009d52
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10009c72
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x10009caf
mov esi, 0x8007000e
jmp 0x10009d54
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x10009d8d
jb 0x10009cca
cmp eax, 0xffffffff
ja 0x10009d8d
cmp eax, 0x400
jbe 0x10009cdf
push eax
lea ecx, [ebp - 0x418]
call fcn.10011953
jmp 0x10009d01
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10009d01
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10009ca5
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10009c72
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.10011953
mov esi, eax
test edi, edi
je 0x10009d5f
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10009d78
lea ecx, [ebp - 0x418]
call fcn.10008337
lea ecx, [ebp - 0x428]
call fcn.10001550
mov eax, esi
call fcn.1001652c
ret 0x10
push 0x80070216
call fcn.10011953
int3
Function at 0x10011953
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10011962
pop dword [ebp - 0x34]
mov eax, 0x10011962
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3d8af
push 0
mov eax, 0x4444ee62
sub eax, 0x34436d12
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x5847
xor esi, esi
add esi, eax
mov edi, 0x1002b600
add edi, dword [ebp - 0x34]
mov edx, 0x33929257
add edx, 0x503a8f33
xor dword [ebp - 0x10], 0x31317450
mov ebx, dword [edi]
sub ebx, edx
add dword [ebp - 8], ebx
mov dword [esi], ebx
xor dword [ebp - 0x24], 0x836d424a
add esi, 0x90a917db
sub esi, 0x90a917d7
add edi, 0x1aa61fbd
sub edi, 0x1aa61fb9
loop 0x100119b2
add eax, 0x153ef
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x624f8746
add ecx, 0xadb078ba
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x2a30de4c
Capabilities:
Terminate thread

Disassembly:
push 0xc
mov eax, 0x2a351a4b
call fcn.2a3027ac
mov ebx, ecx
xor ecx, ecx
cmp dword [ebx], 0xb
mov edi, ecx
mov dword [ebp - 0x14], edi
jne 0x2a30df3d
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
or dword [ebx + 0x1a0], 0xffffffff
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
lea esi, [eax + 0x12c]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, esi
jae 0x2a30def6
mov edi, esi
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebx + 0x2d8]
mov esi, dword [ebx]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp esi, 0xb
jne 0x2a30def3
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, edi
jb 0x2a30deba
mov edi, dword [ebp - 0x14]
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp dword [ebx], 0xb
jne 0x2a30df1d
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_TerminateThread]
xor edi, edi
inc edi
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebx + 0x2d8], ecx
cmp dword [ebx + 0x18], 0
lea esi, [ebx + 0x1a0]
mov dword [esi], ecx
je 0x2a30df72
test di, di
jne 0x2a30df6f
push esi
push dword [ebx + 0x18]
call fcn.2a317c43
xor ecx, ecx
cmp dword [esi], ecx
jne 0x2a30df72
push esi
push dword [ebx + 0x14]
mov dword [ebx + 0x18], ecx
call fcn.2a317c43
xor ecx, ecx
jmp 0x2a30df72
mov dword [ebx + 0x18], ecx
cmp word [ebx + 0x144], cx
je 0x2a30dff9
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.2a317c43
mov edi, dword [0x2a36ab40]
xor eax, eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebx + 0x40]
push eax
mov eax, dword [0x2a36ab34]
push str.Cstring
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x2a35635c]
call esi
mov esi, dword [edi + 0xd0]
pop ecx
movzx eax, ax
mov ecx, esi
push eax
push 0
call dword [0x2a35635c]
call esi
add esp, 0x10
lea ecx, [ebp - 0x18]
push 0
push eax
call fcn.2a317c43
cmp dword [ebp - 0x14], 0
je 0x2a30dfeb
lea ecx, [ebp - 0x18]
call fcn.2a317c43
test al, al
je 0x2a30dfeb
lea ecx, [ebp - 0x18]
call fcn.2a33c9da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.2a317c43
xor ecx, ecx
cmp dword [ebx + 0x34], 0
je 0x2a30e01d
mov eax, dword [0x2a36a804]
push dword [ebx + 0x34]
mov esi, dword [eax + 0x284]
mov ecx, esi
call dword [0x2a35635c]
call esi
pop ecx
xor ecx, ecx
mov dword [ebx + 0x34], ecx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x2a30e051
push eax
mov eax, dword [0x2a36ab50]
cmp word [ebx + 0x196], cx
je 0x2a30e03b
mov esi, dword [eax + 0x124]
jmp 0x2a30e041
mov esi, dword [eax + 0x11c]
mov ecx, esi
call dword [0x2a35635c]
call esi
xor eax, eax
pop ecx
mov dword [ebx + 0x20], eax
mov dword [ebx], 2
call fcn.2a302c60
ret
Function at 0x41b9ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x41b9fb
pop dword [ebp - 0x3c]
mov eax, 0x4f417970
add eax, 0xb100408b
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x4fdd0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xd97010d9
sub ecx, 0xd96fca17
mov edx, eax
mov esi, 0x488e00
add esi, dword [ebp - 0x3c]
mov ebx, 0x33b5654a
sub ebx, 0x630a12fe
xor dword [ebp - 0x18], 0x3ef21ead
mov edi, dword [esi]
sub dword [ebp - 0xc], 0xdf56e83b
add edi, ebx
xor dword [ebp - 0x18], ebx
mov dword [edx], edi
xor dword [ebp - 0x28], 0x930b3562
add edx, 0xdda4d7a5
add edx, 0x225b285f
add esi, 0xfa853a0f
add esi, 0x57ac5f5
loop 0x41ba4f
add eax, 0x33e5e94a
sub eax, 0x33e4db6f
mov ebx, eax
add eax, 0xc927d0e3
sub eax, 0xc927d0de
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10019832
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10019854
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x10019904
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10019877
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10019879
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x100198f5
jg 0x1001988c
test esi, esi
je 0x100198f5
test eax, eax
jl 0x100198cc
jg 0x10019896
test ebp, ebp
je 0x100198cc
cmp edi, eax
jg 0x100198a6
jl 0x100198a0
cmp esi, ebp
jae 0x100198a6
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ebx + 0x30]
add ecx, ebp
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
jmp 0x100198d0
mov ecx, dword [esp + 0x1c]
test edi, edi
jl 0x100198f5
jg 0x100198da
test esi, esi
je 0x100198f5
cmp dword [ebx + 0x4c], 0
je 0x100198f5
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc

Function at 0x1001a978
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1001a987
pop dword [ebp - 0x10]
mov eax, 0x1001a987
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3bd16
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x62cd21e0
sub ecx, 0x62cccef1
mov edx, eax
mov ebx, 0x10043e00
add ebx, dword [ebp - 0x10]
mov esi, 0x9dd3b5e8
sub dword [ebp - 8], esi
mov edi, dword [ebx]
sub dword [ebp - 0xc], 0xc0bdfd93
sub edi, esi
mov dword [edx], edi
xor dword [ebp - 4], edi
add edx, 0x9592d17f
add edx, 0x6a6d2e85
add ebx, 0xceba5b8b
sub ebx, 0xceba5b87
loop 0x1001a9d0
add eax, 0xbb2c1249
sub eax, 0xbb2ad3ba
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x2e014b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x2e0302bf
call fcn.2e00153c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014b76
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014bdc
lea eax, [ebp - 0x14]
mov edi, 0x2e032941
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014bd3
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014bd3
inc eax
push eax
call fcn.2e01513a
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014bc5
mov ecx, dword [ebp + 0xc]
push esi
call fcn.2e010c49
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e01513a
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001586
ret 8

Function at 0x2e01513a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x2e015149
pop dword [ebp - 0x24]
mov eax, 0x3e6c0fea
add eax, 0xef95415f
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x6fe7f3b4
add dword [ebp - 0x34], 0xde6a5197
mov dword [ebp - 0x30], 0x53a2002f
sub dword [ebp - 0x30], 0x216eb3ea
mov dword [ebp - 0x2c], 0xa6b15eb4
add dword [ebp - 0x2c], 0xa59ae57a
mov dword [ebp - 0x28], 0x36b34b03
add dword [ebp - 0x28], 0xc94cb4fd
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x1e0f21ac
add dword [ebp - 0x34], 0x566347aa
mov dword [ebp - 0x30], 0xb0743d73
add dword [ebp - 0x30], 0x90f82402
mov dword [ebp - 0x2c], 0x87606c5e
sub dword [ebp - 0x2c], 0x23f0fff2
mov dword [ebp - 0x28], 0x1efaf916
sub dword [ebp - 0x28], 0x1efaf916
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x4077e
push 0
call eax
mov ecx, 0x4516
mov esi, eax
mov edx, 0x827d7ddd
add edx, 0xab87f023
add edx, dword [ebp - 0x24]
mov edi, 0x1dddbcdf
sub edi, 0x17e8c784
xor dword [ebp - 8], ebx
mov ebx, dword [edx]
sub dword [ebp - 0x20], 0x6548a53f
xor ebx, edi
sub dword [ebp - 0x20], 0xc578d3b8
mov dword [esi], ebx
xor dword [ebp - 0x14], edx
add esi, 4
add edx, 0xfdde25dd
add edx, 0x221da27
loop 0x2e01525b
add eax, 0xa71477ab
add eax, 0x58ec8f80
xor ebx, ebx
add ebx, eax
add eax, 0x7ad7457c
add eax, 0x8528ba89
mov ecx, 0x13a10475
add ecx, 0x1a5efb8b
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4226cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x4226db
pop dword [ebp - 0x40]
mov eax, 0x4226db
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3ff16
push 0
mov eax, 0x30a88d95
add eax, 0xcf99c483
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x4643c473
add ecx, 0xb9bc8c0b
mov edi, eax
mov edx, 0x273eaa72
add edx, 0xd904a98e
add edx, dword [ebp - 0x40]
mov esi, 0x3f7b18a
sub esi, 0xbdbe653b
mov ebx, dword [edx]
sub dword [ebp - 0x38], 0x7c0eea48
xor ebx, esi
xor dword [ebp - 8], edi
mov dword [edi], ebx
sub dword [ebp - 0x18], 0xf0b11b24
add edi, 0x1b5de773
sub edi, 0x1b5de76f
add edx, 0xde6e0c87
sub edx, 0xde6e0c83
loop 0x422735
add eax, 0x134cb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xcd81e99f
add ecx, 0x32be1661
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x402c00
pop dword [ebp - 0x50]
mov eax, 0x402c00
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xe502e8c7
add dword [ebp - 0x60], 0x694f5c84
mov dword [ebp - 0x5c], 0x8a4b2b8f
sub dword [ebp - 0x5c], 0x5817df4a
mov dword [ebp - 0x58], 0xbcba6428
sub dword [ebp - 0x58], 0x706e1ffa
mov dword [ebp - 0x54], 0x5f925dd3
add dword [ebp - 0x54], 0xa06da22d
lea eax, [ebp - 0x60]
push eax
mov eax, 0x98751d4f
add eax, 0x67cb633d
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xe247d1b3
add dword [ebp - 0x60], 0x922a97a3
mov dword [ebp - 0x5c], 0x51c671b1
add dword [ebp - 0x5c], 0xefa5efc4
mov dword [ebp - 0x58], 0x78fdd0fd
add dword [ebp - 0x58], 0xea719b6f
mov dword [ebp - 0x54], 0x49cb21ab
sub dword [ebp - 0x54], 0x49cb21ab
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xf2bb9779
add eax, 0xd84e95b
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x371b2
push 0
call eax
mov ecx, 0xffef0f13
sub ecx, 0xffeec568
xor esi, esi
add esi, eax
mov edi, 0xc6acf925
add edi, 0x399416db
add edi, dword [ebp - 0x50]
mov ebx, 0x52fcc5c6
mov edx, dword [edi]
add edx, ebx
xor dword [ebp - 0x3c], esi
mov dword [esi], edx
xor dword [ebp - 0x48], 0xfb3c8898
add esi, 0xf57eb25c
add esi, 0xa814da8
add edi, 4
loop 0x402d19
add eax, 0xda383141
sub eax, 0xda3717c2
xor ebx, ebx
add ebx, eax
add eax, 0x68793923
add eax, 0x9786c6e2
mov ecx, 0x1eb31ddb
add ecx, 0xe18ce225
add ecx, dword [ebp - 0x50]
call ebx
leave
ret