joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fa00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d5dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.00410750
push ecx
mov edi, esp
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00437ca1
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40fad2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040c0b0
test al, al
jne 0x40fa89
test esi, esi
jne 0x40fa6c
xor ecx, ecx
jmp 0x40fa80
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fa71
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040c620
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f3a0
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x10]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40fac0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027e0
int3

Function at 0x40fae0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d5dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push ecx
mov edi, esp
mov esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00437ca1
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40fbb1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040c0b0
test al, al
jne 0x40fb68
test esi, esi
jne 0x40fb47
xor ecx, ecx
jmp 0x40fb5f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fb50
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040c620
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f3a0
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x10]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40fb9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027e0
int3
Function at 0x410750
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d5dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push ecx
mov edi, esp
mov esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00437ca1
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x41082b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040c0b0
test al, al
jne 0x4107d8
test esi, esi
jne 0x4107b7
xor ecx, ecx
jmp 0x4107cf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4107c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040c620
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f3a0
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x3e
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41081b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027e0
int3
Function at 0x4117d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
mov esi, ecx
push 0x40
push dword [esi]
lea ecx, [esi + 4]
call fcn.0040ff00
mov eax, dword [esi + 0x20]
lea edx, [esp + 8]
push 0
push edx
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
push eax
push ecx
push dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esi + 0x20]
cmp dword [eax + 4], 0
mov ecx, dword [eax]
ja 0x41181a
test ecx, ecx
je 0x41183a
mov dword [esp + 8], 0
test ecx, ecx
je 0x41183a
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push dword [ebp + 0x10]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 8]
test eax, eax
je 0x41184f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416cb0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6000
call fcn.005589e0
push esi
mov esi, ecx
push edi
mov edi, edx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x416cc6
sub esi, edx
cmp esi, 0x1000
jb 0x416cea
call fcn.00562809
pop edi
pop esi
mov dword [eax], 0x26
xor eax, eax
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x416cf6
cmp byte [esi + ecx - 1], 0x5c
jne 0x416cf6
dec esi
push esi
push ecx
lea eax, [ebp - 0x1000]
push eax
call fcn.0055a7b0
mov byte [ebp + esi - 0x1000], 0
add esp, 0xc
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x416d14
sub esi, ecx
cmp esi, 0x1000
jae 0x416cd7
test esi, esi
je 0x416d31
cmp byte [esi + edi - 1], 0x5c
jne 0x416d31
dec esi
push ebx
push esi
lea eax, [ebp - 0x2000]
push edi
push eax
call fcn.0055a7b0
add esp, 0xc
mov byte [ebp + esi - 0x2000], 0
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x6000]
push 0x1000
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1000]
push eax
push 0
push 0xfde9
call esi
test eax, eax
jle 0x416d95
push 0x1000
lea eax, [ebp - 0x4000]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2000]
push eax
push 0
push 0xfde9
call esi
test eax, eax
jg 0x416dba
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x7a
setne bl
lea ebx, [ebx*4 + 0x26]
call fcn.00562809
mov dword [eax], ebx
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4000]
push eax
lea eax, [ebp - 0x6000]
push eax
call fcn.005645e7
add esp, 8
neg eax
sbb eax, eax
inc eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416f60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.005589e0
push esi
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x416f73
sub esi, edx
cmp esi, 0x1000
jb 0x416f96
call fcn.00562809
mov dword [eax], 0x26
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x416fa2
cmp byte [esi + ecx - 1], 0x5c
jne 0x416fa2
dec esi
push esi
push ecx
lea eax, [ebp - 0x1004]
push eax
call fcn.0055a7b0
add esp, 8
mov byte [ebp + esi - 0x1004], 0
lea edx, [ebp - 4]
lea ecx, [ebp - 0x1004]
push 0
call fcn.00416ab0
add esp, 8
test eax, eax
je 0x416f8f
mov eax, dword [ebp - 4]
sub eax, 0
je 0x417000
sub eax, 1
je 0x416fee
sub eax, 1
jne 0x416f8f
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00562809
pop esi
mov dword [eax], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x3004]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1004]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x41704b
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x7a
setne bl
lea ebx, [ebx*4 + 0x26]
call fcn.00562809
mov dword [eax], ebx
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3004]
push eax
call fcn.00563cb0
add esp, 4
neg eax
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4170f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov esi, dword [eax]
sub ebx, edi
mov dword [esp + 0x14], ebx
je 0x417257
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esp + 0x10], 0
cmp dword [esp + 0x10], edx
ja 0x417263
jb 0x417137
cmp ebx, eax
ja 0x417263
sub eax, ebx
sbb edx, 0
cmp dword [ebp + 0x10], edx
ja 0x417263
mov edx, dword [ebp + 0xc]
jb 0x417152
cmp edx, eax
ja 0x417263
add edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
adc eax, dword [ebp + 0x10]
cmp dword [esi + 0x20], edx
jne 0x417165
cmp dword [esi + 0x24], eax
je 0x4171ba
push 0
push eax
push edx
push dword [esi + 0x18]
call fcn.0056523c
add esp, 0x10
test eax, eax
je 0x4171b7
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
call fcn.00562809
mov edi, dword [eax]
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4172a6
test edi, edi
je 0x4172a6
test eax, eax
jne 0x4171a7
mov dword [esi + 0x30], edi
push edi
call fcn.00562b53
add esp, 4
push eax
push edi
jmp 0x41728e
mov ecx, dword [ebp + 0x18]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
cmp edi, ecx
jae 0x417204
mov edx, 0x100000
nop word [eax + eax]
mov ebx, ecx
sub ebx, edi
cmp ebx, 0x100000
push eax
cmova ebx, edx
push ebx
push 1
push edi
call fcn.00564e26
add esp, 0x10
cmp ebx, eax
jne 0x417206
mov ecx, dword [ebp + 0x18]
add edi, ebx
mov eax, dword [esp + 0x10]
mov edx, 0x100000
cmp edi, ecx
jb 0x4171d0
mov ebx, dword [esp + 0x14]
je 0x41723e
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
call fcn.00562809
mov edi, dword [eax]
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4172a6
test edi, edi
je 0x4172a6
test eax, eax
jne 0x417231
mov dword [esi + 0x30], edi
push edi
call fcn.00562b53
add esp, 4
push eax
push edi
jmp 0x41728e
add ebx, dword [esi + 0x28]
mov ecx, 0
mov eax, dword [esi + 0x2c]
adc eax, ecx
add ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], ebx
adc eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00562809
mov dword [eax], 0x1b
mov eax, dword [esi + 0x30]
cmp eax, 0x1b
je 0x4172a6
test eax, eax
jne 0x417281
mov dword [esi + 0x30], 0x1b
push 0x1b
call fcn.00562b53
add esp, 4
push eax
push 0x1b
push str.call_import_system_api_error__errno:__d__errmsg:__s._n
push 2
call fcn.00562462
add esp, 4
push eax
call fcn.00402c50
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429842
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x57e4ef
call fcn.00558860
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x4298ea
push dword [ebp + 8]
call fcn.00429b61
mov dword [ebp - 0x10], eax
test eax, eax
je 0x429970
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x4298d3
push ecx
call fcn.00439a1c
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4298d3
xor edi, edi
inc edi
jmp 0x4298dd
push dword [ebx]
call fcn.0042ea70
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.00429709
jmp 0x42996e
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x58d9b8]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x429966
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.00439a1c
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x429960
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.004296e5
push esi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.004296e5
mov ecx, dword [ebp + 0x10]
shl bl, 4
sub bl, 0x51
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x42992e
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00402f20
mov eax, edi
call fcn.0055882e
ret 0x10

Function at 0x429978
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4299cb
push esi
push dword [ebp + 8]
call fcn.00429b61
mov edi, eax
test edi, edi
je 0x4299c6
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4299c6
mov eax, dword [ebp - 8]
jmp 0x4299dd
mov eax, dword [ebp + 0x10]
jmp 0x4299dd
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x4299e3
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e51c
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.005589e0
mov eax, dword [0x5e8000]
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, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x429b14
push ebx
push edx
call fcn.00429b61
mov ebx, eax
test ebx, ebx
jne 0x429a4b
push esi
jmp 0x429b3c
lea ecx, [ebp - 0x2014]
call fcn.0040bee0
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x429ad3
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.0040c300
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.0040bf40
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x429b01
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.0040c4e0
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00402f20
jmp 0x429b43
push esi
mov ecx, edi
call fcn.0040be40
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x429afa
test esi, esi
jne 0x429b1d
mov esi, 0x5c1e14
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.0040be40
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.00558820
leave
ret 0x10
Function at 0x429d06
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x429d53
push esi
push dword [ebp + 8]
call fcn.00429b61
mov edi, eax
test edi, edi
je 0x429ddb
push dword [ebp + 0x14]
push ebx
push 3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x429ddb
mov eax, dword [ebp + 0x14]
push 2
pop ecx
lea eax, [eax*2 + 1]
mul ecx
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.00439a1c
mov edx, dword [ebp + 0x14]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test edx, edx
je 0x429dad
mov dword [ebp - 4], 0x41
mov al, byte [ebx + esi]
and al, 0xf
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4], ax
mov al, byte [ebx + esi]
shr al, 4
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4 + 2], ax
inc esi
cmp esi, edx
jb 0x429d86
xor eax, eax
mov word [ecx + esi*4], ax
mov eax, dword [edi]
push ecx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x58d9b8]
mov ecx, edi
call esi
push dword [ebp - 8]
mov esi, eax
call fcn.0042ea70
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x42ab4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x42ab94
call fcn.00439dd8
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42ab94
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42aba1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x42abdd
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x42abc0
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x42abc9
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x42abdb
test di, di
jne 0x42abdb
test dx, dx
je 0x42abdd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ac46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.00439dd8
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42ac86
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42ac86
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0042ac8e
jmp 0x42ac88
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x42af7e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x57e618
call fcn.005588c9
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.00439dd8
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x42afdd
call fcn.00439dd8
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42aff1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x42afed
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x42aff9
or eax, 0xffffffff
jmp 0x42b14b
mov ecx, edi
call fcn.0042b5b6
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0042fdd8
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x42b085
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x42b085
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42b085
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.00402f40
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x42b082
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x58d9b8]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x42b082
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0043611f
test eax, eax
je 0x42b082
push 0
mov ecx, esi
call fcn.00435ef2
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.0042fa5b
push ebx
call fcn.00431179
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0042af21
test eax, eax
jne 0x42b0ce
cmp dword [edi + 0x9c], eax
jne 0x42b0ce
call fcn.00439dd8
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.00431179
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0042af21
and dword [edi + 0x9c], 0
jmp 0x42b0f9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x42b10d
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.00435ef2
test esi, esi
je 0x42b11a
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x42b130
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x42b130
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x58d9b8]
mov ecx, edi
call esi
mov ecx, edi
call fcn.0042b56d
mov eax, dword [edi + 0x68]
call fcn.0055882e
ret