joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ade0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
jne 0x40ae14
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
ret 4
push 0
lea ecx, [ebp + 8]
push ecx
push 0x1c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ae4e
cmp dword [esi], 0xed26ff3a
je 0x40ae43
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xb
pop esi
pop ebp
ret 4
mov byte [esi + 0x20], 1
xor eax, eax
pop esi
pop ebp
ret 4
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1e
pop esi
pop ebp
ret 4

Function at 0x40ae70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], eax
push esi
xor esi, esi
push edi
cmp byte [ebx + 0x20], 0
jne 0x40aea9
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b500
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x1c], esi
cmp dword [ebx + 0x14], esi
jbe 0x40afcc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40afb3
mov esi, dword [ebx + 0xc]
imul esi, dword [ebp - 0xc]
push esi
call fcn.0040b57a
mov edi, eax
add esp, 4
test edi, edi
je 0x40af9b
mov ax, word [ebp - 0x10]
mov ecx, 0xcac1
cmp ax, cx
jne 0x40af31
push 0
lea eax, [ebp - 0x28]
push eax
push esi
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40af51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.0040b542
add esp, 4
jmp 0x40afbb
mov ecx, 0xcac2
cmp ax, cx
je 0x40af67
mov ecx, 0xcac3
cmp ax, cx
jne 0x40af8b
push esi
push 0
push edi
call fcn.00411990
add esp, 0xc
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
push 0
push edx
push esi
push dword [ebp - 0x14]
mov eax, dword [ecx]
push dword [ebp - 0x18]
push edi
call dword [eax + 4]
add dword [ebp - 0x18], esi
push edi
adc dword [ebp - 0x14], 0
call fcn.0040b542
mov esi, dword [ebp - 0x1c]
add esp, 4
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebx + 0x14]
jb 0x40aec1
xor esi, esi
jmp 0x40afcc
push edi
mov esi, 0xd
call fcn.0040b542
add esp, 4
jmp 0x40afbb
mov eax, 0xe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b500
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40afcc
push dword [ebx + 0x1c]
mov byte [ebx + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b500
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41138e
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x411390
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4113ae
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41140c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4113f3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4113fc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x411406
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4113e8
inc dword [ebp + 0xc]
invalid

Function at 0x4113d5
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x411390
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4113ae
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41140c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4113f3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4113fc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x411406
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4113e8
inc dword [ebp + 0xc]
invalid

Function at 0x411b7c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00410c97
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
inc dword [eax]
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
and esi, eax
test dword [ebx + 0x6fffffc], ebx
Function at 0x411c12
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and esi, eax
test dword [ebx + 0x6fffffc], ebx
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
invalid
invalid
sahf
cld
invalid
Function at 0x40121d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4a206c]
mov ecx, dword [0x49da74]
sub esp, 0xc2c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40129c
mov edi, ecx
mov ebx, eax
cmp dword [0x4a206c], 0xae9
jne 0x401290
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
lea eax, [ebp - 0xc28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push edi
call fcn.0040106a
add edi, 8
dec ebx
jne 0x401241
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401304
Capabilities:
Allocate or change rwx memory
Delete directory
Execute shellcode via indirect call
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x488f07
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
xor esi, esi
cmp dword [0x4a206c], 0x20a
push edi
jne 0x40138b
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], ax
push 0x929
push 0xea
mov dword [esp + 0x44], esi
call fcn.00401554
push esi
call fcn.004017cf
add esp, 0xc
push esi
push esi
push esi
call fcn.004016e6
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.00401540
add esp, 0x10
fstp st(0)
or dword [esp + 0x3c], 0xffffffff
call fcn.004012f0
push 0x490e48
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x48ac54
push eax
mov dword [0x4a0c70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a0c6c], eax
call fcn.004012dc
lea eax, [esp + 0xc]
push eax
push 0x40
push dword [0x4a206c]
push dword [0x49da74]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
cmp edi, 0x50956
jge 0x4013df
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, 0x1ee94b8e
jg 0x4013f0
inc edi
cmp edi, 0x5cb18829
jl 0x4013d1
mov eax, dword [0x48fcf4]
mov dword [0x4a2070], eax
call fcn.004012a1
xor edi, edi
cmp dword [0x4a206c], esi
jbe 0x401431
cmp dword [0x4a206c], 0x44
jne 0x401428
push esi
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
inc edi
cmp edi, dword [0x4a206c]
jb 0x401409
xor edi, edi
mov eax, dword [0x4a206c]
add eax, edi
cmp eax, 0x5e
jne 0x40145a
push esi
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push str.gogovalikiputudecawig
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc edi
cmp edi, 0x40c893
jl 0x401433
call fcn.0040121d
xor eax, eax
cmp eax, 0x4f06
jne 0x40147b
add dword [0x49da74], 0
inc eax
cmp eax, 0x89b1f65a
jb 0x40146a
push 0x7b
pop edi
cmp dword [0x4a206c], 0x89
jne 0x4014b0
push str.xifoxekonudadum
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push str.jisipuzawununibudohibasoxelab_xezacojiwobikijiwuzopi_tofomikihululuyibapewesovatifuw
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
dec edi
jne 0x401486
mov eax, dword [0x49da74]
mov dword [0x4a0c74], eax
call eax
mov ecx, dword [esp + 0x34]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405e68
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e410]
jne 0x405e72
repz ret
jmp fcn.004093e3
Function at 0x40709d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48e410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404412
and dword [ebp - 0x14], 0
cmp dword [0x490afc], 0
mov dword [ebp - 0x18], eax
jne 0x407150
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4071f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4071f8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x490afc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x490b00], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x490b04], eax
call edi
push eax
call esi
mov dword [0x490b0c], eax
test eax, eax
je 0x407150
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x490b08], eax
mov eax, dword [0x490b08]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4071a9
cmp dword [0x490b0c], ecx
je 0x4071a9
push eax
call esi
push dword [0x490b0c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4071a9
test ebx, ebx
je 0x4071a9
call edi
test eax, eax
je 0x4071a0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4071a0
test byte [ebp - 8], 1
jne 0x4071a9
or dword [ebp + 0x10], 0x200000
jmp 0x4071dc
mov eax, dword [0x490b00]
cmp eax, dword [ebp - 0x18]
je 0x4071dc
push eax
call esi
test eax, eax
je 0x4071dc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4071dc
mov eax, dword [0x490b04]
cmp eax, dword [ebp - 0x18]
je 0x4071dc
push eax
call esi
test eax, eax
je 0x4071dc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x490afc]
call esi
test eax, eax
je 0x4071f8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4071fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e68
leave
ret
Function at 0x40f15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40f168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40f14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40f145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40f145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x408691
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x2c
mov eax, 0x439efa
call fcn.00421920
lea esi, [ecx + 0x12c]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.004017e6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4087b0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401872
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004013b4
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov ecx, esi
push edi
mov dword [ebp - 4], ebx
call fcn.004017e6
push eax
push ebx
push 0x4403bc
lea ecx, [ebp - 0x10]
call fcn.00408e0a
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401856
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401872
lea ecx, [ebp - 0x38]
call fcn.00414373
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.004072b3
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push 0x1001
push dword [esi]
lea ecx, [ebp - 0x38]
call fcn.004147e5
test eax, eax
jne 0x408755
mov ecx, esi
call fcn.00401451
jmp 0x408792
push 0x4403c4
push 0x87
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x38]
call fcn.00414b4c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], vtable.CFileException.0
lea ecx, [ecx - 0x10]
call fcn.00401856
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0041439a
call fcn.004218ee
ret

Function at 0x4087cd
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x439f2d
call fcn.00421920
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004013b4
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov ebx, 0x104
push ebx
mov ecx, edi
call fcn.004017e6
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401856
push 0xffffffffffffffff
mov ecx, edi
call fcn.00401872
lea ecx, [ebp - 0x2c]
call fcn.0041557b
mov eax, dword [edi]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], 0
je 0x40887a
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415818
test eax, eax
je 0x40887a
lea ecx, [ebp - 0x2c]
call fcn.004159c0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415ad9
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040132a
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00401856
lea ecx, [ebp - 0x2c]
call fcn.004157cc
jmp 0x40887c
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041572c
mov eax, ebx
call fcn.004218ee
ret 4
Function at 0x41db75
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528b46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5e1390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.0050c82a
pop ecx
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41dbbf
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41edd4
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
call fcn.0041f9be
lea edx, [ebx + 0x60]
xor eax, eax
mov byte [edx + 0x49], al
mov dword [edx + 0x50], 0x10
test al, al
jne 0x41ee05
mov eax, edx
mov byte [edx + 0x49], 1
neg eax
and eax, 0xf
add eax, edx
push 8
mov dword [edx + 0x54], eax
mov esi, 0x5bbff0
mov edi, dword [ebx + 0xb4]
mov eax, ebx
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebx], vtable.CryptoPP::SHA256.0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4209b6
Capabilities:
Create thread

Disassembly:
push 0x28
mov eax, 0x52a4aa
call fcn.004e49d2
push str.ConnectionManager::Start
push str._s:_enter
push 1
xor esi, esi
push esi
call fcn.0043a0a0
add esp, 0x10
mov edi, 0x5ea330
mov ecx, edi
push 1
call fcn.004208b6
push ecx
push dword [0x5ea340]
lea ecx, [ebp - 0x2c]
call fcn.0045c8f0
xor ecx, ecx
mov dword [ebp - 4], esi
cmp byte [ebp + 8], cl
movzx eax, byte [0x5ea630]
cmove eax, ecx
sub esp, 0x18
mov ecx, esp
mov byte [0x5ea630], al
call fcn.00458691
call fcn.00456a26
add esp, 0x18
mov dword [0x5ea620], eax
call fcn.004585ce
mov byte [0x5ea625], al
call fcn.00450017
push 0xe1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5ea344]
test eax, eax
jne 0x420a9e
cmp dword [0x5ea614], eax
jne 0x420a9e
push 1
mov ecx, edi
call fcn.0042077b
push esi
push esi
push edi
push 0x420b02
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x5ea614], eax
test eax, eax
jne 0x420a90
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Start:_CreateThread_failed___d_
push esi
push esi
call fcn.0043a0a0
add esp, 0x10
mov ecx, edi
push esi
call fcn.0042077b
push str.ConnectionManager::Start
push str._s:_exit
push 1
jmp 0x420aa5
push eax
push str.Invalid_connection_manager_state_in_Start___d_
push esi
push esi
call fcn.0043a0a0
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.0045c98b
call fcn.004e497c
ret 4
Function at 0x42bb24
Capabilities:
Get file version info

Disassembly:
push 0x98
mov eax, 0x52b99d
call fcn.004e49d2
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x84], edi
mov eax, dword fs:[0x2c]
xor esi, esi
mov dword [ebp - 0x94], esi
mov ecx, dword [eax]
mov eax, dword [0x5ec57c]
cmp eax, dword [ecx + 0x139c]
jle 0x42bba8
push 0x5ec57c
call fcn.004e3f82
cmp dword [0x5ec57c], 0xffffffff
pop ecx
jne 0x42bba8
mov dword [ebp - 4], esi
mov dword [0x5ec580], esi
mov dword [0x5ec584], esi
call fcn.00430925
push 0x53b590
mov dword [0x5ec580], eax
call fcn.004e45f2
or dword [ebp - 4], 0xffffffff
mov dword [esp], 0x5ec57c
call fcn.004e3f43
pop ecx
push ebx
lea eax, [ebp - 0x7c]
mov ecx, 0x5ec580
push eax
call fcn.0042f53d
mov esi, dword [ebp - 0x7c]
cmp esi, dword [0x5ec580]
je 0x42bbd4
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.004146f4
shr eax, 0x1f
test al, al
je 0x42bbda
mov esi, dword [0x5ec580]
cmp esi, dword [0x5ec580]
je 0x42bbf2
add esi, 0x28
mov ecx, edi
push esi
call fcn.0042669f
jmp 0x42bd24
cmp dword [ebx + 0x14], 0x10
jb 0x42bbfc
mov eax, dword [ebx]
jmp 0x42bbfe
mov eax, ebx
lea ecx, [ebp - 0x98]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x42bd18
push eax
call fcn.004e461a
mov esi, eax
mov dword [ebp - 0x84], esi
pop ecx
test esi, esi
jne 0x42bc4b
push str.GetDLLVersion:324:_memory_allocation_failed
lea ecx, [ebp - 0xa4]
call fcn.0040ea4b
push 0x5ddb58
lea eax, [ebp - 0xa4]
push eax
call fcn.004fda0a
push esi
lea ecx, [ebp - 0x7c]
call fcn.0041ffcf
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebx + 0x14], 0x10
jb 0x42bc68
mov eax, dword [ebx]
jmp 0x42bc6a
mov eax, ebx
push esi
push dword [ebp - 0x78]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x42bd0b
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x88]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42bd0b
mov ecx, dword [ebp - 0x80]
xor esi, esi
test ecx, 0xfffffffc
jbe 0x42bd0b
mov eax, dword [ebp - 0x88]
movzx edx, word [eax + esi*4]
cmp dl, 9
jne 0x42bd01
movzx eax, word [eax + esi*4 + 2]
push eax
push edx
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.00431c6c
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x8c]
and dword [ebp - 0x8c], 0
add esp, 0x14
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x84]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x42bd2c
mov ecx, dword [ebp - 0x80]
mov eax, ecx
inc esi
shr eax, 2
cmp esi, eax
jb 0x42bcab
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x7c]
call fcn.004e3e1e
pop ecx
push 0x5aeae4
mov ecx, edi
call fcn.00426582
mov eax, edi
call fcn.004e497c
ret
mov edi, dword [ebp - 0x78]
mov ecx, 0x5ec580
push ebx
call fcn.0042f1d6
push edi
mov esi, eax
call fcn.0042655b
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004264e2
push dword [ebp - 0x78]
mov ecx, dword [ebp - 0x90]
call fcn.00426582
push dword [ebp - 0x7c]
call fcn.004e3e1e
mov eax, dword [ebp - 0x90]
pop ecx
jmp 0x42bd26