joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
or ebp, 0xffffffff
jmp 0x408162
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408169
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408158
mov eax, 1
add ebx, ebx
jne 0x40817b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408170
jne 0x40818c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408170
xor ecx, ecx
sub eax, 3
jb 0x4081a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408212
mov ebp, eax
add ebx, ebx
jne 0x4081ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4081b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4081dc
inc ecx
add ebx, ebx
jne 0x4081c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4081bd
jne 0x4081d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4081bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4081fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4081ed
jmp 0x40815e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4081fc
add edi, ecx
jmp 0x40815e
pop esi
mov edi, esi
mov ecx, 0x139
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40821a
cmp byte [edi], 0
jne 0x40821a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40821f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x40828e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8510]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8560]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40824c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8564]
or eax, eax
je 0x408288
mov dword [ebx], eax
add ebx, 4
jmp 0x408269
call dword [esi + 0x856c]
mov ebp, dword [esi + 0x8568]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4082c2
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x100035d0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x10081f5c], 0xa
jl 0x100035f2
mov eax, dword [0x10081f60]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x100035f2
nop dword [eax]
jmp 0x100035f0
cmp byte [0x10081d48], 0
jne 0x1000363b
push edi
push esi
xor ecx, ecx
mov esi, 0xffffffcb
mov edi, 0x88888889
nop dword [eax]
mov eax, ecx
inc ecx
mul edi
shr edx, 4
imul eax, edx, 0xffffffe2
movzx eax, byte [eax + esi + 0x100711af]
xor al, byte [esi + 0x100711cd]
mov byte [esi + 0x10081d48], al
inc esi
jne 0x10003610
mov byte [0x10081d48], 1
pop esi
pop edi
ret
Function at 0x10009d80
Capabilities:
Hash data using sha256

Disassembly:
push edi
push esi
xor ecx, ecx
mov eax, dword [esp + 0xc]
jmp 0x10009d96
inc ecx
cmp ecx, 8
je 0x10009dc3
mov edx, dword [ecx*4 + 0x1008008c]
nop dword [eax]
mov dword [eax + ecx*4 + 0x88], edx
cmp dword [0x10081e64], 0xa
jl 0x10009d90
mov esi, dword [0x10081e68]
lea edi, [esi + 1]
imul edi, esi
and edi, 1
jne 0x10009da0
jmp 0x10009d90
mov dword [eax + 4], 0
mov dword [eax], 0
cmp dword [0x10081e64], 0xa
jl 0x10009e17
mov ecx, dword [0x10081e68]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x10009e17
nop word [eax + eax]
mov dword [eax], 0
cmp dword [0x10081e64], 0xa
jl 0x10009e10
mov ecx, dword [0x10081e68]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
jne 0x10009df0
mov dword [eax + 4], 0
pop esi
pop edi
ret
Function at 0x1001b480
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x10082b08], 0xa
jl 0x1001b4a2
mov eax, dword [0x10082b0c]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x1001b4a2
nop dword [eax]
jmp 0x1001b4a0
cmp byte [0x1008220e], 0
jne 0x1001b4eb
push edi
push esi
xor ecx, ecx
mov esi, 0xffffffe8
mov edi, 0xb21642c9
nop dword [eax]
mov eax, ecx
inc ecx
mul edi
shr edx, 4
imul eax, edx, 0xffffffe9
movzx eax, byte [eax + esi + 0x100717b1]
xor al, byte [esi + 0x100717c8]
mov byte [esi + 0x1008220e], al
inc esi
jne 0x1001b4c0
mov byte [0x1008220e], 1
pop esi
pop edi
ret
Function at 0x10039872
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x10039895
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x10039883
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x1004cdc7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.100526cb
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x1004ce06
sub eax, 1
je 0x1004ce01
sub eax, 1
je 0x1004cdfd
xor eax, eax
leave
ret
push 3
jmp 0x1004ce08
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x1005cd40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005cd6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005cd6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1005f27f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10075e1c
push 0x10075e14
push str.FlsAlloc
push 0x1e
call fcn.1005f7db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005f2b3
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1005f2b9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005f2fd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10075e2c
push 0x10075e24
push str.FlsGetValue
push 0x20
call fcn.1005f7db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005f334
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10063bcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100358b0
mov eax, dword [0x10080800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10062538
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10063c0f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10063d6b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10035790
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10085ae0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10063974
mov ecx, dword [esi*4 + 0x10085ae0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10063d64
cmp eax, dword [edi + ecx + 0x24]
jne 0x10063d64
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10063d64
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10063974
add esp, 0x14
test edx, edx
jl 0x10063d64
jg 0x10063cda
test eax, eax
jb 0x10063d64
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10063d64
jl 0x10063cf4
cmp dword [ebp - 0x1008], eax
ja 0x10063d64
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10063d12
test ebx, ebx
je 0x10063d4b
cmp ecx, edi
jae 0x10063d4b
mov al, byte [ecx]
cmp al, 0xd
jne 0x10063d2c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10063d38
cmp byte [ecx + 1], 0xa
jne 0x10063d38
inc ecx
jmp 0x10063d38
movzx eax, al
movsx eax, byte [eax + 0x100811d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10063d12
cmp edx, ebx
jne 0x10063d12
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10063d69
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10035778
leave
ret
Function at 0x100641f5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10064292
push ebx
push esi
call fcn.100642e3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1005d0fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006423f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10064291
push edi
push eax
call fcn.1005d031
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1006425f
call fcn.1005cff7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10064290
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005d0fb
add esp, 0x20
test eax, eax
jne 0x1006427e
push edi
call fcn.1005cff7
jmp 0x10064286
push ebx
call fcn.1005cff7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10064295
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100642a6
pop esi
ret
push ebx
push edi
push esi
call fcn.100642e3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005d031
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100642ce
push ebx
push esi
push edi
call fcn.1004f970
add esp, 0xc
push 0
call fcn.1005cff7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1006431a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10064325
Function at 0x100654ea
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100654f5
Function at 0x10065f61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10085ae0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10065fa1
cmp byte [ebx], 0xa
jne 0x10065fa1
or byte [eax + edi + 0x28], 4
jmp 0x10065fa6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100660a4
mov al, byte [edx]
cmp al, 0x1a
je 0x10066086
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10065fd5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10065ffa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10066004
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10065fb7
jmp 0x100660a4
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10066081
cmp dword [ebp - 0xc], 0
je 0x10066081
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10085ae0]
test byte [eax + edi + 0x28], 0x48
je 0x1006605b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10066046
mov byte [esi], dl
jmp 0x10066057
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10085ae0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100660a4
cmp byte [ebp - 1], 0xa
jne 0x1006606a
cmp esi, ebx
jne 0x1006606a
mov byte [esi], 0xa
jmp 0x100660a3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10063916
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100660a4
mov byte [esi], 0xd
jmp 0x100660a3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10085ae0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100660a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100660a4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100660ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10085ae0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100660f0
cmp word [esi], dx
jne 0x100660f0
or byte [edi + eax + 0x28], 4
jmp 0x100660f5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1006622e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1006620e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10066137
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006616d
cmp eax, edx
jae 0x10066179
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1006610f
jmp 0x1006622e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006620a
cmp dword [ebp - 0x14], 0
je 0x1006620a
mov eax, dword [ebx*4 + 0x10085ae0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100661e2
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10066228
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10085ae0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10085ae0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10085ae0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1006622b
pop ebx
cmp word [ebp - 4], bx
jne 0x100661f3
cmp esi, dword [ebp + 0xc]
jne 0x100661f3
mov word [esi], bx
jmp 0x1006622b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10063916
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1006622e
push 0xd
jmp 0x10066227
mov ecx, dword [ebx*4 + 0x10085ae0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10066225
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006622e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006de04
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006dfa7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006df7c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006df7c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006df2b
jg 0x1006de5d
test eax, eax
je 0x1006df21
push 1
push 0x1000
call fcn.10060109
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006de83
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1006df18
push 0x8000
push ebx
call fcn.1006dcfe
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006deaf
jg 0x1006deaa
cmp ecx, 0x1000
jb 0x1006deaf
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10064a34
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006def4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1006deaa
jl 0x1006dedb
test ecx, ecx
jne 0x1006de9c
push dword [ebp - 0xc]
push ebx
call fcn.1006dcfe
push esi
call fcn.1005cff7
add esp, 0xc
xor edi, edi
jmp 0x1006df8d
cmp byte [edi + 0x24], 0
je 0x1006df0b
cmp dword [edi + 0x20], 5
jne 0x1006df0b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006df16
mov edi, dword [edi + 0x18]
jmp 0x1006df18
xor edi, edi
push esi
call fcn.1005cff7
pop ecx
jmp 0x1006df8d
test ecx, ecx
jg 0x1006deed
jl 0x1006df2b
test eax, eax
jae 0x1006deed
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10063916
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006df4e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1006deed
jmp 0x1006df85
push ebx
call fcn.100564c3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006deed
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1006df8d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1006df8a
mov edi, dword [edi + 0x18]
jmp 0x1006df8d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10063916
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401530
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
nop
pop ebp
ret

Function at 0x401cdd
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x401d93
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x420fa0]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x420fa0]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x420fa0]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x420fa0]
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 4
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 3
ja 0x401cf6
jmp 0x401dca
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x420fa0]
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
sub dword [ebp + 0x10], 1
cmp dword [ebp + 0x10], 0
jne 0x401d9f
mov eax, dword [ebp - 4]
not eax
leave
ret
Function at 0x41c270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0
jne 0x41c29a
mov dword [esp + 8], 0x2d4
mov dword [esp + 4], str.src_patcher_patcher.c
mov dword [esp], str.file
mov eax, dword [0x41f504]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6c]
lea ecx, [ebp - 0x29]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041b604
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
lea eax, [ebp - 0x29]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x41c30d
mov ecx, dword [str.PATCH_BACKUP.ZIP]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x29]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.Patching_failed._The_patched_MD5_checksum_of_file__s_is_n_n_S_n_nbut_should_be_n_n_S_n_nThis_is_due_very_likely_an_internal_patcher_error._The_file_itself_is_not_changed_but_other_files_probably_already_are._Restore_your_game_files_from_the_backup_file__s_and_please_report_this_error.
mov dword [esp], 0x10
call fcn.0041b298
jmp 0x41c379
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
jne 0x41c372
mov edx, dword [str.PATCH_BACKUP.ZIP]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.Patching_failed._Couldnt_write_the_patched_data_back_into_file__s_and_its_now_probably_corrupted._Replace_this_file_with_the_original_in_the_backup_file__s_and_try_running_the_patcher_again.
mov dword [esp], 0x10
call fcn.0041b298
jmp 0x41c379
mov eax, 1
jmp 0x41c37e
mov eax, 0
leave
ret