joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47def0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
xor ebp, ebp
cmp dword [esp + 0xc], ebp
jbe 0x47df66
push ebx
push esi
push edi
lea esp, [esp]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov esi, dword [ecx]
movzx edi, word [ecx + 0xc]
mov bl, byte [eax + ebp]
or edi, 2
movzx eax, bl
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [esi + eax*4]
movzx eax, dl
add eax, dword [ecx + 8]
imul eax, eax, 0x8088405
mov dword [ecx + 4], edx
mov edx, dword [ecx + 0xc]
inc eax
mov dword [ecx + 8], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [esi + eax*4]
mov eax, edi
xor eax, 1
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x14]
imul eax, edi
shr eax, 8
xor al, bl
mov byte [edx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x47df00
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
ret 8

Function at 0x47df70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
call fcn.004c10b0
mov ebp, dword [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esi], eax
mov dword [esi + 4], 0x12345678
mov dword [esi + 8], 0x23456789
mov dword [esi + 0xc], 0x34567890
test ebp, ebp
jne 0x47dfa5
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
push ebx
xor ebx, ebx
test ebp, ebp
je 0x47e006
push edi
mov eax, 0x12345678
mov edi, 0x23456789
mov edx, 0x34567890
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
movzx ecx, byte [ecx + ebx]
inc ebx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebp + ecx*4]
movzx ecx, al
add ecx, edi
mov dword [esi + 4], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 8], edi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ebp + ecx*4]
mov dword [esi + 0xc], edx
cmp ebx, dword [esp + 0x1c]
jb 0x47dfc0
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
pop ecx
ret 8

Function at 0x484020
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp ecx, ebp
je 0x48407b
push ebx
mov ebx, edi
lea eax, [ecx + 4]
push esi
sub ebx, ecx
jmp 0x484040
mov esi, dword [eax]
lea eax, [eax + 8]
mov ecx, dword [eax - 0xc]
mov dword [edi], ecx
mov ecx, esi
and ecx, 0x7fffffff
add edi, 8
mov dword [ebx + eax - 8], ecx
lea ecx, [eax - 4]
mov edx, dword [eax - 8]
xor edx, esi
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov dword [ebx + eax - 8], edx
and dword [eax - 8], 0x7fffffff
cmp ecx, ebp
jne 0x484040
pop esi
pop ebx
push dword [esp + 0x18]
push edi
push edi
call fcn.004839e0
add esp, 0xc
mov eax, edi
pop edi
pop ebp
ret
Function at 0x4843d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bb15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ecx
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00414be0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x484456
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0xfffffff
je 0x4845c0
lea eax, [edi + 4]
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
push 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.00491411
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [esi + 0xc], 0
mov dword [esi + 8], ecx
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov dword [ebx + 4], 0
fld dword [edi]
mov eax, dword [edi + 8]
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
mov dword [ebp - 4], 1
jns 0x4844c9
fadd dword [0x573cf8]
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
mov ebx, dword [edi + 0x1c]
fild dword [edi + 0x1c]
test ebx, ebx
jns 0x4844df
fadd dword [0x573cf8]
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
fdivr st(1)
fcompi st(2)
jbe 0x48455f
fdivrp st(1)
sub esp, 8
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
fstp qword [esp]
call fcn.004a0720
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
mov ecx, 8
fnstcw word [ebp + 0xe]
movzx eax, word [ebp + 0xe]
add esp, 8
or eax, 0xc00
mov dword [ebp - 0x14], eax
fldcw word [ebp - 0x14]
fistp qword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
cmova ecx, eax
fldcw word [ebp + 0xe]
cmp ebx, ecx
jae 0x484541
cmp ebx, 0x200
jae 0x48453f
shl ebx, 3
cmp ebx, ecx
jae 0x484541
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.0048ae50
push dword [ebp - 0x10]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00414be0
mov edx, dword [eax]
jmp 0x484566
mov edx, dword [ebp - 0x18]
fstp st(0)
fstp st(0)
mov ebx, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x20]
jne 0x484591
mov dword [ecx + eax*8], esi
jmp 0x4845a0
cmp edi, edx
jne 0x48459a
mov dword [ecx + eax*8], esi
jmp 0x4845a4
cmp dword [ecx + eax*8 + 4], ebx
jne 0x4845a4
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], esi
pop esi
pop edi
mov byte [eax + 4], 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x573cc0
call fcn.0048f815
int3
Function at 0x484800
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, 0xcccccccd
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
mov ebx, dword [ebp + 4]
mov esi, 0x811c9dc5
and ebx, 0x7fffffff
mul ebx
shr edx, 3
inc edx
test ebx, ebx
je 0x484849
mov ecx, dword [ebp]
lea ebp, [edx + edx]
movzx eax, word [ecx]
add edi, edx
imul esi, esi, 0x1000193
add ecx, ebp
xor esi, eax
cmp edi, ebx
jb 0x484832
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
and ecx, esi
mov edi, dword [edx + 4]
mov ebx, dword [eax + ecx*8]
mov dword [esp + 0x10], ebx
cmp ebx, edi
jne 0x484876
mov eax, dword [esp + 0x18]
mov ebx, edi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
pop ecx
ret 8
mov esi, dword [eax + ecx*8 + 4]
lea ecx, [ebx + 8]
push ebp
call fcn.00485c00
test al, al
jne 0x48489e
cmp ebx, esi
je 0x484863
mov ebx, dword [ebx]
push ebp
mov dword [esp + 0x14], ebx
lea ecx, [ebx + 8]
call fcn.00485c00
test al, al
je 0x484887
mov edi, dword [ebx]
cmp ebx, esi
je 0x4848c3
mov ebx, dword [esp + 0x1c]
lea eax, [edi + 8]
mov ecx, ebx
push eax
mov ebp, edi
call fcn.00485c00
test al, al
je 0x4848bf
mov edi, dword [edi]
cmp ebp, esi
jne 0x4848a8
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
pop ecx
ret 8
Function at 0x489020
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bf2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
call fcn.00489200
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.00484800
call fcn.00487400
push eax
lea ecx, [ebp - 0x6c]
call fcn.00484ad0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x34]
je 0x4891db
add esi, 0xb8
mov dword [ebp - 0x28], esi
push edi
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x24], 7
lea edx, [eax + 0x10]
mov dword [ebp - 0x2c], eax
mov edi, edx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x24], edx
jbe 0x48909d
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add eax, eax
mov dword [ebp - 0x20], eax
je 0x4890c4
mov edx, eax
lea ecx, [ecx]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4890b0
mov edx, dword [ebp - 0x24]
push esi
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x48]
push edx
push eax
mov ecx, esi
call fcn.00483e10
mov eax, dword [eax + 4]
test eax, eax
jne 0x4890de
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0xbc]
je 0x4891c9
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.004876d0
or ebx, 2
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test edi, edi
je 0x48915c
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push ecx
push edi
call dword [eax + 0x40]
test eax, eax
js 0x48915c
push 0xc
call fcn.00491411
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
je 0x48915c
mov eax, dword [ebp - 0x30]
mov dword [esi], 0x584fa0
mov dword [esi + 4], 0
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [ebp + 8], esi
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 6
call dword [eax + 4]
jmp 0x489161
xor esi, esi
mov dword [ebp + 8], esi
or ebx, 4
mov byte [ebp - 4], 1
or ebx, 1
mov dword [ebp - 0x10], ebx
test edi, edi
je 0x489187
mov eax, dword [edi]
push edi
mov byte [ebp - 4], 7
call dword [eax + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
test esi, esi
je 0x4891a6
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push 0x486750
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0xffffffff
call fcn.00483090
and ebx, 0xfffffffe
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x4891c9
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 8
call dword [eax + 8]
mov byte [ebp - 4], 0
mov dword [ebp + 8], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x34]
jne 0x489084
pop edi
lea ecx, [ebp - 0x6c]
call fcn.00485060
mov ecx, dword [ebp - 0xc]
mov al, 1
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x48afb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x14]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [esp + 0x14], ebx
mov eax, esi
shl eax, cl
cmp edx, eax
ja 0x48b13e
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push edi
push eax
mov dword [esp + 0x24], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00417480
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov esi, dword [esi]
mov edi, esi
mov dword [esp + 0xc], esi
cmp esi, dword [esp + 0x20]
je 0x48b119
push ebp
lea esp, [esp]
mov ecx, dword [esi + 0xc]
mov eax, 0xcccccccd
mov edi, dword [edi]
and ecx, 0x7fffffff
mul ecx
xor ebp, ebp
mov dword [esp + 0x18], edi
shr edx, 3
mov ebx, 0x811c9dc5
inc edx
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x48b06e
mov ecx, dword [esi + 8]
lea esi, [edx + edx]
mov edi, dword [esp + 0x14]
movzx eax, word [ecx]
add ebp, edx
imul ebx, ebx, 0x1000193
add ecx, esi
xor ebx, eax
cmp ebp, edi
jb 0x48b053
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and ecx, ebx
mov ebp, dword [eax + ecx*8]
lea ecx, [eax + ecx*8]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
cmp ebp, eax
jne 0x48b093
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x48b10a
mov ebx, dword [ecx + 4]
lea ecx, [esi + 8]
lea eax, [ebx + 8]
push eax
call fcn.00485c00
test al, al
je 0x48b0cd
mov ebx, dword [ebx]
cmp ebx, esi
je 0x48b0c4
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 [esp + 0x10]
mov dword [eax + 4], esi
jmp 0x48b106
cmp ebp, ebx
je 0x48b0e8
mov ebx, dword [ebx + 4]
lea ecx, [esi + 8]
lea eax, [ebx + 8]
push eax
call fcn.00485c00
test al, al
jne 0x48b122
cmp ebp, ebx
jne 0x48b0d1
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 [esp + 0x10]
mov dword [eax], esi
mov eax, dword [esp + 0x24]
mov esi, edi
mov dword [esp + 0x10], esi
cmp edi, eax
jne 0x48b020
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
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 0x48b106
push str.invalid_hash_bucket_count
call fcn.0048f815
int3
Function at 0x48c290
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
mov eax, 0xcccccccd
mov ecx, dword [esp + 0x14]
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], ebp
mov ebx, dword [ecx + 4]
mov esi, 0x811c9dc5
and ebx, 0x7fffffff
mul ebx
shr edx, 3
inc edx
test ebx, ebx
je 0x48c2e0
mov ecx, dword [ecx]
lea ebp, [edx + edx]
movzx eax, word [ecx]
add edi, edx
imul esi, esi, 0x1000193
add ecx, ebp
xor esi, eax
cmp edi, ebx
jb 0x48c2c5
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
push esi
push ecx
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.0048b9c0
mov eax, dword [eax + 4]
test eax, eax
je 0x48c307
cmp eax, dword [ebp + 4]
je 0x48c307
mov eax, dword [eax + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x48c760
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
push esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov esi, dword [ebp]
test esi, esi
jne 0x48c786
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x14
mov ebp, dword [ebp + 4]
mov eax, 0xcccccccd
and ebp, 0x7fffffff
mov ecx, 0x811c9dc5
mul ebp
push edi
shr edx, 3
xor edi, edi
inc edx
test ebp, ebp
je 0x48c7c7
lea ebx, [edx + edx]
lea esp, [esp]
movzx eax, word [esi]
add edi, edx
imul ecx, ecx, 0x1000193
add esi, ebx
xor ecx, eax
cmp edi, ebp
jb 0x48c7b0
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x10]
push ecx
push ebp
push eax
mov ecx, edi
call fcn.0048b9c0
mov esi, dword [eax + 4]
test esi, esi
je 0x48c881
cmp esi, dword [edi + 4]
je 0x48c881
mov esi, dword [esi + 0x10]
cmp dword [esi + 4], 0
jne 0x48c818
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.0048c320
push eax
lea ecx, [esi + 4]
call fcn.00485a40
lea ecx, [esp + 0x14]
call fcn.004031b0
mov ecx, dword [esp + 0x38]
cmp dword [ecx], 0
je 0x48c843
cmp dword [esi + 0xc], 0
jne 0x48c843
lea eax, [esp + 0x14]
push eax
call fcn.0048c320
push eax
lea ecx, [esi + 0xc]
call fcn.00485a40
lea ecx, [esp + 0x14]
call fcn.004031b0
mov ecx, dword [esp + 0x3c]
cmp dword [ecx], 0
je 0x48c86e
cmp dword [esi + 0x14], 0
jne 0x48c86e
lea eax, [esp + 0x14]
push eax
call fcn.0048c320
push eax
lea ecx, [esi + 0x14]
call fcn.00485a40
lea ecx, [esp + 0x14]
call fcn.004031b0
mov al, byte [esp + 0x40]
pop edi
mov byte [esi + 0x1c], al
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
push 0x20
call fcn.00491411
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x48c8e0
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
call fcn.0048c320
mov ecx, dword [esp + 0x38]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
call fcn.0048c320
mov esi, eax
mov ecx, ebp
lea eax, [esp + 0x14]
push eax
call fcn.0048c320
push dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov ebx, 7
push edi
push esi
push eax
push dword [esp + 0x40]
call fcn.0048bd70
mov edi, dword [esp + 0x10]
mov esi, eax
jmp 0x48c8e2
xor esi, esi
test bl, 4
je 0x48c8f3
lea ecx, [esp + 0x14]
and ebx, 0xfffffffb
call fcn.004031b0
test bl, 2
je 0x48c904
lea ecx, [esp + 0x1c]
and ebx, 0xfffffffd
call fcn.004031b0
test bl, 1
je 0x48c912
lea ecx, [esp + 0x24]
call fcn.004031b0
push esi
mov ecx, edi
call fcn.0048c6a0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
Function at 0x48d120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov word [esi + 0xe], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
cmp dword [esi + 0x10], 0
mov byte [ebp - 4], 1
jne 0x48d1dd
push 0x14
call fcn.00491411
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x48d1d5
mov dword [eax], 0
mov dword [eax + 4], 0x10000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x48d1d7
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x492510
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49254f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49254f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49254f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49254f
cmp dword [ecx + 0x74], 0xe
jbe 0x49254f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4ab449
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x58aebc
push 0x58aeb4
push str.FlsAlloc
push 0x1f
call fcn.004ab2c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ab47d
push dword [ebp + 8]
mov ecx, esi
call dword [0x570594]
call esi
jmp 0x4ab483
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4ab4c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x58aecc
push 0x58aec4
push str.FlsGetValue
push 0x21
call fcn.004ab2c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ab4fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x570594]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ab506
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x58aed4
push 0x58aecc
push str.FlsSetValue
push 0x22
call fcn.004ab2c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ab540
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x570594]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4ade33
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5b3480]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4ade7e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004adfce
test al, al
jne 0x4ade78
sub edx, 2
cmp edx, edi
jne 0x4ade5e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4adea0
lea eax, [edi + 2]
cmp edx, eax
je 0x4adea0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004add7f
add esp, 0x10
jmp 0x4adf9a
push esi
lea ecx, [ebp - 0x255]
call fcn.004adfce
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4adee3
push dword [ebp - 0x25c]
jmp 0x4ade90
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4adf20
cmp word [ebp - 0x226], 0
je 0x4adf41
cmp word [ebp - 0x226], ax
jne 0x4adf20
cmp word [ebp - 0x224], 0
je 0x4adf41
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004add7f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4adf8d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4adefa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4adf75
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4adf9a
push 0x4adbaf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004b17c0
add esp, 0x10
jmp 0x4adf6a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004913e0
leave
ret

Function at 0x4ae8b0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ae8c1
pop esi
ret
push ebx
push edi
push esi
call fcn.004ae879
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004a5a2b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ae8e9
push ebx
push esi
push edi
call fcn.004930c0
add esp, 0xc
push 0
call fcn.004a59f1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4aecb9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ae8fe
Function at 0x4b6730
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 0
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4b675e
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4b675e
xor eax, eax
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
js 0x4b677b
je 0x4b6776
movzx eax, ax
or eax, 0x83ff0000
pop esi
ret 4
mov eax, 0xc202000f
pop esi
ret 4

Function at 0x4b6e20
Capabilities:
Clear file content
Get file size

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [esp + 0x1c]
test eax, eax
mov eax, dword [esp + 0x20]
je 0x4b6e52
cmp dword [esp + 8], edi
jne 0x4b6e52
cmp dword [esp + 0xc], eax
je 0x4b6ee8
test byte [esi + 0x3c], 2
jne 0x4b6e63
pop edi
mov eax, 0x8202000a
pop esi
add esp, 8
ret
push 0
push 0
push eax
push edi
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4b6e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
js 0x4b6ef6
je 0x4b6ef4
movzx eax, ax
pop edi
or eax, 0x83ff0000
pop esi
add esp, 8
ret
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4b6e76
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
cmp dword [ecx + 4], eax
jg 0x4b6ee3
jl 0x4b6eb9
cmp edx, edi
jae 0x4b6ee3
push 0
push 0
push dword [esp + 0x1c]
push edx
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], eax
xor eax, eax
pop edi
pop esi
add esp, 8
ret
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
xor eax, eax
pop edi
pop esi
add esp, 8
ret