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 sym.glib_lite.dll_Ordinal_361
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 0x1000f5c7
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor eax, eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
call fcn.1001a811
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
add esp, 0x14
mov ebx, eax
lea eax, [esp + 0x10]
push 2
pop esi
push esi
push eax
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x1000f62b
push ebx
call sym.glib_lite.dll_Ordinal_109
pop ecx
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xcb
jne 0x1000f614
xor eax, eax
jmp 0x1000f6d8
push 0x100355f0
call sym.glib_lite.dll_Ordinal_283
push eax
call sym.glib_lite.dll_Ordinal_285
pop ecx
pop ecx
jmp 0x1000f6d8
cmp edi, 1
push esi
cmove edi, esi
push edi
call sym.glib_lite.dll_Ordinal_201
pop ecx
pop ecx
push edi
mov esi, eax
push esi
push ebx
call ebp
lea ecx, [edi - 1]
cmp eax, ecx
je 0x1000f658
push ebx
call sym.glib_lite.dll_Ordinal_109
push esi
call sym.glib_lite.dll_Ordinal_109
pop ecx
pop ecx
jmp 0x1000f60d
push 0x25
push esi
call sub.vcruntime140.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x1000f6a6
push 2
lea eax, [esp + 0x14]
mov edi, esi
push eax
push esi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test ebp, ebp
jle 0x1000f6a6
push 2
push ebp
call sym.glib_lite.dll_Ordinal_201
pop ecx
pop ecx
push ebp
mov esi, eax
push esi
push edi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
je 0x1000f69f
push esi
call sym.glib_lite.dll_Ordinal_109
mov esi, edi
jmp 0x1000f6a5
push edi
call sym.glib_lite.dll_Ordinal_109
pop ecx
xor eax, eax
push eax
push eax
push eax
push 0xffffffffffffffff
push esi
call sym.glib_lite.dll_Ordinal_446
push ebx
mov edi, eax
call sym.glib_lite.dll_Ordinal_109
push esi
call sym.glib_lite.dll_Ordinal_109
push edi
call sym.glib_lite.dll_Ordinal_284
push edi
mov esi, eax
call sym.glib_lite.dll_Ordinal_109
push esi
call sym.glib_lite.dll_Ordinal_285
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1000fe50
Capabilities:
Hash data using djb2

Disassembly:
mov edx, dword [esp + 4]
mov ecx, 0x1505
jmp 0x1000fe64
imul ecx, ecx, 0x21
movsx eax, al
add ecx, eax
inc edx
mov al, byte [edx]
test al, al
jne 0x1000fe5b
mov eax, ecx
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 sym.glib_lite.dll_Ordinal_361
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 sym.glib_lite.dll_Ordinal_361
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 sym.glib_lite.dll_Ordinal_361
cmp dword [esp + 0x18], 0
pop ecx
pop ecx
je 0x10010e6d
push dword [esp + 0x10]
push edi
call sym.glib_lite.dll_Ordinal_361
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 0x100142b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, dword [edx + 0x9c0]
cmp edi, 0x270
jb 0x10014365
push ebx
push ebp
xor edi, edi
mov ebp, closesocket
push esi
mov esi, edi
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebp
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x10038110]
xor ecx, dword [edx + esi*4 + 0x634]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, 0xe3
jl 0x100142d3
mov ebx, 0x26f
jmp 0x1001432c
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebp
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x10038110]
xor ecx, dword [edx + esi*4 - 0x38c]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, ebx
jl 0x10014307
mov ecx, dword [edx + 0x9bc]
xor ecx, dword [edx]
and ecx, ebp
xor ecx, dword [edx + 0x9bc]
mov eax, ecx
shr ecx, 1
and eax, 1
pop esi
pop ebp
pop ebx
mov eax, dword [eax*4 + 0x10038110]
xor eax, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
mov dword [edx + 0x9c0], edi
mov ecx, dword [edx + edi*4]
lea eax, [edi + 1]
mov dword [edx + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop edi
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 sym.glib_lite.dll_Ordinal_361
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 sym.glib_lite.dll_Ordinal_361
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 sym.glib_lite.dll_Ordinal_361
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 0x10014ff5
Capabilities:
Create directory

Disassembly:
push ebp
xor eax, eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
call fcn.1001a811
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x10015020
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
ret
push ebx
push esi
push ebp
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push ebp
mov esi, dword [eax]
call sym.glib_lite.dll_Ordinal_109
pop ecx
pop ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x100150a6
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
xor esi, esi
or edi, 0xffffffff
push esi
push esi
push esi
push edi
push dword [esp + 0x20]
call fcn.1001a811
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x100150d2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x10015138
push ebp
push esi
push esi
push esi
push edi
push dword [esp + 0x28]
call fcn.1001a811
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x100150fe
push ebx
call sym.glib_lite.dll_Ordinal_109
pop ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x10015137
push 1
push ebp
push ebx
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x10015110
mov edi, esi
jmp 0x10015121
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100152e4
add esp, 4
mov esi, eax
push ebx
call sym.glib_lite.dll_Ordinal_109
push ebp
call sym.glib_lite.dll_Ordinal_109
pop ecx
pop ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
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 sym.glib_lite.dll_Ordinal_361
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 0x10025c73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10025c82
pop dword [ebp - 0x48]
mov eax, 0x93c10d3e
add eax, 0x7c414f44
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xa9245fc3
add dword [ebp - 0x58], 0xa52de588
mov dword [ebp - 0x54], 0x5074c6ae
add dword [ebp - 0x54], 0xe1be8597
mov dword [ebp - 0x50], 0xf16c44a9
sub dword [ebp - 0x50], 0xa520007b
mov dword [ebp - 0x4c], 0x35e8b6b3
sub dword [ebp - 0x4c], 0x35e8b6b3
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xb77022c6
sub dword [ebp - 0x58], 0x42fdb970
mov dword [ebp - 0x54], 0x66641dc3
sub dword [ebp - 0x54], 0x24f7bc4e
mov dword [ebp - 0x50], 0x490eefd1
add dword [ebp - 0x50], 0x1a607c9b
mov dword [ebp - 0x4c], 0x62d37f11
sub dword [ebp - 0x4c], 0x62d37f11
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xcc0aa116
add eax, 0x43f8b04e
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x39d8e
push 0
call eax
mov ecx, 0xb88ecd63
add ecx, 0x4771758f
mov ebx, eax
mov esi, 0x10088400
add esi, dword [ebp - 0x48]
mov edi, 0x1cfbf7a2
add edi, 0x1c00c284
xor dword [ebp - 0x14], eax
mov edx, dword [esi]
xor dword [ebp - 4], 0x429e9ac7
add edx, edi
mov dword [ebp - 0x18], 0x46dd3a21
mov dword [ebx], edx
add dword [ebp - 0x1c], edi
add ebx, 0x8bded70
add ebx, 0xf7421294
add esi, 0xa27fbe2
add esi, 0xf5d80422
loop 0x10025d99
add eax, 0xfe9b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x1003384b
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x10033862
mov bl, byte [eax]
inc eax
mov dword [esi + 0x50], eax
jmp 0x100338ce
cmp dword [esi + 0x4c], 0
jl 0x100338cc
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003389a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003386b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003386b
cmp ebx, 1
jge 0x100338a7
or dword [esi + 0x4c], 0xffffffff
xor bl, bl
jmp 0x100338ec
lea eax, [edi + 1]
mov dword [esi + 0x50], eax
lea eax, [ebx + edi]
mov dword [esi + 0x54], eax
mov bl, byte [edi]
test bl, bl
jne 0x100338ce
push esi
call fcn.100348ff
mov eax, dword [esi + 0x50]
or dword [esi + 0x4c], 0xffffffff
pop ecx
mov dword [esi + 0x54], eax
jmp 0x100338ce
xor bl, bl
cmp bl, 0xa
jne 0x100338e2
mov eax, dword [esp + 0x18]
and dword [eax], 0
mov eax, dword [esp + 0x14]
inc dword [eax]
jmp 0x100338ec
test bl, bl
je 0x100338ec
mov ecx, dword [esp + 0x18]
inc dword [ecx]
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x100347ff
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x10034812
mov al, byte [eax]
jmp 0x10034855
cmp dword [esi + 0x4c], 0
jl 0x10034853
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003484a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003481b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003481b
cmp ebx, 1
jge 0x10034859
or dword [esi + 0x4c], 0xffffffff
xor al, al
pop edi
pop esi
pop ebx
ret
lea ecx, [ebx + edi]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ecx
mov al, byte [edi]
jmp 0x10034855
Function at 0x432000
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x71587e76
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x781a03f0
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x40c144]
xor eax, esp
mov dword [esp + 0x478], eax
push esi
push 0x40
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x2c], 0
call fcn.004035d0
add esp, 0xc
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x72]
push edx
mov dword [esp + 0x10], 0xffffffff
mov word [esp + 0x74], cx
call fcn.004035d0
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x68]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.004011d0
movzx esi, dx
xor ecx, ecx
or ecx, esi
mov dword [esp + 0x1c], edx
je 0x40108b
push edx
push eax
push 0x15
jmp 0x40119f
push str.WinToUSB.exe_clone
lea eax, [esp + 0x6c]
push 0x208
push eax
call fcn.00401687
add esp, 0xc
push 0x44
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.004035d0
add esp, 0xc
xor eax, eax
lea edx, [esp + 4]
push edx
push eax
push 2
push 0x40ab40
push 0x40ab44
push 0x40ab48
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x44
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x88]
push edx
push 0
jne 0x40113b
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40116d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.00407df0
add eax, 0x310000
adc edx, 0x15
push edx
push eax
push 0x32
jmp 0x40119f
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x40116d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.00407df0
add eax, 0x450000
adc edx, 0x15
push edx
push eax
push 0x46
jmp 0x40119f
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4011b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.00407df0
add eax, 0x520000
adc edx, 0x15
push edx
push eax
push 0x53
push str..CloneLoader.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401460
add esp, 0x14
mov ecx, dword [esp + 0x47c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00401678
mov esp, ebp
pop ebp
ret

Function at 0x401678
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c144]
jne 0x401682
repz ret
jmp fcn.00403035