joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov edi, edx
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
lea edx, [ebp - 0x20c]
neg esi
lea ecx, [edx + 2]
sbb esi, esi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42a7c1
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.0040fa60
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557f7f
mov esp, ebp
pop ebp
ret

Function at 0x42a830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edx, dword [ebx + 4]
test edx, edx
jle 0x42a85f
test ecx, ecx
js 0x42a895
cmp ecx, edx
jge 0x42a895
mov eax, dword [ebx]
inc esi
mov eax, dword [eax + ecx*4]
inc ecx
mov eax, dword [eax - 0xc]
add esi, eax
cmp ecx, edx
jl 0x42a847
mov eax, esi
mov edx, 2
neg eax
sbb eax, eax
xor ecx, ecx
add eax, 2
add esi, eax
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430eb7
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x42a8a6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [esi + esi]
push eax
push 0
push edi
mov dword [ebp - 4], eax
call fcn.0055c960
mov eax, dword [ebx + 4]
mov ecx, edi
add esp, 0xc
mov dword [ebp + 0xc], ecx
xor edi, edi
test eax, eax
jle 0x42a8fd
test edi, edi
js 0x42a895
cmp edi, eax
jge 0x42a895
mov eax, dword [ebx]
push dword [eax + edi*4]
lea esi, [eax + edi*4]
push 0x104
push ecx
call fcn.00558864
mov eax, dword [esi]
inc edi
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [eax - 0xc]
lea ecx, [ecx + eax*2]
mov eax, dword [ebx + 4]
add ecx, 2
mov dword [ebp + 0xc], ecx
cmp edi, eax
jl 0x42a8c6
push dword [ebp - 4]
mov edi, dword [ebp - 8]
push edi
push 7
push str.LastMounts
push str.SoftwareTowodo_SoftwareVirtual_Drive_ManagerSettings
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
push edi
sbb esi, esi
call fcn.00430ec0
add esp, 4
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42abd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0055c960
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0055940c
add esp, 0x1c
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret

Function at 0x42ac40
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd9b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5ef220]
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, ecx
push 0
push 2
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42ad76
call fcn.004311d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42acb8
push 0x80004005
call fcn.0040fbb0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x42ad51
xor eax, eax
test ebx, ebx
setne al
mov dword [ebp - 0x244], eax
mov edi, edi
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ad00
sub eax, edx
lea ecx, [ebp - 0x240]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040fa60
cmp dword [ebp - 0x244], 0
je 0x42acae
mov esi, dword [ebp - 0x240]
push ebx
push esi
call fcn.005594af
add esp, 8
test eax, eax
je 0x42ad92
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42acf0
xor edi, edi
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42ad74
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x234]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.MSG:_kill_succeed__name_s__code_d
call fcn.0042abd0
add esp, 0xc
mov edi, 1
jmp 0x42ad53
Function at 0x42add0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd9b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5ef220]
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 edi, ecx
push 0
push 2
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42af06
call fcn.004311d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42ae48
push 0x80004005
call fcn.0040fbb0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x42aee1
xor eax, eax
test edi, edi
setne al
mov dword [ebp - 0x244], eax
mov edi, edi
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ae90
sub eax, edx
lea ecx, [ebp - 0x240]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040fa60
cmp dword [ebp - 0x244], 0
je 0x42ae3e
mov esi, dword [ebp - 0x240]
push edi
push esi
call fcn.005594af
add esp, 8
test eax, eax
je 0x42af22
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42ae80
xor edi, edi
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42af04
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.MSG:_find_succeed__name_s__code_d
call fcn.0042abd0
add esp, 0xc
mov edi, 1
jmp 0x42aee3

Function at 0x42b0c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0055c960
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 2
jne 0x42b12b
cmp dword [ebp - 0x11c], 6
jb 0x42b12b
cmp dword [ebp - 0x118], 1
jb 0x42b12b
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x42b140
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov byte [ebp - 0x415], 0
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov ebx, edx
lea eax, [ebp - 0x20a]
mov esi, ecx
push eax
call fcn.0055c960
push esi
push 0x5c3790
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00558848
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
add esp, 0x28
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x414], 0
lea esi, [ebp - 0x414]
je 0x42b25e
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ecx]
mov ax, word [esi]
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x42b231
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b200
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], ax
jne 0x42b1e0
mov al, byte [ebp - 0x415]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0x5c3790
push 0x104
push ebx
call fcn.00558848
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x415]
xor ecx, ebp
pop esi
pop ebx
call fcn.00557f7f
mov esp, ebp
pop ebp
ret

Function at 0x42b280
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0x288
mov ebx, ecx
call fcn.00430e8a
mov esi, eax
add esp, 4
test esi, esi
je 0x42b2af
push 0x288
push 0
push esi
call fcn.0055c960
add esp, 0xc
jmp 0x42b2b1
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x288
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x42b2e6
push esi
call fcn.00430ec0
push dword [ebp - 4]
call fcn.00430eb7
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x42b331
test esi, esi
je 0x42b33e
lea edx, [esi + 0x1b0]
lea ecx, [ebp - 8]
call fcn.0042b350
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42b335
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.00430ec0
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42b33e
push esi
call fcn.00430ec0
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bd10
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1984
call fcn.0055ece0
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [str.00_00_00_00_00_00]
mov eax, dword [0x5cbe80]
push esi
movdqu xmmword [ebp - 0x2c], xmm0
push 0x194c
movdqu xmm0, xmmword [0x5cbe70]
mov dword [ebp - 0xc], eax
mov esi, ecx
lea eax, [ebp - 0x1978]
mov dword [ebp - 0x1984], 0
push 0
push eax
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x197c], 0
call fcn.0055c960
add esp, 0xc
mov dword [ebp - 0x1980], 0x1950
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x197c]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x42bdd2
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x2c], ax
je 0x42be4b
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42bdc2
jmp 0x42be60
lea ecx, [ebp - 0x197c]
jmp 0x42bde0
cmp dword [ecx + 0x1a0], 6
je 0x42bdf1
mov ecx, dword [ecx]
test ecx, ecx
jne 0x42bde0
jmp 0x42be32
movzx eax, byte [ecx + 0x199]
push eax
movzx eax, byte [ecx + 0x198]
push eax
movzx eax, byte [ecx + 0x197]
push eax
movzx eax, byte [ecx + 0x196]
push eax
movzx eax, byte [ecx + 0x195]
push eax
movzx eax, byte [ecx + 0x194]
push eax
lea eax, [ebp - 0x2c]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0042c6e0
add esp, 0x20
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x2c], ax
jne 0x42be4f
xor ecx, ecx
jmp 0x42be64
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42be55
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004272f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret

Function at 0x42c7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c861
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x42c82f
cmp eax, 2
jne 0x42c84b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x42c85b
test ecx, ecx
je 0x42c856
test cl, 1
jne 0x42c84b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x42c85b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x42e920
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x42e92b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x42e9f5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5c58f0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5c58f0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5c58f0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5c58f0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5c58f0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5c58f0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5c58f0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5c58f0]
dec edi
jne 0x42e940
pop edi
test esi, esi
je 0x42ea1a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5c58f0]
dec esi
jne 0x42ea00
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42f090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x42f0d3
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42f0c5
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x42f0e4
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.00560070
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x42f14b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42f146
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x42f178
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x42f15c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.00560070
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x42f18c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x42f183
cmp byte [esi + 8], 0
je 0x42f183
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f2a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x42f2d4
cmp byte [edi + 1], 0
je 0x42f2cd
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x42f2da
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x42f2ff
cmp byte [edi + 1], 0
je 0x42f2f8
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x42f302
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x42f311
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
jae 0x42f314
mov dword [ebp - 4], ebx
push esi
push 0x404
call fcn.0055a137
mov esi, eax
add esp, 4
test esi, esi
jne 0x42f32f
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ecx, eax
jbe 0x42f42f
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x1c], edx
sub ebx, ecx
mov dword [ebp - 0x18], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x42f390
cmp byte [edi + 1], 0
je 0x42f42f
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x42f393
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x42f3bb
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42f3b6
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x42f3e4
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x42f3ce
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.00560070
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x42f42f
lea eax, [ebx - 3]
test eax, eax
jle 0x42f41e
dec eax
cmp byte [eax + esi], 0x50
jne 0x42f410
cmp byte [eax + esi + 1], 0x4b
jne 0x42f410
cmp byte [eax + esi + 2], 5
jne 0x42f410
cmp byte [eax + esi + 3], 6
je 0x42f416
test eax, eax
jg 0x42f3f4
jmp 0x42f41e
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x42f42f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jb 0x42f346
push esi
call fcn.00558703
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4302e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x430369
cmp dword [esi + 4], 0xffffffff
jne 0x430369
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
jmp 0x430310
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x430310
mov eax, dword [0x5c52e8]
push 0x1c
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.00430e8a
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, eax
mov word [eax], 0x100
mov dword [eax + 0x18], 0
mov dword [eax + 0xc], 0
call fcn.0042f450
mov dword [esi], eax
mov eax, dword [0x5fb970]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43582f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0043983f
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x435866
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00435887
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43c1e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x43c226
call fcn.0043983f
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43c226
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43c242
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00451eb8
mov ebx, eax
test edi, edi
je 0x43c240
test esi, esi
je 0x43c240
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x440dc9
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x440df2
call fcn.0043983f
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x440e1f
push esi
push eax
mov ecx, 0x5f6c10
call fcn.00441bb6
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00441140
int3