joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d713b29
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
push 0x6d713ac4
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret

Function at 0x6d713c95
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 8], 0x50
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
jae 0x6d713cb4
push eax
call fcn.6d7141f6
push 2
call fcn.6d7141e5
pop ecx
pop ecx
mov dword [esi], eax
push 0x50
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
pop esi
ret

Function at 0x6d717966
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
test byte [eax], 8
jne 0x6d717980
mov dword [0x6d72ffa8], 0x6f
jmp 0x6d7179dc
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x6d717995
push 1
lea eax, [ebp + 0xb]
push eax
push edx
call ecx
add esp, 0xc
jmp 0x6d7179a9
push dword [eax + 0x38]
lea eax, [ebp + 0xb]
push 1
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x6d7179ba
mov dword [0x6d72ffa8], 0x66
jmp 0x6d7179dc
cmp byte [ebp + 0xb], 0x21
mov eax, dword [ebp + 0xc]
je 0x6d7179f0
cmp byte [ebp + 0xb], 0x2c
je 0x6d7179e8
cmp byte [ebp + 0xb], 0x3b
je 0x6d7179e0
and dword [eax], 0
mov dword [0x6d72ffa8], 0x6b
xor eax, eax
pop ebp
ret
mov dword [eax], 4
jmp 0x6d7179f6
mov dword [eax], 2
jmp 0x6d7179f6
mov dword [eax], 3
xor eax, eax
inc eax
pop ebp
ret

Function at 0x6d7179fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x38]
cmp dword [edi + 0x3c], 0
mov eax, edi
je 0x6d717a24
push 1
lea ecx, [ebp + 0xb]
push ecx
push esi
call dword [eax + 0x3c]
add esp, 0xc
jmp 0x6d717a34
push dword [eax + 0x38]
lea eax, [ebp + 0xb]
push 1
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x6d717a80
mov dl, byte [ebp + 0xb]
test dl, dl
jbe 0x6d717a8e
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x44]
mov dword [ecx], eax
mov byte [eax], dl
mov eax, dword [esi + 0x38]
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x6d717a65
movzx eax, byte [ebp + 0xb]
push eax
mov eax, dword [ecx]
inc eax
push eax
push esi
call edx
add esp, 0xc
jmp 0x6d717a78
push dword [eax + 0x38]
movzx eax, byte [ebp + 0xb]
push eax
mov eax, dword [ecx]
inc eax
push 1
push eax
call ebx
add esp, 0x10
movzx ecx, byte [ebp + 0xb]
cmp eax, ecx
je 0x6d717a94
mov dword [0x6d72ffa8], 0x66
xor eax, eax
jmp 0x6d717a97
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x6d717b2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x6d717b48
push 2
lea eax, [ebp - 4]
push eax
push edx
call ecx
add esp, 0xc
jmp 0x6d717b5c
push dword [eax + 0x38]
lea eax, [ebp - 4]
push 2
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 2
je 0x6d717b6f
mov dword [0x6d72ffa8], 0x66
xor eax, eax
leave
ret
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
inc eax
leave
ret

Function at 0x6d717b86
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x38]
cmp dword [edi + 0x3c], 0
mov eax, edi
je 0x6d717baf
push 1
lea ecx, [ebp + 0xb]
push ecx
push esi
call dword [eax + 0x3c]
add esp, 0xc
jmp 0x6d717bbf
push dword [eax + 0x38]
lea eax, [ebp + 0xb]
push 1
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x6d717c0b
mov dl, byte [ebp + 0xb]
test dl, dl
jbe 0x6d717c19
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x44]
mov dword [ecx], eax
mov byte [eax], dl
mov eax, dword [esi + 0x38]
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x6d717bf0
movzx eax, byte [ebp + 0xb]
push eax
mov eax, dword [ecx]
inc eax
push eax
push esi
call edx
add esp, 0xc
jmp 0x6d717c03
push dword [eax + 0x38]
movzx eax, byte [ebp + 0xb]
push eax
mov eax, dword [ecx]
inc eax
push 1
push eax
call ebx
add esp, 0x10
movzx ecx, byte [ebp + 0xb]
cmp eax, ecx
je 0x6d717c27
mov dword [0x6d72ffa8], 0x66
xor eax, eax
jmp 0x6d717c2a
mov eax, dword [ebp + 0xc]
and dword [eax], 0
and dword [edi + 0x34], 0
mov byte [edi + 0x44], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x6d717c2f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [eax + 0x38]
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x6d717c50
push 1
lea edx, [ebp - 1]
push edx
mov ecx, esi
push eax
call dword [ecx + 0x3c]
add esp, 0xc
jmp 0x6d717c67
mov eax, dword [eax + 0x38]
push dword [eax + 0x38]
lea eax, [ebp - 1]
push 1
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
xor eax, eax
cmp byte [ebp - 1], 0xc
jae 0x6d717cb6
movzx ecx, byte [ebp - 1]
inc eax
shl eax, cl
mov dword [esi + 8], ecx
push edi
lea edi, [esi + 0x2144]
mov dword [esi + 0xc], eax
inc eax
mov dword [esi + 0x10], eax
inc eax
mov dword [esi + 0x14], eax
xor eax, eax
inc ecx
inc eax
shl eax, cl
mov dword [esi + 0x18], ecx
mov ecx, 0x1000
mov byte [esi + 0x44], bl
mov dword [esi + 0x1c], eax
mov eax, 0x1002
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
rep stosd dword es:[edi], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6d717cd7
Capabilities:
Read file on windows

Disassembly:
cmp byte [esi], 0
push ebx
push edi
jne 0x6d717d5d
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
je 0x6d717cfd
push 1
push esi
push edi
call ecx
add esp, 0xc
jmp 0x6d717d0a
push dword [eax + 0x38]
push 1
push 1
push esi
call ebx
add esp, 0x10
cmp eax, 1
jne 0x6d717d42
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
lea edi, [esi + 1]
je 0x6d717d2c
movzx eax, byte [esi]
push eax
push edi
push dword [esp + 0x14]
call ecx
add esp, 0xc
jmp 0x6d717d3b
push dword [eax + 0x38]
movzx eax, byte [esi]
push eax
push 1
push edi
call ebx
add esp, 0x10
movzx ecx, byte [esi]
cmp eax, ecx
je 0x6d717d50
mov dword [0x6d72ffa8], 0x66
xor eax, eax
jmp 0x6d717d72
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
mov byte [edi], 2
jmp 0x6d717d6d
movzx eax, byte [esi + 1]
mov al, byte [eax + esi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
inc byte [esi + 1]
dec byte [esi]
xor eax, eax
inc eax
pop edi
pop ebx
ret
Function at 0x6d717d75
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 8
push edi
jne 0x6d717d96
mov dword [0x6d72ffa8], 0x6f
xor eax, eax
pop edi
pop esi
leave
ret
push esi
mov edx, esi
call fcn.6d717b2c
test eax, eax
pop ecx
je 0x6d717d90
lea eax, [esi + 4]
push eax
mov edx, esi
call fcn.6d717b2c
test eax, eax
pop ecx
je 0x6d717d90
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
xor edi, edi
cmp ecx, edi
je 0x6d717dcd
push 3
lea eax, [ebp + 8]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x6d717de1
push dword [eax + 0x38]
lea eax, [ebp + 8]
push 3
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 3
jne 0x6d717eb2
movzx eax, byte [ebp + 8]
mov ecx, eax
shr ecx, 4
and ecx, 7
inc ecx
mov dword [esi + 8], ecx
movzx ecx, byte [ebp + 9]
and eax, 7
inc eax
test byte [ebp + 8], 0x80
mov dword [esi + 0xc], ecx
je 0x6d717ec1
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
push edi
push edx
call fcn.6d71866a
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0x10], eax
jne 0x6d717e35
mov dword [0x6d72ffa8], 0x6d
jmp 0x6d717d90
cmp dword [eax], edi
mov dword [ebp - 4], edi
jle 0x6d717ec4
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x6d717e58
push 3
lea eax, [ebp + 8]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x6d717e6c
push dword [eax + 0x38]
lea eax, [ebp + 8]
push 3
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 3
jne 0x6d717ea9
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov cl, byte [ebp + 8]
inc dword [ebp - 4]
mov byte [edi + eax], cl
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov cl, byte [ebp + 9]
mov byte [eax + edi + 1], cl
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov cl, byte [ebp + 0xa]
mov byte [eax + edi + 2], cl
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 4]
add edi, 3
cmp ecx, dword [eax]
jl 0x6d717e40
jmp 0x6d717ec4
push dword [esi + 0x10]
call fcn.6d7186d1
pop ecx
mov dword [0x6d72ffa8], 0x66
jmp 0x6d717d90
mov dword [esi + 0x10], edi
xor eax, eax
inc eax
jmp 0x6d717d92
Function at 0x6d7180e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 8
jne 0x6d718102
mov dword [0x6d72ffa8], 0x6f
jmp 0x6d71813a
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x6d718117
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x6d71812b
push dword [eax + 0x38]
lea eax, [ebp + 0xb]
push 1
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x6d71813e
mov dword [0x6d72ffa8], 0x66
xor eax, eax
jmp 0x6d718152
movzx eax, byte [ebp + 0xb]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ecx], eax
call fcn.6d7179fb
pop ecx
pop ecx
pop esi
pop ebp
ret

Function at 0x6d7181d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_malloc]
push edi
push 0x3c
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
jne 0x6d718202
mov dword [0x6d72ffa8], 0x6d
jmp 0x6d7182c9
push 0x3c
push ebx
push edi
call sub.MSVCR71.dll_memset
push 0x6144
call esi
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x6d718231
push edi
mov dword [0x6d72ffa8], 0x6d
call dword [sym.imp.MSVCR71.dll_free]
jmp 0x6d7182c8
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x38], esi
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], ebx
mov dword [esi + 0x38], ebx
mov dword [esi], 8
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
cmp ecx, ebx
je 0x6d718264
push 6
lea eax, [ebp - 8]
push eax
push edi
call ecx
add esp, 0xc
jmp 0x6d718278
push dword [eax + 0x38]
lea eax, [ebp - 8]
push 6
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 6
je 0x6d718289
mov dword [0x6d72ffa8], 0x66
jmp 0x6d7182bb
push 3
lea eax, [ebp - 8]
push eax
push 0x6d727510
mov byte [ebp - 2], bl
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x6d7182b0
mov dword [0x6d72ffa8], 0x67
jmp 0x6d7182bb
push edi
call fcn.6d717d75
test eax, eax
pop ecx
jne 0x6d7182cd
push esi
mov esi, dword [sym.imp.MSVCR71.dll_free]
call esi
push edi
call esi
pop ecx
pop ecx
xor eax, eax
jmp 0x6d7182d5
mov dword [0x6d72ffa8], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6d7189b2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x6d7189c5
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x6d7189e4
test ecx, ecx
jne 0x6d7189f2
test edx, edx
jne 0x6d7189f2
mov dword [ebp - 8], edi
jmp 0x6d718a5c
cmp eax, 0xffffffff
jne 0x6d7189f2
mov dword [ebp - 8], 0xfffffffe
jmp 0x6d718a5c
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x6d718a5c
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCR71.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x6d718a23
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x6d718a42
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x6d718b02
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x6d718a81
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x6d718a8b
xor eax, eax
jmp 0x6d718ac3
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x6d718aad
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.6d71c2a6
add esp, 0xc
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x6d718aee
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x6d718b02
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x6d7189c2
pop edi
pop ebx
leave
ret
Function at 0x6d71c3bf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x6d71c3ca
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x6d71c48d
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x6d728478]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x6d728478]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x6d728478]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x6d728478]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x6d728478]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x6d728478]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x6d728478]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x6d728478]
inc edx
dec edi
jne 0x6d71c3ea
pop edi
test eax, eax
je 0x6d71c4a7
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x6d728478]
inc edx
dec eax
jne 0x6d71c491
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x6d71ca4f
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x6d71ca7d
push esi
call fcn.6d7211d0
cmp dword [esi + 0x40], 0
pop ecx
je 0x6d71ca76
xor eax, eax
mov dword [esi + 0x14], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x6d71caed
mov eax, dword [esi + 0x1b4]
cmp dword [eax + 0x10], 0
je 0x6d71cadf
mov eax, dword [esi + 8]
test eax, eax
je 0x6d71ca9e
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b4]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x6d71cadb
cmp eax, 2
je 0x6d71cadf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x6d71ca93
cmp eax, 3
je 0x6d71cac2
cmp eax, 1
jne 0x6d71ca93
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x6d71ca93
mov ecx, dword [esi + 0x140]
add dword [eax + 8], ecx
jmp 0x6d71ca93
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x6d71cb0b
cmp eax, 0xcc
je 0x6d71cb0b
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.6d71c915
pop esi
ret
Function at 0x6d7246a7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.6d7247ed
push 0x54
push edi
mov dword [ebp - 4], eax
call fcn.6d7247bc
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x6d7246eb
push edi
call fcn.6d71db4f
mov eax, dword [edi]
mov dword [eax + 0x14], 0x36
mov eax, dword [edi]
mov dword [eax + 0x18], ebx
mov eax, dword [edi]
push edi
call dword [eax]
pop ecx
pop ecx
mov dword [esi], fcn.6d723d44
mov dword [esi + 4], fcn.6d723e40
mov dword [esi + 8], fcn.6d723ece
mov dword [esi + 0xc], fcn.6d723f60
mov dword [esi + 0x10], 0x6d723ffe
mov dword [esi + 0x14], 0x6d724062
mov dword [esi + 0x18], 0x6d7240c6
mov dword [esi + 0x1c], 0x6d72435c
mov dword [esi + 0x20], 0x6d72447c
mov dword [esi + 0x24], fcn.6d724597
mov dword [esi + 0x28], 0x6d724677
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 4]
push 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
pop ecx
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x6d72474a
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCR71.dll_getenv]
cmp eax, ebx
pop ecx
je 0x6d7247b7
lea ecx, [ebp + 0xb]
push ecx
lea ecx, [ebp - 4]
push ecx
push str._ld_c
push eax
mov byte [ebp + 0xb], 0x78
call dword [sym.imp.MSVCR71.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x6d7247b7
cmp byte [ebp + 0xb], 0x6d
je 0x6d7247a0
cmp byte [ebp + 0xb], 0x4d
jne 0x6d7247ab
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
jmp 0x6d7247ae
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d578
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d2c
mov dword [ebp - 0x14], eax
cmp dword [0x45a338], esi
jne 0x40d66b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d5f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d74b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d74b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d74b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45a338], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45a33c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45a340], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a348], eax
test eax, eax
je 0x40d668
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45a344], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d690
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d683
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6a5
push 4
pop eax
jmp 0x40d74d
cmp dword [ebp - 0x14], esi
je 0x40d6a5
push dword [0x45a338]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d68a
mov eax, dword [0x45a344]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d703
cmp dword [0x45a348], edi
je 0x40d703
push eax
call ebx
push dword [0x45a348]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d703
test eax, eax
je 0x40d703
call ecx
test eax, eax
je 0x40d6f8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d6f8
test byte [ebp - 8], 1
jne 0x40d703
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d733
mov eax, dword [0x45a33c]
cmp eax, edi
je 0x40d730
push eax
call ebx
test eax, eax
je 0x40d730
call eax
mov esi, eax
test esi, esi
je 0x40d730
mov eax, dword [0x45a340]
cmp eax, edi
je 0x40d730
push eax
call ebx
test eax, eax
je 0x40d730
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45a338]
call ebx
test eax, eax
je 0x40d74b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d74d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040e0
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
lea ecx, [esp + 4]
xor esi, esi
push eax
mov eax, dword [esp + 0x1c]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401050
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x24]
push ebp
push edi
mov edi, dword [esp + 0x28]
push eax
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebp
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebp
test esi, esi
je 0x40107f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
call fcn.0042b8f4
lea ecx, [esp + 0x20]
mov byte [esp + 0x10], 0
call fcn.0042b8f4
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042b8f4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4010c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
lea ecx, [esp + 4]
xor esi, esi
push eax
mov eax, dword [esp + 0x1c]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401110
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push 4
push edx
push 4
push 0
push eax
push esi
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x40113a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
call fcn.0042b8f4
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042b8f4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret