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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov ebx, ecx
call fcn.0041628d
mov eax, dword [ebx + 0x1af68]
lea esi, [ebx + 0x1af64]
dec eax
lea ecx, [ebx + 0x10]
lea edi, [ebx + 0x1af60]
mov dword [ebp - 4], ecx
cmp dword [esi], eax
jb 0x4163af
push esi
push dword [edi]
push dword [ebx]
call dword [ecx]
lea eax, [ebx + 0x1af64]
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x4163b5
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
mov ecx, dword [esi]
mov eax, dword [edi]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov byte [ecx + eax], dl
mov edx, dword [esi]
mov eax, dword [ebp + 8]
inc edx
movzx ecx, ax
mov eax, dword [edi]
mov dword [ebp - 0x14], ecx
shr ecx, 8
mov dword [esi], edx
mov byte [edx + eax], cl
mov ecx, dword [esi]
mov eax, dword [ebx + 0x1af68]
inc ecx
dec eax
mov dword [esi], ecx
cmp ecx, eax
jb 0x4163fb
mov eax, dword [ebp - 4]
push esi
push dword [edi]
push dword [ebx]
call dword [eax]
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ecx, dword [edi]
mov dl, byte [ebp + 8]
not dl
mov byte [ecx + eax], dl
mov ecx, dword [esi]
mov edx, dword [ebp - 0x14]
inc ecx
mov eax, dword [edi]
not edx
shr edx, 8
mov dword [esi], ecx
mov byte [ecx + eax], dl
lea ecx, [ebx + 0x1af6c]
inc dword [esi]
add dword [ecx], 0x20
cmp dword [ebx + 0x1af54], 0
mov edx, dword [esi]
mov dword [ebp - 0x14], ecx
je 0x416454
push esi
push dword [edi]
mov edi, dword [ebp - 4]
push dword [ebx]
call dword [edi]
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0xc]
mov dword [esi], eax
push dword [ebx]
call dword [edi]
mov ecx, dword [ebp - 0x14]
add esp, 0x18
mov edx, dword [ebp + 8]
jmp 0x4164b6
mov ecx, dword [ebp + 8]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x1af68]
jbe 0x416497
push 0xc
pop ecx
mov esi, str.WLNKII
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsw word es:[edi], word [esi]
xor edx, edx
mov eax, ecx
push 0x39
pop esi
div esi
add dl, 0x38
xor byte [ebp + ecx - 0x48], dl
inc ecx
cmp ecx, 0x32
jl 0x416473
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x48]
mov dword [ebx + 0x6afa4], eax
jmp 0x4164b0
mov eax, dword [edi]
push ecx
push dword [ebp - 0xc]
add eax, edx
push eax
call fcn.0041a5e0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
add dword [eax], edx
lea ecx, [ebx + 0x1af6c]
pop edi
shl edx, 3
add dword [ecx], edx
pop esi
pop ebx
leave
ret
Function at 0x4164c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, str.ZXeL_T__5__F
mov dword [ebp - 8], edx
lea edi, [ebp - 0x18]
mov byte [ebp - 1], 1
mov ebx, ecx
lea eax, [edx - 1]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 7
jbe 0x4164ed
mov byte [ebp - 1], cl
mov esi, ecx
xor edx, edx
mov eax, esi
push 0x39
pop edi
div edi
add dl, 0x38
xor byte [ebp + esi - 0x18], dl
inc esi
cmp esi, 0xf
jl 0x4164ef
cmp byte [ebp - 1], cl
jne 0x416513
lea eax, [ebp - 0x18]
mov dword [ebx + 0x6afa4], eax
mov dword [ebx + 0x6af78], ecx
cmp dword [ebx + 0x6af70], ecx
jne 0x416535
mov dword [ebx + 0x6af78], 1
mov dword [ebx + 0x6af70], 0x10000
push 0x1fffc
push ecx
lea eax, [ebx + 0x4af70]
mov dword [ebx + 0x6af6c], ecx
push eax
call fcn.0041ad40
mov ecx, dword [ebp - 8]
add esp, 0xc
movzx eax, word [ecx*8 + 0x437f0a]
mov dword [ebx + 0x6af98], eax
movzx eax, word [ecx*8 + 0x437f08]
mov dword [ebx + 0x6af9c], eax
movzx eax, word [ecx*8 + 0x437f0c]
push 2
mov dword [ebx + 0x6afa0], eax
movzx eax, word [ecx*8 + 0x437f0e]
pop edx
mov dword [ebx + 0x6af94], eax
cmp ecx, edx
jg 0x41659b
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x4165a6
cmp ecx, 8
jl 0x4165a6
mov eax, dword [ebp + 8]
or word [eax], dx
push 0x10000
lea edi, [ebx + 0x1af70]
xor esi, esi
push edi
push ebx
mov dword [ebx + 0x6af84], esi
mov dword [ebx + 0x6af74], esi
call dword [ebx + 0xc]
add esp, 0xc
mov dword [ebx + 0x6af90], eax
test eax, eax
je 0x41660f
cmp eax, 0xffffffff
je 0x41660f
mov dword [ebx + 0x6af8c], esi
cmp eax, 0x106
jae 0x4165ea
mov ecx, ebx
call fcn.0041678e
mov dword [ebx + 0x6af7c], esi
mov ecx, esi
movzx eax, byte [edi + esi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc esi
mov dword [ebx + 0x6af7c], ecx
cmp esi, 2
jb 0x4165f2
jmp 0x41661f
mov dword [ebx + 0x6af8c], 1
mov dword [ebx + 0x6af90], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4168c5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, ebx
push edi
mov dword [ebp - 4], ecx
mov edi, ebx
mov dword [esi + 0x6af80], 2
jmp 0x416abe
cmp eax, 3
jb 0x41693e
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41697b
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x41697b
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x416965
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.00416624
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x416a4a
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.00415f0a
pop ecx
mov ecx, dword [esi + 0x6af90]
sub ecx, edi
mov dword [ebp - 8], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x416a19
cmp ecx, 3
jb 0x416a19
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x4169bd
jmp 0x416a66
add dword [esi + 0x6af84], edi
mov edi, ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
jmp 0x416a72
movzx eax, byte [ecx + esi + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.00415f0a
dec dword [esi + 0x6af90]
pop ecx
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
cmp dword [ebp - 8], ebx
je 0x416aa8
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x416a8b
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x416a8d
mov ecx, ebx
sub edx, eax
push ebx
push edx
mov edx, ecx
mov ecx, esi
call fcn.00415d1b
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x416abb
mov ecx, esi
call fcn.0041678e
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x4168e7
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x416ade
lea ebx, [esi + 0x1af70]
add ebx, ecx
mov eax, dword [esi + 0x6af84]
mov edx, ebx
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.00415d1b
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41777b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x417786
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x417842
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 + 0x4379c8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4379c8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4379c8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4379c8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4379c8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4379c8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4379c8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4379c8]
sub edi, 1
jne 0x41779b
pop edi
test esi, esi
je 0x41785e
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4379c8]
inc edx
sub esi, 1
jne 0x417846
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
mov esi, ecx
movsx eax, dl
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4379c8]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4379c8]
mov dword [esi + 8], ecx
pop esi
ret
Function at 0x4178c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, ecx
push esi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4178d5
sub edx, esi
lea esi, [edx + ecx]
jmp 0x4178e9
cmp byte [esi], 0x2e
je 0x4178fb
dec esi
cmp esi, ecx
ja 0x4178e3
jne 0x4178fb
cmp byte [esi], 0x2e
je 0x4178fb
xor al, al
jmp 0x417ad0
mov ax, word [0x439a3c]
push ebx
push edi
mov word [ebp - 8], ax
xor edi, edi
mov al, byte [0x439a3e]
mov ecx, edi
push 0x38
mov byte [ebp - 6], al
mov dword [ebp - 0x10], 0x39
pop ebx
xor edx, edx
mov eax, ecx
div dword [ebp - 0x10]
add dl, bl
xor byte [ebp + ecx - 8], dl
inc ecx
cmp ecx, 3
jl 0x41791d
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041ee05
pop ecx
pop ecx
test eax, eax
je 0x417acc
mov eax, dword [0x439a34]
mov ecx, edi
mov dword [ebp - 8], eax
mov al, byte [0x439a38]
mov byte [ebp - 4], al
xor edx, edx
mov eax, ecx
div dword [ebp - 0x10]
add dl, bl
xor byte [ebp + ecx - 8], dl
inc ecx
cmp ecx, 5
jl 0x417956
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041ee05
pop ecx
pop ecx
test eax, eax
je 0x417acc
mov eax, dword [0x4399dc]
mov ecx, edi
mov dword [ebp - 8], eax
mov al, byte [0x4399e0]
mov byte [ebp - 4], al
xor edx, edx
mov eax, ecx
div dword [ebp - 0x10]
add dl, bl
xor byte [ebp + ecx - 8], dl
inc ecx
cmp ecx, 5
jl 0x41798f
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041ee05
pop ecx
pop ecx
test eax, eax
je 0x417acc
mov eax, dword [0x439a24]
mov ecx, edi
mov dword [ebp - 8], eax
mov al, byte [0x439a28]
mov byte [ebp - 4], al
xor edx, edx
mov eax, ecx
div dword [ebp - 0x10]
add dl, bl
xor byte [ebp + ecx - 8], dl
inc ecx
cmp ecx, 5
jl 0x4179c8
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041ee05
pop ecx
pop ecx
test eax, eax
je 0x417acc
mov eax, dword [0x439a2c]
mov ecx, edi
mov dword [ebp - 8], eax
mov al, byte [0x439a30]
mov byte [ebp - 4], al
xor edx, edx
mov eax, ecx
div dword [ebp - 0x10]
add dl, bl
xor byte [ebp + ecx - 8], dl
inc ecx
cmp ecx, 5
jl 0x417a01
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041ee05
pop ecx
pop ecx
test eax, eax
je 0x417acc
mov eax, dword [0x439a1c]
mov ecx, edi
mov dword [ebp - 8], eax
mov al, byte [0x439a20]
mov byte [ebp - 4], al
xor edx, edx
mov eax, ecx
div dword [ebp - 0x10]
add dl, bl
xor byte [ebp + ecx - 8], dl
inc ecx
cmp ecx, 5
jl 0x417a3a
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041ee05
pop ecx
pop ecx
test eax, eax
je 0x417acc
cmp byte [0x439a1b], 0
mov eax, dword [0x439a18]
mov dword [ebp - 8], eax
je 0x417a83
mov ecx, edi
xor edx, edx
mov eax, ecx
div dword [ebp - 0x10]
add dl, bl
xor byte [ebp + ecx - 8], dl
inc ecx
cmp ecx, 4
jl 0x417a70
lea eax, [ebp - 8]
push eax
push esi
call fcn.0041ee05
pop ecx
pop ecx
test eax, eax
je 0x417acc
mov eax, dword [0x4399c4]
mov dword [ebp - 0x10], eax
mov al, byte [0x4399c8]
push 0x39
mov byte [ebp - 0xc], al
pop ecx
xor edx, edx
mov eax, edi
div ecx
add dl, bl
xor byte [ebp + edi - 0x10], dl
inc edi
cmp edi, 5
jl 0x417aa6
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0041ee05
neg eax
pop ecx
sbb al, al
pop ecx
inc al
jmp 0x417ace
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
Function at 0x417bb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x43f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x417c39
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x417bf3
cmp dword [esi + 0x40], edi
jae 0x417bf3
push ecx
call fcn.00419382
and dword [esi + 0x3c], 0
pop ecx
jmp 0x417bf7
test eax, eax
jne 0x417c07
lea eax, [edi + edi]
push eax
call fcn.00419387
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call fcn.0041a5e0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x417c36
lea eax, [esi + 0x30]
mov edx, dword [esi + 0x3c]
mov ecx, eax
mov dl, byte [edx + ebx]
call fcn.004178a8
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea eax, [esi + 0x30]
cmp ebx, edi
jb 0x417c1b
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x417c68
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x417c54
mov dword [esi + 0x14], 0x30000
jmp 0x417c8a
push edi
add ecx, edx
push ebx
push ecx
call fcn.0041a5e0
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x417c8c
mov eax, dword [esi + 4]
test eax, eax
je 0x417c83
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
jmp 0x417c8c
mov dword [esi + 0x14], 0x1000000
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fad
leave
ret 8

Function at 0x417dea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x43f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x417e4c
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x417e84
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push ebx
call fcn.0041a5e0
mov ecx, dword [edi + 0x78]
mov edx, ebx
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.0041777b
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x417e86
cmp dword [edi + 0x7c], 0
je 0x417e7d
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417e84
mov esi, dword [ebp - 8]
mov edx, ebx
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.0041777b
pop ecx
jmp 0x417e45
mov dword [edi + 0x14], 0x1000000
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fad
leave
ret 8
Function at 0x419d77
Capabilities:
Parse pe header

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

Function at 0x420bc2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x433acc
push 0x433ac4
push str.FlsAlloc
push 0x1f
call fcn.00420a9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420bf6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4311fc]
call esi
jmp 0x420bfc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x420c40
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x433adc
push 0x433ad4
push str.FlsGetValue
push 0x21
call fcn.00420a9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420c77
push dword [ebp + 8]
mov ecx, esi
call dword [0x4311fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x420c7f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x433ae4
push 0x433adc
push str.FlsSetValue
push 0x22
call fcn.00420a9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420cb9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4311fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x423fdc
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 0x424079
push ebx
push esi
call fcn.00423fa5
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.00423f39
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x424026
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424078
push edi
push eax
call fcn.00420875
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x424046
call fcn.0042083b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424077
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423f39
add esp, 0x20
test eax, eax
jne 0x424065
push edi
call fcn.0042083b
jmp 0x42406d
push ebx
call fcn.0042083b
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 0x42ad20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ad4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ad4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44d156
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], fcn.00411100
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 8], 0x4532d8
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x1c], 0x45332c
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0x11
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0xa
mov dword [esi + 4], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
mov byte [esp + 0x14], 1
je 0x401ab9
push eax
call sub.MFC71U.DLL_operator_new_1
add esp, 4
mov dword [esi + 0x20], edi
push 0x2c
call sub.MFC71U.DLL_SerializeElements
mov edi, eax
add esp, 4
mov dword [esi + 0x20], edi
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], 0xb
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407840
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x624
mov eax, dword [0x471388]
push ebx
mov dword [esp + 0x624], eax
cmp dword [ecx + 0xb8], 0xffffffff
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40787f
xor al, al
mov ecx, dword [esp + 0x62c]
call fcn.0044c64f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
xor esi, esi
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x218]
push 0x104
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
mov ebx, dword [sym.imp.MSVCR71.dll__snwprintf]
mov word [esp + 0x18], si
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x220]
push ecx
push str._sDownLoad
lea edx, [esp + 0x20]
push 0x104
push edx
stosw word es:[edi], ax
call ebx
mov esi, dword [ebp + 8]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
test edx, edx
jbe 0x4078fe
cmp word [esi + edx*2], 0x2f
je 0x4078fe
dec edx
jne 0x4078f4
xor eax, eax
mov word [esp + 0x420], 0
mov ecx, 0x81
lea edi, [esp + 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + edx*2 + 2]
push eax
lea ecx, [esp + 0x14]
push ecx
push str._s_s.WHD
lea edx, [esp + 0x42c]
push 0x104
push edx
call ebx
add esp, 0x14
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xb4]
push 0
add ecx, 0xb4
push 0x1001
lea eax, [esp + 0x428]
push eax
call dword [edx + 0x28]
mov ecx, dword [esp + 0x62c]
test eax, eax
setne al
call fcn.0044c64f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407ed0
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44d86c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
mov eax, dword [0x471388]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x484], eax
xor eax, eax
xor esi, esi
mov word [esp + 0x70], si
mov ecx, 0x81
lea edi, [esp + 0x72]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
add ebx, 0xb4
stosw word es:[edi], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str..WHD
mov dword [esp + 0x498], esi
call edi
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
sub eax, esi
shl eax, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov word [esp + eax + 0x70], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
mov esi, eax
mov eax, dword [ebx]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call dword [eax + 0x54]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
xor ebx, ebx
push ebx
push ebx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
test eax, eax
je 0x408043
mov esi, dword [esp + 0x14]
cmp word [esi + 0x70], bx
je 0x407fdb
lea eax, [esp + 0x70]
push eax
push str._s__VERYSILENT
push 0x104
lea ecx, [esp + 0x284]
push ecx
jmp 0x407ff2
lea edx, [esp + 0x70]
push edx
push 0x454f0c
push 0x104
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0xa78]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea eax, [esp + 0x298]
push eax
push ebx
mov dword [esp + 0x50], 0x44
mov word [esp + 0x80], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408051
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor al, al
jmp 0x4080a1
cmp dword [esi + 0x20], ebx
jne 0x408083
mov eax, dword [esi + 0xa74]
mov edx, dword [esi]
push ebx
push 0x64
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x40000000
push ebx
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [edx + 0x5c]
mov edx, dword [esi + 0x20]
push ebx
push 0x64
push 0xc8
push edx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, 1
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x484]
call fcn.0044c64f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret