joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dcc4
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
mov edi, 0x100834d0
push edi
call sym.glib_lite.dll_Ordinal_240
xor esi, esi
inc esi
pop ecx
test eax, eax
je 0x1000dcff
push str.G_MAIN_POLL_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ecx, dword [0x100834b0]
test eax, eax
push esi
cmovne ecx, esi
push edi
mov dword [0x100834b0], ecx
call sym.glib_lite.dll_Ordinal_241
add esp, 0xc
push ebx
push 0x70
push esi
call sym.glib_lite.dll_Ordinal_200
mov edi, eax
push edi
call sym.glib_lite.dll_Ordinal_211
lea ecx, [edi + 8]
push ecx
call sym.glib_lite.dll_Ordinal_52
xor ebx, ebx
push ebx
push ebx
call sym.glib_lite.dll_Ordinal_128
mov dword [edi + 0x24], eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], ebx
mov dword [edi + 0x5c], 0x1001baf7
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
call fcn.100016bb
mov dword [edi + 0x28], eax
mov dword [edi + 0x68], ebx
call fcn.1001c0f2
lea esi, [edi + 0x50]
mov dword [edi + 0x4c], eax
push esi
push eax
call fcn.1001c0de
push esi
push ebx
push edi
call fcn.1000d835
mov esi, 0x100834c4
push esi
call sym.glib_lite.dll_Ordinal_212
push edi
push dword [0x100834cc]
call sym.glib_lite.dll_Ordinal_328
add esp, 0x38
mov dword [0x100834cc], eax
cmp dword [0x100834b0], 0
pop ebx
je 0x1000dd9c
push edi
push str.created_context_p_n
call fcn.10032d98
pop ecx
pop ecx
push esi
call sym.glib_lite.dll_Ordinal_213
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x1000f4ca
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10083304]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
lea eax, [ebp - 0x80]
xor esi, esi
push eax
push dword [ebp + 0x19c]
mov dword [ebp - 0x80], esi
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x1000f52c
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1000f523
push esi
push esi
push esi
lea eax, [ebp - 0x7c]
push 0xffffffffffffffff
push eax
call sym.glib_lite.dll_Ordinal_446
add esp, 0x14
mov esi, eax
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100319bd
add ebp, 0x194
leave
ret
Function at 0x10010d21
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1040
call fcn.10031b90
mov eax, dword [0x10083304]
xor eax, esp
mov dword [esp + 0x103c], eax
and dword [esp], 0
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1048]
push edi
mov edi, dword [esp + 0x1058]
push eax
push dword [esp + 0x1054]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
pop ecx
pop ecx
test eax, eax
jns 0x10010d93
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
push esi
call sym.glib_lite.dll_Ordinal_364
pop ecx
push eax
push esi
call fcn.100030dd
pop ecx
push eax
call fcn.100031d3
push eax
push edi
call fcn.10032d98
add esp, 0x10
xor eax, eax
jmp 0x10010e72
test dword [esp + 0x12], 0x8000
jne 0x10010dab
push str.Not_a_regular_file
push 1
call fcn.10010763
jmp 0x10010d82
push ebx
mov bl, byte [esi + 0x14]
push esi
call fcn.100106e7
push esi
call fcn.10010bbf
mov eax, dword [esp + 0x1060]
pop ecx
pop ecx
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], eax
push ebp
push 0x1000
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x1060]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
mov ebp, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
test ebp, ebp
je 0x10010e3e
jns 0x10010e20
cmp ebx, 4
je 0x10010e34
cmp ebx, 0xb
je 0x10010e34
push ebx
call sym.glib_lite.dll_Ordinal_364
pop ecx
push eax
push ebx
call fcn.100030dd
pop ecx
push eax
call fcn.100031d3
push eax
push edi
call fcn.10032d98
add esp, 0x10
jmp 0x10010e69
lea eax, [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x54]
push eax
push esi
call fcn.100110da
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010dcb
jmp 0x10010e46
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010e49
push eax
jmp 0x10010e61
lea eax, [esp + 0x10]
push eax
push esi
call fcn.10032d98
cmp dword [esp + 0x18], 0
pop ecx
pop ecx
je 0x10010e6d
push dword [esp + 0x10]
push edi
call fcn.10032d98
pop ecx
pop ecx
xor eax, eax
jmp 0x10010e70
xor eax, eax
inc eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x1044]
pop edi
pop esi
xor ecx, esp
call fcn.100319bd
add esp, 0x1040
ret
Function at 0x10014c64
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xa0
mov eax, dword [0x10083304]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
push esi
mov esi, dword [esp + 0xb8]
push edi
xor edi, edi
mov dword [esp + 0x18], ebx
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10014cc9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push esi
jmp 0x10014df3
mov edx, 0x80
test esi, esi
je 0x10014ce0
test ebp, 0x400
mov eax, 0x200080
cmovne edx, eax
mov ecx, edx
mov eax, ebp
push edi
or ecx, 0x2000000
and al, 0x10
cmove ecx, edx
push ecx
push 3
push edi
push 7
push 0x88
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10014cb5
lea eax, [esp + 0x78]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x10014de2
push 0x18
lea eax, [esp + 0x64]
push eax
push 1
push ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandleEx]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x10014de2
mov esi, dword [esp + 0x18]
test ebp, 0x400
je 0x10014d9b
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
xor edx, edx
test ecx, ecx
push 1
cmovne eax, edx
push eax
push edi
push edi
lea eax, [esp + 0x24]
push eax
xor eax, eax
test ecx, ecx
cmovne eax, ebx
test ecx, ecx
push eax
mov eax, esi
cmovne eax, edx
push eax
call fcn.10032d98
add esp, 0x1c
test eax, eax
jns 0x10014d97
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10014dff
mov edi, dword [esp + 0x14]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x18]
push esi
call fcn.10032d98
push dword [esp + 0x20]
call sym.glib_lite.dll_Ordinal_109
push dword [esp + 0x38]
lea eax, [esp + 0x78]
push edi
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.10032d98
add esp, 0x28
xor eax, eax
jmp 0x10014e02
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [esp + 0x1c]
mov ecx, eax
call fcn.100152e4
add esp, 4
mov dword [ecx], eax
or eax, 0xffffffff
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100319bd
add esp, 0xa0
ret
Function at 0x100199e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ecx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push 1
push esi
push 0x10038770
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10019a70
push ebp
lea eax, [esp + 8]
mov dword [esp + 8], esi
push eax
push esi
push esi
push esi
mov ebp, str.TimeZoneKeyName
push ebp
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10019a65
push edi
push dword [esp + 0xc]
call sym.glib_lite.dll_Ordinal_198
mov edi, eax
pop ecx
test edi, edi
je 0x10019a5d
lea eax, [esp + 0xc]
push eax
push edi
push esi
push esi
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10019a5d
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
call sym.glib_lite.dll_Ordinal_446
add esp, 0x14
mov esi, eax
jmp 0x10019a64
push edi
call sym.glib_lite.dll_Ordinal_109
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop esi
pop ecx
pop ecx
ret

Function at 0x1001b19d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10083304]
xor eax, ebp
mov dword [ebp - 4], eax
push str.G_DEBUG
mov dword [ebp - 0x1c], str.gc_friendly
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], str.fatal_warnings
mov dword [ebp - 0x10], 0x18
mov dword [ebp - 0xc], str.fatal_criticals
mov dword [ebp - 8], 8
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x1001b1f6
push 3
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.1001b2b4
add esp, 0xc
mov ecx, eax
and eax, 1
and ecx, 0xfffffffc
mov dword [0x10083768], eax
or dword [0x10083210], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100319bd
leave
ret

Function at 0x1001f1fc
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [edi + 0x74]
push eax
xor eax, eax
push eax
push edi
push dword [esp + 0x20]
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
test esi, esi
jne 0x1001f243
push dword [eax]
call sym.glib_lite.dll_Ordinal_364
push eax
push str.Error_creating_thread:__s.
push 0x10
push str.Glib
call sym.glib_lite.dll_Ordinal_186
add esp, 0x14
jmp 0x1001f277
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1001f277
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10032d98
mov esi, eax
push esi
push str.Error_closing_thread_handle:__s.
push 0x10
push str.Glib
call sym.glib_lite.dll_Ordinal_186
push esi
call sym.glib_lite.dll_Ordinal_109
add esp, 0x18
push 0xffffffffffffffff
push dword [edi + 0x8c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
pop edi
pop esi
ret
Function at 0x1000dfd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000dfdf
pop dword [ebp - 0xc]
mov eax, 0x1000dfdf
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x3acbd904
sub dword [ebp - 0x1c], 0xec7993b9
mov dword [ebp - 0x18], 0x57a49e35
sub dword [ebp - 0x18], 0x257151f0
mov dword [ebp - 0x14], 0xf08cfce5
add dword [ebp - 0x14], 0x5bbf4749
mov dword [ebp - 0x10], 0x802984a0
add dword [ebp - 0x10], 0x7fd67b60
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xb75b5267
sub eax, 0xa75a3227
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x998ead62
sub dword [ebp - 0x1c], 0x251c440c
mov dword [ebp - 0x18], 0xfec51b08
add dword [ebp - 0x18], 0x42a7466d
mov dword [ebp - 0x14], 0xc30e9431
sub dword [ebp - 0x14], 0x5f9f27c5
mov dword [ebp - 0x10], 0xe0c41f61
add dword [ebp - 0x10], 0x1f3be09f
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x366e3
push 0
call eax
mov ecx, 0x3aca
xor edx, edx
add edx, eax
mov ebx, 0x34dc1a42
add ebx, 0xdb2595be
add ebx, dword [ebp - 0xc]
mov edi, 0x8f727523
sub edi, 0xd7816746
xor dword [ebp - 4], edi
mov esi, dword [ebx]
mov dword [ebp - 4], 0x2509cb0b
xor esi, edi
add dword [ebp - 4], 0x7a66341d
mov dword [edx], esi
add dword [ebp - 4], 0x39df9cbe
add edx, 4
add ebx, 0x606ae5a1
sub ebx, 0x606ae59d
loop 0x1000e0f3
add eax, 0x1700e2b6
add eax, 0xe8fffb45
mov ebx, eax
add eax, 0x90122056
sub eax, 0x90122051
mov ecx, 0x9092a860
sub ecx, 0x8092a860
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x1000167c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d908
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10001768
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.1001ba93
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000173e
call fcn.100037d1
jmp 0x1000173e
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.1001ba93
int3

Function at 0x1000177d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d938
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10001869
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.1001ba93
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000183f
call fcn.100037d1
jmp 0x1000183f
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.1001ba93
int3
Function at 0x100019e1
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x1001d960
call fcn.10004980
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0x14], esi
mov word [ebx], ax
call fcn.100018f8
test eax, eax
je 0x10001a12
call fcn.100018ea
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x10021c18
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x10001b28
jmp 0x10001a62
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10001a70
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
push ebx
push edi
push edi
push 0x1a
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x10001ad1
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10001b2e
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
push 1
push 0x1a
push ebx
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
jns 0x10001b20
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10001b2e
mov eax, esi
call fcn.10004937
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.10003d44
pop ecx
pop ecx
push edi
push esi
call fcn.1001ba93
int3

Function at 0x10002445
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x10002469
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret
Function at 0x100030b4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x1001d9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1001ec0c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1001ba93
add esp, 0xc
test eax, eax
jne 0x100031a9
push dword [ebp - 0x18]
call fcn.1001ba93
cmp dword [0x1002aa80], 0
pop ecx
je 0x10003122
xor eax, eax
inc eax
jmp 0x100031ab
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x100031a9
test eax, eax
je 0x100031a9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000330b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
call fcn.1000330b
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.100033d2
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10003177
call fcn.100037d1
push 0x1001ec38
lea ecx, [ebp - 0x10]
call fcn.100033b4
push eax
push 0x1002aa80
call fcn.1001ba93
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
test ecx, ecx
je 0x100031a4
call fcn.100037d1
lea eax, [esi + 1]
jmp 0x100031ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.10004926
add ebp, 0x108
leave
ret

Function at 0x10003656
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.1001ba93
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x100036e0
lea eax, [esp + 0x28]
push eax
call fcn.10003656
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x100036bb
call fcn.1000342b
push ebx
mov ecx, edi
call fcn.10003445
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1000342b
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x11c
ret 4
Function at 0x10003bc2
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.10005d80
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.1001ba93
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.1001ba93
push 0x10021be8
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.1001ba93
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10005d80
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c67
sub ecx, edx
cmp ecx, 6
jbe 0x10003c8e
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.1001ba93
pop ecx
pop ecx
test eax, eax
jne 0x10003c8e
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003c95
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10020533
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.1001ba93
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.10005800
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003d0f
mov ax, word [0x10021c14]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x824
ret
Function at 0x1001ba93
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1001baa2
pop dword [ebp - 0x4c]
mov eax, 0xa4bd9053
sub eax, 0x94bbd5b1
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x5abdbb97
add dword [ebp - 0x5c], 0xf39489b4
mov dword [ebp - 0x58], 0xb6106bb8
add dword [ebp - 0x58], 0x7c22e08d
mov dword [ebp - 0x54], 0xbc042296
add dword [ebp - 0x54], 0x90482198
mov dword [ebp - 0x50], 0x24e4c12a
add dword [ebp - 0x50], 0xdb1b3ed6
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xcaf87147
add eax, 0x45096f39
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x21c345bb
add dword [ebp - 0x5c], 0x52af239b
mov dword [ebp - 0x58], 0x85d8f77d
sub dword [ebp - 0x58], 0x446c9608
mov dword [ebp - 0x54], 0x2723a086
add dword [ebp - 0x54], 0x3c4bcbe6
mov dword [ebp - 0x50], 0xffc5b359
add dword [ebp - 0x50], 0x3a4ca7
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x2cf89710
add eax, 0xe3094974
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x41227
push 0
call eax
mov ecx, 0x5747
mov edx, eax
mov edi, 0x16e11619
add edi, 0xf92241e7
add edi, dword [ebp - 0x4c]
mov esi, 0xe9923d28
sub esi, 0x7bb89f23
mov ebx, dword [edi]
sub dword [ebp - 0x2c], eax
add ebx, esi
xor dword [ebp - 0x30], eax
mov dword [edx], ebx
xor dword [ebp - 0x1c], 0xaad1e78f
add edx, 0xa7232128
sub edx, 0xa7232124
add edi, 4
loop 0x1001bbbe
add eax, 0x980353b6
add eax, 0x67fdfc39
mov ebx, eax
add eax, 0x518162e2
sub eax, 0x518162dd
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1002aaee
pop dword [ebp - 0x30]
mov eax, 0x1002aaee
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xc393f066
sub dword [ebp - 0x40], 0x7541ab1b
mov dword [ebp - 0x3c], 0xa455c935
sub dword [ebp - 0x3c], 0x72227cf0
mov dword [ebp - 0x38], 0x8230c9cb
sub dword [ebp - 0x38], 0x35e4859d
mov dword [ebp - 0x34], 0xa9bbf821
sub dword [ebp - 0x34], 0xa9bbf821
lea eax, [ebp - 0x40]
push eax
mov eax, 0xa77f814a
sub eax, 0x977cc112
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x490f9b8e
sub dword [ebp - 0x40], 0xd49d3238
mov dword [ebp - 0x3c], 0x31dd7620
sub dword [ebp - 0x3c], 0xf07114ab
mov dword [ebp - 0x38], 0x9d47919a
sub dword [ebp - 0x38], 0x39d8252e
mov dword [ebp - 0x34], 0xc4907992
add dword [ebp - 0x34], 0x3b6f866e
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 0x3572c
push 0
call eax
mov ecx, 0xbce3cb24
add ecx, 0x431c78c8
mov edi, eax
mov esi, 0x94433962
sub esi, 0x843fa362
add esi, dword [ebp - 0x30]
mov ebx, 0x1078d858
add dword [ebp - 0x28], 0x4597eec7
mov edx, dword [esi]
add dword [ebp - 0x10], 0xcb4c52e
xor edx, ebx
sub dword [ebp - 0x18], ecx
mov dword [edi], edx
add edi, 0xaa7e659d
sub edi, 0xaa7e6599
add esi, 0xeb422d29
add esi, 0x14bdd2db
loop 0x1002ac00
add eax, 0x10283
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xcb6f29fd
add ecx, 0x4490d603
add ecx, dword [ebp - 0x30]
call ebx
leave
ret