joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ad827
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x101673fc]
xor edx, edx
cmp eax, edx
jne 0x5ad84d
xor eax, eax
mov byte [eax + 0x101672fc], al
inc eax
cmp eax, 0x100
jl 0x5ad835
mov dword [0x101673fc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x101672fc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5ad8de
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5ad8b1
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5ad87f
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5ad957
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5ad9aa
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5ad991
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b4327
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d3cee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005b4c47
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1010f73c
call fcn.005d3d90
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5b43ba
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005d3d90
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5b43b3
push 0
mov ecx, eax
call fcn.005ab457
mov dword [esi + 0xc], eax
jmp 0x5b43bc
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5b43bc
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4e7a00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x91000]
push edi
jmp 0x4e7a1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e7a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e7a10
mov eax, 1
add ebx, ebx
jne 0x4e7a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e7a44
jne 0x4e7a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e7a63
dec eax
add ebx, ebx
jne 0x4e7a50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e7a28
add ebx, ebx
jne 0x4e7a5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e7ab5
xor ecx, ecx
sub eax, 3
jb 0x4e7a7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e7aea
sar eax, 1
mov ebp, eax
jmp 0x4e7a86
add ebx, ebx
jne 0x4e7a86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e7a54
inc ecx
add ebx, ebx
jne 0x4e7a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e7a54
add ebx, ebx
jne 0x4e7aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e7a96
jne 0x4e7ab2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e7a96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e7ad4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e7ac6
jmp 0x4e7a16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e7ad4
add edi, ecx
jmp 0x4e7a16
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e7af2
cmp byte [edi], 0x11
jne 0x4e7af2
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 0x4e7af7
lea edi, [esi + 0xe0000]
mov eax, dword [edi]
or eax, eax
je 0x4e7b6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf6310]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf648c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e7b24
mov ecx, edi
jns 0x4e7b53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf6490]
or eax, eax
je 0x4e7b69
mov dword [ebx], eax
add ebx, 4
jmp 0x4e7b41
call dword [esi + 0xf64a0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e7ba0
cmp al, 0xef
ja 0x4e7b93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e7b75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e7b82
mov ebp, dword [esi + 0xf6494]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4e7bd4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x401ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x402003
test esi, esi
je 0x402003
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f10
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x402005
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408690
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x401f7f
cmp dword [0x418f08], 3
jne 0x401f7f
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [0x412020]
push 0x416a9c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404c4b
add esp, 0xc
jmp 0x401f91
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [0x41201c]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404c4b
push 0x416aa0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0
call fcn.00404e42
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x402003
push eax
push 1
push 0x200
push edi
call fcn.00405114
push dword [ebp - 0x210]
call fcn.0040522c
add esp, 0x14
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret

Function at 0x4020c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor edx, edx
jmp 0x4020e0
not byte [esi + edx]
inc edx
cmp edx, 0x200
jb 0x4020e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408690
add esp, 0xc
mov dword [ebp - 0x214], 0
test esi, esi
je 0x402195
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [0x41201c]
push str.golfinfo.ini
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404c4b
push 0x416adc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00404e42
mov eax, dword [ebp - 0x214]
add esp, 0x18
test eax, eax
je 0x402181
push eax
push 1
push 0x200
push esi
call fcn.004053fa
push dword [ebp - 0x214]
call fcn.0040522c
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x403470
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x416d2c
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00404e42
add esp, 0xc
test eax, eax
je 0x4034b5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00405c10
push dword [ebp - 8]
call fcn.00405fe8
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00405c10
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.00405ab7
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.00405114
push dword [ebp - 8]
call fcn.0040522c
push edi
add ebx, esi
push 0
push ebx
call fcn.00408690
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [0x41202c]
push eax
call fcn.00406073
add esp, 4
xor esi, esi
test edi, edi
jle 0x40353d
lea ecx, [ecx]
call fcn.00406050
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x403530
push 0x416d34
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00404e42
add esp, 0xc
test eax, eax
je 0x403568
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.004053fa
push dword [ebp - 8]
call fcn.0040522c
add esp, 0x14
test esi, esi
je 0x403591
push esi
call fcn.00405b49
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x4035b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.00408690
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00408690
push 0x103
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call fcn.00408690
mov ax, word [0x416d44]
movq xmm0, qword [str.sanfdr.bat]
mov word [ebp - 0x31c], ax
mov al, byte [0x416d46]
add esp, 0x24
mov byte [ebp - 0x31a], al
lea eax, [ebp - 0x20c]
movq qword [ebp - 0x324], xmm0
push eax
xorps xmm0, xmm0
push 0x104
movq qword [ebp - 0x319], xmm0
mov byte [ebp - 0x311], 0
call dword [0x412040]
lea edx, [ebp - 0x324]
mov esi, edx
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x403670
push edi
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403681
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x108]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [0x412044]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00406083
lea eax, [ebp - 0x310]
push 0x5c
push eax
call fcn.00405980
add esp, 0x14
pop edi
test eax, eax
je 0x4036dc
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push 0x416d48
push eax
call fcn.0040619c
mov esi, eax
add esp, 8
test esi, esi
je 0x40383e
push esi
push 1
push 9
push str.:Repeat_r_n
call fcn.004053fa
push esi
push 1
push 5
push 0x416d58
call fcn.004053fa
lea ecx, [ebp - 0x108]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403724
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.004053fa
push esi
push 1
push 2
push 0x416d60
call fcn.004053fa
push esi
push 1
push 0xa
push str.if_exist__
call fcn.004053fa
lea ecx, [ebp - 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403767
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.004053fa
push esi
push 1
push 0xf
push str.__goto_Repeat_r_n
call fcn.004053fa
push esi
push 1
push 7
push str.rmdir__
call fcn.004053fa
lea ecx, [ebp - 0x310]
add esp, 0x30
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4037b0
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.004053fa
push esi
push 1
push 3
push 0x416d88
call fcn.004053fa
push esi
push 1
push 5
push str.del__
call fcn.004053fa
lea ecx, [ebp - 0x20c]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4037f3
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.004053fa
push esi
push 1
push 1
push 0x416d94
call fcn.004053fa
push esi
call fcn.0040522c
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [str.xp_vq_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
Function at 0x404980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040b890
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 4
mov esi, ecx
lea eax, [ebp - 0x1008]
push eax
push dword [esi]
mov ebx, edx
mov dword [ebp - 0x100c], esi
call dword [0x4121d4]
cmp eax, 4
je 0x4049d0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404aaa
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x404a20
jmp 0x4049e0
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [esi]
call dword [0x4121d4]
mov esi, eax
test esi, esi
je 0x404a20
push dword [ebx]
lea eax, [ebp - 0x1004]
push esi
push 1
push eax
call fcn.004053fa
add edi, esi
mov esi, dword [ebp - 0x100c]
add esp, 0x10
cmp edi, dword [ebp - 0x1008]
jb 0x4049e0
push dword [ebx]
call fcn.0040522c
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00404aaa
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ff0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 4], eax
mov esi, edi
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
jb 0x40200c
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x40202b
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x402017
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and ecx, edx
mov esi, dword [eax + ecx*8 + 4]
lea ebx, [eax + ecx*8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
cmp esi, eax
jne 0x40205c
xor esi, esi
test esi, esi
pop edi
cmove esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebx]
lea edx, [esi + 8]
mov ecx, edi
call fcn.00402c00
test al, al
jne 0x402089
nop dword [eax]
cmp esi, ebx
je 0x402087
mov esi, dword [esi + 4]
mov ecx, edi
lea edx, [esi + 8]
call fcn.00402c00
test al, al
je 0x402070
jmp 0x402089
xor esi, esi
mov eax, dword [ebp + 0xc]
test esi, esi
pop edi
cmove esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402890
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x14], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
jbe 0x4028c1
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
or eax, 1
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00401c80
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x4029e3
nop dword [eax]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
jb 0x40291c
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x402947
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
nop
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x402930
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
and ebx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
lea ecx, [ecx + ebx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x402961
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x4029d9
mov ebx, dword [ecx + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.00402c00
test al, al
je 0x402999
mov ebx, dword [ebx]
cmp ebx, esi
je 0x402991
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x4029d6
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x4029b9
mov ebx, dword [ebx + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.00402c00
test al, al
jne 0x4029ec
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x4029a0
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov esi, edi
cmp edi, eax
jne 0x402900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x4029d6
Function at 0x404080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4040ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
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 + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4040d4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4040da
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x404142
jg 0x4040f1
test esi, esi
je 0x404142
test ecx, ecx
jl 0x40413d
jg 0x4040fb
test eax, eax
je 0x40413d
cmp edi, ecx
jg 0x40410f
jl 0x404105
cmp esi, eax
jae 0x40410f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x404145
mov ecx, dword [ebp + 8]
jmp 0x40414f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404169
jg 0x40414f
test esi, esi
je 0x404169
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404169
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x4041ac
jl 0x4041a0
test ecx, ecx
jne 0x4041ac
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4041c5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x40420d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x404213
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x404213
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404286
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40423c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x404274
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404286
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404250
test edi, edi
je 0x404286
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc