joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a920
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0041a5a8
push eax
push esi
push dword [ebp + 8]
call fcn.0041a55d
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0041a5a8
push eax
push esi
push dword [ebp + 8]
call fcn.0041a55d
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0041a5a8
push eax
push esi
push dword [ebp + 8]
call fcn.0041a55d
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0041a598
out 0xd9, al
sub eax, 0x7c9d885a
invalid

Function at 0x41e5c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test esi, esi
je 0x41e660
mov edx, dword [esi]
xor eax, eax
push ebx
push edi
xor edi, edi
mov byte [edx + 0x16], al
mov edx, dword [esi]
mov byte [edx + 0x17], al
mov ecx, dword [esi]
mov byte [ecx + 0x18], al
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
mov ebx, dword [esi + 4]
test ebx, ebx
jle 0x41e614
mov esi, dword [esi]
movzx edx, byte [esi + edi]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4b5e10]
cmp edi, ebx
jl 0x41e5f7
mov esi, dword [ebp - 4]
mov ebx, dword [esi + 0xc]
xor edi, edi
test ebx, ebx
jle 0x41e63d
mov esi, dword [esi + 8]
movzx edx, byte [esi + edi]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4b5e10]
cmp edi, ebx
jl 0x41e620
mov esi, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, eax
shr edx, 8
pop edi
pop ebx
mov byte [ecx + 0x16], al
mov ecx, dword [esi]
mov byte [ecx + 0x17], dl
mov edx, eax
mov ecx, dword [esi]
shr edx, 0x10
shr eax, 0x18
mov byte [ecx + 0x18], dl
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420990
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0xcb
cmp dword [esi + 0x14], 0xca
jne 0x4209c3
mov ecx, esi
call fcn.004253a2
cmp byte [esi + 0x40], 0
je 0x4209c0
mov dword [esi + 0x14], 0xcf
mov al, 1
pop edi
pop esi
pop ebp
ret
mov dword [esi + 0x14], edi
cmp dword [esi + 0x14], edi
jne 0x420a2d
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x420a22
mov eax, dword [esi + 8]
test eax, eax
je 0x4209df
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1a0]
push esi
call dword [eax]
pop ecx
test eax, eax
je 0x420a1e
cmp eax, 2
je 0x420a22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4209d4
cmp eax, 3
je 0x420a03
cmp eax, 1
jne 0x4209d4
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4209d4
mov eax, dword [esi + 0x120]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4209d4
xor al, al
jmp 0x4209bc
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x420a4d
cmp dword [esi + 0x14], 0xcc
je 0x420a4d
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov eax, dword [esi]
call dword [eax]
pop ecx
pop edi
mov ecx, esi
pop esi
pop ebp
jmp 0x420a57
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0xcc
cmp dword [edi + 0x14], esi
je 0x420a77
mov eax, dword [edi + 0x190]
push edi
call dword [eax]
and dword [edi + 0x78], 0
pop ecx
mov dword [edi + 0x14], esi
mov eax, dword [edi + 0x190]
cmp byte [eax + 8], 0
je 0x420ae7
lea ebx, [edi + 0x78]
mov eax, dword [ebx]
jmp 0x420abe
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x420aa4
mov dword [ecx + 4], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x60]
push edi
mov dword [ecx + 8], eax
mov eax, dword [edi + 8]
call dword [eax]
pop ecx
mov eax, dword [edi + 0x194]
mov esi, dword [ebx]
push 0
push ebx
push 0
push edi
call dword [eax + 4]
mov eax, dword [ebx]
add esp, 0x10
cmp eax, esi
je 0x420afd
cmp eax, dword [edi + 0x60]
jb 0x420a8a
mov eax, dword [edi + 0x190]
push edi
call dword [eax + 4]
mov eax, dword [edi + 0x190]
push edi
call dword [eax]
and dword [ebx], 0
mov eax, dword [edi + 0x190]
pop ecx
pop ecx
cmp byte [eax + 8], 0
jne 0x420a86
xor eax, eax
cmp byte [edi + 0x41], al
setne al
add eax, 0xcd
mov dword [edi + 0x14], eax
mov al, 1
pop edi
pop esi
pop ebx
ret
xor al, al
jmp 0x420af9
Function at 0x424c2c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0xf4240
xor ebx, ebx
push 0x54
mov dword [edi + 4], ebx
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x424c65
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov ecx, dword [edi]
call dword [ecx]
pop ecx
mov dword [esi], fcn.0042428e
xor ecx, ecx
mov dword [esi + 4], fcn.004243a3
inc ecx
mov dword [esi + 8], fcn.0042443b
mov dword [esi + 0xc], fcn.004244d5
mov dword [esi + 0x10], 0x424588
mov dword [esi + 0x14], 0x4245ed
mov dword [esi + 0x18], 0x424652
mov dword [esi + 0x1c], 0x4248c3
mov dword [esi + 0x20], 0x4249ee
mov dword [esi + 0x24], fcn.00424b1c
mov dword [esi + 0x28], 0x424c03
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
dec ecx
mov dword [eax - 8], ebx
mov dword [eax], ebx
lea eax, [eax - 4]
jns 0x424cc4
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.MSVCR120.dll_getenv]
pop ecx
test eax, eax
je 0x424d2c
lea ecx, [ebp - 1]
mov byte [ebp - 1], 0x78
push ecx
lea ecx, [ebp - 8]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x424d2c
mov al, byte [ebp - 1]
cmp al, 0x6d
je 0x424d1c
cmp al, 0x4d
mov eax, dword [ebp - 8]
jne 0x424d23
imul eax, dword [ebp - 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442e91
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
jne 0x442eb2
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.00444753
xor al, al
jmp 0x442f77
push esi
call fcn.0044231d
or dword [edi + 8], 0xffffffff
xor ebx, ebx
or dword [edi + 4], 0xffffffff
mov esi, dword [sym.imp.MSVCR120.dll_fseek]
push 2
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_ftell]
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov eax, dword [ebp - 4]
add esp, 0x1c
test eax, eax
jg 0x442ef4
push ebx
push ebx
push ebx
push 0xc
jmp 0x442f24
inc eax
push eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
push esi
mov byte [esi], bl
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x442f2f
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.00444753
xor al, al
jmp 0x442f76
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, esi
mov byte [esi + edx], bl
cmp byte [esi], bl
je 0x442f58
mov dl, byte [eax]
cmp dl, 0xd
jne 0x442f50
mov byte [ecx], 0xa
inc ecx
inc eax
cmp byte [eax], 0xa
jne 0x442f54
jmp 0x442f53
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], bl
jne 0x442f3d
push dword [ebp + 0xc]
mov byte [ecx], bl
mov ecx, edi
mov eax, dword [edi]
push ebx
push esi
call dword [eax + 8]
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
xor eax, eax
cmp byte [edi + 0x2c], al
pop ecx
sete al
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4490a2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4cb0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov edx, ecx
mov dword [ebp - 0x28], edx
mov cl, byte [edx + 8]
mov byte [ebp - 0x15], cl
cmp cl, 3
je 0x44923a
mov eax, dword [edx]
push esi
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], esi
push edi
test cl, 2
je 0x449107
mov edi, dword [ebp + 8]
movzx edx, byte [edx + 9]
mov ecx, edx
push 3
movzx eax, byte [edi]
sub ecx, eax
movzx eax, byte [edi + 1]
mov dword [ebp - 0x14], ecx
mov ecx, edx
sub ecx, eax
movzx eax, byte [edi + 2]
sub edx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x28]
pop edi
jmp 0x44911a
mov eax, dword [ebp + 8]
xor edi, edi
movzx ecx, byte [edx + 9]
movzx eax, byte [eax + 3]
sub ecx, eax
inc edi
mov dword [ebp - 0x14], ecx
test byte [ebp - 0x15], 4
mov dword [ebp - 0x20], edi
je 0x449138
mov eax, dword [ebp + 8]
movzx ecx, byte [edx + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov dword [ebp + edi*4 - 0x14], ecx
inc edi
mov dword [ebp - 0x20], edi
mov eax, esi
test edi, edi
jle 0x449238
mov edx, esi
cmp dword [ebp + eax*4 - 0x14], esi
jg 0x449150
mov dword [ebp + eax*4 - 0x14], esi
jmp 0x449153
xor edx, edx
inc edx
inc eax
cmp eax, edi
jl 0x449144
test dx, dx
mov edx, dword [ebp - 0x28]
je 0x449238
movzx eax, byte [edx + 9]
dec eax
dec eax
je 0x449225
dec eax
dec eax
je 0x4491f9
sub eax, 4
je 0x4491d7
sub eax, 8
jne 0x449238
mov eax, dword [ebp - 0x1c]
imul eax, edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x449238
mov eax, esi
xor edx, edx
div dword [ebp - 0x20]
movzx esi, byte [ebx]
mov eax, pe_nt_image_headers32
imul si, ax
movzx eax, byte [ebx + 1]
mov cx, word [ebp + edx*4 - 0x14]
add si, ax
shr si, cl
movzx ecx, si
mov esi, dword [ebp - 0x24]
mov eax, ecx
shr eax, 8
inc esi
mov byte [ebx], al
lea ebx, [ebx + 2]
mov byte [ebx - 1], cl
mov dword [ebp - 0x24], esi
cmp esi, dword [ebp - 0x1c]
jb 0x449197
jmp 0x449238
mov eax, dword [ebp - 0x1c]
imul eax, edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x449238
xor edx, edx
mov eax, esi
div edi
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [ebx], cl
inc ebx
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x4491e4
jmp 0x449238
mov esi, dword [edx + 4]
mov edx, 0xf0
mov ecx, dword [ebp - 0x14]
sar edx, cl
push 0xf
pop eax
and dl, 0xf0
sar eax, cl
or dl, al
test esi, esi
je 0x449238
mov al, byte [ebx]
mov cl, byte [ebp - 0x14]
shr al, cl
and al, dl
mov byte [ebx], al
inc ebx
dec esi
jne 0x449214
jmp 0x449238
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x449238
mov al, byte [ebx]
shr al, 1
and al, 0x55
mov byte [ebx], al
inc ebx
dec ecx
jne 0x44922c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004971ea
mov esp, ebp
pop ebp
ret
Function at 0x4553e1
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0xff
mov esi, dword [edi]
mov eax, esi
xor eax, dword [ebp + 8]
and eax, ebx
mov ecx, dword [edi + 8]
shr esi, 8
mov eax, dword [edx + eax*4]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [edx + eax*4]
mov eax, dword [ebp + 8]
mov dword [edi + 8], ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x455465
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4cb0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4cc89c]
push ebx
mov ebx, dword [ebp + 0xc]
inc eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], ebx
mov dword [0x4cc89c], eax
mov dword [ebp - 0x24], edi
cmp eax, 1
jne 0x4554b4
push edi
call dword [sym.imp.MSVCR120.dll__time64]
xor eax, 0xbb40e64e
push eax
call dword [sym.imp.MSVCR120.dll_srand]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28]
mov edx, esi
push ebx
call fcn.0045542c
mov dword [ebp - 0x30], edi
mov edi, ebx
pop ecx
call dword [sym.imp.MSVCR120.dll_rand]
mov edx, eax
mov ecx, esi
sar edx, 7
and edx, 0xff
mov dword [ebp - 0x1c], edx
call fcn.004553c4
push edx
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.004553e1
mov eax, dword [ebp - 0x1c]
pop ecx
mov ecx, dword [ebp - 0x30]
xor al, bl
mov byte [ebp + ecx - 0x10], al
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, 0xa
jl 0x4554c5
mov ecx, dword [ebp - 0x28]
mov edx, esi
push edi
call fcn.0045542c
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
pop ecx
lea ecx, [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov ecx, esi
call fcn.004553c4
movzx ecx, byte [ebp + edi - 0x10]
mov ebx, eax
push ecx
mov ecx, esi
call fcn.004553e1
mov eax, dword [ebp - 0x1c]
pop ecx
mov cl, byte [ebp + edi - 0x10]
add eax, edi
xor cl, bl
inc edi
mov byte [ebp + eax - 0x10], cl
cmp edi, 0xa
jl 0x45551f
mov ecx, esi
call fcn.004553c4
mov esi, dword [ebp + 0x10]
mov ebx, esi
shr ebx, 0x10
movzx ecx, bl
push ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004553e1
mov eax, dword [ebp - 0x18]
xor bl, byte [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov byte [eax + edi], bl
call fcn.004553c4
mov ecx, dword [ebp - 0x20]
mov ebx, eax
shr esi, 0x18
push esi
call fcn.004553e1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, esi
xor al, bl
mov byte [ecx + edi + 1], al
lea eax, [edi + 2]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004971ea
mov esp, ebp
pop ebp
ret
Function at 0x456e4d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x100ac], ebx
je 0x456ead
cmp dword [edi + 0x7c], ebx
jbe 0x456ead
mov eax, 0xffffff5c
lea ecx, [edi + 0x100d0]
sub eax, edi
lea esi, [edi + 0xa4]
mov dword [ebp - 4], eax
call fcn.004553c4
movzx ecx, byte [esi]
mov ebx, eax
mov edx, dword [edi + 0x100dc]
push ecx
lea ecx, [edi + 0x100d0]
call fcn.004553e1
xor byte [esi], bl
inc esi
mov eax, dword [ebp - 4]
add eax, esi
pop ecx
lea ecx, [edi + 0x100d0]
cmp eax, dword [edi + 0x7c]
jb 0x456e7b
xor ebx, ebx
mov esi, dword [edi + 0x7c]
lea eax, [edi + 0xa4]
push esi
push eax
push dword [edi + 0x2c]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
mov dword [edi + 0x7c], ebx
or ecx, 0xffffffff
mov edx, ebx
cmp eax, esi
cmovne edx, ecx
add dword [edi + 0x100c0], esi
mov ecx, dword [edi + 0x48]
mov eax, edx
adc dword [edi + 0x100c4], ebx
add dword [edi + 0x100c8], ecx
mov dword [edi + 0x48], ebx
adc dword [edi + 0x100cc], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45afec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov esi, dword [edi + 0x3c]
add eax, 0xfffffefa
sub esi, dword [edi + 0x74]
add eax, ebx
sub esi, dword [edi + 0x6c]
mov dword [ebp - 0xc], esi
cmp dword [edi + 0x6c], eax
jb 0x45b088
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call dword [sym.imp.MSVCR120.dll_memcpy]
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
mov esi, ecx
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov dword [ebp - 8], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x45b041
mov edi, dword [ebp - 4]
mov esi, ebx
mov eax, dword [edi + 0x40]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x45b066
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
add esi, ebx
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x45b152
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
add edx, dword [edi + 0x38]
push esi
call fcn.0045ad9c
add dword [edi + 0x74], eax
cmp dword [edi + 0x74], 3
pop ecx
jb 0x45b0cc
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp dword [edi + 0x74], 0x106
jae 0x45b0e1
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x45affd
mov ecx, dword [edi + 0x16c0]
mov ebx, dword [edi + 0x3c]
cmp ecx, ebx
jae 0x45b152
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x74]
cmp ecx, esi
jae 0x45b121
mov eax, 0x102
sub ebx, esi
cmp ebx, eax
cmova ebx, eax
mov eax, dword [edi + 0x38]
push ebx
add eax, esi
push 0
push eax
call dword [sym.imp.MSVCR120.dll_memset]
lea eax, [ebx + esi]
add esp, 0xc
mov dword [edi + 0x16c0], eax
jmp 0x45b152
lea eax, [esi + 0x102]
cmp ecx, eax
jae 0x45b152
mov eax, dword [edi + 0x38]
sub esi, ecx
sub ebx, ecx
add esi, 0x102
cmp esi, ebx
cmova esi, ebx
add eax, ecx
push esi
push 0
push eax
call dword [sym.imp.MSVCR120.dll_memset]
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ea4c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, edi
xor edx, edx
mov esi, edi
div dword [ebx + 8]
mov eax, dword [ebp + 0xc]
sub esi, edx
sub edi, esi
add eax, edi
push eax
push esi
push 0
push 6
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea ecx, [ebx + 0x18]
lea eax, [ebp + 8]
add edi, esi
push eax
mov dword [ebp + 8], edi
call fcn.0045e7c5
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45fa94
Capabilities:
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x499061
call fcn.00497232
mov eax, dword [0x4cb014]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea ecx, [ebp + 8]
push 0
inc ebx
push 0x3a
mov byte [ebp - 4], bl
call fcn.0045fcee
mov esi, eax
test esi, esi
js 0x45fac7
add esi, 2
push esi
push 0x5c
lea ecx, [ebp + 8]
call fcn.0045fcee
mov esi, eax
test esi, esi
jns 0x45fae6
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0045f6df
jmp 0x45fb0b
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.004609a6
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0045f6df
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0045e73f
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45fb27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45fb3c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x45fb3c
cmp esi, 0xffffffff
je 0x45fb3e
inc esi
jmp 0x45fac7
xor ebx, ebx
lea ecx, [ebp - 0x10]
call fcn.0045e73f
lea ecx, [ebp + 8]
call fcn.0045e73f
mov eax, ebx
call fcn.00497200
ret
Function at 0x4604a9
Capabilities:
Read .ini file

Disassembly:
push 0x810
mov eax, 0x499257
call fcn.00497265
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x81c], eax
xor eax, eax
mov dword [ebp - 0x814], ecx
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ecx
push eax
mov dword [ebp - 4], ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x810]
push esi
push 0x400
push eax
push 0x49f854
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x818]
lea eax, [ebp - 0x810]
push eax
mov ecx, esi
call fcn.0045f630
and dword [ebp - 4], 0
mov ecx, esi
push 0x49fa40
push 0x49fa44
mov dword [ebp - 0x814], 1
call fcn.00460db6
mov eax, esi
call fcn.00497214
ret

Function at 0x460b92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x460c23
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push esi
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x460c1a
test esi, esi
je 0x460c1a
mov ecx, dword [edi]
test ecx, ecx
je 0x460c15
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x460c0b
cmp eax, 2
jbe 0x460bfd
cmp eax, 7
jne 0x460c0b
test cl, 1
jne 0x460c0b
shr ecx, 1
cmp ecx, 1
jb 0x460c0b
cmp word [esi + ecx*2 - 2], bx
jne 0x460c0b
cmp ecx, 1
jbe 0x460c1a
cmp word [esi + ecx*2 - 4], bx
jmp 0x460c09
test cl, 1
jne 0x460c0b
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x460c1a
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x460c1c
xor eax, eax
mov word [esi], ax
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.0045ea34
int3