joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411a92
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx]
mov edx, dword [ebx + 0x3c]
movzx ebp, word [esi + 0x14]
add ebp, esi
mov eax, dword [ebp + 0x20]
mov ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
call fcn.004118c9
lea edx, [ebp + 0x18]
mov dword [esp + 0x28], eax
mov ecx, ebx
call fcn.004119d6
mov ebx, dword [ebp + 0x3c]
mov edi, eax
and dword [esp + 0x34], 0
xor eax, eax
inc eax
mov dword [esp + 0x2c], edi
add ebp, 0x40
mov dword [esp + 0x30], ebx
cmp ax, word [esi + 6]
mov esi, ecx
mov dword [esp + 0x20], eax
jae 0x411ba4
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.004118c9
mov edx, ebp
mov dword [esp + 0x14], eax
mov ecx, esi
call fcn.004119d6
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x28], eax
je 0x411b5b
lea ecx, [edi + edx]
cmp ecx, eax
ja 0x411b57
lea edx, [esp + 0x24]
mov ecx, esi
call fcn.004119f5
test eax, eax
je 0x411bc1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x411b7f
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x24]
mov edi, 0x2000000
test edi, eax
je 0x411b6f
test edi, ebx
je 0x411b6f
or ebx, eax
jmp 0x411b77
or ebx, eax
and ebx, 0xfdffffff
mov edi, ecx
sub edi, edx
add edi, dword [esp + 0x1c]
mov eax, dword [esi]
add ebp, 0x28
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
movzx eax, word [eax + 6]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x411aee
xor eax, eax
inc eax
lea edx, [esp + 0x24]
mov dword [esp + 0x34], eax
mov ecx, esi
call fcn.004119f5
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor eax, eax
jmp 0x411bb9
Function at 0x42152e
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0x421559
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0x421559
cmp al, 0xc0
je 0x421559
cmp al, 0xcc
je 0x421559
add edx, 2
cmp dx, cx
jb 0x42153e
pop esi
ret

Function at 0x424008
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, edx
mov edx, dword [esp + 0x10]
lea esi, [edi + 4]
push esi
call fcn.00423fa5
mov edx, dword [esp + 0x10]
pop ecx
push 4
sub edx, edi
pop ecx
mov al, byte [edx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x424023
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x424031
pop edi
pop esi
ret

Function at 0x42628c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4262a4
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x426297
pop esi
ret

Function at 0x4262a6
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
or eax, edx
push esi
mov esi, dword [esp + 8]
or eax, esi
test al, 3
jne 0x4262c1
shr esi, 2
push esi
call fcn.0042628c
pop ecx
pop esi
ret
test esi, esi
je 0x4262d2
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x4262c7
pop esi
ret

Function at 0x4262d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov esi, edx
mov ebx, ecx
test edi, edi
jle 0x4262f8
sub ebx, esi
movzx edx, byte [ebx + esi]
movzx ecx, byte [esi]
xor edx, ecx
or eax, edx
inc esi
sub edi, 1
jne 0x4262e7
pop edi
pop esi
pop ebx
ret

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

Disassembly:
xor eax, eax
mov ecx, 0x4666e0
push 0x20
pop edx
and eax, dword [ecx]
add ecx, 0x20
sub edx, 1
jne 0x426306
cmp ecx, 0x4676e0
jl 0x426303
ret
Function at 0x42ad63
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [edx + 0x3f]
push esi
shr eax, 6
mov esi, edx
sub esi, eax
mov dword [esp + 0x10], edx
push edi
xor edi, edi
mov ebx, ecx
and dword [esp + 0x18], edi
inc esi
imul eax, esi, 3
shr eax, 2
cmp eax, dword [ebp]
jbe 0x42ad9a
mov eax, 0xffffff53
jmp 0x42af6d
mov esi, dword [esp + 0x20]
cmp edx, 3
jbe 0x42af5b
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
lea edx, [esp + 0x18]
call fcn.0042ad05
add esp, 4
test eax, eax
jne 0x42af54
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
mov byte [esp + 0x13], cl
mov dword [esp + 0x18], eax
test cl, cl
je 0x42af5b
dec dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.0042ad05
add esp, 4
test eax, eax
jne 0x42af6d
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x12], cl
mov ecx, ebx
push eax
call fcn.0042ad05
add esp, 4
test eax, eax
jne 0x42af6d
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x24], cl
mov ecx, ebx
push eax
call fcn.0042ad05
add esp, 4
test eax, eax
jne 0x42af6d
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
mov dh, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp dl, 0x2b
jb 0x42af4d
mov cl, byte [esp + 0x12]
cmp cl, 0x2b
jb 0x42af4d
mov al, byte [esp + 0x24]
cmp al, 0x2b
jb 0x42af4d
cmp dh, 0x2b
jb 0x42af4d
cmp dl, 0x7a
ja 0x42af4d
cmp cl, 0x7a
ja 0x42af4d
cmp al, 0x7a
ja 0x42af4d
cmp dh, 0x7a
ja 0x42af4d
xor ecx, ecx
cmp al, 0x3d
setne cl
xor eax, eax
inc ecx
cmp dh, 0x3d
setne al
add ecx, edi
add eax, ecx
cmp eax, dword [ebp]
ja 0x42ad90
mov cl, byte [esp + 0x12]
movzx eax, dl
mov al, byte [eax + 0x467825]
mov byte [esp + 0x13], al
movzx eax, cl
mov ch, byte [eax + 0x467825]
mov al, byte [esp + 0x24]
cmp al, 0x3d
jne 0x42aef0
xor cl, cl
jmp 0x42aef9
movzx eax, al
mov cl, byte [eax + 0x467825]
cmp dh, 0x3d
jne 0x42af02
xor al, al
jmp 0x42af0b
movzx eax, dh
mov al, byte [eax + 0x467825]
mov ah, byte [esp + 0x13]
mov dl, cl
shl dl, 6
or dl, al
shl ah, 2
mov al, ch
shr al, 4
or al, ah
mov byte [edi + esi], al
inc edi
cmp byte [esp + 0x24], 0x3d
je 0x42af37
shr cl, 2
shl ch, 4
or cl, ch
mov byte [edi + esi], cl
inc edi
cmp dh, 0x3d
je 0x42af5b
mov byte [edi + esi], dl
inc edi
cmp dword [esp + 0x14], 3
ja 0x42ada7
jmp 0x42af5b
mov eax, 0xffffff66
jmp 0x42af6d
cmp eax, 0xffffff7c
jne 0x42af6d
test esi, esi
je 0x42af68
cmp dword [ebp], edi
jbe 0x42af68
mov byte [edi + esi], 0
mov dword [ebp], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x42e669
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x42e763
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
jne 0x42e68a
test esi, esi
jne 0x42e763
cmp edx, 3
je 0x42e6c0
cmp edx, 4
je 0x42e6c0
cmp edx, 5
je 0x42e6c0
cmp edx, 6
je 0x42e6c0
cmp edx, 7
je 0x42e6c0
cmp edx, 8
je 0x42e6c0
cmp edx, 0xa
je 0x42e6c0
cmp edx, 0xb
je 0x42e6c0
cmp edx, 0xc
je 0x42e6c0
cmp edx, 0xd
jne 0x42e763
xor ebx, ebx
mov byte [edi + 0x114], dl
push ecx
mov byte [edi + 0x115], bl
call fcn.0042e64c
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x42e768
cmp byte [edi + 0x114], 6
lea ecx, [edi + 0x70]
jne 0x42e763
cmp esi, 0x40
ja 0x42e706
cmp dword [esp + 0x14], ebx
je 0x42e72f
push esi
push dword [esp + 0x18]
push ecx
call fcn.00435de0
add esp, 0xc
jmp 0x42e72c
mov edx, dword [esp + 0x14]
mov ecx, edi
push esi
call fcn.0043354b
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x42e75f
lea edx, [edi + 0x70]
mov ecx, edi
call fcn.00433626
mov ebp, eax
test ebp, ebp
jne 0x42e75f
push 0x20
pop esi
lea ecx, [edi + 0x70]
cmp esi, 0x40
jae 0x42e747
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push ebx
push eax
call fcn.00436360
add esp, 0xc
mov al, byte [ebx + edi + 0x70]
xor al, 0x5c
mov byte [edi + ebx + 0xb0], al
xor byte [ebx + edi + 0x70], 0x36
inc ebx
cmp ebx, 0x40
jb 0x42e747
mov eax, ebp
jmp 0x42e768
mov eax, 0xffffff53
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4325e7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
push edi
inc ebx
inc esi
cmp dword [esp + 0xe8], 0
mov edi, ecx
push 0
cmovne ebx, dword [esp + 0xec]
mov ebp, edx
pop ecx
test bl, 0x1f
mov eax, ebx
push 0x37
push dword [esp + 0xf0]
setne cl
shr eax, 5
add eax, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.00435de0
and dword [esp + 0x20], 0
add esp, 0xc
cmp dword [esp + 0x10], 0
jbe 0x432725
lea ecx, [esp + 0x74]
call fcn.00433665
mov esi, eax
test esi, esi
jne 0x432725
push 0x37
lea edx, [esp + 0x40]
lea ecx, [esp + 0x78]
call fcn.0043354b
mov esi, eax
pop ecx
test esi, esi
jne 0x432725
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x74]
call fcn.00433626
mov esi, eax
test esi, esi
jne 0x432725
push 4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00435de0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [edi], 1
jbe 0x4326d0
cmp eax, dword [edi + 4]
jne 0x4326d0
cmp byte [edi + 0x76], 1
je 0x432743
mov edx, dword [esp + 0x10]
mov byte [edi + 0x76], 1
lea eax, [edx - 1]
cmp dword [esp + 0x14], eax
lea ecx, [edx + 1]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x4326d7
mov byte [edi + 0x76], 0
mov dword [edi + 4], eax
test ebp, ebp
je 0x432712
test ebx, ebx
je 0x432712
lea eax, [esp + 0x1c]
cmp ebx, 0x20
jb 0x432705
push 0x20
push eax
push ebp
call fcn.00435de0
add esp, 0xc
lea ecx, [esp + 0x3c]
sub ebx, 0x20
add ebp, 0x20
call fcn.004325d8
jmp 0x432712
push ebx
push eax
push ebp
call fcn.00435de0
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x432645
push 0x37
pop edx
lea ecx, [esp + 0x3c]
call fcn.0041cb99
xor eax, eax
test esi, esi
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
push 3
pop eax
jmp 0x432738

Function at 0x432e3f
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x432deb
mov eax, 0xffffff53
pop esi
ret
push edi
push 0x20
xor edi, edi
push edi
push esi
call fcn.00436360
add esp, 0xc
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
xor eax, eax
mov dword [esi + 0x68], edi
mov dword [esi], 0x6a09e667
pop edi
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
ret
test ecx, ecx
jne 0x432e49
mov eax, 0xffffff53
ret
mov dword [ecx + 0x6c], edx
jmp 0x432ddd
Function at 0x43356a
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x433578
mov eax, 0xffffff53
pop ebx
ret
mov eax, dword [ebx + 0x60]
push ebp
push esi
push edi
push 0x40
pop edi
lea ebp, [ebx + 0x20]
mov byte [eax + ebp], 0x80
inc dword [ebx + 0x60]
mov ecx, dword [ebx + 0x60]
push 0x38
pop esi
cmp ecx, esi
jbe 0x4335c5
mov eax, edi
sub eax, ecx
push eax
lea eax, [ecx + ebp]
push 0
push eax
call fcn.00436360
push edi
mov edx, ebp
mov dword [ebx + 0x60], edi
mov ecx, ebp
call fcn.00432db3
add esp, 0x10
mov edx, ebp
mov ecx, ebx
call fcn.00432e51
test eax, eax
jne 0x433621
and dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x60]
sub esi, eax
push esi
add eax, ebp
push 0
push eax
call fcn.00436360
lea edi, [ebx + 0x64]
mov edx, ebp
mov ecx, dword [edi]
lea esi, [ebx + 0x68]
mov eax, dword [esi]
shr ecx, 0x1d
push 0x40
lea eax, [ecx + eax*8]
mov ecx, ebp
mov dword [esi], eax
mov eax, dword [edi]
shl eax, 3
mov dword [edi], eax
call fcn.00432db3
push 4
lea eax, [ebp + 0x38]
push esi
push eax
call fcn.00435de0
push 4
lea eax, [ebp + 0x3c]
push edi
push eax
call fcn.00435de0
add esp, 0x28
mov edx, ebp
mov ecx, ebx
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00432e51
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x433626
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x43365d
test edi, edi
je 0x43365d
call fcn.0043356a
test eax, eax
jne 0x433662
push 0x20
mov edx, esi
mov ecx, esi
call fcn.00432db3
push 0x20
push esi
push edi
call fcn.00435de0
add esp, 0x10
mov ecx, esi
pop edi
pop esi
jmp 0x432ddd
mov eax, 0xffffff53
pop edi
pop esi
ret

Function at 0x433715
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov eax, edx
mov ebp, ecx
neg eax
mov dword [esp + 8], eax
test ebp, ebp
je 0x4337af
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4337af
mov edx, dword [ebp]
mov ecx, ebx
inc edx
call fcn.0042edf8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4337b4
xor edx, edx
push esi
push edi
cmp dword [ebp], edx
jle 0x433775
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.004336ff
mov ecx, ebx
mov esi, eax
call fcn.004336ff
mov ecx, dword [esp + 0x10]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
cmp edx, dword [ebp]
jl 0x43374f
jmp 0x43379a
mov ecx, dword [esp + 0x10]
jmp 0x43379a
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.004336ff
mov ecx, ebx
mov esi, eax
call fcn.004336ff
mov ecx, dword [esp + 0x10]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
cmp edx, dword [ebx]
jl 0x43377b
mov eax, dword [ebp]
xor eax, dword [ebx]
and eax, ecx
xor dword [ebx], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
jmp 0x4337b4
mov eax, 0xffffff53
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x44b566
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044b3e5
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40561c
pop dword [ebp - 0x44]
mov eax, 0x73cc7eb
add eax, 0xf9038e31
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x9c0d5bda
sub dword [ebp - 0x54], 0x4dbb168f
mov dword [ebp - 0x50], 0x9983ab
add dword [ebp - 0x50], 0x3199c89a
mov dword [ebp - 0x4c], 0x8e92131b
add dword [ebp - 0x4c], 0xbdba3113
mov dword [ebp - 0x48], 0xe9a10020
add dword [ebp - 0x48], 0x165effe0
lea eax, [ebp - 0x54]
push eax
mov eax, 0x6dc05a07
add eax, 0x9280764d
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x70e22423
add dword [ebp - 0x54], 0x3904533
mov dword [ebp - 0x50], 0x7e892319
add dword [ebp - 0x50], 0xc2e33e5c
mov dword [ebp - 0x4c], 0x73998403
add dword [ebp - 0x4c], 0xefd5e869
mov dword [ebp - 0x48], 0x9a49170
add dword [ebp - 0x48], 0xf65b6e90
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3d3cb
push 0
call eax
mov ecx, 0x56df
mov edx, eax
mov ebx, 0x41b000
add ebx, dword [ebp - 0x44]
mov esi, 0x66a99f59
xor dword [ebp - 0x20], esi
mov edi, dword [ebx]
mov dword [ebp - 0x28], 0x6ea71ee3
xor edi, esi
mov dword [ebp - 0xc], 0x3ff605bb
mov dword [edx], edi
xor dword [ebp - 0x40], edx
add edx, 0x5155da13
add edx, 0xaeaa25f1
add ebx, 0x69d04c12
sub ebx, 0x69d04c0e
loop 0x405727
add eax, 0x14e4f
xor ebx, ebx
add ebx, eax
add eax, 0x9ea29ede
add eax, 0x615d6127
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401080
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
add eax, dword [ebp + 0x14]
add ecx, dword [ebp + 0xc]
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
dec esi
jne 0x401077
pop esi
pop ebp
ret
Function at 0x4030e9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4170c0]
jne 0x4030f3
repz ret
jmp fcn.00405707

Function at 0x40d9d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4170c0]
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.004075b0
and dword [ebp - 0x14], 0
cmp dword [0x41937c], 0
mov dword [ebp - 0x18], eax
jne 0x40da83
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40db2b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40db2b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41937c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x419380], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x419384], eax
call edi
push eax
call esi
mov dword [0x41938c], eax
test eax, eax
je 0x40da83
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x419388], eax
mov eax, dword [0x419388]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40dadc
cmp dword [0x41938c], ecx
je 0x40dadc
push eax
call esi
push dword [0x41938c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40dadc
test ebx, ebx
je 0x40dadc
call edi
test eax, eax
je 0x40dad3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40dad3
test byte [ebp - 8], 1
jne 0x40dadc
or dword [ebp + 0x10], 0x200000
jmp 0x40db0f
mov eax, dword [0x419380]
cmp eax, dword [ebp - 0x18]
je 0x40db0f
push eax
call esi
test eax, eax
je 0x40db0f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40db0f
mov eax, dword [0x419384]
cmp eax, dword [ebp - 0x18]
je 0x40db0f
push eax
call esi
test eax, eax
je 0x40db0f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41937c]
call esi
test eax, eax
je 0x40db2b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40db2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030e9
leave
ret
Function at 0x402110
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465400
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4b6100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
lea edx, [eax + 0x38]
mov dword [ebp - 0x14], edx
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movq xmm0, qword [eax + 0x30]
movq qword [ecx + 0x30], xmm0
add ecx, 0x38
mov dword [ebp - 0x18], ecx
lea edi, [ecx + 0x10]
mov dword [ebp - 4], 0
mov eax, dword [ecx + 4]
lea esi, [ecx + 0xc]
mov dword [ebp - 0x24], edi
cmp eax, edi
je 0x4021c0
mov ecx, dword [esi]
cmp ecx, 0x1000
jb 0x4021b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021fd
mov eax, edx
push ecx
push eax
call fcn.004640ea
mov ecx, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov edi, dword [edx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0xc]
mov dword [esi], eax
lea eax, [edx + 0x10]
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x1c], eax
jne 0x402203
lea edx, [ecx + 0x10]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x14]
add edx, 0x10
add edx, edi
sub edx, eax
je 0x40221d
push edx
push eax
push dword [ebp - 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x18]
add esp, 0xc
jmp 0x40221d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [ebp - 0x1c]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
cmp edi, dword [esi]
jbe 0x402228
mov eax, dword [ecx]
push edi
call dword [eax]
cmp edi, dword [esi]
mov eax, dword [ebp - 0x28]
cmova edi, dword [esi]
mov dword [eax + 0x40], edi
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 4]
mov dword [eax + 4], edx
add edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax + 0x34]
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x403810
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4656a8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x4b6100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4038c3
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x403981
sub esp, 8
mov dword [ebp - 0x40], 0
mov eax, esp
mov dword [ebp - 0x3c], 0
movq xmm0, qword [ebp - 0x40]
push 4
sub esp, 0xc
mov dword [eax], str.Could_not_open_file_for_writing
mov dword [eax + 4], 0x1f
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00402270
jmp 0x403981
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call dword [sym.imp.jsoncpp.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_Json::Value::toStyledString_void_]
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x403916
sub esp, 8
mov dword [ebp - 0x40], 0
mov eax, esp
mov dword [ebp - 0x3c], 0
movq xmm0, qword [ebp - 0x40]
push 2
sub esp, 0xc
mov dword [eax], str.writing_config
mov dword [eax + 4], 0xe
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00402270
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x30]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x40396f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403965
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403965
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004640ea
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x4039a9
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4039a9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4039a9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004640a7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret