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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c1fa
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c204
mov byte [eax], 0
test edi, edi
je 0x40c2ad
movzx eax, word [edi]
test ax, ax
je 0x40c2ad
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c23d
cmp dword [ebp + 0xc], 0
je 0x40c249
test esi, esi
jne 0x40c249
test ebx, ebx
je 0x40c239
mov byte [ebx], 1
mov esi, edx
jmp 0x40c258
cmp ax, 0xd
je 0x40c26b
cmp ax, 0xa
je 0x40c26d
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c263
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c21d
jmp 0x40c26d
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c26d
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c2a8
mov word [ebx], ax
test esi, esi
je 0x40c2a8
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040e96e
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c2af
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c2f4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0041266c
cmp byte [0x41d315], 0
jne 0x40c382
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407c19
push eax
call fcn.0040f237
test eax, eax
jne 0x40c382
push 0x4137f4
call fcn.00412659
lea eax, [ebp - 0x820]
push eax
call fcn.0040af4c
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040ac1d
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c449
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x41c1f1], 1
cmp dword [0x41c200], ebx
je 0x40c471
push 0x7d
call fcn.0040a288
push eax
push 2
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x41c200]
mov dword [0x41c1f4], ebx
mov byte [0x41c1f0], 1
cmp eax, ebx
je 0x40c4d2
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41d324], ebx
jne 0x40c4a0
cmp byte [0x41d314], bl
je 0x40c4a8
cmp dword [0x41c1f8], ebx
jne 0x40c4ca
push ebx
push 1
push 0x111
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c4ca
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b3a7
cmp dword [0x41c200], ebx
jne 0x40c4be
cmp byte [0x41c208], bl
pop ebx
je 0x40c4e0
jmp fcn.0040c2f4
ret
Function at 0x40c51c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x41c210], bl
je 0x40c59c
cmp word [0x41b0d8], bx
je 0x40c59c
push esi
push 0x41b0d8
lea esi, [ebp - 0x808]
call fcn.0040c4e1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c59c
push dword [ebp + 8]
call fcn.0040af4c
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40c5a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x41c210], 0
je 0x40c627
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x80c]
call fcn.0040c4e1
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c627
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c61e
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040af76
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40c74f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x41c0e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x41c0e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x41c0ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41c0e0], eax
je 0x40c77f
xor eax, eax
inc eax
jmp 0x40c7a8
cmp byte [0x41c0e7], 0
je 0x40c78d
push 2
pop eax
jmp 0x40c7a8
push dword [ebp + 8]
push 0x40b980
push dword [0x41c200]
push str.REPLACEFILEDLG
push dword [0x415e74]
call esi
dec eax
je 0x40c7fa
dec eax
je 0x40c80c
dec eax
je 0x40c7f3
dec eax
jne 0x40c7d7
push dword [ebp + 8]
push 0x40bccc
push dword [0x41c200]
push str.RENAMEDLG
push dword [0x415e74]
call esi
test eax, eax
je 0x40c759
mov al, 0x52
jmp 0x40c807
dec eax
je 0x40c7e8
dec eax
mov al, 0x4e
jne 0x40c807
mov byte [0x41c0e7], 1
jmp 0x40c807
mov byte [0x41c1f2], 1
mov al, 0x43
jmp 0x40c807
mov byte [0x41c0e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40c807
Function at 0x40c9c5
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.00401200
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40cbfc
push esi
call fcn.0040af4c
cmp eax, 0x3f6
jae 0x40cbfc
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.0040ac1d
movzx ecx, word [esi]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x5c0
cmp cx, 0x22
jne 0x40ca1c
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
jmp 0x40ca1f
mov dword [ebp - 0x30], esi
xor eax, eax
cmp cx, bx
je 0x40ca75
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40ca47
jmp 0x40ca37
cmp word [esi + eax*2], 0x22
je 0x40ca40
inc eax
cmp word [esi + eax*2], bx
jne 0x40ca30
jmp 0x40ca47
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40ca61
cmp word [esi + eax*2 + 2], 0x2f
je 0x40ca61
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40ca28
jmp 0x40ca75
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40ca6f
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 8], bl
jne 0x40ca8a
cmp word [0x41ca12], bx
je 0x40ca8a
mov dword [ebp - 0x2c], 0x41ca12
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.00407e93
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40cab6
push str..inf
push eax
call fcn.0040f17a
test eax, eax
jne 0x40cab6
mov dword [ebp - 0x34], 0x413840
push dword [ebp - 0x30]
call fcn.00405d51
mov bl, al
test bl, bl
je 0x40cadc
lea eax, [ebp - 0x1040]
push eax
push dword [ebp - 0x30]
call fcn.004079d2
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], 0
je 0x40cb1a
test bl, bl
jne 0x40cb1a
push dword [ebp - 0x30]
lea eax, [ebp - 0x840]
push eax
call fcn.0040af76
push str..exe
lea eax, [ebp - 0x840]
push eax
call fcn.0040afe3
lea eax, [ebp - 0x840]
push eax
call fcn.00405d51
test al, al
je 0x40cbfb
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x40]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40cb4c
and dword [ebp - 0x3c], 0xfffffbff
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], esi
call edi
test eax, eax
setne al
test al, al
je 0x40cbfb
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor bl, bl
cmp byte [0x41c208], bl
jne 0x40cb61
cmp byte [ebp + 8], bl
je 0x40cb97
mov eax, dword [0x41c200]
test eax, eax
je 0x40cb81
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40cb81
push 0
push dword [0x41c200]
call esi
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 8]
call fcn.0040c2b5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40cbb7
push str..exe
push dword [ebp - 4]
call fcn.0040f17a
test eax, eax
je 0x40cbe7
cmp byte [0x41c208], 0
je 0x40cbcd
cmp byte [ebp + 8], 0
jne 0x40cbcd
push 0x1b58
jmp 0x40cbe1
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x40cbfb
cmp byte [ebp + 8], 0
je 0x40cbfb
push 1
push dword [0x41c200]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e151
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
call fcn.0040ec40
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x424cf8
call fcn.0040f334
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp esi, ebx
je 0x40e1df
push esi
call fcn.0040c03c
cmp byte [0x41c211], bl
je 0x40e1d7
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e1cc
push 0x20000
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40e1c5
push esi
push str.sfxcmd
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e1df
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x41b8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x415e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x415e78]
mov dword [0x41b8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x41b8d8], eax
call fcn.004126dc
push esi
mov ecx, 0x415e88
call fcn.0040a271
lea ecx, [ebp - 0x40]
call fcn.00406a41
lea ecx, [ebp - 0x24]
call fcn.00406a41
push 0x64
call fcn.0040b6b0
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040b6b0
push ebx
push 0x40d8ba
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x41b0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x41b0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x24]
mov dword [0x41b0d0], ebx
mov dword [0x41b0d4], ebx
call fcn.00406a57
lea ecx, [ebp - 0x40]
call fcn.00406a57
lea ecx, [ebp - 8]
call fcn.0041272e
cmp byte [0x41c208], bl
je 0x40e2b4
call fcn.0040c2f4
push 0x100
push ebx
push 0x41c0f0
call fcn.0040ac1d
cmp dword [0x41d324], ebx
jbe 0x40e2d7
push dword [0x41d318]
call fcn.0040ab99
push dword [0x41b8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x40e2f1
push eax
call esi
cmp dword [0x415e7c], ebx
jne 0x40e310
cmp byte [0x41c1f2], bl
je 0x40e310
push 0xff
mov ecx, 0x415e7c
call fcn.004033c8
mov eax, dword [0x41d32c]
mov byte [0x41c1f2], 1
cmp eax, ebx
je 0x40e326
push eax
call fcn.0040c2b5
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x415e7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e698
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x41266c
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x404888
Capabilities:
Create pipe
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4dcee8]
mov ecx, dword [0x4dbe3c]
sub esp, 0xe84
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40498b
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4dcee8], 0x959
jne 0x404979
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x403fe8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x404040
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00404695
add ebx, 8
dec dword [ebp - 8]
jne 0x4048b1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406fdb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b708]
jne 0x406fe5
repz ret
jmp fcn.0040eb2c

Function at 0x4108a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040875d
and dword [ebp - 4], 0
cmp dword [0x42da30], 0
mov ebx, eax
jne 0x410958
push 0x4037fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410a09
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037f0
push edi
call esi
test eax, eax
je 0x410a09
push eax
call fcn.004086eb
mov dword [esp], 0x4037e0
push edi
mov dword [0x42da30], eax
call esi
push eax
call fcn.004086eb
mov dword [esp], 0x4037cc
push edi
mov dword [0x42da34], eax
call esi
push eax
call fcn.004086eb
mov dword [esp], 0x4037b0
push edi
mov dword [0x42da38], eax
call esi
push eax
call fcn.004086eb
pop ecx
mov dword [0x42da40], eax
test eax, eax
je 0x410958
push 0x403798
push edi
call esi
push eax
call fcn.004086eb
pop ecx
mov dword [0x42da3c], eax
mov eax, dword [0x42da3c]
cmp eax, ebx
je 0x4109b0
cmp dword [0x42da40], ebx
je 0x4109b0
push eax
call fcn.00408766
push dword [0x42da40]
mov esi, eax
call fcn.00408766
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4109b0
test edi, edi
je 0x4109b0
call esi
test eax, eax
je 0x4109a7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4109a7
test byte [ebp - 0xc], 1
jne 0x4109b0
or dword [ebp + 0x10], 0x200000
jmp 0x4109e9
mov eax, dword [0x42da34]
cmp eax, ebx
je 0x4109e9
push eax
call fcn.00408766
pop ecx
test eax, eax
je 0x4109e9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4109e9
mov eax, dword [0x42da38]
cmp eax, ebx
je 0x4109e9
push eax
call fcn.00408766
pop ecx
test eax, eax
je 0x4109e9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42da30]
call fcn.00408766
pop ecx
test eax, eax
je 0x410a09
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410a0b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4738d7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4735cc
pop ecx
sub ebx, 1
or ebx, eax
call fcn.0047390d
mov eax, ebx
inc eax
and eax, ebx
xor dword [edx], ecx
or ebx, eax
add edx, 2
mov ebx, ebx
mov ebx, eax
cmp edx, edi
jl fcn.004738d7
add ebx, eax
sub ebx, ebx
ret
Function at 0x408927
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
sub esi, esi
call fcn.00408951
mov edi, esi
sub esi, 0x91ac64fb
xor dword [edx], ecx
add edi, 0x7d63903a
inc edi
inc edx
cmp edx, ebx
jne fcn.00408927
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b649
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
sub ebx, esi
push 0xef0d5100
pop esi
sub esi, 0x821b0df3
call fcn.0043b67f
push esi
pop esi
xor dword [ecx], edi
and esi, esi
inc ecx
mov esi, esi
cmp ecx, edx
jne fcn.0043b649
sub ebx, 0x1e56d40a
and ebx, esi
ret
Function at 0x43b662
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov edx, dword [esp]
add esp, 4
inc edi
inc ebx
call fcn.0043b6a4
mov edi, edi
mov edi, edi
xor dword [eax], edx
sub ebx, edi
push 0x7153b474
pop edi
add eax, 1
sub edi, 0x7f0f0df
mov ebx, ebx
sub edi, 0x3078d1c1
cmp eax, esi
jne fcn.0043b662
add edi, edi
ret
Function at 0x406024
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406048
xor eax, eax
test eax, eax
je 0x40605a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40605a
xor ecx, ecx
jmp 0x40605d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406107
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x40613e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406118
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x406113
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40616f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406151
pop edi
not eax
pop esi
ret 0xc

Function at 0x4ecce1
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x4eca52
mov esi, 0xdcd00b12
and edx, edx
or edx, esi
call fcn.004ecd10
or esi, esi
xor dword [eax], ecx
dec esi
mov edx, edx
add eax, 1
sub edx, esi
cmp eax, edi
jl fcn.004ecce1
dec esi
ret
Function at 0x43d141
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
mov esi, ecx
mov edi, edx
mov eax, dword [esi + 4]
test eax, eax
jne 0x43d15b
push esi
call fcn.0043cc57
add esp, 4
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, 2
je 0x43d179
cmp eax, 1
jne 0x43d1d2
add esi, 8
push ebx
push edi
push esi
call fcn.0043ff80
add esp, 0xc
jmp 0x43d1d2
mov eax, dword [esi]
test eax, eax
jne 0x43d195
push 0x2f
push str..._logging.c
push str.ctx__lgfp
call fcn.004a509d
add esp, 0xc
mov eax, dword [esi]
push eax
push ebx
push 1
push edi
call fcn.004a722e
add esp, 0x10
cmp eax, ebx
jae 0x43d1d2
mov eax, dword [esi]
test eax, eax
je 0x43d1bb
push eax
call fcn.004a666f
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 3
push str.Disabled_writing_session_log_due_to_error_while_writing
push dword [esi + 0x18]
call fcn.004842ab
add esp, 8
pop esi
pop edi
pop ebx
ret

Function at 0x43fe31
Capabilities:
Encode data using base64

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edx, dword [0x42b238]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
xor edx, edx
dec edx
mov esi, edx
movsx ebx, byte [ecx + esi + 1]
mov eax, ebx
add al, 0xbf
cmp al, 0x19
ja 0x43fe61
add ebx, 0xffffffbf
jmp 0x43fe9e
mov eax, ebx
add al, 0x9f
cmp al, 0x19
ja 0x43fe6e
add ebx, 0xffffffb9
jmp 0x43fe9e
mov eax, ebx
add al, 0xd0
cmp al, 9
ja 0x43fe7b
add ebx, 4
jmp 0x43fe9e
cmp bl, 0x2b
je 0x43fe95
cmp bl, 0x3d
je 0x43fe9c
cmp bl, 0x2f
jne 0x43ff30
mov ebx, 0x3f
jmp 0x43fe9e
mov ebx, 0x3e
jmp 0x43fe9e
mov ebx, edx
mov dword [esp + esi*4 + 8], ebx
inc esi
cmp esi, 3
jl 0x43fe4f
mov ebx, dword [esp + 4]
xor esi, esi
cmp ebx, 0xffffffff
je 0x43ff32
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
je 0x43ff32
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x43ff1a
xor eax, eax
cmp edx, 0xffffffff
mov ecx, ebp
mov ebp, 3
sete al
and edx, 0x3f
sub ebp, eax
shl ebx, 0x12
shl edi, 0xc
or ebx, edi
shr ebx, 0x10
cmp ebp, 2
mov byte [ecx], bl
jb 0x43ff2b
mov eax, dword [esp]
mov esi, 2
shl eax, 6
mov ebx, eax
and eax, 0xf00
or eax, edi
cmp ebp, 3
mov byte [ecx + 1], ah
jne 0x43ff32
or edx, ebx
mov esi, 3
mov byte [ecx + 2], dl
jmp 0x43ff32
cmp edx, 0xffffffff
jne 0x43ff32
mov ecx, ebp
xor ebp, ebp
mov edx, 0x3f
inc ebp
jmp 0x43fee0
xor esi, esi
inc esi
jmp 0x43ff32
xor esi, esi
mov ecx, dword [esp + 0x14]
call fcn.00497c4a
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x440320
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44034f
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov bl, byte [edx]
inc edx
xor bl, byte [esi]
inc esi
movzx edi, bl
or ecx, edi
dec eax
jne 0x440335
mov eax, 0x100
sub eax, ecx
shr eax, 8
jmp 0x440352
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
ret
Function at 0x44422f
Capabilities:
Get session user name

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x34
push esi
call fcn.00431a8c
add esp, 8
cmp byte [eax], 0
je 0x44424f
push eax
call fcn.0043f79e
add esp, 4
pop esi
ret
push 0x35
push esi
call fcn.0043194f
add esp, 8
test eax, eax
je 0x444264
pop esi
jmp fcn.0048f5eb
xor eax, eax
pop esi
ret