joyce8/EMBER2024-capa huggingface dataset:
Function at 0x593450
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0xc
mov edi, dword [esp + 0x20]
cmp edi, 0x100
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov dword [esp], 0
jge 0x59347d
mov ecx, dword [edi*4 + 0x668cc0]
test ecx, ecx
jne 0x593497
push 1
call fcn.00591bf0
pop ecx
mov dword [eax + 4], 9
or eax, 0xffffffff
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [ecx]
mov dword [esp + 8], eax
movsx edx, byte [ecx + 4]
test edx, edx
je 0x5934f6
xor esi, esi
xor eax, eax
test ebx, ebx
jbe 0x5934c0
lea eax, [eax]
cmp byte [eax + ebp], 0xa
jne 0x5934b9
add esi, 1
add eax, 1
cmp eax, ebx
jb 0x5934b0
lea ecx, [esi + ebx]
push ecx
call fcn.0058d4e0
pop ecx
xor ecx, ecx
test ebx, ebx
mov dword [esp], eax
mov edx, eax
jbe 0x5934f1
cmp byte [ecx + ebp], 0xa
jne 0x5934e1
mov byte [edx], 0xd
add edx, 1
movzx eax, byte [ecx + ebp]
add ecx, 1
mov byte [edx], al
add edx, 1
cmp ecx, ebx
jb 0x5934d5
add ebx, esi
mov ebp, dword [esp]
mov edx, dword [edi*4 + 0x668cc0]
cmp byte [edx + 5], 0
je 0x593510
push 2
push 0
push edi
call fcn.005933e0
add esp, 0xc
push 0
lea ecx, [esp + 8]
push ecx
push ebx
push ebp
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp], 0
mov esi, eax
je 0x593534
push dword [esp]
call fcn.0058d510
pop ecx
test esi, esi
je 0x593544
mov eax, dword [esp + 4]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00592240
xor eax, eax
pop ecx
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5935c0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 4
cmp dword [esp + 0x18], 0x100
mov ebp, dword [esp + 0x1c]
jge 0x5935e4
mov eax, dword [esp + 0x18]
mov edx, dword [eax*4 + 0x668cc0]
test edx, edx
jne 0x593600
push 1
call fcn.00591bf0
pop ecx
mov dword [eax + 4], 9
or eax, 0xffffffff
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
ret
movsx ebx, byte [edx + 4]
push 0
lea ecx, [esp + 4]
push ecx
push dword [esp + 0x28]
push ebp
push dword [edx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5936a1
cmp dword [esp], 0
je 0x593696
test ebx, ebx
je 0x593696
mov esi, ebp
xor ebx, ebx
xor ecx, ecx
cmp dword [esp], 0
mov edi, esi
jbe 0x593667
movzx eax, byte [edi]
cmp al, 0xd
jne 0x593657
mov edx, dword [esp]
add edx, 0xffffffff
cmp ecx, edx
jae 0x593657
cmp byte [edi + 1], 0xa
jne 0x593657
add edi, 1
add ebx, 1
jmp 0x59365f
mov byte [esi], al
add edi, 1
add esi, 1
add ecx, 1
cmp ecx, dword [esp]
jb 0x593638
mov eax, dword [esp + 0x20]
cmp dword [esp], eax
jne 0x593693
cmp dword [esp], 1
jbe 0x593693
mov ecx, dword [esp]
cmp byte [ebp + ecx - 1], 0xd
jne 0x593693
push 1
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.005933e0
add esp, 0xc
add ebx, 1
sub dword [esp], ebx
mov eax, dword [esp]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00592240
xor eax, eax
pop ecx
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x372020
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x3e4348], 0
jne 0x372159
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
xor eax, eax
test cl, 1
je 0x372042
bts eax, 7
shr ecx, 1
test cl, 1
je 0x37204d
bts eax, 6
shr ecx, 1
test cl, 1
je 0x372058
bts eax, 5
shr ecx, 1
test cl, 1
je 0x372063
bts eax, 4
shr ecx, 1
test cl, 1
je 0x37206e
bts eax, 3
shr ecx, 1
test cl, 1
je 0x372079
bts eax, 2
shr ecx, 1
test cl, 1
je 0x372084
bts eax, 1
test cl, 2
je 0x37208d
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax*4 + 0x3e4350], ebx
lea ecx, [edx + 1]
nop
test bl, 1
je 0x37212f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x372120
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x3e4350], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x372037
mov byte [0x3e4348], 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x372280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0xc], 0
xorps xmm0, xmm0
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ecx]
mov dword [ebp - 0x10], edx
lea edx, [ecx + 8]
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
movlpd qword [ebp - 0x20], xmm0
jl 0x372315
mov edi, dword [ebp + 8]
jg 0x3722b4
test edi, edi
je 0x372315
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
nop dword [eax]
mov ecx, dword [ebp - 8]
inc bl
mov edi, dword [ebp - 8]
movzx ebx, bl
mov edx, dword [ecx + ebx*4]
mov al, dl
add al, byte [ebp - 4]
movzx eax, al
mov dword [ebp - 4], eax
mov eax, dword [ecx + eax*4]
mov dword [ecx + ebx*4], eax
mov ecx, dword [ebp - 4]
mov dword [edi + ecx*4], edx
add dl, al
mov ecx, edi
movzx eax, dl
mov edi, dword [ebp + 8]
mov al, byte [ecx + eax*4]
mov ecx, dword [ebp - 0x10]
xor byte [esi + ecx], al
add esi, 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
adc eax, 0
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp + 0xc]
jl 0x3722c0
jg 0x372312
cmp esi, edi
jb 0x3722c0
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], ebx
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x374350
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x3e206c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, edx
mov ecx, dword [esi + 4]
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 7], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, 0xfffffff7
mov byte [ebp - 0xc], dl
shr edx, 3
sub eax, edx
mov byte [ebp - 8], cl
shr ecx, 0x18
and eax, 0x3f
inc eax
mov byte [ebp - 5], cl
push eax
mov edx, 0x3d9618
mov ecx, esi
call fcn.00375130
push 8
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.00375130
add esp, 8
xor eax, eax
nop dword [eax + eax]
mov edx, eax
mov ecx, eax
sar edx, 2
and ecx, 3
shl ecx, 3
mov edx, dword [esi + edx*4 + 8]
shr edx, cl
mov byte [edi + eax + 4], dl
inc eax
cmp eax, 0x10
jl 0x3743d0
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop esi
call fcn.003a2376
mov esp, ebp
pop ebp
ret
Function at 0x374430
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3c9069
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x3e206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 4], 0
push 0x58
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], 0
call fcn.003a238c
mov ecx, eax
add esp, 4
mov dword [ebp - 0x74], ecx
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
lea edx, [esi + 4]
mov dword [ebp - 4], 1
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x3744bf
mov edx, dword [edx]
add eax, eax
push eax
call fcn.00375130
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.00374350
inc dword [0x3e4754]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [edi], 0x3d9c14
xor ecx, ecx
movups xmm0, xmmword [ebp - 0x70]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov word [edi + 4], cx
mov dword [ebp - 0x78], 1
xor esi, esi
nop
movzx eax, byte [ebp + esi - 0x24]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x44]
movq qword [ebp - 0x34], xmm0
push 0x3d95f8
push eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], 0
call fcn.00374320
add esp, 0xc
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x60]
push eax
call fcn.0037f3f0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea ecx, [edi + 4]
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
push eax
call fcn.00381c30
mov byte [ebp - 4], 1
dec dword [0x3e4754]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x60], 0x3d9c14
cmp edx, 8
jb 0x3745ae
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x3745a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x3745e2
push edx
push ecx
call fcn.003a23bc
add esp, 8
inc esi
cmp esi, 0x10
jl 0x374510
push 0x58
push dword [ebp - 0x74]
call fcn.003a23bc
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.003a2376
mov esp, ebp
pop ebp
ret
call fcn.003a81a6
int3
Function at 0x374690
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3c90f0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x3e206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
push 0x58
mov dword [ebp - 0x5c], eax
call fcn.003a238c
mov dword [ebp - 0x40], eax
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
push esi
mov edx, edi
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.00375130
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00374350
movups xmm0, xmmword [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x58]
movups xmmword [ebp - 0x20], xmm0
call fcn.003745f0
xor ecx, ecx
mov dword [ebp - 0x2c], 0x3d9c14
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
inc dword [0x3e4754]
mov ecx, eax
call fcn.0037fab0
add esp, 4
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x28]
add ecx, 4
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x37477b
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00381f70
dec dword [0x3e4754]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x3747b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x3747ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x37480f
push edx
push ecx
call fcn.003a23bc
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x3747e7
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x3747dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x37480f
push edx
push ecx
call fcn.003a23bc
add esp, 8
push 0x58
push dword [ebp - 0x40]
call fcn.003a23bc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.003a2376
mov esp, ebp
pop ebp
ret
call fcn.003a81a6
int3
Function at 0x379cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3c9a71
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x3e206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x48], 0
test ebx, ebx
je 0x379dcd
cmp dword [ebp + 8], 0
jle 0x379dcd
lea eax, [ebp - 0x44]
push eax
call fcn.0037ffa0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x48], 1
call fcn.0037f9e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x3d9954
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.003abb6f
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov esi, eax
cmp edx, 0x10
jb 0x379d85
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x379d7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x379ded
push edx
push ecx
call fcn.003a23bc
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
jne 0x379daa
lea ecx, [ebp - 0x44]
or esi, 0xffffffff
call fcn.0037f970
mov eax, esi
jmp 0x379dd2
push esi
push 1
push dword [ebp + 8]
push ebx
call fcn.003ac6a2
push esi
call fcn.003abde3
add esp, 0x14
lea ecx, [ebp - 0x44]
xor esi, esi
call fcn.0037f970
mov eax, esi
jmp 0x379dd2
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.003a2376
mov esp, ebp
pop ebp
ret
call fcn.003a81a6
int3
Function at 0x37b1f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3c9b78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x3e206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x37b329
cmp byte [ebx + 0x3d], 0
je 0x37b329
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x37b244
xor al, al
jmp 0x37b32b
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00379e20
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
nop dword [eax]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x37b29f
sub eax, 1
je 0x37b2a3
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x37b2f9
xor bl, bl
jmp 0x37b2fb
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x37b2db
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.003ac6a2
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x37b29b
cmp byte [ebx + 0x3d], 0
je 0x37b2f9
test esi, esi
jne 0x37b260
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00374000
jmp 0x37b257
mov bl, 1
cmp edx, 0x10
jb 0x37b325
inc edx
mov ecx, eax
cmp edx, 0x1000
jb 0x37b31b
mov eax, dword [eax - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x37b347
push edx
push eax
call fcn.003a23bc
add esp, 8
mov al, bl
jmp 0x37b32b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.003a2376
mov esp, ebp
pop ebp
ret
call fcn.003a81a6
int3
Function at 0x37b5e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3c9bd0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x3e206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], 0x3d9974
call fcn.003a238c
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.003a01b0
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push 0
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], 0x3d99b4
call fcn.0037b350
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x3844f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x3e206c]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
mov esi, dword [ebp + 0xc]
mov eax, edx
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 8]
push edi
mov edx, dword [eax]
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
mov dword [esi], 0
mov dword [eax], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [edi], 0
cmp ecx, 5
jae 0x38455f
mov eax, 6
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.003a2376
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
movzx ecx, byte [edx + 4]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, 0x1000
cmp ecx, eax
cmovb ecx, eax
mov al, byte [edx]
mov dword [esp + 0x2c], ecx
cmp al, 0xe1
jae 0x3846a2
xor edx, edx
movzx eax, al
mov ecx, 9
div ecx
mov ecx, 5
mov dword [esp + 0x20], edx
xor edx, edx
movzx eax, al
div ecx
push ecx
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x24]
mov dword [esp + 0x2c], eax
call fcn.00384490
add esp, 4
test eax, eax
jne 0x3846a7
mov ecx, dword [esp + 0x10]
mov edx, ecx
movups xmm0, xmmword [esp + 0x20]
mov eax, dword [esp + 0xc]
push edi
push ecx
push esi
push dword [esp + 0x24]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x48]
movups xmmword [esp + 0x48], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x94], 1
mov dword [esp + 0x90], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x98], 1
mov dword [esi], eax
call fcn.003841f0
mov ecx, dword [esp + 0x6c]
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov dword [eax], ecx
test esi, esi
jne 0x38467a
cmp dword [edi], 3
mov eax, 6
cmove esi, eax
push dword [esp + 0x48]
push 0x3e2acc
call dword [str.GetUserNameW]
add esp, 8
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.003a2376
mov esp, ebp
pop ebp
ret
mov eax, 4
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.003a2376
mov esp, ebp
pop ebp
ret
Function at 0x384fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3c9910
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x3e206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x3ce104
call fcn.003a238c
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.003a01b0
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x3965f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], edx
push esi
push edi
test ecx, ecx
je 0x3967bb
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x3967bb
cmp esi, 0x40
jb 0x3967bb
movups xmm0, xmmword [ecx + 0x10]
mov edx, 0x5a4d
movups xmm1, xmmword [ecx]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [ecx + 0x20]
movd eax, xmm1
movups xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x20], xmm1
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [esp + 0x50], xmm0
cmp ax, dx
jne 0x3967bb
mov edx, dword [esp + 0x5c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x3967bb
lea eax, [edx + ecx]
mov ecx, 0x3e
mov esi, eax
mov dword [esp + 0x18], eax
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x68], 0x4550
jne 0x3967bb
mov eax, 0xe0
cmp word [esp + 0x7c], ax
jne 0x3967bb
mov eax, dword [esp + 0x6c]
shr eax, 0x10
lea ecx, [eax + eax*4]
shl ecx, 3
lea eax, [edx + 0xf8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x3967bb
push ecx
call fcn.003b4309
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x3967bb
movzx edi, word [esp + 0x6e]
mov dword [esp + 0x14], edi
lea esi, [edi + edi*4]
shl esi, 3
push esi
push 0
push eax
call fcn.003a48b0
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xf8
push esi
push eax
push dword [esp + 0x18]
call fcn.003a3db0
mov esi, dword [esp + 0xc8]
xor edx, edx
mov ecx, dword [esp + 0xac]
mov eax, esi
div ecx
add esp, 0xc
test edx, edx
je 0x39671d
lea esi, [eax + 1]
imul esi, ecx
test edi, edi
je 0x396752
mov edi, dword [esp + 0x10]
add edi, 8
mov ecx, dword [edi]
test ecx, ecx
je 0x396748
xor edx, edx
mov eax, ecx
div dword [esp + 0xa0]
test edx, edx
je 0x396746
sub ecx, edx
add ecx, dword [esp + 0xa0]
add esi, ecx
add edi, 0x28
sub dword [esp + 0x14], 1
jne 0x396728
push 0x40
push 0x1000
push esi
push 0
call dword [0x3cd110]
mov edi, eax
test edi, edi
jne 0x396771
lea eax, [edi + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x68]
push edi
push dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00396080
add esp, 0x10
test eax, eax
jne 0x396799
mov eax, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x6c]
push esi
push edi
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00396240
add esp, 0x18
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret