joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406120
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [ebp - 4], eax
movzx esi, word [eax + 4]
cmp esi, 0x8664
ja 0x406159
je 0x406161
sub esi, 0x14c
je 0x406161
sub esi, 0x78
je 0x406161
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xaa64
jne 0x406150
cmp dword [eax + 0x58], 0
je 0x406150
mov dword [eax + 0x58], 0
xor esi, esi
mov eax, ebx
mov ecx, edi
shr eax, 1
lea edx, [edi + eax*2]
cmp edi, edx
jae 0x406196
nop dword [eax]
movzx eax, word [ecx]
add ecx, 2
add eax, esi
mov esi, eax
movzx eax, ax
shr esi, 0x10
add esi, eax
cmp ecx, edx
jb 0x406180
test bl, 1
je 0x4061a2
movzx eax, byte [edi + ebx - 1]
add esi, eax
mov eax, esi
shr eax, 0x10
add eax, ebx
add esi, eax
push esi
push str.Info
call fcn.0040cf10
mov eax, dword [ebp - 4]
add esp, 8
pop edi
mov dword [eax + 0x58], esi
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d0eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d0eb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40d0d8
cmp esi, edx
jae 0x40d0eb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40d0c6
cmp esi, edx
jae 0x40d0eb
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x40dcf0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4298ad
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
mov eax, dword [0x438040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
push 0x40
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x68], 0x44
call fcn.004105f0
xor eax, eax
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
add esp, 0xc
movups xmmword [ebp - 0x24], xmm0
cmp dword [eax - 4], 1
jle 0x40dd62
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040d750
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0x400
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40dd98
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov esi, 0x65b
cmovne esi, eax
jmp 0x40dde4
cmp byte [ebp - 0xd], 0
je 0x40ddb2
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
xor esi, esi
jmp 0x40dde4
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x80004005
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40de06
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40de20
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, edx
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test eax, eax
jne 0x40de3c
mov eax, 0x10da
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40de5e
test bl, 1
je 0x40de5e
mov ecx, ebx
and ecx, 0xfffffffe
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor esi, esi
push esi
push 0x2000080
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40deaf
push esi
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40dea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov esi, 0x65b
cmovne esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40debf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov esi, 0x65b
cmovne esi, eax
cmp ebx, 0xffffffff
je 0x40decc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40dee0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4298e5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x438040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040db30
mov ecx, eax
test ecx, ecx
je 0x40e069
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test edi, edi
je 0x40df65
test edi, 0xffff0000
jne 0x40df4f
movzx edi, di
mov ecx, edi
call fcn.0040d010
test eax, eax
je 0x40df74
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d1a0
jmp 0x40df71
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df54
sub ecx, edx
sar ecx, 1
jmp 0x40df67
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0040d240
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x40df8a
lea edi, [eax + 0x57]
jmp 0x40e02c
lea ecx, [eax - 1]
test ecx, ecx
js 0x40e05f
cmp ecx, eax
jg 0x40e05f
cmp word [esi + ecx*2], 0x5c
je 0x40dfd2
push 0x5c
push esi
call fcn.0040ffc0
add esp, 8
test eax, eax
je 0x40dfc0
sub eax, esi
sar eax, 1
add eax, 1
js 0x40e05f
cmp eax, dword [esi - 8]
jg 0x40e05f
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0x5c
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebx, eax
test ebx, ebx
je 0x40e02a
xor eax, eax
push eax
push esi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e011
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov edi, 0x65b
cmovne edi, eax
cmp edi, 0xb7
jne 0x40e02c
mov eax, 0x5c
push eax
mov word [ebx], ax
lea eax, [ebx + 2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebx, eax
test ebx, ebx
jne 0x40dfe8
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e04b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040d910
push 0x80004005
call fcn.0040d910
int3
Function at 0x40e3e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 0x1c]
push ebx
push esi
push edi
push 0x204000
push 5
push eax
mov ebx, ecx
lea eax, [ebp - 8]
push ebx
push 0x110000
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jne 0x40e554
push 0xd
push 1
lea eax, [ebp - 1]
mov byte [ebp - 1], 1
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jne 0x40e442
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
add ecx, 4
movzx eax, cx
push ecx
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
call fcn.0040eeca
mov edx, dword [ebx + 8]
mov dword [ebp - 0x10], eax
movzx ecx, word [edx]
push ecx
push dword [edx + 4]
push eax
call fcn.00410070
mov eax, dword [ebx + 8]
add esp, 0x10
mov edx, 0x7e
xorps xmm0, xmm0
movzx ecx, word [eax]
mov eax, dword [ebp - 0x10]
push 0
push 0
push 0x5000
mov word [ecx + eax], dx
mov edx, 0x24
mov eax, dword [ebx + 8]
push 2
push 0
push 0x80
movzx ecx, word [eax]
mov eax, dword [ebp - 0x10]
push 0
mov word [ecx + eax + 2], dx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x18
push eax
push 0x110000
lea eax, [ebp - 8]
mov dword [ebp - 0x28], 0x40
push eax
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.ntdll.dll_NtCreateFile]
push dword [ebp - 0x10]
call fcn.0040eec5
mov eax, dword [ebx + 8]
movzx esi, word [eax]
add esi, 0x10
push esi
call fcn.0040eeca
mov edx, dword [ebx + 8]
mov edi, eax
movzx ecx, word [edx]
push ecx
push dword [edx + 4]
lea ecx, [edi + 0xc]
push ecx
call fcn.00410070
mov byte [edi], 1
add esp, 0x14
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
push 0xa
push esi
push edi
movzx eax, word [eax]
mov dword [edi + 8], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push edi
mov esi, eax
call fcn.0040eec5
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
test esi, esi
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x64
mov ebx, ecx
mov eax, dword [edi]
cmp dword [eax - 8], esi
cmovg esi, dword [eax - 8]
nop dword [eax]
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x40e59b
push esi
mov ecx, edi
call fcn.0040d840
push ebx
push esi
push dword [edi]
push 0
push dword [ebp + 8]
push str.APISet
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, eax
test edx, edx
je 0x40e5ff
mov eax, esi
sub eax, edx
cmp eax, 2
ja 0x40e5c4
add esi, esi
js 0x40e606
jmp 0x40e580
cmp edx, 0xffffffff
jne 0x40e5e1
mov eax, dword [edi]
test eax, eax
jne 0x40e5d3
xor edx, edx
jmp 0x40e5e1
push dword [eax - 8]
push eax
call fcn.00415e76
add esp, 8
mov edx, eax
test edx, edx
js 0x40e606
mov ecx, dword [edi]
cmp edx, dword [ecx - 8]
jg 0x40e606
mov dword [ecx - 0xc], edx
xor esi, esi
mov ecx, dword [edi]
pop edi
lea eax, [esi + 1]
mov word [ecx + edx*2], si
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push 0x80070057
call fcn.0040d910
int3

Function at 0x40e620
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov eax, dword [edi]
sub esi, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x400
or esi, eax
jge 0x40e654
push 0x400
mov ecx, edi
call fcn.0040d840
mov eax, dword [edi]
mov esi, dword [eax - 8]
test esi, esi
js 0x40e6f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
nop word [eax + eax]
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x40e68b
push esi
mov ecx, edi
call fcn.0040d840
push dword [ebp - 4]
push esi
push dword [edi]
push dword [ebp - 8]
call ebx
mov edx, eax
test edx, edx
je 0x40e6e8
mov eax, esi
sub eax, edx
cmp eax, 2
jne 0x40e6ab
add esi, esi
js 0x40e6f1
jmp 0x40e670
cmp edx, 0xffffffff
jne 0x40e6c8
mov eax, dword [edi]
test eax, eax
jne 0x40e6ba
xor edx, edx
jmp 0x40e6c8
push dword [eax - 8]
push eax
call fcn.00415e76
add esp, 8
mov edx, eax
test edx, edx
js 0x40e6f1
mov ecx, dword [edi]
cmp edx, dword [ecx - 8]
jg 0x40e6f1
mov dword [ecx - 0xc], edx
xor esi, esi
mov ecx, dword [edi]
pop edi
lea eax, [esi + 1]
mov word [ecx + edx*2], si
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040d910
int3

Function at 0x40f581
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f5c0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f5c0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f5c0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40f5c0
cmp dword [ecx + 0x74], 0xe
jbe 0x40f5c0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4206a7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420324
Function at 0x426ed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426efd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426efd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40e460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x720870]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x18], 0x30
mov byte [ebp - 0x17], 0x31
mov byte [ebp - 0x16], 0x32
mov byte [ebp - 0x15], 0x33
mov byte [ebp - 0x14], 0x34
mov byte [ebp - 0x13], 0x35
mov byte [ebp - 0x12], 0x36
mov byte [ebp - 0x11], 0x37
mov byte [ebp - 0x10], 0x38
mov byte [ebp - 0xf], 0x39
mov byte [ebp - 0xe], 0x41
mov byte [ebp - 0xd], 0x42
mov byte [ebp - 0xc], 0x43
mov byte [ebp - 0xb], 0x44
mov byte [ebp - 0xa], 0x45
mov byte [ebp - 9], 0x46
mov byte [ebp - 0x25], 0
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0x10]
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
movzx ecx, byte [ebp - 0x25]
mov dl, byte [ebp + eax - 0x18]
mov byte [ebp + ecx - 0x24], dl
mov al, byte [ebp - 0x25]
add al, 1
mov byte [ebp - 0x25], al
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0x10]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x40e4f1
movzx ecx, byte [ebp - 0x25]
cmp ecx, 0xb
jle 0x40e4b4
movzx edx, byte [ebp - 0x25]
cmp edx, 0x1e
jg 0x40e523
movzx eax, byte [ebp - 0x25]
mov cl, byte [ebp - 0x25]
sub cl, 1
mov byte [ebp - 0x25], cl
test eax, eax
jle 0x40e523
movzx edx, byte [ebp - 0x25]
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp + edx - 0x24]
mov byte [eax], cl
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
jmp 0x40e4fa
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005c7e68
mov esp, ebp
pop ebp
ret
Function at 0x428180
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x15], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov byte [ebp - 0x15], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [0x730ff0], 0
je 0x42824c
push 0x6e21b8
mov edx, dword [0x730ff0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x6e219c
mov eax, dword [0x730ff0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push 0x6e2180
mov ecx, dword [0x730ff0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0
call dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 8], 0
jmp 0x428214
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, word [ebp + 8]
cmp dword [ebp - 8], eax
jae 0x428247
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
push edx
call dword [ebp - 0xc]
add esp, 4
call dword [ebp - 0x14]
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x428243
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x428245
jmp 0x428247
jmp 0x42820b
jmp 0x428381
cmp dword [0x730ff4], 0
je 0x4282e9
push 0x6e21b8
mov edx, dword [0x730ff4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x6e219c
mov eax, dword [0x730ff4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push 0x6e2180
mov ecx, dword [0x730ff4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0
call dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 8], 0
jmp 0x4282b1
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, word [ebp + 8]
cmp dword [ebp - 8], eax
jae 0x4282e4
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
push edx
call dword [ebp - 0xc]
add esp, 4
call dword [ebp - 0x14]
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x4282e0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4282e2
jmp 0x4282e4
jmp 0x4282a8
jmp 0x428381
cmp dword [0x730ff8], 0
je 0x428381
push 0x6e21b8
mov edx, dword [0x730ff8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x6e219c
mov eax, dword [0x730ff8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push 0x6e2180
mov ecx, dword [0x730ff8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0
call dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 8], 0
jmp 0x42834e
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, word [ebp + 8]
cmp dword [ebp - 8], eax
jae 0x428381
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
push edx
call dword [ebp - 0xc]
add esp, 4
call dword [ebp - 0x14]
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x42837d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x42837f
jmp 0x428381
jmp 0x428345
mov esp, ebp
pop ebp
ret
Function at 0x591f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
call fcn.0042cca0
call fcn.0042d060
movsx eax, al
test eax, eax
jne 0x591f78
lea ecx, [ebp - 8]
push ecx
call fcn.0042d040
add esp, 4
push 4
push str.V009
lea edx, [ebp - 8]
push edx
call fcn.005c7e77
add esp, 0xc
test eax, eax
je 0x591f78
push 0x10
push str.ERROR
push str.Eeprom_content_is_not_acceptable___r_n_Please_delete_all_.Bin_files_and_try_again.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.005cb897
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x18], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x591eb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x592030
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e50c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x720870]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x20], eax
push 0xa
push 0x96
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x59208f
push 0
push 0
push str.Failed_to_load_dll_libraries.
call fcn.005ab103
xor eax, eax
jmp 0x59216b
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004297a0
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, 0x6eadd0
test ecx, ecx
jne 0x5920fa
mov dword [ebp - 0x44], 0
jmp 0x59210a
push 0x6eadd0
call fcn.005c9900
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
push edx
push 0x6eadd0
lea ecx, [ebp - 0x28]
call fcn.00593d20
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
push 0x6eadcc
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.005ca92e
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005cba91
add esp, 0x10
mov edx, dword [ebp - 0x24]
push edx
call fcn.005ca6e2
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00429410
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x592180
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e50c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x720870]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x20], eax
push 0xa
push 0x97
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5921df
push 0
push 0
push str.Failed_to_load_dll_libraries.
call fcn.005ab103
xor eax, eax
jmp 0x5922bb
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004297a0
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, 0x6eae04
test ecx, ecx
jne 0x59224a
mov dword [ebp - 0x44], 0
jmp 0x59225a
push 0x6eae04
call fcn.005c9900
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
push edx
push 0x6eae04
lea ecx, [ebp - 0x28]
call fcn.00593d20
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
push 0x6eadcc
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.005ca92e
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005cba91
add esp, 0x10
mov edx, dword [ebp - 0x24]
push edx
call fcn.005ca6e2
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00429410
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret