joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015a180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.10062f00
mov eax, dword [0x101d9154]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x54]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x1015a345
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x48], eax
test esi, esi
jne 0x1015a2d5
push dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.10159b90
mov ebx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x1015a270
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x1015a32c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10062ee4
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10062ee4
add esp, 0x2c
ret
Function at 0x10164880
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.10062f00
mov eax, dword [0x101d9154]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [ecx]
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x10164989
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push edi
lea esi, [edx + 2]
lea edi, [ebx + 3]
sub ebx, edx
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.10164c40
movzx ecx, byte [edi - 3]
lea edi, [edi + 8]
movzx eax, byte [esp + 0x28]
lea esi, [esi + 8]
xor ecx, eax
add esp, 0xc
movzx eax, byte [esp + 0x1d]
mov byte [esi - 0xa], cl
mov byte [esp + 0x14], cl
movzx ecx, byte [edi - 0xa]
xor ecx, eax
movzx eax, byte [esp + 0x1e]
mov byte [esi - 9], cl
mov byte [esp + 0x15], cl
movzx ecx, byte [esi + ebx - 8]
xor ecx, eax
movzx eax, byte [esp + 0x1f]
mov byte [esi - 8], cl
mov byte [esp + 0x16], cl
movzx ecx, byte [edi - 8]
xor ecx, eax
movzx eax, byte [esp + 0x20]
mov byte [esi - 7], cl
mov byte [esp + 0x17], cl
movzx ecx, byte [edi - 7]
xor ecx, eax
movzx eax, byte [esp + 0x21]
mov byte [esi - 6], cl
mov byte [esp + 0x18], cl
movzx ecx, byte [edi - 6]
xor ecx, eax
movzx eax, byte [esp + 0x22]
mov byte [esi - 5], cl
mov byte [esp + 0x19], cl
movzx ecx, byte [edi - 5]
xor ecx, eax
movzx eax, byte [esp + 0x23]
mov byte [esi - 4], cl
mov byte [esp + 0x1a], cl
movzx ecx, byte [edi - 4]
xor ecx, eax
mov byte [esi - 3], cl
mov byte [esp + 0x1b], cl
sub ebp, 1
jne 0x101648d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop ebp
xor ecx, esp
call fcn.10062ee4
add esp, 0x18
ret
Function at 0x10166c50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.10062f00
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
je 0x10166d45
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
cmp edx, 0x20
jb 0x10166d1e
push ebp
lea eax, [ebx - 1]
lea ebp, [esi - 1]
add eax, edx
add ebp, edx
cmp esi, eax
ja 0x10166c97
cmp ebp, ebx
jae 0x10166d1d
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x10166ca4
cmp ebp, edi
jae 0x10166d1d
mov eax, edx
lea ebp, [esi + 0x10]
mov edx, edi
and eax, 0xffffffe0
sub edx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov eax, ebx
mov edx, esi
sub edx, ebx
mov dword [esp + 0x14], edx
mov edx, edi
mov edi, dword [esp + 0x14]
sub edx, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
nop word [eax + eax]
movups xmm0, xmmword [eax]
add ecx, 0x20
lea eax, [eax + 0x20]
lea ebp, [ebp + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ebp - 0x20]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [ebp - 0x20], xmm1
cmp ecx, dword [esp + 0x1c]
jb 0x10166ce0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
pop ebp
cmp ecx, edx
jae 0x10166d42
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
nop dword [eax + eax]
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x10166d30
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x401560
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.5248BB9E_5A69_419b_B466_1D314078C6A9
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401596
mov eax, dword [ebp + 8]
mov dword [eax + 0xc0], 1
mov esi, 1
test edi, edi
je 0x4015a1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, 1
jne 0x4015c2
mov ecx, dword [0x5a01a4]
push esi
push esi
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x4015d0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543bbb
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00521f30
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x118]
call fcn.00401ea0
push 1
push 0x5718c4
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0
call fcn.00401b30
push 0xa
push str.update.txt
lea ecx, [ebp - 0x118]
call fcn.00401b30
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40169d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret
Function at 0x4016c0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 4], eax
call section..text
push 0x103
lea eax, [ebp - 0x217]
push 0
push eax
mov byte [ebp - 0x218], 0
call fcn.00521f30
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040c910
lea eax, [ebp - 0x218]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401707
mov ecx, dword [str.InitOcx.ocx]
mov edx, dword [0x5718d8]
mov dword [eax], ecx
mov ecx, dword [0x5718dc]
mov dword [eax + 4], edx
mov dl, byte [0x5718e0]
mov dword [eax + 8], ecx
push 0x103
mov byte [eax + 0xc], dl
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00521f30
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401768
mov edx, dword [str.InitOcx.ocx]
mov ecx, dword [0x5718d8]
mov dword [eax], edx
mov edx, dword [0x5718dc]
mov dword [eax + 4], ecx
mov cl, byte [0x5718e0]
mov dword [eax + 8], edx
push 0
lea edx, [ebp - 0x110]
mov byte [eax + 0xc], cl
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x110]
call fcn.004098c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret

Function at 0x401c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c4b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401c82
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401c7e
jmp 0x401c70
cmp esi, eax
jae 0x401c82
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401c70
cmp esi, eax
jb 0x401c89
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5443c6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00521f30
add esp, 0xc
lea edi, [ebp - 0x11c]
call fcn.0040c3a0
lea esi, [ebp - 0x114]
mov dword [ebp - 4], 0
call fcn.0040c580
push 0x5722cf
lea ecx, [ebp - 0x118]
call fcn.00401ea0
push 0xc
push str.explorer.exe
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00401b30
push 2
push 0x571f68
lea ecx, [ebp - 0x118]
call fcn.00401b30
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404314
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x118]
call fcn.00401b30
mov edx, dword [ebp - 0x118]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404365
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x404378
push eax
call fcn.0051c5c1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret
Function at 0x404420
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5960c0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x98], ebx
jne 0x40447e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x5a02b4]
cmp eax, 0x3e8
jb 0x40453d
mov edi, dword [esi + 0x20]
call fcn.00414570
mov dword [esi + 0x98], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x20]
call fcn.00414600
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 1
push 0x20f
push 0x2bc
push ecx
push edx
mov ecx, esi
call fcn.00429e74
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 1
push 0x20e
push 0x2bc
push eax
push ecx
mov ecx, 0x5a0f18
call fcn.00429e74
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push eax
call fcn.0042d093
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esi + 0x20]
push 3
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esi + 0x98], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5a02b4], eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret
Function at 0x405df0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov edi, 0xc
mov eax, str.iexplore.exe
mov dword [ebp - 4], esp
mov byte [esi], 0
call fcn.00405480
call fcn.00405f00
mov ecx, dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ecx
push 0
push 0x42b
call ebx
test eax, eax
je 0x405e4a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [ebp - 4]
push edx
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov edi, 0xa
mov eax, str.msedge.exe
mov dword [ebp - 8], esp
mov byte [esi], 0
call fcn.00405480
call fcn.00405f00
mov eax, dword [ebp - 4]
push eax
push 0
push 0x42b
call ebx
test eax, eax
je 0x405e95
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 4]
push ecx
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov eax, str.chrome.exe
mov dword [ebp - 8], esp
mov byte [esi], 0
call fcn.00405480
call fcn.00405f00
mov edx, dword [ebp - 4]
push edx
push 0
push 0x42b
call ebx
test eax, eax
je 0x405edb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405f00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
push 0x3f
lea ecx, [ebp - 0x47]
push 0
push ecx
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x48], 0
call fcn.00521f30
mov eax, dword [ebp + 8]
mov edi, 0x10
add esp, 0xc
cmp dword [ebp + 0x1c], edi
jae 0x405f43
lea eax, [ebp + 8]
push eax
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x128
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.00521f30
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x170], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405f84
cmp dword [ebp + 0x1c], edi
jmp 0x405fda
lea edx, [ebp - 0x170]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x405fa1
cmp dword [ebp + 0x1c], edi
jb 0x405fe8
mov eax, dword [ebp + 8]
push eax
jmp 0x405fe0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea ecx, [ecx]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x14c]
push edx
call ebx
test eax, eax
je 0x405ffd
lea eax, [ebp - 0x170]
push eax
push esi
call edi
test eax, eax
jne 0x405fb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x405fe8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041aff6
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 0x174]
push esi
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x406024
mov eax, dword [ebp + 8]
push eax
call fcn.0041aff6
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0051ac68
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4061b0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x543b46
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5960c0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
mov eax, dword [0x5960c0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], bl
call fcn.00521f30
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.004219a6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406236
push 0x80004005
call fcn.00402210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x138], ebx
call fcn.004219a6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406267
push 0x80004005
call fcn.00402210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0xa
push str.IBKCN_html
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 1
call fcn.00402150
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push 0x5723f8
push eax
call fcn.004055d0
mov esi, dword [esp + 0x28]
push esi
call fcn.00411ad0
add esp, 0x14
cmp eax, 1
je 0x4062d4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4062fe
push esi
call fcn.00411ad0
add esp, 4
cmp eax, 1
jne 0x4062fe
push esi
push 0x100
push edi
mov dword [esp + 0x1c], 1
call fcn.0051bd53
add esp, 0xc
push 0x5718c4
push 0x100
push edi
call fcn.0051bdb2
add esp, 0xc
lea eax, [esi - 0x10]
mov byte [esp + 0x138], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406321
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40634c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret
Function at 0x406920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5434b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5960c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
push eax
push 0x2001f
xor edi, edi
push edi
push ecx
push SysReAllocString
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x406981
push 0x58a844
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
call fcn.005222e2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x4069bb
push 0x58a844
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call fcn.005222e2
mov eax, 0x4069b8
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4069c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4069e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543490
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5960c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor edi, edi
push edi
push ecx
push SysReAllocString
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x406a4c
push 0x58a844
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
call fcn.005222e2
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x406a8a
push 0x58a844
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], esi
call fcn.005222e2
mov eax, 0x406a87
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x406a98
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8