joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4297d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cfd9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b3074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], 0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [edi + 1]
mov dword [ebx], eax
mov dword [ebx + 4], 0
test eax, eax
je 0x42982e
push eax
call fcn.00421350
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
jmp 0x429833
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebx + 8], ecx
mov eax, dword [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4298c9
mov edx, dword [eax + 4]
cmp edx, 0xffffffff
je 0x4298c9
mov eax, 0x40000000
mov dword [ebp + 0xc], 0
push 0
cmp edi, eax
lea ebx, [ebp + 0xc]
push ebx
cmovb eax, edi
mov esi, edi
push eax
push ecx
push edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp + 8]
cmp eax, 1
jne 0x4298c5
mov eax, dword [ebp + 0xc]
sub esi, eax
cmp eax, dword [ebp - 0x14]
jb 0x4298c5
test esi, esi
je 0x4298c5
mov ecx, dword [ebp - 0x10]
lea edx, [ebp + 0xc]
add ecx, eax
mov dword [ebp + 0xc], 0
mov eax, 0x40000000
mov dword [ebp - 0x10], ecx
push 0
cmp esi, eax
push edx
cmovb eax, esi
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
push ecx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x429882
sub edi, esi
jmp 0x4298cb
xor edi, edi
mov eax, dword [ebx]
lea esi, [edi + 1]
cmp eax, esi
jae 0x4298e6
push esi
push eax
push dword [ebx + 8]
call fcn.00421c10
add esp, 0xc
mov dword [ebx + 8], eax
mov dword [ebx], esi
mov eax, ebx
mov dword [ebx + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x429900
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call fcn.00429980
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x429922
mov al, 1
pop esi
pop ebp
ret
test al, 0x10
jne 0x429935
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
pop ebp
ret
cmp byte [ebp + 0xc], 0
jne 0x42994a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop esi
setne al
pop ebp
ret
push 0x2f
push dword [ebp + 8]
call fcn.00433ab0
add esp, 8
neg eax
sbb eax, eax
and eax, 0xffffffd3
add eax, 0x5c
movzx eax, ax
push eax
call fcn.00429120
push eax
call fcn.00428e30
add esp, 8
pop esi
pop ebp
ret
Function at 0x429b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx]
mov dword [ebp - 4], eax
test eax, eax
je 0x429bb4
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x429bb4
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push esi
push edi
mov edi, 0x40000000
mov dword [ebp + 0xc], 0
push 0
cmp ebx, edi
mov esi, ebx
push ecx
cmovb edi, ebx
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x429ba7
mov eax, dword [ebp + 0xc]
sub esi, eax
cmp eax, edi
jb 0x429ba7
test esi, esi
je 0x429ba7
mov ecx, dword [ebp + 8]
mov edi, 0x40000000
add ecx, eax
mov dword [ebp + 0xc], 0
push 0
cmp esi, edi
mov dword [ebp + 8], ecx
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
cmovb edi, esi
push edi
push ecx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x429b68
sub ebx, esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x42c230
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x42c28e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x42c250
mov eax, dword [edi]
jmp 0x42c379
cmp eax, 0x4e0
jb 0x42c379
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x42c2b0
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x42c300
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x442e82
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x499ea0
push 0x499e98
push str.FlsAlloc
push 0x1e
call fcn.00442caf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442eb6
push dword [ebp + 8]
mov ecx, esi
call dword [0x491454]
call esi
jmp 0x442ebc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x442f00
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x499eb0
push 0x499ea8
push str.FlsGetValue
push 0x20
call fcn.00442caf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442f37
push dword [ebp + 8]
mov ecx, esi
call dword [0x491454]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44842c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4484c9
push ebx
push esi
call fcn.004483f5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00442559
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x448476
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4484c8
push edi
push eax
call fcn.00442963
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x448496
call fcn.00442850
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4484c7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00442559
add esp, 0x20
test eax, eax
jne 0x4484b5
push edi
call fcn.00442850
jmp 0x4484bd
push ebx
call fcn.00442850
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4484cc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4484dd
pop esi
ret
push ebx
push edi
push esi
call fcn.004483f5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00442963
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x448505
push ebx
push esi
push edi
call fcn.00432c00
add esp, 0xc
push 0
call fcn.00442850
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x448c51
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00448778

Function at 0x44bf24
Capabilities:
Read file on windows

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042d960
mov eax, dword [0x4b3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00444e44
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44c360
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44c4bc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042d480
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4c1990]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0044d0bd
mov ecx, dword [esi*4 + 0x4c1990]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x44c4b5
cmp eax, dword [edi + ecx + 0x24]
jne 0x44c4b5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44c4b5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044d0bd
add esp, 0x14
test edx, edx
jl 0x44c4b5
jg 0x44c42b
test eax, eax
jb 0x44c4b5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44c4b5
jl 0x44c445
cmp dword [ebp - 0x1008], eax
ja 0x44c4b5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44c463
test ebx, ebx
je 0x44c49c
cmp ecx, edi
jae 0x44c49c
mov al, byte [ecx]
cmp al, 0xd
jne 0x44c47d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44c489
cmp byte [ecx + 1], 0xa
jne 0x44c489
inc ecx
jmp 0x44c489
movzx eax, al
movsx eax, byte [eax + 0x4b3a20]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44c463
cmp edx, ebx
jne 0x44c463
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44c4ba
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042cb29
leave
ret
Function at 0x44c55b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c1990]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44c59b
cmp byte [ebx], 0xa
jne 0x44c59b
or byte [eax + edi + 0x28], 4
jmp 0x44c5a0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44c69e
mov al, byte [edx]
cmp al, 0x1a
je 0x44c680
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44c5cf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x44c5f4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44c5fe
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x44c5b1
jmp 0x44c69e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44c67b
cmp dword [ebp - 0xc], 0
je 0x44c67b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4c1990]
test byte [eax + edi + 0x28], 0x48
je 0x44c655
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44c640
mov byte [esi], dl
jmp 0x44c651
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c1990]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44c69e
cmp byte [ebp - 1], 0xa
jne 0x44c664
cmp esi, ebx
jne 0x44c664
mov byte [esi], 0xa
jmp 0x44c69d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044d0db
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44c69e
mov byte [esi], 0xd
jmp 0x44c69d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4c1990]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44c69a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44c69e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44c6a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4c1990]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44c6ea
cmp word [esi], dx
jne 0x44c6ea
or byte [edi + eax + 0x28], 4
jmp 0x44c6ef
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x44c842
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x44c822
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44c731
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44c767
cmp eax, edx
jae 0x44c773
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x44c709
jmp 0x44c842
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44c81e
cmp dword [ebp - 0x14], 0
je 0x44c81e
mov eax, dword [ebx*4 + 0x4c1990]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x44c7f6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x44c7bf
mov word [esi], cx
jmp 0x44c7f2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4c1990]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4c1990]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4c1990]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x44c842
pop ebx
cmp word [ebp - 4], bx
jne 0x44c807
cmp esi, dword [ebp + 0xc]
jne 0x44c807
mov word [esi], bx
jmp 0x44c83f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044d0db
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44c842
push 0xd
jmp 0x44c83b
mov ecx, dword [ebx*4 + 0x4c1990]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44c839
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44c842
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x453af5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x46a091
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
shr edi, 2
xor ebp, ebp
mov eax, edi
xor ebx, ebx
shr eax, 1
inc ebp
add eax, 3
mov ecx, ebx
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x46a0c2
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x46a0b5
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x46a12b
movzx eax, dl
mov ebx, edi
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebp
add ebp, ebp
or edx, ecx
test ebp, 0x100
pop eax
cmovne ebp, eax
jmp 0x46a178
cmp ebx, 4
jne 0x46a17c
cmp edi, 6
jbe 0x46a17c
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [esp + 0x14]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x46a0d2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x46afaf
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x46afde
call fcn.0046b054
push 7
pop edx
cmp eax, edx
jb 0x46afde
lea ecx, [ebp - 0x10]
call fcn.0046b03c
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
leave
ret
xor eax, eax
leave
ret

Function at 0x46afee
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x46b00f
lea ecx, [ebp - 0x10]
call fcn.0046b01f
test eax, eax
je 0x46b00f
mov eax, dword [ebp - 8]
leave
ret
xor eax, eax
leave
ret
Function at 0x46b0ea
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4b3074]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x46b133
push str.SetDefaultDllDirectories
push 0x4a1af0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46b133
push 0xc00
call eax
test eax, eax
jne 0x46b1d0
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x46b1d0
cmp eax, 0x104
ja 0x46b1d0
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x46b16a
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x46b1cf
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
jmp 0x46b197
movzx eax, cl
mov cl, byte [esi]
mov word [edx], ax
add edx, 2
inc esi
test cl, cl
jne 0x46b18c
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x46b188
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cb29
leave
ret
Function at 0x46f390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
xor ebp, ebp
xor eax, eax
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ebx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [esi + 0x78], ebp
cmova eax, ebx
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x84], ebp
mov dword [esi + 0x58], ebp
cmp eax, dword [esi + 0x20]
je 0x46f434
lea edi, [esi + 0xc8]
cmp dword [edi + 8], ebp
je 0x46f415
mov ecx, edi
call fcn.0046f165
add edi, 0x28
sub ebx, 1
jne 0x46f409
cmp dword [esi + 0x5c], ebp
je 0x46f42f
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
mov dword [esi + 0x5c], ebp
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ebp
mov dword [esi + 0xa0], ebp
mov dword [esi + 0xa4], ebp
mov dword [esi + 0xa8], ebp
mov dword [esi + 0xac], ebp
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
mov ecx, ebx
call fcn.0046f1c2
mov edi, eax
test edi, edi
jne 0x46f4b1
lea ecx, [ebx + 0x20]
call fcn.0047118e
mov edi, eax
test edi, edi
jne 0x46f4b1
lea ecx, [ebx + 0x1c]
call fcn.0047118e
mov edi, eax
test edi, edi
jne 0x46f4b1
push ebx
call fcn.0046e4e1
mov edi, eax
test edi, edi
je 0x46f4b1
mov ecx, esi
mov dword [esi + 0x44], ebp
call fcn.0046f111
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x46f4c5
mov dword [esi + 0x40], eax
cmp dword [esi + 0x38], ebp
jne 0x46f4d7
cmp dword [esi + 0x40], ebp
jne 0x46f4d7
cmp dword [esi + 0x3c], ebp
jne 0x46f4d7
mov dword [esi + 0x44], ebp
pop edi
xor ecx, ecx
cmp dword [esi + 0x44], ebp
pop esi
pop ebp
cmovne eax, ecx
pop ebx
ret

Function at 0x46f5a8
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, ecx
push 4
pop ecx
mov esi, dword [edi + 8]
mov eax, dword [edi + 0x24]
movzx edx, byte [esi + 1]
mov dword [edi + 0x20], eax
add edx, ecx
mov eax, dword [edi]
add word [eax + 2], cx
mov byte [esi + 1], dl
cmp edx, 0x7c
jbe 0x46f5d3
mov ecx, edi
call fcn.0046f734
mov ecx, edi
pop edi
pop esi
jmp fcn.0046f939
Function at 0x46f5dc
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp]
movzx ecx, byte [ebx + 1]
movzx esi, word [edi + 2]
lea edx, [ecx + ecx]
cmp esi, edx
sbb eax, eax
add ecx, 4
neg eax
add dword [ebp + 0x20], eax
mov dword [ebp + 0x14], eax
lea eax, [esi + 4]
mov word [edi + 2], ax
mov byte [ebx + 1], cl
cmp ecx, 0x7c
jbe 0x46f618
mov ecx, ebp
call fcn.0046f734
pop edi
pop esi
mov ecx, ebp
pop ebp
pop ebx
jmp fcn.0046f683

Function at 0x46f683
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [ecx + 8]
movzx edx, word [eax + 4]
movzx eax, word [eax + 2]
shl edx, 0x10
or edx, eax
cmp dword [ecx + 0xc], 0
jne 0x46f6a4
cmp edx, dword [ecx + 0x40]
jbe 0x46f6a4
mov dword [ecx], edx
mov dword [ecx + 4], edx
ret
jmp fcn.0046f939