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

Disassembly:
mov eax, dword [0x411ca0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40ade2
call edi
mov esi, eax
test esi, esi
je 0x40adcc
mov eax, 1
jmp 0x40addd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40aeef
mov eax, 2
mov dword [0x411ca0], eax
cmp eax, 1
jne 0x40ae82
test esi, esi
jne 0x40adfb
call edi
mov esi, eax
test esi, esi
je 0x40aeef
cmp word [esi], 0
mov eax, esi
je 0x40ae15
add eax, 2
cmp word [eax], 0
jne 0x40ae03
add eax, 2
cmp word [eax], 0
jne 0x40ae03
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40ae74
push edi
call fcn.00408b30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ae74
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40ae66
push ebx
call fcn.00408be0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40aeef
test ebx, ebx
jne 0x40ae93
call ebp
mov ebx, eax
test ebx, ebx
je 0x40aeef
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40aeab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40ae9b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40ae9b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00408b30
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40aecd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40b5e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4106f0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40b604
add eax, 8
inc ebp
cmp eax, 0x410780
jb 0x40b5f5
cmp ecx, dword [ebp*8 + 0x4106f0]
jne 0x40b7ab
mov eax, dword [0x411b30]
cmp eax, 1
je 0x40b76d
test eax, eax
jne 0x40b630
cmp dword [0x40e3b4], 1
je 0x40b76d
cmp ecx, 0xfc
je 0x40b7ab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b66b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40b6b4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40d410
add ebx, ecx
push ebx
call fcn.0040bca0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d3f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4106f4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040bc10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4137e0]
test eax, eax
je 0x40b77e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40b788
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4106f4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x518b9f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x518bdf
mov cl, byte [ebp + 0x14]
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
mov byte [edx + eax], cl
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x518bb1
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x518be5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x518c22
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
xor cl, byte [ebp + 0x14]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x518bf7
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1000817d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1000818c
pop dword [ebp - 0x48]
mov eax, 0xde8ef6f6
add eax, 0x31718a96
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xb7df04bd
sub dword [ebp - 0x58], 0x698cbf72
mov dword [ebp - 0x54], 0x9c46acc
add dword [ebp - 0x54], 0x286ee179
mov dword [ebp - 0x50], 0xf7ca70d1
add dword [ebp - 0x50], 0x5481d35d
mov dword [ebp - 0x4c], 0x53ed38fc
sub dword [ebp - 0x4c], 0x53ed38fc
lea eax, [ebp - 0x58]
push eax
mov eax, 0x15bd63db
add eax, 0xfa42ada5
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x817ac4ac
sub dword [ebp - 0x58], 0xd085b56
mov dword [ebp - 0x54], 0x37342301
sub dword [ebp - 0x54], 0xf5c7c18c
mov dword [ebp - 0x50], 0x436572fa
add dword [ebp - 0x50], 0x2009f972
mov dword [ebp - 0x4c], 0x431aeb76
add dword [ebp - 0x4c], 0xbce5148a
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x4239b
push 0
call eax
mov ecx, 0xba4b75ca
add ecx, 0x45b4e540
mov ebx, eax
mov edx, 0x154a4793
sub edx, 0x5487993
add edx, dword [ebp - 0x48]
mov edi, 0x211772d7
add edi, 0x7666144
xor dword [ebp - 0x20], 0xfee36ee0
mov esi, dword [edx]
add dword [ebp - 0x20], 0x95fe47c0
xor esi, edi
mov dword [ebp - 0x24], 0x492fd6f5
mov dword [ebx], esi
xor dword [ebp - 0x3c], eax
add ebx, 4
add edx, 0x801d8562
sub edx, 0x801d855e
loop 0x100082a9
add eax, 0x15efb
xor ebx, ebx
add ebx, eax
add eax, 0x8b033479
add eax, 0x74fccb8c
mov ecx, 0x94633d4c
sub ecx, 0x84633d4c
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x1000ef53
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000ef60]
jne 0x10017e82
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1001a2f8], eax
mov dword [0x1001a2f4], ecx
mov dword [0x1001a2f0], edx
mov dword [0x1001a2ec], ebx
mov dword [0x1001a2e8], esi
mov dword [0x1001a2e4], edi
mov word [0x1001a310], ss
mov word [0x1001a304], cs
mov word [0x1001a2e0], ds
mov word [0x1001a2dc], es
mov word [0x1001a2d8], fs
mov word [0x1001a2d4], gs
pushfd
pop dword [0x1001a308]
mov eax, dword [ebp]
mov dword [0x1001a2fc], eax
mov eax, dword [ebp + 4]
mov dword [0x1001a300], eax
lea eax, [ebp + 8]
mov dword [0x1001a30c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1001a248], 0x10001
mov eax, dword [0x1001a300]
mov dword [0x1001a1fc], eax
mov dword [0x1001a1f0], 0xc0000409
mov dword [0x1001a1f4], 1
mov eax, dword [0x1000ef60]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1001a044]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1001a240], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10017f84
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1001a240], 0
jne 0x10017f6e
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x6d2638a0
Capabilities:
Hide graphical window

Disassembly:
push 0x2c
mov eax, 0x6d270f43
call fcn.6d26fd21
mov ebx, ecx
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.6d265d86
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 4
push 0xffffffffffffffec
push eax
mov dword [ebp + 0xc], eax
call esi
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x2000000
push eax
push 0xfffffffffffffff0
push dword [ebp + 8]
call esi
mov eax, dword [0x6d27b86c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [ebx + 0x134]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x64]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.6d264141
mov dword [ebp - 0x38], vtable.SmartJObjectRefImpl_class_SmartJLocalRef_.0
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push str._I_Lsun_plugin_viewer_frame_IExplorerEmbeddedFrame_
push str.createFrame
push eax
mov byte [ebp - 4], 1
call fcn.6d2656fc
add esp, 0x10
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.6d264141
mov dword [ebp - 0x2c], vtable.SmartJObjectRefImpl_class_SmartJLocalRef_.0
mov eax, dword [edi + 8]
sub eax, dword [edi]
push 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], eax
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x6d263992
push dword [ebp - 0x28]
mov ecx, eax
push esi
call fcn.6d265f24
mov ecx, eax
jmp 0x6d263994
xor ecx, ecx
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
mov dword [ebx + 0x130], ecx
call fcn.6d26613a
mov ecx, dword [ebx + 0x130]
push 1
call fcn.6d2660c8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp + 8], eax
je 0x6d2639d6
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetParent]
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.6d26455f
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.6d26455f
mov eax, dword [ebp + 0xc]
call fcn.6d26fdc6
ret 8
Function at 0x6d264141
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x6d264150
pop dword [ebp - 0x10]
mov eax, 0xd94fab55
sub eax, 0x6c296a05
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x37b2a
push 0
mov eax, 0x5e032029
sub eax, 0xf0dbff69
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x47b4
xor esi, esi
add esi, eax
mov edi, 0x6d282400
add edi, dword [ebp - 0x10]
mov ebx, 0xe55935b6
xor dword [ebp - 4], 0x5662c658
mov edx, dword [edi]
add dword [ebp - 4], 0xde7785a6
xor edx, ebx
add dword [ebp - 0xc], edi
mov dword [esi], edx
add dword [ebp - 0xc], 0x3d1749f6
add esi, 0xcbf0ed9d
sub esi, 0xcbf0ed99
add edi, 4
loop 0x6d26419f
add eax, 0xc112137
sub eax, 0xc100f94
mov ebx, eax
add eax, 0xd0de74aa
add eax, 0x2f218b5b
mov ecx, 0x6d260000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x6d266e23
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 0x6d266e71
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x6d266e82
push 0xd
pop eax
jmp 0x6d266eac
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d266e85
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 0x6d267366
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d27b7ac]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.6d264141
mov ebx, eax
cmp ebx, esi
je 0x6d2673d9
lea ecx, [ebp - 0x74]
call fcn.6d26142d
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d26fbc0
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x6d2673f1
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d267366
cmp eax, esi
jne 0x6d267423
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x6d2673e1
lea ecx, [ebp - 0x74]
call fcn.6d26142d
push dword [ebp - 0x78]
mov ecx, edi
call fcn.6d266d4c
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.6d26142d
mov eax, esi
jmp 0x6d2673bf
Function at 0x7003e2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x7003e39
pop dword [ebp - 0x2c]
mov eax, 0x7003e39
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x8c04ce23
add dword [ebp - 0x3c], 0xc24d7728
mov dword [ebp - 0x38], 0xf67ceae5
add dword [ebp - 0x38], 0x3bb66160
mov dword [ebp - 0x34], 0xd1d2b991
add dword [ebp - 0x34], 0x7a798a9d
mov dword [ebp - 0x30], 0xc423e1a9
add dword [ebp - 0x30], 0x3bdc1e57
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xd834672e
add dword [ebp - 0x3c], 0x9c3e0228
mov dword [ebp - 0x38], 0x49f42091
add dword [ebp - 0x38], 0xf77840e4
mov dword [ebp - 0x34], 0x26253825
add dword [ebp - 0x34], 0x3d4a3447
mov dword [ebp - 0x30], 0x39a80b14
add dword [ebp - 0x30], 0xc657f4ec
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xd0b398fe
sub eax, 0xc9b268ca
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x380e1
push 0
call eax
mov ecx, 0x3dbf
xor esi, esi
add esi, eax
mov edi, 0x77b59e50
add edi, 0x8f4c63b0
add edi, dword [ebp - 0x2c]
mov edx, 0x4ea5ba8d
sub dword [ebp - 0x28], edi
mov ebx, dword [edi]
mov dword [ebp - 0x18], 0x50dd7587
xor ebx, edx
mov dword [esi], ebx
mov dword [ebp - 0x20], 0x86b299bd
add esi, 0x4debc1bd
sub esi, 0x4debc1b9
add edi, 0xaac1e6c0
sub edi, 0xaac1e6bc
loop 0x7003f47
add eax, 0xb13e6384
sub eax, 0xb13d79b5
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x30e75578
add ecx, 0xd618aa88
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003e2a
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003e2a
int3
Function at 0x417a54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4306a9
call fcn.00430290
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push str.FILEPATH
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x6d
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
call fcn.004069bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6e
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x14]
call fcn.0040ef32
lea ecx, [ebp - 0x18]
mov edx, eax
call fcn.0040ef32
mov ecx, eax
call fcn.004069cb
push str.FILEPATH
push 0x70
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x417b6e
xor ecx, ecx
cmp word [eax], cx
je 0x417b6e
lea ecx, [ebp - 0x10]
call fcn.0040ef32
mov ecx, eax
call fcn.00406a7a
push str.INFOEXE
push 0x7f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x417ba1
mov ecx, dword [edi]
call fcn.00406aa2
lea ecx, [ebp - 0x10]
call fcn.0040eea9
lea ecx, [ebp - 0x14]
call fcn.0040eea9
lea ecx, [ebp - 0x18]
call fcn.0040eea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42c0b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bd74

Function at 0x401a86
Capabilities:
Parse pe header

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

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

Function at 0x10052087
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10052096
pop dword [ebp - 0x38]
mov eax, 0xe9cd8f84
add eax, 0x26379112
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x808501ff
add dword [ebp - 0x48], 0xcdcd434c
mov dword [ebp - 0x44], 0x2decd76e
sub dword [ebp - 0x44], 0xfbb98b29
mov dword [ebp - 0x40], 0x9cdeb480
sub dword [ebp - 0x40], 0x50927052
mov dword [ebp - 0x3c], 0xa68eb2f2
sub dword [ebp - 0x3c], 0xa68eb2f2
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x5b7fe3e0
add dword [ebp - 0x48], 0x18f28576
mov dword [ebp - 0x44], 0x184f9015
add dword [ebp - 0x44], 0x291cd160
mov dword [ebp - 0x40], 0x19646cb6
add dword [ebp - 0x40], 0x4a0affb6
mov dword [ebp - 0x3c], 0x481a4054
add dword [ebp - 0x3c], 0xb7e5bfac
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xac35b296
add eax, 0x63cfddaa
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x629da
push 0
call eax
mov ecx, 0xce3cc2c4
add ecx, 0x31c39876
mov esi, eax
mov edi, 0x3085ef23
sub edi, 0x207f5b23
add edi, dword [ebp - 0x38]
mov ebx, 0xa0e5d3e8
add ebx, 0x6e77a544
mov edx, dword [edi]
xor dword [ebp - 4], ecx
sub edx, ebx
mov dword [esi], edx
sub dword [ebp - 0x34], 0x24e739e1
add esi, 0x89070075
sub esi, 0x89070071
add edi, 4
loop 0x100521b3
add eax, 0x433e2b4a
sub eax, 0x433ccb8f
xor ebx, ebx
add ebx, eax
add eax, 0x6c3ec48f
sub eax, 0x6c3ec48a
mov ecx, 0x296b79a5
add ecx, 0xe694865b
add ecx, dword [ebp - 0x38]
call ebx
leave
ret