joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
add eax, 0xb0
mov dword [ebp - 4], eax
push esi
mov esi, eax
test ebx, ebx
je 0x402446
dec ebx
shr ebx, 4
push edi
mov edi, dword [ebp + 0xc]
inc ebx
mov eax, edi
sub esi, edi
mov edx, 0x10
nop dword [eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x402420
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00401fe0
mov esi, edi
add edi, 0x10
sub ebx, 1
jne 0x402413
mov eax, dword [ebp - 4]
pop edi
movups xmm0, xmmword [esi]
pop esi
pop ebx
movups xmmword [eax], xmm0
mov esp, ebp
pop ebp
ret

Function at 0x402460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4024b0
mov ecx, dword [ebp + 8]
dec ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ecx + 0xb0]
shr ebx, 4
sub edi, esi
inc ebx
movups xmm0, xmmword [esi]
mov edx, ecx
mov ecx, esi
call fcn.00402230
mov ecx, 0x10
mov al, byte [edi + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x402491
mov ecx, dword [ebp + 8]
sub edi, 0x10
movups xmmword [ecx + 0xb0], xmm0
sub ebx, 1
jne 0x402480
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4024c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x74], 0x67452301
mov dword [ebp - 0x70], 0xefcdab89
mov dword [ebp - 0x6c], 0x98badcfe
mov dword [ebp - 0x68], 0x10325476
call fcn.00402be0
add esp, 4
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x18]
call fcn.00402cb0
lea ecx, [ebx + 3]
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x18]
mov edi, 0x10
sub eax, ecx
lea esi, [ecx + 0x10]
lea ebx, [eax - 1]
mov ax, word [ebp - 0x78]
nop dword [eax]
movzx ecx, byte [esi]
lea esi, [esi - 1]
movzx edx, byte [ebx + esi + 1]
add edi, 0xffff
add dx, cx
add ax, dx
mov cl, al
mov word [ebp - 0x78], ax
shr ax, 8
mov byte [esi + 1], cl
test di, di
jne 0x402540
mov edx, dword [ebp - 0x7c]
xor edi, edi
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [ebp + 8]
cmp eax, dword [ebp + 8]
cmovb ecx, edi
xor eax, eax
mov dword [edx], ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
Function at 0x413aa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x413aab
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x413b67
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
sub edi, 1
jne 0x413ac0
pop edi
test esi, esi
je 0x413b8a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
sub esi, 1
jne 0x413b70
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x413ba0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x50da70]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x50da70]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x414350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x414398
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41438a
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.004c4540
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4143d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x41440b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414406
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x414438
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x41441c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.004c4540
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x41444c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x414443
cmp byte [esi + 8], 0
je 0x414443
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f13b2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x53ac84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
push 0x44c
call fcn.004c1df7
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x23c], 0
mov dword [ebx + 0x240], 0
test esi, esi
je 0x415ecd
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415ea0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.004c2116
add esp, 4
mov dword [ebx + 0x23c], eax
sub eax, esi
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x415ec0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx], 0
jne 0x415f9b
cmp dword [ebx + 4], 0xffffffff
jne 0x415f9b
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415f00
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x415f37
cmp eax, 0x2f
je 0x415f37
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x415f24
mov eax, dword [0x50f6b4]
mov dword [edi], eax
push 0x20
call fcn.004c1df7
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.004146d0
mov dword [ebx], eax
test eax, eax
jne 0x415f97
push ecx
mov ecx, ebx
mov dword [0x544f30], 0x200
call fcn.00415ff0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x415fa0
mov eax, 0x1000000
mov dword [0x544f30], eax
test eax, eax
je 0x415fc5
push ecx
mov ecx, ebx
call fcn.00415ff0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.004c1df7
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419ae0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x53ac84]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
push edi
test edx, edx
je 0x419c24
mov ecx, edx
mov dword [esp + 0x2c], 0
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419b30
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00407020
cmp dword [esp + 0x30], 8
lea ebx, [esp + 0x1c]
mov edi, dword [esp + 0x1c]
mov edx, 0x811c9dc5
mov eax, dword [esp + 0x2c]
cmovae ebx, edi
xor ecx, ecx
add eax, eax
je 0x419b85
mov esi, eax
nop dword [eax + eax]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x419b70
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edx
cmp eax, 8
jb 0x419bc1
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x419bb7
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419c45
push ecx
push edi
call fcn.004c1e27
add esp, 8
lea eax, [esp + 0x14]
mov ecx, 0x544f4c
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041a860
mov eax, dword [eax]
cmp eax, dword [0x544f4c]
je 0x419c24
lea eax, [esp + 0x14]
mov ecx, 0x544f4c
push eax
call fcn.0041a8b0
mov dword [esi], 0
mov dword [esi + 4], 0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x419c06
lock inc dword [ecx + 4]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov eax, esi
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
mov dword [esi], 0
mov dword [esi + 4], 0
pop esi
pop ebx
xor ecx, esp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
call fcn.004c7d81
int3
Function at 0x41b280
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x53ac84]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov edx, ecx
push esi
push edi
test edx, edx
je 0x41b380
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
lea esi, [ecx + 2]
mov word [esp + 0x14], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b2c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00407020
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x14]
cmp dword [esp + 0x28], 8
mov edx, 0x811c9dc5
mov esi, dword [esp + 0x14]
cmovae edi, esi
xor ecx, ecx
lea ebx, [eax + eax]
test ebx, ebx
je 0x41b311
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x41b300
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
cmp eax, 8
jb 0x41b349
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x41b33f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b394
push ecx
push esi
call fcn.004c1e27
add esp, 8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041ba60
mov eax, dword [eax]
cmp eax, dword [0x544f5c]
je 0x41b380
lea eax, [esp + 0xc]
push eax
call fcn.0041bac0
mov eax, dword [eax]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
call fcn.004c7d81
int3
Function at 0x41ca90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x53ac84]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov edx, ecx
push esi
push edi
test edx, edx
je 0x41cb96
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
lea esi, [ecx + 2]
mov word [esp + 0x14], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cad0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00407020
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x14]
cmp dword [esp + 0x28], 8
mov edx, 0x811c9dc5
mov esi, dword [esp + 0x14]
cmovae edi, esi
xor ecx, ecx
lea ebx, [eax + eax]
test ebx, ebx
je 0x41cb21
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x41cb10
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
cmp eax, 8
jb 0x41cb59
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x41cb4f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cbad
push ecx
push esi
call fcn.004c1e27
add esp, 8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041d060
mov eax, dword [eax]
cmp eax, dword [0x544f64]
je 0x41cb96
lea eax, [esp + 0xc]
push eax
call fcn.0041d0c0
cmp dword [eax + 0x14], 8
jb 0x41cb9b
mov eax, dword [eax]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
mov eax, 0x50f730
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
call fcn.004c7d81
int3
Function at 0x41d9a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1a68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53ac84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x24], esi
test ebx, ebx
je 0x41db3c
mov ecx, ebx
call fcn.004587f0
test eax, eax
je 0x41da0b
push dword [ebp + 0x10]
mov edx, ebx
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00458f10
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41da90
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41da89
push dword [ebp - 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41da89
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41da80
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
jmp 0x41da89
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41db3c
call fcn.00422250
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call fcn.00420bb0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, dword [ebp - 0x18]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
test edi, edi
je 0x41dae7
lock inc dword [edi + 4]
mov eax, dword [ebp - 0x1c]
mov edx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], edi
push ecx
mov ecx, esi
call fcn.0041d770
add esp, 0xc
mov dword [ebp - 4], 1
test edi, edi
je 0x41db49
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41db49
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x41db49
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2ec0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53ac84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00443660
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.004071e0
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x444e00
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3043
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53ac84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov edx, eax
lea ebx, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x444e60
sub edx, ebx
lea ecx, [esi + 0x18]
sar edx, 1
push edx
push eax
call fcn.00407020
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4465c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f30c6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53ac84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 7
mov word [esi + 0x20], ax
mov dword [ebp - 4], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 7
mov word [esi + 0x38], ax
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.00445f60
mov dword [esi + 0xe4], 0
xor eax, eax
mov dword [esi + 0xe8], 7
mov word [esi + 0xd4], ax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov eax, esi
mov dword [esi + 0xc], 0x4000
mov dword [esi + 0xd0], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x446dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push dword [ebx]
push 1
push dword [ebx + 8]
push edi
call fcn.004da8b0
mov esi, dword [ebx + 8]
mov ecx, eax
add esp, 0x10
cmp ecx, 1
sete al
mov byte [esp + 0x13], al
mov eax, esi
cdq
idiv dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
cmp ecx, 1
jne 0x446f57
add dword [ebx + 0x14], esi
cmp dword [ebx + 0x4c], 8
push 0xffffffffffffffff
push eax
lea eax, [ebx + 0x38]
push ecx
mov ecx, esp
jb 0x446e16
mov eax, dword [eax]
mov dword [ecx], eax
mov edx, 0x18
push ecx
mov eax, esp
lea ecx, [ebx + 0x20]
mov dword [eax], str.read
call fcn.00444bc0
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov edx, dword [ebx + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], 0
mov esi, edi
mov dword [esp + 0x1c], edx
test eax, eax
je 0x446f04
mov edi, edx
jmp 0x446e5b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x18], eax
cmp edx, 1
jne 0x446e6b
xor edx, edx
cmp byte [esi], dl
jmp 0x446e70
xor edx, edx
cmp word [esi], dx
sete dl
mov eax, edi
test edx, edx
je 0x446ea8
test ecx, ecx
je 0x446e9a
cmp esi, ecx
je 0x446e9a
imul edi, dword [esp + 0x14]
mov eax, esi
sub eax, ecx
push eax
push ecx
sub ecx, edi
push ecx
call fcn.004c4dc0
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [eax + esi]
inc edx
mov dword [esp + 0x14], edx
jmp 0x446eac
mov edx, dword [esp + 0x14]
add esi, eax
mov edi, eax
cmp dword [esp + 0x18], 0
jne 0x446e53
test ecx, ecx
je 0x446ed1
cmp esi, ecx
je 0x446ed1
sub esi, ecx
imul eax, edx
push esi
push ecx
sub ecx, eax
push ecx
call fcn.004c4dc0
add esp, 0xc
mov esi, dword [esp + 0x14]
test esi, esi
je 0x446f01
push 0xffffffffffffffff
push esi
push ecx
mov eax, esp
mov edx, 1
push ecx
lea ecx, [ebx + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.nulls_removed
call fcn.00444bc0
add esp, 0x10
sub dword [ebx + 0x1c], esi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x18], 1
jle 0x446f57
test byte [ebx + 4], 0x80
je 0x446f57
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x446f32
nop word [eax + eax]
movzx eax, word [edi + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edi + ecx*2], ax
test ecx, ecx
jne 0x446f20
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
lea eax, [ebx + 0x20]
mov ecx, eax
call fcn.00444bc0
add esp, 0x10
mov al, byte [esp + 0x13]
test al, al
jne 0x446f6a
mov ecx, ebx
call fcn.00446680
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x447430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
mov ebx, ecx
push edi
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
imul eax, edx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
cmovne ebx, eax
test byte [esi + 4], 0x80
je 0x4474da
test ecx, ecx
jne 0x44749d
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c2116
mov ecx, dword [esi + 0x1c]
add esp, 4
add ecx, ecx
mov edi, eax
mov dword [esp + 0xc], edi
push ecx
push ebx
push edi
call fcn.004c4540
mov edx, dword [esi + 0x1c]
add esp, 0xc
mov ecx, edi
mov ebx, edi
test edx, edx
je 0x4474b3
movzx eax, word [ecx + edx*2 - 2]
dec edx
rol ax, 8
mov word [ecx + edx*2], ax
test edx, edx
jne 0x4474a1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
lea edi, [esi + 0x20]
push ecx
xor edx, edx
mov ecx, edi
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
call fcn.00444bc0
add esp, 0x10
jmp 0x4474dd
lea edi, [esi + 0x20]
push dword [esi]
push 1
push dword [esi + 8]
push ebx
call fcn.004da68c
add esp, 0x10
cmp eax, 1
mov eax, dword [esp + 0xc]
sete bl
test eax, eax
je 0x447504
push eax
call fcn.004bdc6f
add esp, 4
test bl, bl
je 0x447546
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
push 0xffffffffffffffff
push dword [esi + 0x1c]
add esi, 0x38
push ecx
mov ecx, esp
cmp dword [esi + 0x14], 8
jb 0x447521
mov esi, dword [esi]
mov dword [ecx], esi
mov edx, 0x18
push ecx
mov esi, esp
mov ecx, edi
mov dword [esi], str.write
call fcn.00444bc0
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.00446680
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8