joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c0c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004467d4
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00446864
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00446864
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x462809
lea ecx, [ebp - 0x200]
push ecx
call fcn.004467d4
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00446864
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0044d2ac
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x44c1d9
push esi
call fcn.00446864
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00446864
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004456b8
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x44c1b0
xor eax, eax
jmp 0x44c260
push esi
call fcn.00446864
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00446864
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00446730
add esp, 0xc
jmp 0x44c219
mov edi, dword [ebx + 0x24]
push edi
call fcn.00446864
pop ecx
push eax
push esi
call fcn.00446864
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00446864
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004456d8
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x44c219
xor eax, eax
jmp 0x44c260
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004467d4
add esp, 8
push 0x46280b
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004467d4
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004467d4
add esp, 8
push 0x46280d
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004467d4
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44f9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x44fa52
call fcn.0044f9a0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00446864
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00446864
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44fab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x462eec], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x44fb8a
cmp dword [0x462ee8], 0
jne 0x44fb8a
cmp dword [0x463060], 0
je 0x44fb44
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0044f8a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44fb2a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0044f8a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44fb2a
lea ebx, [ebp - 0x84]
jmp 0x44fb2b
inc ebx
call fcn.0044fa6c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x44fbc5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x462ef0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00446864
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x462ef3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x44fbc5
cmp dword [0x462ee8], 0
je 0x44fba4
cmp dword [0x462ee8], 0xffffffff
je 0x44fbc5
push esi
call dword [0x462ee8]
pop ecx
mov eax, dword [0x462eec]
test eax, eax
je 0x44fbc5
cmp dword [0x462eec], 0xffffffff
je 0x44fbc5
cmp byte [eax], 0
je 0x44fbc5
push esi
push eax
call fcn.0044f9f0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450358
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push esi
call fcn.00446864
pop ecx
inc eax
push eax
call fcn.004456b8
pop ecx
mov ebx, eax
test eax, eax
jne 0x450385
mov dword [0x462ee4], 8
or eax, 0xffffffff
jmp 0x4503fd
xor eax, eax
push esi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0x3d
push ebx
call fcn.0044f73c
add esp, 8
mov esi, eax
test eax, eax
jne 0x4503cf
mov dword [0x462ee4], 0x13
push ebx
call fcn.004456c8
pop ecx
or eax, 0xffffffff
jmp 0x4503fd
mov byte [esi], 0
cmp byte [esi + 1], 0
jne 0x4503dc
xor edx, edx
jmp 0x4503df
lea edx, [esi + 1]
push edx
push ebx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4503f2
call fcn.00448c04
mov esi, eax
jmp 0x4503f4
xor esi, esi
push ebx
call fcn.004456c8
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x450438
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4f2d08], 0
jne 0x4504b9
cmp dword [0x4f2d2c], 0
jne 0x450468
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4f2d2c], eax
test eax, eax
jne 0x450468
push str.GetEnvironmentStrings_failed
call fcn.0044fbdc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4f2d2c]
jmp 0x45047c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00446864
pop ecx
mov edi, eax
test eax, eax
jne 0x450474
lea edi, [ebp + 1]
push edi
call fcn.004456b8
pop ecx
mov ebx, eax
mov dword [0x4f2d0c], ebx
test ebx, ebx
jne 0x4504a6
xor eax, eax
jmp 0x45057c
push edi
mov edx, dword [0x4f2d2c]
push edx
push ebx
call fcn.004466c0
add esp, 0xc
jmp 0x4504d9
xor esi, esi
mov ebx, dword [0x4f2d08]
jmp 0x4504d3
push eax
call fcn.00446864
pop ecx
test eax, eax
jne 0x4504cf
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4504c3
lea ebx, [esi + 4]
push 4
mov dword [0x4f2d10], ebx
inc ebx
push ebx
call fcn.0044521c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4504fc
xor eax, eax
jmp 0x45057c
cmp dword [0x4f2d08], 0
jne 0x45052d
xor esi, esi
mov ebx, dword [0x4f2d0c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x45051e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00446864
pop ecx
mov edi, eax
test eax, eax
jne 0x450514
jmp 0x45055e
xor esi, esi
mov ebx, dword [0x4f2d08]
mov eax, dword [esp]
mov edi, eax
jmp 0x450558
push eax
call fcn.00446864
pop ecx
test eax, eax
je 0x45054d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x450551
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45053c
mov eax, dword [0x4f2d08]
test eax, eax
je 0x45056e
push eax
call fcn.004456c8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4f2d08], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4509f4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x450a7a
mov eax, dword [0x4f2d5c]
inc dword [0x4f2d5c]
test eax, eax
jne 0x450a7a
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4f2d2c], eax
mov edx, dword [ebp + 0x10]
mov dword [0x454087], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.00448644
pop ecx
cmp dword [0x462f50], 0
je 0x450a65
call fcn.004508ac
mov ebx, eax
test eax, eax
je 0x450a65
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x450a65
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x450a7a
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x462f50], eax
call fcn.004508b4
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.00450b88
mov ebx, eax
test edi, edi
jne 0x450ae9
test edi, edi
jne 0x450aba
dec dword [0x4f2d5c]
jne 0x450aba
cmp dword [0x4f2d2c], 0
je 0x450aba
mov eax, dword [0x4f2d2c]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x4f2d2c], edx
cmp dword [0x4f2d5c], 0
jne 0x450ae9
cmp dword [0x462f50], 0
jne 0x450ae9
cmp dword [0x462f40], 0
je 0x450adb
call dword [0x462f40]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.004508b4
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x3008aeeb
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x3008be58
call fcn.3008b35f
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3009e214
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x3008ac8a
cmp eax, esi
jne 0x3008ac7d
xor esi, esi
inc esi
mov ebx, esi
jmp 0x3008ac8d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3008ac64
xor esi, esi
inc esi
mov eax, dword [0x3009e210]
cmp eax, esi
jne 0x3008aca0
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3008accf
mov eax, dword [0x3009e210]
test eax, eax
jne 0x3008acc9
mov dword [0x3009e210], esi
push 0x3000179c
push 0x30001790
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x3008accf
jmp 0x3008adf7
mov dword [0x3009d778], esi
mov eax, dword [0x3009e210]
cmp eax, esi
jne 0x3008acf3
push 0x3000178c
push 0x30001784
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3009e210], 2
test ebx, ebx
jne 0x3008acff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3009e224], 0
je 0x3008ad23
push 0x3009e224
call fcn.3008b2e7
pop ecx
test eax, eax
je 0x3008ad23
push 0
push 2
push 0
call dword [0x3009e224]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3008ad7f
test al, al
je 0x3008ad3d
cmp dword [ebp - 0x1c], 0
jne 0x3008ad7f
mov al, byte [esi]
test al, al
je 0x3008ad4d
cmp al, 0x20
ja 0x3008ad4d
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3008ad3d
test byte [ebp - 0x3c], 1
je 0x3008ad59
movzx eax, word [ebp - 0x38]
jmp 0x3008ad5c
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x3009d774], eax
cmp dword [0x3009d768], 0
jne 0x3008add3
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x3008ad8e
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x3008ada1
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x3008ad2a
cmp dword [0x3009d778], 0
jne 0x3008ade2
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3009d774]
jmp 0x3008ae03
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3008b3a4
ret
call fcn.30138000
jmp 0x3008ac2a

Function at 0x3008b2a5
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [ecx + eax + 0x18]
jbe 0x3008b2e1
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x3008b2d7
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x3008b2e3
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x3008b2c7
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x404de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404e07
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f35
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404f0f
test eax, eax
jne 0x404e38
cmp dword [0x4085d4], 1
je 0x404f0f
cmp edx, 0xfc
je 0x404f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.00405720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403300
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.00403300
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405697
add esp, 0x2c
pop edi
jmp 0x404f35
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40ab7e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 8
call fcn.004169dc
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x1002a2d0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
jmp 0x67c0c3
add eax, 0xd3bf9da0
or dword [eax - 0x30f708ab], eax
fimul word [edi + edx]
push eax
insd dword es:[edi], dx
inc esp
cmc
out dx, eax
inc ecx
push edi
or eax, 0x59f268ab
dec eax
mov dword [edi], edi
jne 0x67c0dd
out dx, eax
inc edi
push ebx
sti
aaa
out 0xe5, eax
in al, 0x88
jg 0x67c0fa
nop
jo 0x67c121
mov ecx, 0x203fef9f
lea esi, [edi + ebp*8 + 0x1522aad4]
adc ah, byte [edi]
inc edi
ret
stosb byte es:[edi], al
and dl, byte [0xc3472712]
test bl, 0x8b
clc
invalid
aas
xor edi, dword [esi]
adc cl, dh
out 0x34, eax
push ebx
sub ch, byte [esi + 0xc]
sub dh, dh
pushal
mov al, byte [0x94370b]
mov edx, 0x4d8589db
or esi, dword [edi]
xchg esp, eax
add byte [edx + 0x4d8589db], bh
sbb al, 0x2f
push ds
and ebx, dword [ecx]
cld
sbb al, 0xaf
mov esp, 0x94580970
call ebp
jge 0x67c112
push esi
jb 0x67c15a
pop es
aas
or al, byte [ebx + 0x4e480296]
inc esp
inc esp
xchg esp, eax
sahf
and dword [edx + 0x3e9eefdf], ebp
push edx
mov ebx, 0xd032405f
mov ecx, 0x9ce24880
dec eax
loop 0x67c0f9
xchg ebx, eax
sahf
cdq
fcmovnbe st(0), st(5)
push ecx
popal
test eax, 0x812db72b
ret
Function at 0x419de4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x419e16
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x419e76
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x419e4d
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x419f24
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x419fc0
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x419f4f
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret
Function at 0x43f4d4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x43f5e0
test eax, eax
je 0x43f5e0
push esi
push edi
mov ecx, 0x10
mov esi, 0x10063fe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x43f5c7
lea edi, [eax + 4]
jmp 0x43f52b
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x43f540
mov dword [ebp - 4], 2
jmp 0x43f561
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x43f557
mov dword [ebp - 4], 1
jmp 0x43f561
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x43f5d7
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x43f59a
mov byte [ecx], 0x3d
jmp 0x43f5a6
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x43f5b1
mov byte [ecx], 0x3d
jmp 0x43f5b7
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x43f528
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0x41d4a4
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.PageMargin
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
leave
ret

Function at 0x402e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0x10
test eax, eax
je 0x402e8b
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0x41d4a4
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.PageMargin
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x402eb8
mov dword [0x41d4a4], 0x6dd
mov dword [0x41d4ac], 0x6dd
mov dword [0x41d4a8], 0x589
mov dword [0x41d4b0], 0x589
leave
ret
cmp dword [ebp - 0xc], 0x10
jne 0x402e8b
jmp 0x402eb3

Function at 0x402ec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x41d444
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PreviewPages
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
leave
ret

Function at 0x402f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 4
test eax, eax
je 0x402f4b
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0x41d444
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.PreviewPages
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x402f60
mov dword [0x41d444], 1
leave
ret
cmp dword [ebp - 0xc], 4
jne 0x402f4b
mov eax, dword [0x41d444]
test eax, eax
jle 0x402f4b
cmp eax, 2
jle 0x402f55
mov dword [0x41d444], 2
leave
ret
Function at 0x403d70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [0x41d440], 1
mov dword [0x41d458], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [0x41d45c], 0
mov dword [0x41d4a0], eax
mov eax, dword [ebp + 8]
mov dword [0x41d498], 0
mov dword [0x41d49c], 0
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov ecx, 0x3f2
mov edx, 0x5a8
sub esp, 8
mov ebx, eax
xor eax, eax
cmp dword [0x41d444], 1
mov dword [esp], 6
setg al
mov edi, eax
mov eax, ebx
add edi, 0x5ab
call fcn.00401bd0
mov dword [esp], 7
mov eax, ebx
mov ecx, 0x3f9
mov edx, 0x5a9
call fcn.00401bd0
mov dword [esp], 8
mov eax, ebx
mov ecx, 0x3fa
mov edx, 0x5aa
call fcn.00401bd0
mov dword [esp], 9
mov edx, edi
mov eax, ebx
mov ecx, 0x3fb
call fcn.00401bd0
mov dword [esp], 0xa
mov eax, ebx
mov ecx, 0x3fc
mov edx, 0x5ad
call fcn.00401bd0
mov dword [esp], 0xb
mov eax, ebx
mov ecx, 0x3fd
mov edx, 0x5ae
call fcn.00401bd0
mov dword [esp], 0xc
mov ecx, 0x3e8
mov eax, ebx
mov edx, 0x5af
call fcn.00401bd0
mov edi, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x41142e
mov dword [esp], 0
call edi
mov dword [ebp - 0x7c], 0x50
sub esp, 0x30
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x78], 0x371
mov dword [ebp - 0x74], 0x140
mov dword [ebp - 0x54], 0x16
mov dword [ebp - 0x44], 0x16
mov dword [ebp - 0x58], 0x5a
mov dword [ebp - 0x50], 0x5a
mov dword [ebp - 0x38], 0x64
mov dword [ebp - 0x48], 0xd
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp + 8]
sub esp, 0x10
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7e0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50300000
mov dword [esp + 8], 0
mov dword [esp + 4], str.PrtPreview
mov dword [esp], 0
call edi
sub esp, 0x30
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret