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

Disassembly:
push 0xffffffffffffffff
push 0x438a62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, dword [esp + 0x1c]
push 0x43fa38
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.MSVCR71.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40d79b
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push ebx
mov esi, eax
call edi
push esi
call sub.MFC71.DLL_operator_new
mov ebp, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
push ebx
push 1
mov ecx, edx
and ecx, 3
push esi
push ebp
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCR71.dll_fread]
mov edi, dword [sym.imp.MSVCR71.dll_fclose]
push ebx
call edi
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esi + esi*4]
shl eax, 1
push esi
push ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], 0
call fcn.0040ad80
mov ebx, dword [esp + 0x54]
add esp, 0x44
test al, al
je 0x40d789
mov eax, dword [esp + 0x2c]
push 0x4400e0
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40d789
mov ecx, dword [esp + 0x14]
push esi
push ecx
push 1
push ebx
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call edi
add esp, 0x14
push ebp
call sub.MFC71.DLL_operator_delete
push ebx
call sub.MFC71.DLL_operator_delete
add esp, 8
pop edi
pop esi
pop ebp
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4105f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438cfc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [0x44fba0]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [esp + 0x58]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
call fcn.00410550
push str.config.ini
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x5c], 1
call fcn.004025e0
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 3
call dword [0x43c820]
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call dword [0x43c828]
lea ecx, [esp + 0x28]
mov dword [esp + 4], 1
mov byte [esp + 0x50], 0
call dword [0x43c820]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x44]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0043146e
add esp, 0x50
ret 4
Function at 0x410900
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x438d57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov eax, dword [0x44fba0]
xor eax, esp
push esi
mov esi, dword [esp + 0x180]
mov dword [esp + 0x16c], eax
lea eax, [esp + 8]
push eax
push 5
push 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
call dword [0x43cae4]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x68]
push ecx
push edx
call dword [0x43cae8]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [0x43cadc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x18]
call dword [0x43c82c]
push 0x440384
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x184], 1
call fcn.004025e0
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], 3
call dword [0x43c820]
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x4109d6
lea eax, [esp + 0x34]
push eax
call fcn.004095a0
push str.users.dat
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.004025e0
add esp, 0x10
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
mov byte [esp + 0x17c], 4
call dword [0x43c828]
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc], 1
mov byte [esp + 0x178], 3
call dword [0x43c820]
lea ecx, [esp + 0x30]
mov byte [esp + 0x178], 0
call dword [0x43c820]
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x16c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0043146e
add esp, 0x178
ret 4
Function at 0x411980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
mov eax, dword [0x44fba0]
push ebx
push esi
xor eax, ebp
push edi
mov dword [esp + 0x29c], eax
lea eax, [esp + 0x14]
push eax
push 5
xor ebx, ebx
push ebx
mov esi, ecx
call dword [0x43cae4]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x190]
push ecx
push edx
call dword [0x43cae8]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
call dword [0x43cadc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp + 8]
xor eax, eax
mov byte [esp + 0x88], bl
mov ecx, 0x40
lea edi, [esp + 0x89]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x440420
stosb byte es:[edi], al
lea eax, [esp + 0x90]
push 0x104
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x70]
call dword [0x43c82c]
lea edx, [esp + 0x190]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x2b0], ebx
call dword [0x43c82c]
push 0x440384
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x2b8], 1
call fcn.004025e0
lea ecx, [esp + 0x78]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x2c4], 2
call fcn.00402460
add esp, 0x18
push eax
lea ecx, [esi + 0x2ee4]
mov byte [esp + 0x2b0], 3
call dword [0x43c934]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2ac], 2
call dword [0x43c820]
lea ecx, [esp + 0x50]
mov byte [esp + 0x2ac], 1
call dword [0x43c820]
lea ecx, [esp + 0x34]
mov byte [esp + 0x2ac], bl
call dword [0x43c820]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x2ac], 0xffffffff
call dword [0x43c820]
mov ecx, dword [esp + 0x2a4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043146e
mov esp, ebp
pop ebp
ret 4
Function at 0x41f750
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43992c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x44fba0]
push ebx
push esi
xor eax, ebp
push edi
mov dword [esp + 0x134], eax
mov esi, ecx
call fcn.00418ee0
lea eax, [esi + 0x27ec]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [esi + 0x3504], 0x202601
mov byte [esi + 0xd60], bl
mov byte [esi + 0xd61], bl
call sub.MFC71.DLL_CWnd::SetWindowPlacement
push 5
mov ecx, esi
call sub.MFC71.DLL_CWnd::ShowWindow
lea ecx, [esi + 0x7c]
mov byte [esi + 0xc30], bl
mov byte [esi + 0xc31], bl
mov byte [esi + 0x2f10], bl
mov byte [esi + 0x2f11], bl
call fcn.00426360
mov ecx, dword [esi + 0x20]
push 0xc
push ecx
call dword [0x43cbac]
push 1
push 0x3f0
mov ecx, esi
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC71.DLL_CWnd::EnableWindow
mov ecx, esi
call fcn.00412370
push ebx
mov ecx, esi
call sub.MFC71.DLL_CWnd::UpdateData
xor eax, eax
mov ecx, 0x41
lea edi, [esi + 0x26e8]
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x20]
push 0xd
push edx
mov dword [esi + 0x3510], ebx
call dword [0x43cbac]
lea ecx, [esi + 0x30b0]
call sub.MFC71.DLL_CWnd::SetFocus
mov eax, dword [esi + 0x26cc]
cmp eax, ebx
je 0x41f844
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
push ebx
mov ecx, esi
call fcn.0041ef50
mov ecx, dword [esi + 0xd7c]
cmp ecx, ebx
je 0x41f85b
mov edx, dword [ecx]
call dword [edx + 0x24]
lea ecx, [esp + 0xc]
call dword [0x43c924]
cmp dword [esi + 0x2f14], ebx
mov dword [esp + 0x144], ebx
je 0x41f915
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0040a060
test eax, eax
je 0x41f915
xor eax, eax
mov byte [esp + 0x28], bl
mov ecx, 0x40
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x10]
jae 0x41f8b5
lea eax, [esp + 0x10]
push eax
push 0x43f96c
lea ecx, [esp + 0x30]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x28]
push edx
call dword [0x43cafc]
test eax, eax
je 0x41f915
cmp dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
jae 0x41f8eb
lea eax, [esp + 0x10]
push eax
push 2
push str.LaunchCount
push str.Network
call dword [0x43c1d8]
test eax, eax
jne 0x41f915
push 0x44106c
mov ecx, esi
call fcn.0041a220
mov ecx, esi
call fcn.0041d830
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call dword [0x43c820]
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043146e
mov esp, ebp
pop ebp
ret
Function at 0x427430
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43aa22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x30]
mov dword [esi + 0x80], edx
mov edx, dword [esi + 0x20]
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x3c]
push edx
mov dword [esp + 0x2c], 0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x88], ebp
call dword [0x43cbf0]
push eax
call sub.MFC71.DLL_CDC::FromHandle
lea ebx, [esi + 0x64]
mov ecx, ebx
mov edi, eax
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x34]
push eax
push 0
push 2
push 1
push 2
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push ebp
call dword [0x43c04c]
push eax
mov ecx, ebx
call sub.MFC71.DLL_CGdiObject::Attach
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x18b
push ecx
call dword [0x43cb90]
test eax, eax
je 0x427554
lea edx, [esp + 0x10]
push edx
call dword [0x43cb40]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x30]
lea ecx, [esp + 0x40]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x40]
push ecx
push 0
mov ecx, esi
mov byte [esp + 0x30], 1
call sub.MFC71.DLL_CListBox::GetText
mov edx, dword [edi]
push 0xc40
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
mov dword [esi + 0x54], edx
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x30]
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [0x43cbec]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x1c
Function at 0x428ef1
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
je 0x428f1c
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [esi + 4], edi
mov eax, dword [esp + 0x10]
push 0x442578
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x428f3d
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push edi
push ebx
call ebp
push ebx
call dword [sym.imp.MSVCR71.dll_ftell]
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esi + 0x98], edi
jge 0x428f73
push ebx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
push 0
push 0
push ebx
call ebp
inc edi
push edi
call sub.MFC71.DLL_operator_new
mov ebp, dword [sym.imp.MSVCR71.dll_fread]
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 4]
push 0x400
push 1
push eax
xor edi, edi
call ebp
add esp, 0x20
cmp eax, 0x400
jne 0x428fdc
lea ebx, [ebx]
mov ecx, dword [esi + 4]
push ebx
add edi, eax
push 0x400
add ecx, edi
push 1
push ecx
call ebp
add esp, 0x10
cmp eax, 0x400
je 0x428fc0
push ebx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x42b9f0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x43accc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x44fba0]
xor eax, esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0x168]
push edi
mov dword [esp + 0x158], eax
push 0x104
mov edi, ecx
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x54]
push eax
push ecx
call dword [0x43cb70]
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x31
push edx
call dword [0x43cb90]
push eax
call sub.MFC71.DLL_CGdiObject::FromHandle
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov ebx, eax
lea eax, [esp + 0x50]
push eax
call dword [0x43c0ac]
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x58]
push edx
push eax
call dword [0x43c058]
push 1
mov ecx, esi
call sub.MFC71.DLL_CDC::SetBkMode
lea ecx, [esp + 0x10]
mov ebp, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov dword [esp + 0x168], 0
call sub.MFC71.DLL_CWnd::GetWindowTextA
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 0x34
call dword [0x43cb74]
mov edx, dword [esi]
push 0x24
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x30]
push ebp
mov ecx, esi
call sub.MFC71.DLL_CDC::SetBkMode
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0043146e
add esp, 0x158
ret 4
Function at 0x42ef80
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x43ae7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x44fba0]
xor eax, esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0x168]
push edi
mov dword [esp + 0x158], eax
push 0x104
mov edi, ecx
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x54]
push eax
push ecx
call dword [0x43cb70]
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x31
push edx
call dword [0x43cb90]
push eax
call sub.MFC71.DLL_CGdiObject::FromHandle
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov ebx, eax
lea eax, [esp + 0x50]
push eax
call dword [0x43c0ac]
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x58]
push edx
push eax
call dword [0x43c058]
push 1
mov ecx, esi
call sub.MFC71.DLL_CDC::SetBkMode
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ebp, eax
mov dword [esp + 0x24], 0x34
call dword [0x43cb74]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0x168], 0
call sub.MFC71.DLL_CWnd::GetWindowTextA
mov edx, dword [esi]
push 0x20
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x30]
push ebp
mov ecx, esi
call sub.MFC71.DLL_CDC::SetBkMode
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0043146e
add esp, 0x158
ret 4
Function at 0x436cd0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
push edi
xor eax, eax
mov ecx, 0x17
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.00436830
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00436b80
add esp, 0x14
pop edi
add esp, 0x5c
ret

Function at 0x436e60
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call fcn.0043212c
mov ecx, dword [edi + 4]
push ecx
mov esi, eax
call fcn.0043212c
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
xor ebx, ebx
mov edi, eax
sub ebp, edx
lea esp, [esp]
lea eax, [ebp + ebx*4]
mov ecx, dword [esp + eax + 0x10]
push ecx
call fcn.0043212c
mov dword [esp + ebx*4 + 0x10], eax
inc ebx
cmp ebx, 4
jl 0x436e90
xor eax, eax
mov ecx, 0x10
nop
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
sub eax, 0x61c88647
lea ebx, [eax + edi]
xor edx, ebx
mov ebx, dword [esp + 0x1c]
add esi, edx
mov edx, esi
shr edx, 5
add edx, ebx
mov ebx, esi
shl ebx, 4
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
dec ecx
jne 0x436eb0
push esi
call fcn.00432126
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call fcn.00432126
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x436f20
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
push edi
push eax
call fcn.0043212c
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call fcn.0043212c
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
xor ebx, ebx
mov esi, eax
sub ebp, edx
lea esp, [esp]
lea eax, [ebp + ebx*4]
mov ecx, dword [esp + eax + 0x10]
push ecx
call fcn.0043212c
mov dword [esp + ebx*4 + 0x10], eax
inc ebx
cmp ebx, 4
jl 0x436f50
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
lea esp, [esp]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
mov ebx, esi
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
mov edx, dword [esp + 0x24]
add eax, 0x61c88647
dec edx
mov dword [esp + 0x24], edx
jne 0x436f80
push edi
call fcn.00432126
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call fcn.00432126
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40536f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4609cc
call fcn.0045962c
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x46a558
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 1
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.004054ab
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.0040122c
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 3
call fcn.0040122c
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x84], bl
mov dword [esi], 0x46a3bc
mov dword [esi + 4], 0x46a3ac
mov dword [esi + 8], 0x46a394
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416c49
Capabilities:
Copy file
Delete file
Move file
Query or enumerate registry value

Disassembly:
mov eax, 0x4625e6
call fcn.0045962c
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0xd]
mov ebx, 0x104
push edi
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x58], 0x46ab58
mov dword [ebp - 0x38], 0x46ab50
call fcn.00408dad
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 4
cmp eax, edi
je 0x416ca1
push dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
push edi
call fcn.00403315
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416d4d
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.00417aa6
mov ebx, eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 5
call fcn.004171f3
lea ecx, [ebp - 0x18]
mov dword [ebx + 8], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push str.LogFile
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
lea ecx, [ebp - 0x30]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 4
inc bl
call fcn.00416f1d
test bl, bl
je 0x416d4d
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.004171f3
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
call fcn.004171f3
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x416d4d
mov ecx, ebx
call fcn.004171f3
push edi
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.004171f3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.004171f3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040bf10
cmp dword [ebp - 0x14], edi
je 0x416d7b
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040bf10
mov eax, dword [esi + 0x28]
and byte [ebp - 4], 0
cmp eax, edi
je 0x416d97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401102
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret