joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bf20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov ebx, dword [ebp + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x43bf40
mov esi, eax
sar esi, 1
cmp esi, 0xfffffffb
jge 0x43bf5b
mov eax, 0xffffffff
jmp 0x43bf5e
add eax, 0xa
push eax
call fcn.00407fc0
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
lea ecx, [esi + 4]
mov word [eax + 8], 0
mov edx, eax
add edx, 8
movzx edi, word [ebx]
test di, di
je 0x43bfa1
add ebx, 2
nop
nop
nop
mov word [edx], di
add edx, 2
movzx edi, word [ebx]
add ebx, 2
test di, di
jne 0x43bf90
mov word [edx], 0
mov edi, 3
sub edi, esi
and edi, 2
mov edx, ecx
and edx, 0xfffd
imul edx, edi
and esi, 2
or ecx, 2
imul ecx, esi
lea esi, [ecx + edx]
mov word [esp], si
add ecx, edx
add ecx, 2
mov word [esp + 2], cx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x40
mov ecx, esp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xc4c5c6c7
mov ecx, 0xf9309b78
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 0x6cf64a8]
xor esi, ecx
mov edx, esi
or edx, 0x3f
add edx, esi
not esi
or esi, 0x3f
add edx, esi
add dl, 2
mov byte [esp + ecx + 0x6cf64a8], dl
inc ecx
cmp ecx, 0xf9309b7c
jne 0x43c020
mov esi, dword [esp + 0x20]
mov ecx, dword [0x448580]
test ecx, ecx
je 0x43c0a9
xor edx, edx
mov edi, dword [0x448584]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0xcaa82e26
je 0x43c080
inc edx
cmp ecx, edx
jne 0x43c070
jmp 0x43c0a9
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
je 0x43c0a9
lea edx, [esp + 0x20]
lea esi, [esp + 8]
push edx
push esi
push 8
push ecx
push dword [0x448588]
mov edi, eax
call fcn.00439ae0
add esp, 0x14
mov esi, eax
mov eax, edi
push eax
call fcn.00407fd0
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43c0bf
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43c0d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0xc4c5c6c7
mov eax, 0xf9309b78
nop
nop
movzx edx, byte [esp + eax + 0x6cf6488]
xor edx, eax
mov ecx, edx
or ecx, 0x3f
add ecx, edx
not edx
or edx, 0x3f
add ecx, edx
add cl, 2
mov byte [esp + eax + 0x6cf6488], cl
inc eax
cmp eax, 0xf9309b7c
jne 0x43c0f0
mov eax, dword [esp]
mov edx, dword [0x448580]
test edx, edx
je 0x43c168
xor ebx, ebx
mov ecx, dword [0x448584]
nop
cmp dword [ecx + ebx*8], 0xa269eeef
je 0x43c140
inc ebx
cmp edx, ebx
jne 0x43c130
jmp 0x43c168
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x43c168
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0x448588]
call fcn.00439ae0
add esp, 0x20
test edi, edi
je 0x43c172
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x43c17e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43c190
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], 0xc4c5c6c7
mov eax, 0xf9309b78
movzx edi, byte [esp + eax + 0x6cf648c]
xor edi, eax
mov ebx, edi
or ebx, 0x3f
add ebx, edi
not edi
or edi, 0x3f
add ebx, edi
add bl, 2
mov byte [esp + eax + 0x6cf648c], bl
inc eax
cmp eax, 0xf9309b7c
jne 0x43c1b0
mov eax, dword [esp + 4]
mov ebx, dword [0x448580]
test ebx, ebx
je 0x43c22e
xor ebp, ebp
mov edi, dword [0x448584]
cmp dword [edi + ebp*8], 0xe88ddea1
je 0x43c200
inc ebp
cmp ebx, ebp
jne 0x43c1f0
jmp 0x43c22e
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x43c22e
lea eax, [esp + 4]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
push 0x24
push ebx
push dword [0x448588]
call fcn.00439ae0
add esp, 0x30
cmp eax, 0x103
jne 0x43c2c9
mov dword [esp], 0xc4c5c6c7
mov eax, 0xf9309b78
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x6cf6488]
xor edx, eax
mov ecx, edx
or ecx, 0x3f
add ecx, edx
not edx
or edx, 0x3f
add ecx, edx
add cl, 2
mov byte [esp + eax + 0x6cf6488], cl
inc eax
cmp eax, 0xf9309b7c
jne 0x43c250
mov eax, dword [esp]
mov ecx, dword [0x448580]
test ecx, ecx
je 0x43c2c1
xor edx, edx
mov edi, dword [0x448584]
nop
cmp dword [edi + edx*8], 0xa67d73aa
je 0x43c2a0
inc edx
cmp ecx, edx
jne 0x43c290
jmp 0x43c2c1
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43c2c1
push 0
push 0
push dword [esp + 0x28]
push 0xc
push ecx
push dword [0x448588]
call fcn.00439ae0
add esp, 0x18
test eax, eax
js 0x43c2c9
mov eax, dword [esp + 4]
test esi, esi
je 0x43c2dc
xor ecx, ecx
cmp eax, 0xc0000011
je 0x43c2da
mov ecx, dword [esp + 8]
mov dword [esi], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43c2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], 0xc4c5c6c7
mov eax, 0xf9309b78
movzx edi, byte [esp + eax + 0x6cf648c]
xor edi, eax
mov ebx, edi
or ebx, 0x3f
add ebx, edi
not edi
or edi, 0x3f
add ebx, edi
add bl, 2
mov byte [esp + eax + 0x6cf648c], bl
inc eax
cmp eax, 0xf9309b7c
jne 0x43c310
mov eax, dword [esp + 4]
mov ebx, dword [0x448580]
test ebx, ebx
je 0x43c38e
xor ebp, ebp
mov edi, dword [0x448584]
cmp dword [edi + ebp*8], 0x88822328
je 0x43c360
inc ebp
cmp ebx, ebp
jne 0x43c350
jmp 0x43c38e
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x43c38e
lea eax, [esp + 4]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
push 0x24
push ebx
push dword [0x448588]
call fcn.00439ae0
add esp, 0x30
cmp eax, 0x103
jne 0x43c429
mov dword [esp], 0xc4c5c6c7
mov eax, 0xf9309b78
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x6cf6488]
xor edx, eax
mov ecx, edx
or ecx, 0x3f
add ecx, edx
not edx
or edx, 0x3f
add ecx, edx
add cl, 2
mov byte [esp + eax + 0x6cf6488], cl
inc eax
cmp eax, 0xf9309b7c
jne 0x43c3b0
mov eax, dword [esp]
mov ecx, dword [0x448580]
test ecx, ecx
je 0x43c421
xor edx, edx
mov edi, dword [0x448584]
nop
cmp dword [edi + edx*8], 0xa67d73aa
je 0x43c400
inc edx
cmp ecx, edx
jne 0x43c3f0
jmp 0x43c421
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43c421
push 0
push 0
push dword [esp + 0x28]
push 0xc
push ecx
push dword [0x448588]
call fcn.00439ae0
add esp, 0x18
test eax, eax
js 0x43c429
mov eax, dword [esp + 4]
test esi, esi
je 0x43c433
mov ecx, dword [esp + 8]
mov dword [esi], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43c440
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ebx], 0
lea ebx, [ebx + 2]
jne 0x43c460
add ebx, 0xfffffffe
and ebx, 0xfffe
mov word [esp + 4], bx
add ebx, 2
mov word [esp + 6], bx
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x40
lea eax, [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp], 0xc4c5c6c7
mov eax, 0xf9309b78
nop
nop
nop
nop
movzx edi, byte [esp + eax + 0x6cf6488]
xor edi, eax
mov ebx, edi
or ebx, 0x3f
add ebx, edi
not edi
or edi, 0x3f
add ebx, edi
add bl, 2
mov byte [esp + eax + 0x6cf6488], bl
inc eax
cmp eax, 0xf9309b7c
jne 0x43c4c0
mov eax, dword [esp]
mov edi, dword [0x448580]
test edi, edi
je 0x43c53f
xor ebx, ebx
mov ebp, dword [0x448584]
nop
cmp dword [ebp + ebx*8], 0xb7847e1b
je 0x43c51b
mov ecx, ebx
and ecx, 1
xor ebx, 1
lea ebx, [ebx + ecx*2]
cmp ebx, edi
jb 0x43c500
jmp 0x43c53f
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x43c53f
lea eax, [esp + 0xc]
push esi
push eax
push edx
push dword [esp + 0x48]
push 0x10
push edi
push dword [0x448588]
call fcn.00439ae0
add esp, 0x1c
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410316
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410370
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410370
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x410360
cmp esi, ecx
jae 0x410370
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x41034e
cmp esi, ecx
jae 0x410370
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x410372
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41577e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov edi, eax
test edi, edi
je 0x415805
cmp dword [ebp + 8], esi
je 0x415805
push esi
lea eax, [ebp - 8]
push eax
push 2
push esi
push 0x51fecc
push SysReAllocStringLen
call fcn.00438ed9
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
js 0x4157cc
mov esi, dword [ebp - 4]
push dword [ebp + 8]
call fcn.004b7298
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTreatAsClass]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x418fce
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x50e452
call fcn.00485d38
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 0x419076
push dword [ebp + 8]
call fcn.004192f9
mov dword [ebp - 0x10], eax
test eax, eax
je 0x419108
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 0x41905f
push ecx
call fcn.00437752
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 0x41905f
xor edi, edi
inc edi
jmp 0x419069
push dword [ebx]
call fcn.0043775b
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.00418df3
jmp 0x419106
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 [0x519a74]
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 0x4190fe
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.00437752
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x4190f8
mov esi, dword [ebp + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.00418dcf
lea ecx, [edi + edi]
mov bl, al
push ecx
lea ecx, [ebp - 0x10]
call fcn.00418dcf
mov ecx, dword [esi]
shl bl, 4
sub bl, 0x51
add al, bl
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp edi, dword [eax]
jb 0x4190c3
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.004101ea
mov eax, edi
call fcn.00485d06
ret 0x10

Function at 0x419110
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 0x419163
push esi
push dword [ebp + 8]
call fcn.004192f9
mov edi, eax
test edi, edi
je 0x41915e
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 0x41915e
mov eax, dword [ebp - 8]
jmp 0x419175
mov eax, dword [ebp + 0x10]
jmp 0x419175
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 0x41917b
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e47f
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.00486640
mov eax, dword [0x561584]
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 0x4192ac
push ebx
push edx
call fcn.004192f9
mov ebx, eax
test ebx, ebx
jne 0x4191e3
push esi
jmp 0x4192d4
lea ecx, [ebp - 0x2014]
call fcn.0040e1e2
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 0x41926b
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.00410161
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.00419440
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x419299
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00417899
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004101ea
jmp 0x4192db
push esi
mov ecx, edi
call fcn.0040e111
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x419292
test esi, esi
jne 0x4192b5
mov esi, 0x51acd0
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.0040e111
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.00485cf8
leave
ret 0x10

Function at 0x4216c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x421700
call fcn.0041c534
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421700
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x421708
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00413069
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x422740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4227cc
cmp dword [esi + 0x20], 0
je 0x4227cc
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4227cc
cmp dword [ebp + 8], 0
je 0x4227cc
xor edi, edi
mov ebx, edi
call fcn.0041c534
push 0x521ac0
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4227b0
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4227cc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0044e1f7
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4227c8
mov ecx, esi
call fcn.0042245c
mov eax, edi
jmp 0x4227ce
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4278df
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x50f511
call fcn.00485d38
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x427905
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42795f
lea ecx, [ebp - 0x10]
call fcn.0040e1e2
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x519a74]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004e0236
push eax
call fcn.0040ebf4
add esp, 0x14
test esi, esi
je 0x427952
push esi
call fcn.004b7298
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004101ea
mov eax, ebx
call fcn.00485d06
ret 8

Function at 0x42efb5
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.004e0b0d
pop ecx
test eax, eax
jne 0x42eff7
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x522c00
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00407e1a
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42efbd
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x42f310
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 1
mov eax, dword [esi]
push 1
mov edi, dword [eax + 0xe0]
mov ecx, edi
je 0x42f34b
push 0
call dword [0x519a74]
mov ecx, esi
call edi
test eax, eax
je 0x42f347
xor eax, eax
inc eax
jmp 0x42f35e
xor eax, eax
jmp 0x42f35e
push dword [esi + 0x24]
call dword [0x519a74]
mov ecx, esi
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x431e81
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0xc8], 0
jne 0x431f45
cmp dword [edi + 0xb8], 0
je 0x431f45
push esi
call fcn.0041c534
push 5
push dword [edi + 0xb8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x431f44
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x431f44
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x431f44
push ebx
call fcn.0041c534
mov ebx, dword [eax + 0x3c]
test ebx, ebx
je 0x431f43
push 0x10
call fcn.00413f8b
pop ecx
mov ecx, dword [ebx]
push esi
push eax
mov dword [ebp - 4], eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x519a74]
mov ecx, ebx
call esi
mov ecx, dword [edi + 0xcc]
mov eax, dword [ebp - 4]
mov dword [edi + 0xc8], eax
test ecx, ecx
je 0x431f3d
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x519a74]
mov ecx, ebx
call esi
push 0x10
push dword [edi + 0xcc]
call fcn.00485961
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov dword [edi + 0xcc], eax
pop ebx
pop esi
mov eax, dword [edi + 0xc8]
pop edi
leave
ret

Function at 0x436cb6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004273b1
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x436cf2
call fcn.0043741d
mov dword [esi + 0xc], 1
jmp 0x436cf7
call fcn.0043741d
cmp dword [esi], 0
je 0x436d42
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x436d1d
push edi
call fcn.0041b43f
lea ecx, [edi + 1]
push ecx
jmp 0x436d2c
push 0xff
call fcn.00410161
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00419440
pop edi
jmp 0x436d66
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x436d66
push dword [esi]
push dword [ebp - 4]
call fcn.00440930
pop esi
leave
ret 0xc
Function at 0x437c91
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x437d08
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x437cce
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x437cce
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x437cfb
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x437cfe
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x437cf4
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x519a74]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x437cb1
test eax, eax
je 0x437d4f
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.00437fa2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x519a74]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8