joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b760
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da06d
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x51b170]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x248]
push 0x208
push 0
mov dword [ebp - 0x250], 0
push eax
mov dword [ebp - 0x24c], 0x52649c
call fcn.004b1bf0
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
sub esp, 8
lea ecx, [ebp - 0x268]
call fcn.00412d50
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b810
sub ecx, edx
lea eax, [ebp - 0x248]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00417920
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x4fc6ec
lea ecx, [ebp - 0x40]
mov dword [0x5264ac], 0
mov dword [0x5264b0], 7
mov word [0x52649c], ax
mov dword [ebp - 0x250], 2
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00417920
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae edx, ecx
push ecx
lea eax, [edx + eax*2]
lea edx, [ebp - 0x28]
cmovae edx, ecx
lea ecx, [ebp - 0x40]
push ecx
push edi
push eax
push 0x52649c
lea ecx, [ebp - 0x254]
call fcn.0042a7e0
mov byte [ebp - 4], 2
add esp, 0x14
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40b8ed
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b8e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b9b0
push edx
push ecx
call fcn.00499ae0
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40b92e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b924
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b9b5
push edx
push ecx
call fcn.00499ae0
add esp, 8
mov ecx, dword [ebp - 0x268]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ecx, ecx
je 0x40b963
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x40b963
mov ecx, dword [ebp - 0x268]
xor edx, edx
call fcn.00408ec0
mov dword [ebp - 0x268], 0
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x258]
test ecx, ecx
je 0x40b98f
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40b98f
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, 0x52649c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004996e8
mov esp, ebp
pop ebp
ret 4
call fcn.004bbc5b
call fcn.004bbc5b
int3
Function at 0x40b9c0
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x51b170]
xor eax, esp
mov dword [esp + 0x214], eax
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004b1bf0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x2a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [0x5265e0], 0
mov word [0x5265d0], ax
lea eax, [esp + 8]
mov dword [0x5265e4], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ba24
sub eax, edx
mov ecx, 0x5265d0
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00417920
mov ecx, dword [esp + 0x214]
mov eax, 0x5265d0
xor ecx, esp
call fcn.004996e8
mov esp, ebp
pop ebp
ret 4
Function at 0x40cee0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da402
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x51b170]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x118], edi
push 0xd0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x11c], edi
push 0
push eax
mov dword [ebp - 0x114], 0
call fcn.004b1bf0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x68
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea esi, [ebp - 0x110]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x114], 1
nop dword [eax]
mov ecx, esi
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cfa0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00417920
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
je 0x40d0b0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00413b60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
lea esi, [esi + eax*2]
add esi, 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
sub eax, 1
je 0x40d01c
sub eax, 4
je 0x40d01c
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp dword [edi + 8], eax
je 0x40d014
mov ecx, eax
call fcn.00413b60
add dword [edi + 4], 0x18
jmp 0x40d01c
push eax
mov ecx, edi
call fcn.0041cd80
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40d05a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d050
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d104
push edx
push ecx
call fcn.00499ae0
add esp, 8
xor eax, eax
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x2c]
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
cmp edx, 8
jb 0x40d0a3
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d099
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d104
push edx
push ecx
call fcn.00499ae0
add esp, 8
lea eax, [ebp - 0x40]
cmp esi, eax
jne 0x40cf80
jmp 0x40d0e6
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40d0e6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d0dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d104
push edx
push ecx
call fcn.00499ae0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004996e8
mov esp, ebp
pop ebp
ret
call fcn.004bbc5b
int3
Function at 0x411b10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x51b170]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x24], 0
mov ecx, edx
mov dword [esp + 0x28], 7
xor eax, eax
mov word [esp + 0x14], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411b50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00417920
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.00455300
mov edx, dword [esp + 0x30]
add esp, 8
cmp edx, 8
jb 0x411bb8
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411bae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411c5b
push edx
push ecx
call fcn.00499ae0
add esp, 8
call fcn.004bc301
cmp dword [0x51bbdc], 8
mov esi, dword [eax]
mov eax, 0x51bbc8
cmovae eax, dword [0x51bbc8]
xor ecx, ecx
mov dword [0x51bbd8], 0
mov word [eax], cx
mov esi, dword [esi]
call fcn.004583a0
push eax
push 0x51bbc8
push 0
push esi
call fcn.00457b80
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x14], 0
add eax, 0x18
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push dword [esp + 0x10]
push dword [esp + 0xc]
push eax
call fcn.00423810
lea ecx, [esp + 0x14]
call fcn.00410eb0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004169d0
lea ecx, [esp + 4]
call fcn.004169d0
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004996e8
mov esp, ebp
pop ebp
ret 0x10
call fcn.004bbc5b
int3
Function at 0x4145a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4145cb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415a70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4145ed
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4145ef
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x414673
jg 0x414604
test esi, esi
je 0x414673
test ecx, ecx
jl 0x41464d
jg 0x41460e
test eax, eax
je 0x41464d
cmp edi, ecx
jg 0x414622
jl 0x414618
cmp esi, eax
jae 0x414622
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004b10f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x414650
mov edx, dword [ebp + 8]
test edi, edi
jl 0x414673
jg 0x41465a
test esi, esi
je 0x414673
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x414673
push eax
push esi
push 1
push edx
call fcn.004bc204
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x41477b
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x41476a
jg 0x4146d0
test edx, edx
je 0x41476a
nop dword [eax]
call fcn.00418720
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x414727
jg 0x4146e7
test esi, esi
je 0x414727
cmp ebx, eax
jg 0x4146f7
jl 0x4146f1
cmp edi, esi
jae 0x4146f7
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.004b10f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x41474c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x414764
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x4146d0
jl 0x414764
test edi, edi
jne 0x4146d0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x41479d
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x41479f
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x414855
jg 0x4147ba
test esi, esi
je 0x414855
test eax, eax
jl 0x414803
jg 0x4147c4
test ebx, ebx
je 0x414803
cmp edi, eax
jg 0x4147d4
jl 0x4147ce
cmp esi, ebx
jae 0x4147d4
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004b10f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x41480a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x414855
jg 0x414814
test esi, esi
je 0x414855
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x414855
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x414840
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.004bc985
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x51b170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x414bb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996e8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x414bec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x414bec
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996e8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x414cd3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x414c14
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x414c47
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004b9db7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996e8
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x414cd3
cmp eax, 1
jle 0x414ca6
cmp eax, 3
jne 0x414cd3
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00404c60
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996e8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x414cc3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004bc204
add esp, 0x10
cmp edi, eax
jne 0x414cd3
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x414bd7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004996e8
mov esp, ebp
pop ebp
ret 4
Function at 0x418340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x51b170]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4183e3
cmp byte [esi + 0x3d], 0
je 0x4183e3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x418399
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4183ab
sub eax, 1
je 0x4183af
sub eax, 2
je 0x4183e3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996e8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4183cc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004bc204
add esp, 0x10
cmp edi, eax
jne 0x418399
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004996e8
mov esp, ebp
pop ebp
ret

Function at 0x41a610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4daf20
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x51b170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00499718
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00485f8e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41ab60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x41ab91
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x41ab80
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x420260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db8f0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51b170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [edi + 4]
push eax
call fcn.004b09ec
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.boost::system::system_error.0
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push eax
call fcn.00414050
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x4202f0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4204e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db920
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51b170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [edi + 4]
push eax
call fcn.004b09ec
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.boost::system::system_error.0
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push eax
call fcn.00414050
mov dword [esi], vtable.boost::thread_resource_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x420576
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x421440
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, ecx
push edi
mov edi, 1
mov dword [ebp - 8], esi
mov edx, edi
mov dword [esi], ebx
mov byte [esi + 4], 0
lock cmpxchg dword [ebx], edx
cmp dword [ebx], edi
jne 0x42147b
test eax, eax
jne 0x42147b
mov byte [esi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x18], 0
mov ecx, edi
xor eax, eax
lock cmpxchg dword [ebx], ecx
cmp dword [ebx], 1
jne 0x4214a6
test eax, eax
je 0x421579
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x4214d0
mov eax, dword [0x526678]
test eax, eax
jne 0x4214c3
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x34]
cmp edi, eax
sbb esi, esi
and esi, 0xffffffe0
add esi, 0x20
mov dword [ebp - 0x18], esi
cmp esi, 8
jb 0x421519
cmp esi, 0x20
jae 0x4214e2
pause
inc esi
mov dword [ebp - 0x18], esi
jmp 0x421491
jne 0x4214f5
lea ecx, [ebp - 0x24]
call fcn.00405a40
mov esi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x18], esi
jmp 0x421491
mov edi, dword [ebp - 0x1c]
test edi, edi
jne 0x421522
mov al, byte [ebp - 0x18]
and al, 1
je 0x421563
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x421514
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 1
inc esi
mov dword [ebp - 0x18], esi
jmp 0x421491
mov ecx, 8
call fcn.004136b0
lea ecx, [ebp - 0x14]
push ecx
call eax
test eax, eax
jne 0x421546
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
jmp 0x42154c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
sbb ecx, dword [ebp - 0x20]
test ecx, ecx
jb 0x421503
ja 0x42155c
cmp eax, edi
jb 0x421503
mov dword [ebp - 0x1c], 0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov edi, 1
mov dword [ebp - 0x18], esi
jmp 0x421491
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov byte [eax + 4], 1
mov esp, ebp
pop ebp
ret 4