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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042804a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042804a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x430766
cmp word [ecx], dx
je 0x430766
mov eax, dword [0x43c20c]
push edi
dec eax
push eax
push 0x43c0f8
call fcn.0043068e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4307d9
cmp word [eax], dx
je 0x4307d9
mov eax, dword [edi]
test eax, eax
je 0x43078a
cmp word [eax], dx
je 0x43078a
lea eax, [ebp - 0x10]
push eax
call fcn.00430071
jmp 0x430793
lea eax, [ebp - 0x10]
push eax
call fcn.0043010c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x430803
mov eax, dword [0x43c0f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x43bde8
call fcn.0043068e
add esp, 0xc
test al, al
je 0x430803
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4307ce
cmp word [eax], di
je 0x4307ce
lea eax, [ebp - 0x10]
push eax
call fcn.00430071
pop ecx
jmp 0x430805
lea eax, [ebp - 0x10]
push eax
call fcn.0043010c
jmp 0x4307cb
mov eax, dword [edi]
test eax, eax
je 0x4307f0
cmp word [eax], dx
je 0x4307f0
lea eax, [ebp - 0x10]
push eax
call fcn.00430026
pop ecx
jmp 0x430803
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4308ce
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00430513
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4308ce
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4308ce
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4308ce
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43085b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042927a
test ebx, ebx
je 0x4308c9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042927a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4308ce
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4308ce
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00422f43
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4308d0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d2d
leave
ret
Function at 0x435690
Capabilities:
Parse pe header

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

Disassembly:
push 0
push 2
push 0x402062
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x10c
je 0x401108
ret
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x401126
xor eax, eax
mov dword [0x402093], eax
add esp, 4
ret

Function at 0x40112f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x4011a4
mov edx, edi
add edx, dword [edi + 0x3c]
cmp word [edx], 0x4550
jne 0x4011a4
mov dword [ebp - 0xc], edx
mov eax, dword [edx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
cmp ecx, dword [edx + 0x18]
jge 0x4011a4
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + ecx*4]
add ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call fcn.0040137e
cmp eax, 1
je 0x401184
inc ecx
jmp 0x401162
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp + 8]
xor ebx, ebx
mov bx, word [eax + ecx*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 8]
mov eax, dword [eax + ebx*4]
add eax, dword [ebp + 8]
jmp 0x4011a6
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4011ac
Capabilities:
Execute anti-debugging instructions
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [0x402010], 0x400000
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadIconA]
sub esp, 8
mov dword [0x402014], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
sub esp, 8
mov dword [0x402018], eax
mov eax, section..data
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterClassA]
sub esp, 4
test eax, eax
je 0x4012e0
call fcn.004010ec
mov dword [esp], 0
mov dword [esp + 4], 0x402044
mov dword [esp + 8], 0x402049
mov dword [esp + 0xc], 0x80000
mov dword [esp + 0x10], pe_nt_image_headers32
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], 0xc0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [0x402010]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.user32.dll_CreateWindowExA]
sub esp, 0x30
test eax, eax
je 0x4012e0
mov dword [esp], 0x402028
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.user32.dll_GetMessageA]
sub esp, 0x10
cmp eax, 1
jb 0x4012e0
jne 0x401271
push 0
push 0
push 0x402084
call dword [0x40423e]
mov dword [0x40208f], eax
push 0x402064
push dword [0x40208f]
call fcn.0040112f
push 0x402028
call eax
sub esp, 4
mov dword [esp], 0x402028
call dword [sym.imp.user32.dll_DispatchMessageA]
sub esp, 4
jmp 0x401271
leave
mov eax, dword [0x402030]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x401308
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x402097
mov ecx, dword [0x4012ef]
dec ecx
mov bl, byte [0x4012f3]
rdtsc
push eax
mov bh, byte [esi]
mov byte [edi], bh
inc edi
inc esi
inc esi
push eax
mov al, byte [esi]
stosb byte es:[edi], al
add byte [edi - 1], bl
pop eax
loop 0x401325
rdtsc
pop edx
sub eax, edx
sub esp, 0x18
push 0
push dword [0x40204f]
call dword [sym.imp.Msacm32.dll_acmStreamOpen]
pop edx
sub edx, eax
push edx
push 0
push 2
push 0x402062
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
pop edx
sub edx, eax
ret
Function at 0x42d010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x42d032
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42d039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42d028
mov eax, 1
add ebx, ebx
jne 0x42d04b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42d040
jne 0x42d05c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d040
xor ecx, ecx
sub eax, 3
jb 0x42d070
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42d0e2
mov ebp, eax
add ebx, ebx
jne 0x42d07b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42d088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42d0ac
inc ecx
add ebx, ebx
jne 0x42d098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42d08d
jne 0x42d0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42d08d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42d0cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42d0bd
jmp 0x42d02e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42d0cc
add edi, ecx
jmp 0x42d02e
pop esi
mov edi, esi
mov ecx, 0xd86
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42d0ea
cmp byte [edi], 0xd
jne 0x42d0ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42d0ef
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x42d15e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34500]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x345a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42d11c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x345a4]
or eax, eax
je 0x42d158
mov dword [ebx], eax
add ebx, 4
jmp 0x42d139
call dword [esi + 0x345b4]
mov ebp, dword [esi + 0x345a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42d192
sub esp, 0xffffff80
jmp 0x407afc
Function at 0x425880
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4259d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x425820]
call fcn.0040d280
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x425850]
call fcn.0040d280
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00425d48
test al, al
jne 0x4258f6
mov dl, 1
mov eax, esi
call fcn.00425cb0
test al, al
je 0x425980
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00426510
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042e2c0
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ae9c
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42597b
test byte [ebp - 0x14], 1
je 0x425946
or bl, 1
test byte [ebp - 0x14], 2
je 0x42594f
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x425958
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x42596c
dec eax
je 0x425971
dec eax
je 0x425976
dec eax
jne 0x425998
or bl, 0x10
jmp 0x425998
or bl, 4
jmp 0x425998
or bl, 8
jmp 0x425998
call fcn.0042f4e8
push esi
mov ecx, dword [0x714d7c]
mov dl, 1
mov eax, dword [0x41e12c]
call fcn.0042cf6c
call fcn.004098d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4259db
lea eax, [ebp - 0x1c]
call fcn.0040a1dc
lea eax, [ebp - 0xc]
mov edx, dword [0x425850]
call fcn.0040d3a4
lea eax, [ebp - 8]
mov edx, dword [0x425820]
call fcn.0040d3a4
lea eax, [ebp - 4]
call fcn.0040a1dc
pop eax
jmp eax

Function at 0x425cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040ae9c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425d1a
test ah, 4
je 0x425d13
test bl, bl
jne 0x425cd8
mov al, 1
jmp 0x425d41
test al, 0x10
je 0x425ce0
xor eax, eax
jmp 0x425d41
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425d04
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x425d41
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x425d41
test al, 0x10
sete al
jmp 0x425d41
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x425d3b
cmp ebx, 3
je 0x425d3b
cmp ebx, 0x7b
je 0x425d3b
mov eax, esi
call fcn.00425c70
test al, al
jne 0x425d3f
xor eax, eax
jmp 0x425d41
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x42c8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x42c9e7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042c6c8
mov esi, eax
mov eax, dword [0x714bbc]
cmp byte [eax], 0
je 0x42c98d
mov eax, dword [0x714598]
call fcn.00407dec
call fcn.00407408
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42c890]
call fcn.0040d280
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42ca00
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42c9c9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7144b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x71863c]
call fcn.0040db1c
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c9ee
lea eax, [ebp - 4]
mov edx, dword [0x42c890]
call fcn.0040d3a4
pop eax
jmp eax
Function at 0x444cdc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x444cf3
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x444ce3
mov eax, ecx
pop ebx
ret

Function at 0x4544e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x4544f4
add esp, 0xfffffff0
call fcn.00408a44
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x44e57c]
call fcn.0046e978
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x45351c]
call fcn.0046ffd4
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x45351c]
call fcn.0046ffd4
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x454549
call fcn.00408a9c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0b9c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4b0bdf
cmp byte [ebx + 0x11], 0
jne 0x4b0bdf
cmp byte [ebx + 0x24], 0
jne 0x4b0bdf
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b0bf6
mov ecx, dword [0x714ab4]
mov dl, 1
mov eax, dword [0x481410]
call fcn.0042cad0
call fcn.004098d4
pop ebx
ret
mov ecx, dword [0x714ab4]
mov dl, 1
mov eax, dword [0x481410]
call fcn.0042cad0
call fcn.004098d4
pop ebx
ret

Function at 0x4b11c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b120e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b0b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b1227
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b3aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x71b914
cmp dword [edi], 0
jne 0x4b3b1c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x71b910]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x70bcf4
mov ecx, 2
call fcn.004077e0
mov edx, 0x4b3a78
lea eax, [esi + 5]
call fcn.004b3a98
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004b3a98
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4b3af1
mov dword [0x71b910], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4bdea8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4bdefa
test eax, edx
je 0x4bdefd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4bdebd
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x4bdee3
add ecx, 4
js 0x4bded3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4bdee0
movzx eax, byte [eax + ecx]
movzx edx, byte [edx + ecx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4bdf09
test edx, edx
jne 0x4bdeb0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4c0990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x4c0a2c
push 0
mov eax, ebx
call fcn.0040ae9c
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
jne 0x4c0a07
mov ebx, esi
test ebx, ebx
je 0x4c09d9
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.0040ae9c
push eax
push 1
push 0
mov eax, edi
call fcn.0040ae9c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
test ebx, ebx
je 0x4c0a22
mov ecx, dword [0x7145f4]
mov dl, 1
mov eax, dword [0x4bf6bc]
call fcn.0042cad0
call fcn.004098d4
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4c8f00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
and eax, 0xff
shr ecx, 8
inc edx
xor ecx, dword [eax*4 + 0x70d590]
cmp edx, 4
mov eax, ecx
jl 0x4c8f08
pop ebp
ret

Function at 0x4c8f24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
inc edx
shr eax, 0x18
and eax, 0xff
shl ecx, 8
xor ecx, dword [eax*4 + 0x70d990]
cmp edx, 4
mov eax, ecx
jl 0x4c8f2c
pop ebp
ret
Function at 0x4e6528
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4e65e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004e64b8
test al, al
je 0x4e65c2
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a374
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4e65c2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ae9c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040ae9c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040aefc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4e657b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e65e9
lea eax, [ebp - 0x2c]
call fcn.0040a1dc
lea eax, [ebp - 4]
call fcn.0040a1dc
pop eax
jmp eax

Function at 0x4e68c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040ae9c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004e6230
test al, al
jne 0x4e6925
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x714f4c]
mov dl, 1
mov eax, dword [0x4e4f28]
call fcn.0042cb0c
call fcn.004098d4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004e615c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4efa4c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4efa52
ret
Function at 0x4f676c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, esi
call fcn.004f65fc
lea edx, [ebp - 0x22]
mov ecx, 0x16
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x22], 0x9ac6cdd7
jne 0x4f67ae
lea eax, [ebp - 0x22]
call fcn.004f3680
cmp ax, word [ebp - 0xe]
je 0x4f67b3
call fcn.004f2618
sub dword [ebp - 8], 0x16
mov eax, dword [ebp - 8]
call fcn.00407294
mov dword [ebp - 0xc], eax
mov ebx, dword [esi + 0x30]
xor eax, eax
push ebp
push 0x4f68dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 0x30]
movzx edx, word [ebp - 0x14]
mov word [eax + 0x18], dx
cmp word [ebp - 0x14], 0
jne 0x4f67f9
mov word [ebp - 0x14], 0x60
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x18]
movsx edx, word [ebp - 0x1c]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0xc], eax
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x16]
movsx edx, word [ebp - 0x1a]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x34], 8
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4f686a
call fcn.004f2618
lea eax, [ebp - 0xa0]
push eax
push 0x6c
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_GetEnhMetaFileHeader
mov dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_DeleteEnhMetaFile
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4f68be
call fcn.004f2618
mov byte [esi + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f68e4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004072b0
pop eax
jmp eax