joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456af0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x456b03
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.0045a8b0
add esp, 4
test eax, eax
jne 0x456b15
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x456b8c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x456bbe
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x456b78
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x456b48
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x456bbe
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x456bbe
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x456ba7
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x456bd0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x456bfa
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x456bfa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x458140
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004679ac
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4581aa
push esi
lea edi, [eax + 0x400]
call fcn.004679d5
push edi
call fcn.004679ac
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45817a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4581c6
push ecx
push esi
call fcn.00459f40
add esp, 8
mov ebx, eax
push esi
call fcn.004679d5
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4588b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x458942
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x458934
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45892c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4588f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x459bb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x459bce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x459bc3
pop esi
ret

Function at 0x46a37b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46a3bd
call fcn.0046d6ce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46a3bd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46a3b4
xor eax, eax
jmp 0x46a3c5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046a3cb
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b359
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46ef78
call fcn.0045d190
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0046d6ce
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x46b398
call fcn.0046d6ce
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46b3a6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46b3b4
or eax, 0xffffffff
jmp 0x46b49c
mov ecx, esi
call fcn.0046b2cf
mov dword [ebp - 0x14], eax
call fcn.004689c1
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x46b3eb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46b3eb
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00468975
push dword [ebp - 0x14]
call fcn.004684a7
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0046b067
cmp eax, edi
je 0x46b45e
test byte [esi + 0x24], 0x10
je 0x46b42c
push 4
mov ecx, esi
pop ebx
call fcn.00467ea7
test ah, 1
je 0x46b424
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0046a4cd
cmp dword [esi + 0x1c], edi
je 0x46b45e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00467edb
jmp 0x46b45e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x46b472
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x46b48b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x46b48b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0046b309
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46d240
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46d26e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d28c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d1a6
jmp 0x46d28c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d28c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d1a6
test edi, edi
mov eax, edi
jne 0x46d276
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ae0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.85C17BC9_B280_4180_8D67_70688704E47D
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 0x401b14
mov eax, dword [esp + 0xc]
mov dword [eax + 0xac], 1
mov esi, 1
test edi, edi
je 0x401b1f
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, 1
jne 0x401b3f
mov ecx, dword [0x4babdc]
push esi
push esi
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, esi
pop esi
ret 4
pop edi
mov eax, esi
pop esi
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x48e99b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x4afa68]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00457ee0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 8]
call fcn.004031c0
push 1
push 0x49ac28
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0
call fcn.00402b80
push 0xa
push str.update.txt
lea ecx, [esp + 0xc]
call fcn.00402b80
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004512da
add esp, 0x118
ret
Function at 0x402cb0
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 0x402cc9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402d00
lea ebx, [ebx]
cmp esi, eax
jae 0x402d04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402cf0
cmp esi, eax
jb 0x402d0a
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 0x404050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x404060
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x404070
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404960
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x13c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4049da
xor eax, eax
cmp ecx, ebp
je 0x4049c2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4049e8
cmp ecx, ebp
je 0x404a7b
push ecx
jmp 0x404a75
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x404a4a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00404960
mov ebx, eax
cmp ebx, ebp
jne 0x404a98
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x404a10
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404a5d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404b40
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404a7b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004512da
add esp, 0x128
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404aa7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404a7d
Function at 0x40a7b0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x48fc30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4afa68]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push 0x4babb8
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x10]
call fcn.0044628c
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.00446333
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00446562
push 0
lea edx, [esp + 0x14]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.setProgressBarPb
call fcn.004031c0
mov edi, 0x4b7838
call fcn.00421090
push 0x4babb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x34]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.0040bac0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00407d10
add esp, 4
lea edi, [esp + 0xc]
call fcn.0041dc90
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a881
push eax
call fcn.0045329f
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.00446469
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret

Function at 0x40af70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f5e6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
mov eax, dword [0x4afa68]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.00457ee0
add esp, 0xc
lea edi, [esp + 0x10]
call fcn.0041dc90
lea esi, [esp + 0x14]
mov dword [esp + 0x124], 0
call fcn.0041de70
push 0x49c377
lea ecx, [esp + 0x10]
call fcn.004031c0
push 0xc
push str.explorer.exe
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 1
call fcn.00402b80
push 2
push 0x49c000
lea ecx, [esp + 0x14]
call fcn.00402b80
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b020
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402b80
mov edx, dword [esp + 0xc]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [esp + 0x124], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b06d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b07e
push eax
call fcn.0045329f
add esp, 4
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004512da
add esp, 0x11c
ret
Function at 0x40bfe0
Capabilities:
Terminate process

Disassembly:
push esi
xor esi, esi
cmp dword [ebx + 0x800], esi
jbe 0x40c01a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
mov eax, dword [ebx + esi*4]
push eax
push 0
push 1
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 0x800]
jb 0x40bff3
pop edi
pop ebp
xor eax, eax
pop esi
ret

Function at 0x40c020
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48e956
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4afa68]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
mov eax, dword [0x4afa68]
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.00457ee0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.004384a4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c0a6
push 0x80004005
call fcn.00405cc0
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.004384a4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c0d7
push 0x80004005
call fcn.00405cc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0xd
push str.zjrcbank_html
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 1
call fcn.004030b0
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push 0x49c3d8
push eax
call fcn.0040bc00
mov esi, dword [esp + 0x28]
push esi
call fcn.00421d10
add esp, 0x14
cmp eax, 1
je 0x40c144
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40c16e
push esi
call fcn.00421d10
add esp, 4
cmp eax, 1
jne 0x40c16e
push esi
push 0x100
push edi
mov dword [esp + 0x1c], 1
call fcn.00451b4e
add esp, 0xc
push 0x49ac28
push 0x100
push edi
call fcn.00451bb6
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 0x40c191
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 0x40c1bc
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.004512da
mov esp, ebp
pop ebp
ret
Function at 0x40d960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48da90
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4afa68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
xor edi, edi
push edi
push eax
push closesocket
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x40d9c9
push 0x4a74e4
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
call fcn.004581eb
mov ecx, dword [ebp - 0x18]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x40da00
push 0x4a74e4
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], esi
call fcn.004581eb
mov eax, 0x40d9fd
ret
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40da0e
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004512da
mov esp, ebp
pop ebp
ret 8

Function at 0x40da30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48da70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4afa68]
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 str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones2
push closesocket
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 0x40daa0
push 0x4a74e4
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
call fcn.004581eb
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push ecx
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x40dade
push 0x4a74e4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], esi
call fcn.004581eb
mov eax, 0x40dadb
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40daec
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 0x40dd00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
mov dword [esp + 0x10], 0x3c
call fcn.00457ee0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], ecx
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40dd9a
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dd71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
add esp, 0x3c
ret 0xc
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
cmp dword [esp + 0x44], 0x103
jne 0x40dddf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
push ecx
call esi
push 0x1f4
call edi
cmp dword [esp + 0x48], 0x103
je 0x40ddc1
pop edi
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ddff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
add esp, 0x3c
ret 0xc