joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
mov eax, 0xaaaaaaab
mul ebp
shr edx, 1
push edi
lea eax, [edx + edx*2]
xor edi, edi
test eax, eax
jbe 0x40108f
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea edi, [edx + edx*2]
push ebx
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x519a40]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
movzx eax, byte [eax + ebx + 0x519a40]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
shr ebx, 6
movzx eax, byte [ebx + eax*4 + 0x519a40]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x519a40]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x401030
pop ebx
cmp edi, ebp
jae 0x4010df
movzx eax, byte [esi]
inc edi
cmp edi, ebp
jae 0x4010a1
movzx esi, byte [esi + 1]
jmp 0x4010a3
xor esi, esi
mov edx, eax
shr edx, 2
mov dl, byte [edx + 0x519a40]
mov byte [ecx], dl
and eax, 3
mov edx, esi
shl eax, 4
shr edx, 4
mov al, byte [eax + edx + 0x519a40]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, ebp
jae 0x4010d6
and esi, 0xf
mov al, byte [esi*4 + 0x519a40]
jmp 0x4010d8
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [esp + 0x18]
pop edi
mov byte [ecx], 0
sub ecx, dword [esp + 0x10]
pop esi
mov dword [edx], ecx
mov al, 1
pop ebp
ret 0xc

Function at 0x403ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403ac9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403b04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403b00
lea ebx, [ebx]
cmp esi, eax
jae 0x403b04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403af0
cmp esi, eax
jb 0x403b0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404580
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
push 0x51b0d4
lea eax, [esp + 8]
push str.D:webloglog_init.txt
push eax
mov dword [esp + 0x10], 0
call fcn.00453360
mov edi, dword [esp + 0x10]
add esp, 0xc
test edi, edi
je 0x4045e3
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045b0
push edi
sub eax, edx
push eax
push 1
push esi
call fcn.00453400
mov ecx, dword [esp + 0x14]
push ecx
push 2
push 1
push 0x51b0f0
call fcn.00453400
mov edx, dword [esp + 0x24]
push edx
call fcn.004538e0
add esp, 0x24
pop edi
pop ecx
ret
Function at 0x404a50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x218
mov eax, dword [0x52be84]
xor eax, esp
mov dword [esp + 0x214], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.0045a690
lea ecx, [esp + 0xc]
push ecx
call fcn.0041cdb0
push 0x104
lea edx, [esp + 0x11c]
push 0
push edx
call fcn.0045a690
lea eax, [esp + 0x1c]
push 0x2e
push eax
call fcn.00454400
lea ecx, [esp + 0x24]
sub eax, ecx
push eax
mov edx, ecx
push edx
lea eax, [esp + 0x134]
push 0x104
push eax
call fcn.00454430
push str.GEControl.ini
lea ecx, [esp + 0x140]
push 0x104
push ecx
call fcn.00454820
add esp, 0x40
lea edx, [esp + 0x108]
push edx
push 0x12c
push str.PressButtonOverTime
push str.GEControl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x214]
xor ecx, esp
mov dword [esi], eax
call fcn.004520a0
add esp, 0x218
ret
Function at 0x407480
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x4e3ff9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52be84]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x30], edi
cmp ebp, edi
je 0x40762f
call fcn.0041b6b0
neg eax
sbb eax, eax
and eax, 4
push edi
add eax, 0x26
push eax
push ebp
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x407616
push ebp
lea ecx, [esp + 0x18]
call fcn.00403d30
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], edi
call fcn.00415500
push 0x51b82c
mov byte [esp + 0x2c], 1
mov ebx, 1
push eax
mov dword [esp + 0x38], ebx
call fcn.004157e0
add esp, 8
test al, al
jne 0x407541
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00415500
push 0x51b830
push eax
lea ebx, [edi + 3]
call fcn.004157e0
add esp, 8
mov byte [esp + 0x30], 0
test al, al
je 0x407546
mov byte [esp + 0x30], 1
test bl, 2
je 0x407557
lea ecx, [esp + 0x18]
and ebx, 0xfffffffd
call fcn.00403df0
mov dword [esp + 0x28], edi
test bl, 1
je 0x407569
lea ecx, [esp + 0x1c]
call fcn.00403df0
cmp byte [esp + 0x30], 0
je 0x4075e0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
dec eax
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00415580
mov byte [esp + 0x28], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4075d2
cmp dword [esi + 0xc], edi
jl 0x4075c4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4075c4
push eax
call fcn.00403e80
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00403fe0
add edi, 0x10
mov dword [esp + 0x14], edi
xor edi, edi
jmp 0x4075d2
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404330
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00403df0
mov eax, dword [esp + 0x14]
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x4075ff
push edi
lea ecx, [esp + 0x18]
call fcn.00404140
mov eax, dword [esp + 0x14]
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407603
lea ecx, [esp + 0x14]
call fcn.00403df0
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x419a10
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push 0x1d
xor ebx, ebx
call fcn.00452f10
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x419a3b
push str.No_enough_memory._n
call fcn.00454c90
add esp, 4
push ebx
call fcn.004586f0
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
push ebp
mov dword [eax + 0x14], ecx
push esi
mov dword [eax + 0x18], ecx
mov byte [eax + 0x1c], cl
mov dword [esp + 0x10], eax
push edi
jmp 0x419a60
xor edx, edx
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x10], edx
lea ebx, [ebx]
cmp ebx, 0x14
jge 0x419a89
mov ecx, dword [esp + 0x20]
movzx ecx, byte [ebx + ecx]
shl edi, 8
inc ebp
or edi, ecx
inc ebx
cmp ebp, 3
jl 0x419a70
mov ecx, 3
sub ecx, ebp
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl edi, cl
mov esi, 0x12
lea ecx, [ecx]
cmp ebp, edx
jge 0x419aab
mov byte [esp + edx + 0x10], 0x40
jmp 0x419abb
mov eax, edi
mov ecx, esi
sar eax, cl
and al, 0x3f
mov byte [esp + edx + 0x10], al
mov eax, dword [esp + 0x14]
movsx ecx, byte [esp + edx + 0x10]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
sub esi, 6
inc edx
cmp esi, 0xfffffffa
mov dword [esp + 0x14], eax
jg 0x419aa0
cmp ebx, 0x14
jl 0x419a60
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0xc
ret

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

Disassembly:
sub esp, 0x10
mov eax, dword [0x52be84]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
mov edi, ecx
test byte [edi], 0x80
jne 0x419b1c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004520a0
add esp, 0x10
ret
mov al, byte [edi + 1]
test al, al
jns 0x419b08
movsx esi, al
and esi, 0x7f
cmp esi, 0x7e
jne 0x419b5c
movsx esi, byte [edi + 2]
movsx ecx, byte [edi + 3]
mov eax, dword [edi + 4]
and esi, 0xff
and ecx, 0xff
shl esi, 8
or esi, ecx
lea edx, [esi + 1]
push edx
mov dword [esp + 0x10], eax
call fcn.00452f10
add edi, 8
jmp 0x419bb1
cmp esi, 0x7f
jne 0x419b9e
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0xa]
mov dl, byte [edi + 8]
mov byte [esp + 0x10], cl
movzx ecx, byte [edi + 6]
mov dword [esp + 0xc], eax
mov al, byte [edi + 7]
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov esi, dword [esp + 0x10]
lea edx, [esi + 1]
push edx
call fcn.00452f10
mov ebx, eax
mov byte [esi + ebx], 0
add edi, 0xe
jmp 0x419bb7
mov eax, dword [edi + 2]
lea ecx, [esi + 1]
push ecx
mov dword [esp + 0x10], eax
call fcn.00452f10
add edi, 6
mov ebx, eax
mov byte [ebx + esi], 0
push esi
push edi
push ebx
call fcn.00461820
add esp, 0x10
xor eax, eax
test esi, esi
jbe 0x419be1
jmp 0x419bd0
mov edx, eax
and edx, 3
mov cl, byte [esp + edx + 0xc]
xor byte [ebx + eax], cl
inc eax
cmp eax, esi
jb 0x419bd0
push ebx
push esi
push str.data__d_:_s_n
call fcn.00454c90
mov ecx, dword [esp + 0x24]
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004520a0
add esp, 0x10
ret
Function at 0x41adf0
Capabilities:
Create tcp socket
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1cc
mov eax, dword [0x52be84]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esp + 0x40]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41ae44
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ae5d
push str.socket_error__
call fcn.00454c90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.004520a0
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 2
push 0x4f48
mov word [esp + 0x34], cx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x34]
push edx
xor ebx, ebx
push edi
mov word [esp + 0x3e], ax
mov dword [esp + 0x40], ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41ae9d
push str.bind_error__
call fcn.00454c90
add esp, 4
push 5
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x41aed1
push str.listen_error__
call fcn.00454c90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.004520a0
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push 0x41ad50
push ebx
push ebx
mov dword [esp + 0x28], ebx
call fcn.00458e10
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
add esp, 0x18
push 0x64
push 0x533490
push 0x67
push esi
call edi
push 0x64
push 0x533428
push 0x6d
push esi
call edi
mov eax, esi
call fcn.0041afa0
push 0x6d
push esi
mov dword [0x53348c], esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
call edi
test eax, eax
je 0x41af78
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
jmp 0x41af40
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x41af67
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x41af40
mov ecx, dword [esp + 0x1d4]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004520a0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41b570
Capabilities:
Get file version info

Disassembly:
sub esp, 0x114
mov eax, dword [0x52be84]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push 0x34
mov eax, 0x4e4
lea ebp, [ebx + 4]
push 0
push ebp
mov word [ebx + 0x3e], ax
call fcn.0045a690
add esp, 0xc
push 0x51b84c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x41b5c5
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004520a0
add esp, 0x114
ret
push 0x104
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x41b5ad
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x41b62a
push esi
call fcn.0041fe30
add esp, 4
push eax
push esi
push 0
lea ecx, [esp + 0x20]
push ecx
mov dword [ebx + 0x38], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41b62a
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x51b82c
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41b643
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004520a0
add esp, 0x114
ret
mov esi, dword [esp + 8]
push edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
mov ecx, 0xd
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x38]
push str.VarFileInfoTranslation
push ecx
call sub.VERSION.dll_VerQueryValueA
pop edi
test eax, eax
je 0x41b67e
cmp dword [esp + 0xc], 4
jb 0x41b67e
mov edx, dword [esp + 8]
mov eax, dword [edx]
mov dword [ebx + 0x3c], eax
mov ecx, dword [esp + 0x118]
xor eax, eax
cmp dword [ebp], 0xfeef04bd
pop esi
sete al
pop ebp
xor ecx, esp
call fcn.004520a0
add esp, 0x114
ret
Function at 0x41c4c0
Capabilities:
Persist via run registry key

Disassembly:
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push edi
lea ecx, [esi + 0x14]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41c4d0
sub eax, edi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call fcn.00404330
lea eax, [esi + 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
pop edi
mov eax, ecx
ret

Function at 0x41c520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x52be84]
xor eax, esp
mov dword [esp + 0x108], eax
cmp dword [esi + 0x10], 0
jne 0x41c54e
push 0x1fd
push str..RegistryRegistry.cpp
call fcn.00431b40
test eax, eax
je 0x41c54e
int3
lea eax, [esp]
push eax
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push str.HaiKeyUser_00002
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test eax, eax
jne 0x41c5c0
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c590
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.00404330
mov eax, 1
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004520a0
add esp, 0x10c
ret
mov ecx, dword [esp + 0x108]
xor ecx, esp
xor eax, eax
call fcn.004520a0
add esp, 0x10c
ret
Function at 0x41df80
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x52be84]
xor eax, esp
mov dword [esp], eax
push 0x40
push 0
push 0x5379e0
call fcn.0045a690
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x41dfcd
mov ecx, dword [esp + 8]
sub ecx, 0x5379e0
lea esp, [esp]
mov edx, eax
and edx, 0x7f
mov dl, byte [edx + str.lgjbhkjkjljiwiryuwpooqirurymnbvcz]
xor dl, byte [ecx + eax + 0x5379e0]
inc eax
cmp eax, esi
mov byte [eax + 0x5379df], dl
jl 0x41dfb0
mov ecx, dword [esp]
xor ecx, esp
mov eax, 0x5379e0
call fcn.004520a0
pop ecx
ret
Function at 0x42cfc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x42d045
call fcn.00433460
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42d045
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42d01e
xor eax, eax
jmp 0x42d076
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42d045
push 0x1047
push 0x4e9d80
call fcn.00431b40
test eax, eax
je 0x42d045
int3
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0042d080
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x42d073
cmp dword [ebp - 0xc], 0
je 0x42d073
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00421b60
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4315f0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2058
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x52be84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x431648
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x50], 0
jne 0x431648
push pe_nt_image_headers32
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcwinocc.cpp
call fcn.00431b40
test eax, eax
je 0x431648
int3
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x50], 0
jne 0x43166a
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4316cd
lea ecx, [ebp - 0x10]
call fcn.00403850
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x50]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
mov edx, dword [edx]
mov eax, dword [edx + 0x94]
call eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403fc0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004203a0
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403df0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4520a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x52be84]
jne 0x4520aa
repz ret
jmp fcn.00460990
Function at 0x458490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4584c8
push str._path___NULL_
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.004520b0
add esp, 0x14
cmp eax, 1
jne 0x4584c8
int3
cmp dword [ebp - 8], 0
jne 0x458509
call fcn.0045cd30
mov dword [eax], 0
call fcn.0045cd00
mov dword [eax], 0x16
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str._path___NULL_
call fcn.004528a0
add esp, 0x14
mov eax, 0x16
jmp 0x4585e1
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x458539
push str.__amode___6____0_
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.004520b0
add esp, 0x14
cmp eax, 1
jne 0x458539
int3
cmp dword [ebp - 0xc], 0
jne 0x458577
call fcn.0045cd30
mov dword [eax], 0
call fcn.0045cd00
mov dword [eax], 0x16
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str.__amode___6____0_
call fcn.004528a0
add esp, 0x14
mov eax, 0x16
jmp 0x4585e1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4585a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045cc50
add esp, 4
call fcn.0045cd00
mov eax, dword [eax]
jmp 0x4585e1
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x4585ae
xor eax, eax
jmp 0x4585e1
mov eax, dword [ebp - 4]
and eax, 1
je 0x4585df
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x4585df
call fcn.0045cd30
mov dword [eax], 5
call fcn.0045cd00
mov dword [eax], 0xd
call fcn.0045cd00
mov eax, dword [eax]
jmp 0x4585e1
xor eax, eax
mov esp, ebp
pop ebp
ret