joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4946c0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407224
ret

Function at 0x49bef4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x49befc
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x49c0ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x49c104
mov eax, esi
call fcn.00499d80
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404268
lea ecx, [ebp - 0x10]
mov edx, 0x49c118
mov eax, esi
call fcn.00499d80
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404268
lea ecx, [ebp - 0x14]
mov edx, 0x49c130
mov eax, esi
call fcn.00499d80
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404268
lea ecx, [ebp - 0x18]
mov edx, 0x49c14c
mov eax, esi
call fcn.00499d80
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404268
lea ecx, [ebp - 0x1c]
mov edx, 0x49c168
mov eax, esi
call fcn.00499d80
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404268
lea ecx, [ebp - 0x24]
mov edx, 0x49c180
mov eax, esi
call fcn.00499d80
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004087b4
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408cfc
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x49c198
mov eax, esi
call fcn.00499d80
mov eax, dword [ebp - 0x28]
call fcn.0047f848
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x49c1a8
mov eax, esi
call fcn.00499d80
mov eax, dword [ebp - 0x2c]
call fcn.0047f848
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x49c1c0
mov eax, esi
call fcn.00499d80
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408cfc
inc eax
je 0x49c091
lea ecx, [ebp - 0x34]
mov edx, 0x49c1c0
mov eax, esi
call fcn.00499d80
mov eax, dword [ebp - 0x34]
call fcn.00408cc0
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a268
fstp qword [ebp - 0x3c]
wait
call fcn.0040a6a8
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x49c0ac
lea ecx, [ebp - 0x40]
mov edx, 0x49c1c0
mov eax, esi
call fcn.00499d80
mov eax, dword [ebp - 0x40]
call fcn.0047f848
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x49c1d0
mov eax, esi
call fcn.00499d80
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c0f5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404238
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404238
ret
Function at 0x4a2e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a2eda
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a2e70
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047e4b4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047e0b4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2ee1
lea eax, [ebp - 4]
call fcn.00404214
ret

Function at 0x4a69d8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x418d9c]
call fcn.00404bcc
xor eax, eax
push ebp
push 0x4a6b1c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ed39c], 0
jne 0x4a6a2b
mov ecx, dword [0x4f13d4]
mov dl, 1
mov eax, dword [0x407878]
call fcn.0040c618
call fcn.00403bb0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402dc8
mov eax, ebx
call fcn.00404a7c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4a6b2c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405d78
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404a8c
test eax, eax
jle 0x4a6ac3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a6abc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040449c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404484
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408724
test eax, eax
jne 0x4a6abc
mov ebx, 0x15
jmp 0x4a6ac8
mov ebx, 0x10
jmp 0x4a6ac8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4ed39c]
call fcn.004a6930
mov eax, dword [ebp - 8]
call fcn.004a6930
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405d90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6b23
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404238
lea eax, [ebp - 0x10]
mov edx, dword [0x418d9c]
call fcn.00404c9c
ret
Function at 0x4b2f64
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b2fee
xor edx, edx
push ebp
push 0x4b2fcf
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b2fee
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b4210
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x4b42d8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x4b42dc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x4b42d8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b42cf
xor eax, eax
push ebp
push 0x4b42c8
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b42cf
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5f6c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4b5f9b
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4b601a
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004b4828
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4b5fe8
mov cx, word [esp]
sub cx, si
jmp 0x4b5fea
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4b5fd1
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4b6010
mov cx, word [esp]
sub cx, si
jmp 0x4b6012
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4b5ff9
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4b6077
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004b5c40
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4b6062
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4b6077
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4b5f76
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4bc5ac
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4f3090
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4bc5ce
shr eax, 1
xor eax, 0xedb88320
jmp 0x4bc5d0
shr eax, 1
dec edx
jne 0x4bc5bc
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4bc5b5
mov byte [0x4f3490], 1
pop esi
pop ebx
ret

Function at 0x4bc5ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4f3490], 0
jne 0x4bc603
call fcn.004bc5ac
mov eax, edi
dec eax
test eax, eax
jl 0x4bc62c
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4f3090]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4bc60d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4bf08c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x4bf0bd
dec al
je 0x4bf0f9
dec al
je 0x4bf13d
dec al
je 0x4bf1a8
jmp 0x4bf232
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4bf232
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4bf0cd
jmp 0x4bf232
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4bf232
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4bf109
jmp 0x4bf232
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4bf232
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4bf16b
xor ebp, ebp
jmp 0x4bf17c
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4bf185
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4bf14d
jmp 0x4bf232
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4bf232
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4bf200
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004bc634
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4bf1bc
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c422c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4c427d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4c4264
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4c4254
jmp 0x4c427d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4c4265
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1d38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046c4
xor eax, eax
push ebp
push 0x4d1e5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xce6d
mov dword [ebp - 0x14], 0x58bf
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404268
mov eax, dword [ebp - 4]
call fcn.004044d4
mov esi, eax
test esi, esi
jle 0x4d1dc3
mov ebx, 1
mov eax, edi
call fcn.0040472c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [edi]
movzx eax, byte [eax + ebx - 1]
add eax, dword [ebp - 8]
imul dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
inc ebx
dec esi
jne 0x4d1d92
lea eax, [ebp - 4]
mov edx, dword [edi]
call fcn.004042ac
mov eax, edi
call fcn.00404214
mov eax, dword [ebp - 4]
call fcn.004044d4
mov esi, eax
test esi, esi
jle 0x4d1e38
mov ebx, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
mov dword [ebp - 0xc], eax
push dword [edi]
mov eax, dword [ebp - 0xc]
mov ecx, 0x1a
cdq
idiv ecx
mov edx, eax
add dl, 0x41
lea eax, [ebp - 0x18]
call fcn.004043fc
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, 0x1a
cdq
idiv ecx
add dl, 0x41
lea eax, [ebp - 0x1c]
call fcn.004043fc
push dword [ebp - 0x1c]
mov eax, edi
mov edx, 3
call fcn.00404594
inc ebx
dec esi
jne 0x4d1de7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1e62
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404238
lea eax, [ebp - 4]
call fcn.00404214
ret
Function at 0x4d1e6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046c4
xor eax, eax
push ebp
push 0x4d1f70
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xce6d
mov dword [ebp - 0x14], 0x58bf
mov eax, edi
call fcn.00404214
mov eax, dword [ebp - 4]
call fcn.004044d4
mov esi, eax
sar esi, 1
jns 0x4d1ebe
adc esi, 0
test esi, esi
jle 0x4d1f03
mov ebx, 1
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 4]
movzx edx, byte [edx + eax - 2]
sub edx, 0x41
imul edx, edx, 0x1a
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
sub eax, 0x41
add dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
mov dl, byte [ebp - 0xc]
call fcn.004043fc
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.004044dc
inc ebx
dec esi
jne 0x4d1ec7
lea eax, [ebp - 4]
mov edx, dword [edi]
call fcn.004042ac
mov eax, dword [ebp - 4]
call fcn.004044d4
mov esi, eax
test esi, esi
jle 0x4d1f52
mov ebx, 1
mov eax, edi
call fcn.0040472c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
add eax, dword [ebp - 8]
imul dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
inc ebx
dec esi
jne 0x4d1f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1f77
lea eax, [ebp - 0x18]
call fcn.00404214
lea eax, [ebp - 4]
call fcn.00404214
ret
Function at 0x4056d0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x436b7b
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x405762
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40575b
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 4]
push eax
push 0x448670
push ecx
mov dword [esp + 0x120], 0
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
add esp, 0xc
mov ecx, esi
push edx
push eax
call fcn.00405800
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4057e7
xor eax, eax
jmp 0x4057e7
push edi
mov edi, dword [esp + 0x124]
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4057cf
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4057a2
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc]
push eax
push 0
push 0x44866c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4057c3
mov eax, dword [0x44adc4]
lea edx, [esp + 0xc]
mov ecx, eax
inc eax
push ecx
push str.C:BC_ld
push edx
mov dword [0x44adc4], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi]
mov ecx, dword [esp + 0x120]
push eax
push ecx
call dword [esi + 8]
xor edx, edx
pop edi
test eax, eax
setg dl
mov eax, edx
mov ecx, dword [esp + 0x10c]
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 8
Function at 0x405800
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x436b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [esp + 0x118]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov dword [esp + 0x114], 0
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::TrimLeft
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4058b0
mov eax, dword [esi + 8]
test eax, eax
je 0x405895
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ecx, esi
push eax
call fcn.004056d0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x405948
lea ecx, [esp + 4]
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x405948
push edi
mov edi, dword [esp + 0x124]
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40591d
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4058f0
lea edx, [esp + 0xc]
lea eax, [esp + 0xc]
push edx
push 0
push 0x44866c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405911
mov eax, dword [0x44adc8]
mov ecx, eax
inc eax
push ecx
lea ecx, [esp + 0x10]
push str.C:BC_ld
push ecx
mov dword [0x44adc8], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0xc]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi]
push eax
mov eax, dword [esp + 0xc]
push eax
call dword [esi + 0xc]
xor ecx, ecx
mov dword [esp + 0x118], 0xffffffff
test eax, eax
setg cl
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
mov ecx, dword [esp + 0x10c]
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 8

Function at 0x409320
Capabilities:
Read file via mapping

Disassembly:
push esi
push str.CZ_LD_MFSwapFile
push 0x20000
push 0
push 4
push 0
mov esi, ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x1b0], eax
jne 0x409356
push 0xffffffffffffffff
push eax
push 0x1a9
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409367
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x1b0]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
jne 0x409393
push 0xffffffffffffffff
push eax
push 0x1aa
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
pop esi
ret
push edi
mov ecx, 0x8000
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
mov eax, 1
pop esi
ret
Function at 0x4093b0
Capabilities:
Read file via mapping

Disassembly:
push esi
push str.CZ_SMIT_MFSwapFile
push 0x400
push 0
push 4
push 0
mov esi, ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x1b4], eax
jne 0x4093e6
push 0xffffffffffffffff
push eax
push 0x1a9
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4093f7
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x1b4]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
jne 0x409423
push 0xffffffffffffffff
push eax
push 0x1aa
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
pop esi
ret
push edi
mov ecx, 0x100
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
mov eax, 1
pop esi
ret

Function at 0x409560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x437117
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x94]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x94]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push ecx
mov dword [esp + 0x24], 1
call edi
mov ebp, dword [sym.imp.MSVCRT.dll__strdup]
push str.General
call ebp
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esi + 0x94], eax
mov eax, dword [esp + 0x30]
push edx
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [esi + 0x94]
mov byte [esp + 0x20], 2
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call ebp
add esp, 8
mov dword [esi + 0x94], eax
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0042c6ee
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10