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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
cmp byte [esi + 0x38], 0
je 0x5178e0
push edi
lea edi, [esi + 0x1c]
mov eax, 0x10
cmp dword [edi + 0x14], eax
jb 0x517805
mov ecx, dword [edi]
jmp 0x517807
mov ecx, edi
cmp dword [esi + 0x14], eax
jb 0x517810
mov eax, dword [esi]
jmp 0x517812
mov eax, esi
push ebx
mov ebx, dword [ebp + 8]
push ecx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x10]
add esp, 0x14
cmp dword [edi + 0x14], 0x10
lea esi, [eax + ecx + 0x5c]
mov dword [ebp - 0xc], esi
jb 0x517841
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x517924
cmp edi, 0xffffffff
je 0x517924
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add ebx, esi
xor esi, esi
push esi
lea edx, [ebp - 4]
push edx
push 0x400
push ebx
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5178be
mov eax, dword [ebp - 4]
test eax, eax
je 0x5178be
cmp esi, dword [ebp - 8]
ja 0x5178be
push 0
add esi, eax
lea eax, [ebp - 4]
push eax
push 0x400
lea ecx, [esi + ebx]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x517896
add esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, 0xa0d
push edi
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
lea eax, [esi + 2]
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [esi + 0x1c]
mov ecx, 0x10
cmp dword [eax + 0x14], ecx
jb 0x5178ef
mov eax, dword [eax]
cmp dword [esi + 0x14], ecx
jb 0x5178f8
mov ecx, dword [esi]
jmp 0x5178fa
mov ecx, esi
mov edx, dword [ebp + 8]
push eax
push ecx
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x10]
add esp, 0x14
lea eax, [eax + ecx + 0x51]
pop esi
mov esp, ebp
pop ebp
ret 4
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5189b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [ecx + 0x94], edx
jbe 0x518a4c
mov eax, dword [ecx + 0x90]
push ebx
mov ebx, dword [eax]
cmp ebx, eax
je 0x518a43
push esi
push edi
mov eax, dword [ebx + 8]
cmp byte [eax + 0x38], 0
je 0x518a24
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x5189eb
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
lea esi, [eax + 0x1800]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
jmp 0x518a29
mov esi, 0x2000
mov ebx, dword [ebx]
add edx, esi
mov dword [ebp - 4], edx
cmp ebx, dword [ecx + 0x90]
jne 0x5189d7
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x519350
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b45b0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2018
call fcn.00549c70
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x2020], esi
mov eax, dword [ebp + 8]
mov byte [ebp - 0x2015], 1
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
je 0x519451
cmp dword [esi + 8], ebx
je 0x519451
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x201c], ebx
cmp edi, ebx
je 0x519448
xor eax, eax
mov word [ebp - 0x2014], ax
push 0x1ffe
push ebx
lea ecx, [ebp - 0x2012]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x519400
lea edx, [ebp - 0x201c]
push edx
push 0x2000
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x519441
mov eax, dword [ebp - 0x201c]
test eax, eax
je 0x519441
push 0
lea edx, [ebp - 0x201c]
push edx
push eax
lea eax, [ebp - 0x2014]
push eax
push edi
call ebx
jmp 0x519400
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x519486
mov dword [ebp - 0x2024], str.connection_failed
push 0x62ff74
lea ecx, [ebp - 0x2024]
push ecx
call sub.MSVCR100.dll__CxxThrowException
mov byte [ebp - 0x2015], 0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x519480
ret
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0xc], 0
mov al, byte [ebp - 0x2015]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret 4
Function at 0x5194d0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8460
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2014
call fcn.00549c70
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x201c], edi
mov ebx, edx
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [edi + 0xc], eax
jne 0x519535
mov dword [ebp - 0x2020], str.connection_failed...
push 0x62ff74
lea eax, [ebp - 0x2020]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov dword [ebp - 0x2018], eax
jmp 0x519540
lea ecx, [ebp - 0x2018]
push ecx
push 0x2000
lea edx, [ebp - 0x2014]
push edx
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
mov ecx, dword [ebp - 0x2018]
push ecx
lea edx, [ebp - 0x2014]
push edx
mov ecx, ebx
call fcn.00419b50
test esi, esi
je 0x519581
cmp dword [ebp - 0x2018], 0
jne 0x519540
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret
Function at 0x51b5d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x51b5d7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x51b6ad
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6125a0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6125a0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6125a0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6125a0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6125a0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6125a0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6125a0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x6125a0]
add ecx, 8
sub edx, 8
dec esi
jne 0x51b5f0
pop edi
test edx, edx
je 0x51b6ca
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6125a0]
inc ecx
dec edx
jne 0x51b6b1
not eax
pop esi
ret

Function at 0x51b6d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6125a0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x6125a0]
mov dword [edx + 8], ecx
ret

Function at 0x51b720
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x6125a0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x6125a0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x51be90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x51bec6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51bebc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x51bed7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x51c090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x51c0d7
cmp byte [esi + 1], 0
je 0x51c0df
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x51c0f2
cmp byte [esi + 1], 0
je 0x51c0e6
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x51c0fa
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x51c0b1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x51c0fa
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x51c10c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x51c12a
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x51c23d
jmp 0x51c149
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x51c158
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x51c16f
mov ebx, 0x404
cmp byte [esi], 0
je 0x51c194
cmp byte [esi + 1], 0
je 0x51c23d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x51c197
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x51c1c0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51c1bb
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x51c1e9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x51c1d1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x51c23d
lea eax, [ebx - 3]
test eax, eax
js 0x51c22b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x51c21f
cmp byte [eax + ecx + 1], 0x4b
jne 0x51c21f
cmp byte [eax + ecx + 2], 5
jne 0x51c21f
cmp byte [eax + ecx + 3], 6
je 0x51c225
test eax, eax
jns 0x51c200
jmp 0x51c22b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x51c23d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x51c140
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51cdf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x51ce8b
cmp dword [esi + 4], 0xffffffff
jne 0x51ce8b
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51ce20
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x51ce57
cmp eax, 0x2f
je 0x51ce57
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x51ce44
mov eax, dword [0x6135f4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
call fcn.0051bdf0
add esp, 4
pop edi
test eax, eax
jne 0x51ce72
mov eax, dword [ebp + 8]
pop ebp
ret 4
call fcn.0051c260
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop ebp
ret 4
mov eax, 0x1000000
pop ebp
ret 4

Function at 0x51d470
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x51d4a4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x51d4a4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x51d58e
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x51d4c0
cmp ax, 0x5c
jne 0x51d4c2
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x51d4b4
push edi
cmp ecx, ebx
je 0x51d502
sub ecx, ebx
sar ecx, 1
lea edi, [ecx + ecx]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.MSVCR100.dll_memcpy
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.0051d470
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x51d52f
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x51d520
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51d533
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x51d550
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x51d58e
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00546bdc
mov esp, ebp
pop ebp
ret
Function at 0x51e130
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x51e224
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x51e168
cmp dword [esi + 0x40], edi
jae 0x51e168
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x51e180
lea eax, [edi + edi]
push eax
call fcn.00543310
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x51e221
jmp 0x51e1a0
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x610dc0]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x610dc0]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x51e1a0
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x51e263
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x51e248
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x51e285
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x524360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b51a2
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x669404]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, edx
lea eax, [esp + 0xc]
push eax
call fcn.00522e20
mov dword [esp + 0x38], 0
mov edi, eax
call fcn.005243f0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5243da
test al, 1
jne 0x5243d2
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x5243d2
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0xc], 0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x544240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b3799
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x669404]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 4], 0
lea eax, [ecx - 0x28]
mov dword [esp + 0x28], 0x5ebb24
mov dword [esp + 0x30], vtable.boost::exception_detail::clone_base.0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
mov dword [esp + 8], 1
call fcn.00543ac0
mov eax, dword [esp + 0x28]
mov dword [esp + 8], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::bad_alloc__.2.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::bad_alloc__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::bad_alloc__.0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
push 0x62f158
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + eax + 0x2c], 0
mov dword [esp + 0x44], 0xffffffff
call sub.MSVCR100.dll__CxxThrowException
int3
sub ecx, dword [ecx - 4]
jmp 0x544240

Function at 0x5442e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b3799
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x669404]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 4], 0
lea eax, [ecx - 0x28]
mov dword [esp + 0x28], 0x5ebb24
mov dword [esp + 0x30], vtable.boost::exception_detail::clone_base.0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
mov dword [esp + 8], 1
call fcn.00543b60
mov eax, dword [esp + 0x28]
mov dword [esp + 8], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::bad_exception__.2.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::bad_exception__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::bad_exception__.0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
push 0x62f23c
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + eax + 0x2c], 0
mov dword [esp + 0x44], 0xffffffff
call sub.MSVCR100.dll__CxxThrowException
int3
sub ecx, dword [ecx - 4]
jmp 0x5442e0
Function at 0x544ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b39d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x669404]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
xor ebx, ebx
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov dword [esp + 0x28], ebx
mov byte [ecx], bl
call fcn.00405b90
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x544d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b3a10
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x669404]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.00405b90
mov dword [esi], vtable.boost::lock_error.0
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x18], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x544de5
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4