joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4170a0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call fcn.004171c0
xor esi, esi
cmp byte [edi], 0
mov dword [ebp - 0xc], esi
jbe 0x417151
lea edx, [edi + 0x38]
mov dword [ebp - 8], edx
cmp dword [edx - 0x28], 0
je 0x41713c
movzx ecx, word [edi + 6]
xor ebx, ebx
movsx eax, cx
test eax, eax
jle 0x41713c
nop word [eax + eax]
mov esi, dword [edx]
test esi, esi
je 0x417119
cmp ebx, eax
jl 0x4170f5
test cx, cx
jle 0x417119
mov esi, dword [esi + eax*4 - 4]
jmp 0x41711b
cmp byte [edi + 0xc], 7
movzx eax, byte [edi + 1]
mov esi, dword [esi + ebx*4]
mov ecx, esi
push eax
lea eax, [edi + 0x6c]
push eax
jne 0x417110
call fcn.004366d0
jmp 0x417115
call fcn.00436a50
test al, al
jne 0x41711b
xor esi, esi
movzx eax, byte [edi + 1]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00436c80
movzx ecx, word [edi + 6]
inc ebx
mov edx, dword [ebp - 8]
movsx eax, cx
cmp ebx, eax
jl 0x4170e0
mov esi, dword [ebp - 0xc]
movzx eax, byte [edi]
inc esi
add edx, 4
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edx
cmp esi, eax
jl 0x4170c7
xor esi, esi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 4], esi
cmp ax, word [edi + 6]
jge 0x417196
mov eax, dword [edi + 0x34]
movzx ecx, word [eax + ebx*8 + 2]
lea edx, [eax + ebx*8]
movzx eax, byte [edx]
xor ecx, 0x4728
xor eax, 0x1381
inc ebx
add ecx, eax
add ecx, dword [edx + 4]
add esi, ecx
mov dword [ebp - 4], esi
xor dword [edx + 4], 0x14ad
movsx eax, word [edi + 6]
mov esi, dword [ebp - 4]
cmp ebx, eax
jl 0x417160
push dword [ebp + 8]
lea eax, [ebp - 4]
xor esi, 0x42789431
push 1
push 4
push eax
mov dword [ebp - 4], esi
call fcn.00529452
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4171c0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edi
push 1
push 4
push eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0x494e41
mov byte [ebp - 0x15], 4
call fcn.00529452
push edi
push 1
lea eax, [ebp - 0x15]
push 1
push eax
call fcn.00529452
push edi
push 1
push 1
push ebx
call fcn.00529452
push edi
push 1
lea eax, [ebx + 1]
push 1
push eax
call fcn.00529452
add esp, 0x40
lea eax, [ebx + 2]
push edi
push 1
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 3]
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 6]
push 2
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 8]
push 2
push eax
call fcn.00529452
add esp, 0x40
lea eax, [ebx + 0xa]
push edi
push 1
push 2
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 4]
push 1
push eax
call fcn.00529452
push edi
push 0xe
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov word [ebp - 8], 0
push 1
push eax
movq qword [ebp - 0x14], xmm0
call fcn.00529452
push edi
push 8
push 4
lea eax, [ebx + 0x10]
push eax
call fcn.00529452
xor eax, eax
add esp, 0x40
xor esi, esi
cmp ax, word [ebx + 6]
jge 0x4172d5
mov eax, dword [ebx + 0x34]
xor dword [eax + esi*8 + 4], 0x14ad
push edi
push 1
lea eax, [eax + esi*8]
push 8
push eax
call fcn.00529452
movsx eax, word [ebx + 6]
inc esi
add esp, 0x10
cmp esi, eax
jl 0x4172b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
Function at 0x42d0e0
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549892
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x582654]
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
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push str.clanmark_d.dat
push eax
call fcn.0041f000
lea eax, [ebp - 0x110]
push 0x553d34
push eax
call fcn.00521cc9
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x42d277
push ebx
push 1
push 2
push 0x5947dc
call fcn.00528933
mov ax, word [0x5947dc]
add esp, 0x10
mov ecx, 0x1400
push ebx
cmp ax, cx
jbe 0x42d185
xor eax, eax
mov word [0x5947dc], ax
call fcn.005286e7
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x42d277
push 1
movzx eax, ax
push eax
push 0x5947e0
call fcn.00528933
mov cx, word [0x5947dc]
mov esi, 1
mov eax, esi
add esp, 0x10
cmp ax, cx
ja 0x42d26e
mov eax, 0x5947e0
dec eax
mov dword [ebp - 0x114], eax
nop dword [eax + eax]
cmp byte [eax + esi], 0
je 0x42d25c
mov edi, dword [esi*4 + 0x58f7d8]
test edi, edi
je 0x42d1e7
mov ecx, edi
call fcn.0051e08a
push 0x28
push edi
call fcn.0052389d
add esp, 8
push 0x28
mov dword [esi*4 + 0x58f7d8], 0
call fcn.00523854
add esp, 4
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42d21c
push 0
push 0xc
push 0x10
mov ecx, eax
call fcn.0051e01f
jmp 0x42d21e
xor eax, eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi*4 + 0x58f7d8], eax
call fcn.0051e6bd
mov ecx, dword [esi*4 + 0x58f7d8]
push 0xfff800f8
call fcn.0051e53b
push dword [esi*4 + 0x58f7d8]
push esi
call fcn.0042d480
mov cx, word [0x5947dc]
add esp, 8
movzx eax, cx
inc esi
cmp esi, eax
mov eax, dword [ebp - 0x114]
jle 0x42d1c0
push ebx
call fcn.005286e7
add esp, 4
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.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x42d370
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push str.clanmark_d.dat
push eax
call fcn.0041f000
lea eax, [ebp - 0x104]
push 0x55486c
push eax
call fcn.00521cc9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x42d46e
push esi
push edi
push 1
push 2
push 0x5947dc
call fcn.00529452
mov ax, word [0x5947dc]
add esp, 0x10
mov esi, 0x1400
push edi
cmp ax, si
jbe 0x42d3ff
call fcn.005286e7
add esp, 4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
push 1
movzx eax, ax
push eax
push 0x5947e0
call fcn.00529452
mov cx, word [0x5947dc]
add esp, 0x10
cmp cx, si
jbe 0x42d427
mov ecx, esi
mov word [0x5947dc], cx
mov esi, 1
mov eax, esi
cmp ax, cx
ja 0x42d464
push ebx
mov ebx, 0x5947e0
nop dword [eax]
cmp byte [ebx + esi - 1], 0
je 0x42d45b
mov ecx, dword [esi*4 + 0x58f7d8]
push edi
call fcn.0051e887
mov cx, word [0x5947dc]
inc esi
movzx eax, cx
cmp esi, eax
jle 0x42d440
pop ebx
push edi
call fcn.005286e7
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0052388c
mov esp, ebp
pop ebp
ret

Function at 0x42e340
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x589d90]
call fcn.00420430
test al, al
je 0x42e368
push 0x5548b8
call fcn.00404580
push eax
push esi
call fcn.00470bb0
add esp, 0xc
pop esi
ret
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0x1f
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 2
call fcn.0051b028
mov ecx, dword [0x59ac14]
pop esi
jmp fcn.0051aeb9

Function at 0x42e3b0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x589d90]
call fcn.00420430
test al, al
je 0x42e3d8
push 0x5548b8
call fcn.00404580
push eax
push esi
call fcn.00470bb0
add esp, 0xc
pop esi
ret
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0x23
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 4
call fcn.0051b028
mov ecx, dword [0x59ac14]
pop esi
jmp fcn.0051aeb9

Function at 0x42e600
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x589d90]
call fcn.00420430
test al, al
je 0x42e628
push 0x5548b8
call fcn.00404580
push eax
push esi
call fcn.00470bb0
add esp, 0xc
pop esi
ret
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0x2a
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 2
call fcn.0051b028
mov ecx, dword [0x59ac14]
pop esi
jmp fcn.0051aeb9

Function at 0x42f6a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [0x59ac14]
push 8
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 3
call fcn.0051b028
mov ecx, dword [0x59ac14]
jmp fcn.0051aeb9
Function at 0x42f730
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x589d90]
call fcn.00420430
test al, al
je 0x42f758
push 0x5548b8
call fcn.00404580
push eax
push esi
call fcn.00470bb0
add esp, 0xc
pop esi
ret
mov ecx, esi
call fcn.00463d50
test eax, eax
je 0x42f756
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0x16
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 4
call fcn.0051b028
mov ecx, dword [0x59ac14]
pop esi
jmp fcn.0051aeb9

Function at 0x42f910
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x589d90]
call fcn.00420430
test al, al
je 0x42f938
push 0x5548b8
call fcn.00404580
push eax
push esi
call fcn.00470bb0
add esp, 0xc
pop esi
ret
mov ecx, esi
call fcn.00463d50
test eax, eax
je 0x42f936
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0x16
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 3
call fcn.0051b028
mov ecx, dword [0x59ac14]
pop esi
jmp fcn.0051aeb9

Function at 0x42fca0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x589d90]
call fcn.00420430
test al, al
je 0x42fcc8
push 0x5548b8
call fcn.00404580
push eax
push esi
call fcn.00470bb0
add esp, 0xc
pop esi
ret
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0x1a
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 1
call fcn.0051b028
mov ecx, dword [0x59ac14]
pop esi
jmp fcn.0051aeb9

Function at 0x42ffc0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x589d90]
call fcn.00420430
test al, al
je 0x42ffe8
push 0x5548b8
call fcn.00404580
push eax
push esi
call fcn.00470bb0
add esp, 0xc
pop esi
ret
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0xe
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 8
call fcn.0051b028
mov ecx, dword [0x59ac14]
pop esi
jmp fcn.0051aeb9

Function at 0x430a90
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0x5a
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 1
call fcn.0051b028
mov ecx, dword [0x59ac14]
jmp fcn.0051aeb9

Function at 0x430b40
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x589d90]
call fcn.00420430
test al, al
je 0x430b68
push 0x5548b8
call fcn.00404580
push eax
push esi
call fcn.00470bb0
add esp, 0xc
pop esi
ret
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0x23
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 3
call fcn.0051b028
mov ecx, dword [0x59ac14]
pop esi
jmp fcn.0051aeb9
Function at 0x430bb0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 0
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0xe
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 1
call fcn.0051b028
mov ecx, dword [0x59ac14]
jmp fcn.0051aeb9

Function at 0x430e70
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [0x59ac14]
push 0x1f
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
jmp fcn.0051aeb9

Function at 0x431040
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [0x59ac14]
push 0x64
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
jmp fcn.0051aeb9

Function at 0x431760
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [0x59ac14]
push 0x34
call fcn.0051ae6d
mov ecx, dword [0x59ac14]
push 2
push 2
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 0x7c
call fcn.0051b028
mov ecx, dword [0x59ac14]
push 1
push 1
call fcn.0051b028
mov eax, dword [0x589d90]
mov ecx, dword [0x59ac14]
push 2
movsx eax, word [eax + 0x49c]
push eax
call fcn.0051b028
mov ecx, dword [0x59ac14]
jmp fcn.0051aeb9
Function at 0x431f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push 0x553d34
push str.xytwz.cfg
mov dword [ebp - 0x10], ebx
call fcn.00521cc9
mov edi, eax
add esp, 8
lea eax, [ebx + 0x1698c]
xor esi, esi
mov dword [ebp - 0xc], eax
mov ebx, eax
nop
push esi
mov ecx, ebx
call fcn.004a16f0
inc esi
cmp esi, 6
jl 0x431f40
mov ebx, dword [ebp - 0x10]
test edi, edi
je 0x432127
push edi
push 1
lea eax, [ebx + 0xb21]
push 1
push eax
call fcn.00528933
push edi
push 1
lea eax, [ebx + 0xb22]
push 1
push eax
call fcn.00528933
push edi
push 1
lea eax, [ebx + 0xb25]
push 1
push eax
call fcn.00528933
push edi
push 1
lea eax, [ebx + 0xb26]
push 1
push eax
call fcn.00528933
add esp, 0x40
lea eax, [ebx + 0xb3a]
push edi
push 1
push 1
push eax
call fcn.00528933
push edi
push 1
lea eax, [ebx + 0xb3b]
push 1
push eax
call fcn.00528933
push edi
push 1
lea eax, [ebx + 0xb3c]
push 1
push eax
call fcn.00528933
push edi
push 1
lea eax, [ebx + 0xb3d]
push 1
push eax
call fcn.00528933
add esp, 0x40
lea eax, [ebx + 0xb20]
push edi
push 1
push 1
push eax
call fcn.00528933
push edi
push 1
push 1
push 0x582112
call fcn.00528933
push edi
push 1
push 1
push 0x582113
call fcn.00528933
push edi
push 1
push 1
push 0x585982
call fcn.00528933
add esp, 0x40
lea eax, [ebx + 0xb28]
push edi
push 1
push 1
push eax
call fcn.00528933
push edi
push 1
push 1
lea eax, [ebp - 1]
push eax
call fcn.00528933
add esp, 0x20
cmp eax, 1
jne 0x432058
mov al, byte [ebp - 1]
mov byte [ebx + 0xb23], al
push edi
push 1
lea eax, [ebp - 2]
push 1
push eax
call fcn.00528933
add esp, 0x10
cmp eax, 1
jne 0x432077
mov al, byte [ebp - 2]
mov byte [ebx + 0x3094c], al
push edi
push 1
lea eax, [ebp - 3]
push 1
push eax
call fcn.00528933
add esp, 0x10
cmp eax, 1
jne 0x432096
mov al, byte [ebp - 3]
mov byte [ebx + 0xb24], al
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0049ed40
mov dword [ebp - 0xc], eax
xor esi, esi
push edi
push 1
lea eax, [ebp - 4]
push 1
push eax
call fcn.00528933
add esp, 0x10
cmp eax, 1
jne 0x4320ce
mov eax, dword [ebp - 0xc]
mov al, byte [esi + eax]
cmp al, byte [ebp - 4]
je 0x4320ce
push esi
mov ecx, ebx
call fcn.004a16f0
inc esi
cmp esi, 7
jl 0x4320a5
push edi
push 1
lea eax, [ebp - 5]
push 1
push eax
call fcn.00528933
mov ebx, dword [ebp - 0x10]
add esp, 0x10
cmp eax, 1
jne 0x4320f6
mov al, byte [ebp - 5]
mov byte [ebx + 0xb34], al
push edi
call fcn.005286e7
movzx eax, byte [ebx + 0xb28]
push eax
mov byte [ebx + 0xb28], al
call fcn.00446440
add esp, 8
mov byte [ebx + 0xb26], 1
mov byte [ebx + 0xb21], 0
mov byte [ebx + 0x3094c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dc4e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x582654]
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 ebx, ecx
mov dword [ebp - 0x30], ebx
push 0xa
push str.userhabit_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404940
mov ecx, dword [0x589d90]
mov dword [ebp - 4], 0
call fcn.0041ff70
mov edx, eax
cmp byte [edx], 0
jne 0x43219e
xor ecx, ecx
jmp 0x4321ac
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4321a3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00414b10
push 5
push str..json
lea ecx, [ebp - 0x28]
call fcn.00414b10
lea esi, [ebx + 0x30f58]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, esi
push eax
push dword [esi + 0x10]
mov byte [ebp - 4], 1
push 0
call fcn.00414c40
mov byte [ebp - 4], 0
test eax, eax
je 0x43229c
mov ecx, ebx
call fcn.004a7d00
mov ecx, ebx
call fcn.004a7d20
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x432217
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404820
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x553858
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00521cc9
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x43229c
push 2
push 0
push ebx
call fcn.00528c9d
push ebx
call fcn.0052920f
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.005238ab
push esi
mov esi, eax
mov dword [ebp - 0x2c], eax
push 0
push esi
call fcn.00527170
push 0
push 0
push ebx
call fcn.00528c9d
push ebx
push edi
push 1
push esi
call fcn.00528933
add esp, 0x3c
push esi
test eax, eax
jne 0x432285
call fcn.005238b4
add esp, 4
jmp 0x43229c
mov ecx, dword [ebp - 0x30]
call fcn.004a8200
push esi
call fcn.005238b4
push ebx
call fcn.005286e7
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4322b1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404ab0
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.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4322d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, ecx
push 0x55486c
push str.xytwz.cfg
mov dword [ebp - 4], ebx
call fcn.00521cc9
mov edi, eax
add esp, 8
test edi, edi
je 0x432454
push esi
push edi
push 1
lea ecx, [ebx + 0xb21]
push 1
push ecx
call fcn.00529452
push edi
push 1
lea eax, [ebx + 0xb22]
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 0xb25]
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 0xb26]
push 1
push eax
call fcn.00529452
add esp, 0x40
lea eax, [ebx + 0xb3a]
push edi
push 1
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 0xb3b]
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 0xb3c]
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 0xb3d]
push 1
push eax
call fcn.00529452
add esp, 0x40
lea eax, [ebx + 0xb20]
push edi
push 1
push 1
push eax
call fcn.00529452
push edi
push 1
push 1
push 0x582112
call fcn.00529452
push edi
push 1
push 1
push 0x582113
call fcn.00529452
push edi
push 1
push 1
push 0x585982
call fcn.00529452
add esp, 0x40
lea eax, [ebx + 0xb28]
push edi
push 1
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 0xb23]
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 0x3094c]
push 1
push eax
call fcn.00529452
push edi
push 1
lea eax, [ebx + 0xb24]
push 1
push eax
call fcn.00529452
add esp, 0x40
lea ecx, [ebx + 0x1698c]
call fcn.0049ed40
mov ebx, eax
xor esi, esi
nop dword [eax]
push edi
push 1
lea ecx, [esi + ebx]
push 1
push ecx
call fcn.00529452
inc esi
add esp, 0x10
cmp esi, 7
jl 0x432420
mov eax, dword [ebp - 4]
push edi
push 1
add eax, 0xb34
push 1
push eax
call fcn.00529452
push edi
call fcn.005286e7
add esp, 0x14
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4329e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x432a0d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4329fc
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x4329fc
mov edx, 0x10b
cmp word [eax + ecx + 0x18], dx
jne 0x4329fc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ecx
mov ecx, esi
call fcn.00432ac0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4329fc
test byte [ebp - 0x10c], 3
mov eax, 1
jne 0x432aae
test ecx, ecx
je 0x432aae
cmp dword [esi + 4], 0
jne 0x432a88
mov ecx, dword [esi]
mov edx, 0x2000
mov eax, dword [ecx + 0x3c]
test word [eax + ecx + 0x16], dx
je 0x432a82
mov eax, dword [eax + ecx + 0x28]
push 0
push 0
push ecx
add eax, ecx
call eax
cmp dword [esi + 4], 0
je 0x432a9f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x436440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549ded
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x582654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004363c0
mov edi, dword [ebp + 8]
push edi
push 1
push 1
push esi
call fcn.00528933
push edi
push 1
lea eax, [esi + 2]
push 2
push eax
call fcn.00528933
push edi
push 1
lea eax, [esi + 4]
push 2
push eax
call fcn.00528933
push edi
push 1
lea eax, [esi + 6]
push 2
push eax
call fcn.00528933
add esp, 0x40
lea eax, [esi + 8]
push edi
push 1
push 2
push eax
call fcn.00528933
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x4364f4
push 0x18
call fcn.00523854
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4364de
mov ecx, eax
call fcn.0051f11a
jmp 0x4364e0
xor eax, eax
push 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x14], eax
call fcn.0051f2db
push 0x18
call fcn.00523854
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x436515
mov ecx, eax
call fcn.0051f11a
jmp 0x436517
xor eax, eax
push 1
push edi
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0xc], eax
call fcn.0051f2db
push 0x18
call fcn.00523854
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x43654c
mov ecx, eax
call fcn.0051f11a
jmp 0x43654e
xor eax, eax
push 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x10], eax
call fcn.0051f36b
push 0
call fcn.005342f3
add esp, 4
add eax, 0x258
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8