joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bfd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424370
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x42d4b4]
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 edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x41c19d
mov edi, 0x5c
jmp 0x41c020
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x42f448]
lea ecx, [eax*4 + 0x42f448]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x41c048
cmp esi, 0xffffffff
je 0x41c192
jmp 0x41c18e
mov esi, dword [eax*4 + 0x4273a0]
cmp byte [0x42f440], 0
mov dword [ebp - 4], 0
je 0x41c07d
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x41c16a
test esi, esi
je 0x41c168
cmp word [esi], 0
je 0x41c168
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41c15f
cmp eax, 0x200
jae 0x41c15f
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x41c15f
movzx ecx, word [esi]
test cx, cx
je 0x41c0f0
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x41c15f
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x41c0d2
add eax, eax
cmp eax, 0x400
jae 0x41c1bf
mov edi, dword [0x42d4b4]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x42f444]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x41c129
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test edi, edi
je 0x41c14f
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x41c16a
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x41c17c
or eax, 0xffffffff
xchg dword [ecx], eax
jmp 0x41c192
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x41c18b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 0xc]
test esi, esi
jne 0x41c1bb
add ebx, 4
cmp ebx, edx
jne 0x41c020
xor eax, eax
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.0041f870
mov esp, ebp
pop ebp
ret
mov eax, esi
jmp 0x41c19f
call fcn.00413840
int3
Function at 0x41c0fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424370
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x42d4b4]
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 edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x41c19d
mov edi, 0x5c
jmp 0x41c020
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x42f448]
lea ecx, [eax*4 + 0x42f448]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x41c048
cmp esi, 0xffffffff
je 0x41c192
jmp 0x41c18e
mov esi, dword [eax*4 + 0x4273a0]
cmp byte [0x42f440], 0
mov dword [ebp - 4], 0
je 0x41c07d
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x41c16a
test esi, esi
je 0x41c168
cmp word [esi], 0
je 0x41c168
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41c15f
cmp eax, 0x200
jae 0x41c15f
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x41c15f
movzx ecx, word [esi]
test cx, cx
je 0x41c0f0
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x41c15f
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x41c0d2
add eax, eax
cmp eax, 0x400
jae 0x41c1bf
mov edi, dword [0x42d4b4]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x42f444]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x41c129
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test edi, edi
je 0x41c14f
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x41c16a
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x41c17c
or eax, 0xffffffff
xchg dword [ecx], eax
jmp 0x41c192
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x41c18b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 0xc]
test esi, esi
jne 0x41c1bb
add ebx, 4
cmp ebx, edx
jne 0x41c020
xor eax, eax
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.0041f870
mov esp, ebp
pop ebp
ret
mov eax, esi
jmp 0x41c19f
call fcn.00413840
int3
Function at 0x41d570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
jns 0x41d63a
mov ecx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ecx + 0x20]
cmp edi, eax
je 0x41d59f
lea eax, [ecx + 0x40]
cmp edi, eax
jne 0x41d63a
push edi
call fcn.004184a0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add esp, 4
add eax, 0x20
cmp edi, eax
jne 0x41d5c0
mov esi, 0x42f528
mov eax, 0x42f52c
jmp 0x41d5ca
mov esi, 0x42f529
mov eax, 0x42f530
cmp byte [esi], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], esi
je 0x41d61a
push edi
mov byte [eax + 1], bl
call fcn.0041d670
push edi
push 2
mov byte [ebp - 8], al
mov eax, dword [ebp + 8]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
push edi
push dword [ebp - 8]
mov esi, eax
call fcn.0041d720
push edi
call fcn.004184e0
mov eax, dword [ebp - 4]
add esp, 0x20
mov byte [eax], 0
test esi, esi
jne 0x41d611
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll___pctype_func
movzx ecx, bl
cmp word [eax + ecx*2], 0
jge 0x41d63a
mov eax, dword [ebp + 8]
pop edi
mov byte [esi], 1
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.msvcrt.dll_fputc]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4387e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x438805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x438878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x43883a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x43886d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x43886b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x438831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4387fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x4031b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0c67
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x60fe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 8
push eax
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0040fcef
call fcn.00412b68
test eax, eax
jne 0x403215
push 0xffffffffffffffff
push eax
push 0x64
call fcn.00412d25
xor eax, eax
jmp 0x403399
push 0
call fcn.004133b4
add esp, 4
push 5
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push 0
mov ecx, esi
call fcn.004121f5
push 0x5e9c2c
mov ecx, esi
call fcn.00412879
push 4
mov ecx, esi
call fcn.0040fe22
mov ecx, esi
call fcn.00411317
mov ecx, esi
call fcn.00411364
mov ecx, esi
call fcn.004113ff
movaps xmm0, xmmword [0x5ed1f0]
lea eax, [ebp - 0x4c]
push eax
push 0x5b593c
push 0xffff
mov ecx, 0x619d00
mov dword [ebp - 0x3c], 1
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x30], 0xc8
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x34], 1
call fcn.00411303
mov ecx, eax
call fcn.004146c2
push 0x8c
call fcn.00412a7d
mov edi, eax
add esp, 4
mov dword [ebp - 0x7c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x40331e
push 0x8c
push 0
push edi
call fcn.005789a0
add esp, 0xc
mov ecx, edi
push 0x5ea218
push 0x5eba8c
push 0x5ea0c8
push 0x80
call fcn.00415ed1
jmp 0x403320
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40320e
push eax
mov ecx, esi
call fcn.00416318
push 0x2c
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.005789a0
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.0040ef0c
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0040fffd
lea eax, [ebp - 0x78]
mov ecx, esi
push eax
call fcn.00416570
test eax, eax
jne 0x403374
xor esi, esi
jmp 0x40338f
mov ecx, dword [esi + 0x20]
push 5
call fcn.004176b8
mov eax, dword [esi + 0x20]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, 1
lea ecx, [ebp - 0x78]
call fcn.0040f0d1
mov eax, esi
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.005742be
mov esp, ebp
pop ebp
ret

Function at 0x406370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00417ec4
Function at 0x406530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x406559
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40656f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406566
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4065a2
nop
cmp esi, ecx
jae 0x406566
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x406590
cmp esi, ecx
jae 0x406566
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.00419cf3
mov ebx, eax
test ebx, ebx
jne 0x406620
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x406707
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406707
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406707
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x406688
cmp esi, ecx
jae 0x406707
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x406672
cmp esi, ecx
jae 0x406707
cmp word [esi], 0
je 0x406707
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x406712
mov ebx, dword [ebp - 4]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x4066d0
push edi
mov ecx, ebx
call fcn.00406b40
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x406712
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406c20
int3
Function at 0x412338
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x5a21ad
call fcn.00574880
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 0x4123e0
push dword [ebp + 8]
call fcn.00412655
mov dword [ebp - 0x10], eax
test eax, eax
je 0x412467
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_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x4123c9
push ecx
call fcn.004bcc31
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_RegQueryValueExA]
test eax, eax
jne 0x4123c9
xor edi, edi
inc edi
jmp 0x4123d3
push dword [ebx]
call fcn.00412ab5
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.004121db
jmp 0x412465
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 [0x5b4a78]
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 0x41245d
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.004bcc31
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x412457
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412180
push esi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.00412180
mov ecx, dword [ebp + 0x10]
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x412424
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00406a20
mov eax, edi
call fcn.0057484e
ret 0x10

Function at 0x41246f
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 0x4124c2
push esi
push dword [ebp + 8]
call fcn.00412655
mov edi, eax
test edi, edi
je 0x4124bd
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_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4124bd
mov eax, dword [ebp - 8]
jmp 0x4124d4
mov eax, dword [ebp + 0x10]
jmp 0x4124d4
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x4124da
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a21da
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.00574a30
mov eax, dword [0x60fe80]
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 - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x412608
push ebx
push edx
call fcn.00412655
mov ebx, eax
test ebx, ebx
jne 0x412542
push esi
jmp 0x412630
lea ecx, [ebp - 0x1014]
call fcn.004064d0
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x4125c7
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.00406ba0
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.00412791
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x4125f5
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.0040f814
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00406a20
jmp 0x412637
push esi
mov ecx, edi
call fcn.0040e1a0
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x4125ee
test esi, esi
jne 0x412611
mov esi, 0x5e9ed8
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.0040e1a0
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.005742be
leave
ret 0x10
Function at 0x4128ad
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [edi + 0x58], ebx
je 0x4128f5
push ebx
push dword [ebp + 8]
call fcn.00412655
mov edi, eax
test edi, edi
je 0x412956
push dword [ebp + 0x14]
push esi
push 3
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x412956
mov eax, dword [ebp + 0x14]
lea eax, [eax*2 + 1]
push eax
call fcn.004bcc31
mov edx, dword [ebp + 0x14]
mov ebx, eax
pop ecx
xor ecx, ecx
test edx, edx
je 0x41292c
mov al, byte [esi + ecx]
and al, 0xf
add al, 0x41
mov byte [ebx + ecx*2], al
mov al, byte [esi + ecx]
shr al, 4
add al, 0x41
mov byte [ebx + ecx*2 + 1], al
inc ecx
cmp ecx, edx
jb 0x412911
mov byte [ebx + ecx*2], 0
mov eax, dword [edi]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5b4a78]
mov ecx, edi
call esi
push ebx
mov esi, eax
call fcn.00412ab5
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x413a08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x413a4d
call fcn.0044bcbd
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413a4a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413a94
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x413a70
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5b4a78]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x413a91
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x41707a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5a1e73
call fcn.00574880
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4170a0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4170fa
lea ecx, [ebp - 0x10]
call fcn.004064d0
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 [0x5b4a78]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0058243a
push eax
call fcn.0040f575
add esp, 0x14
test esi, esi
je 0x4170ed
push esi
call fcn.00581e50
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406a20
mov eax, ebx
call fcn.0057484e
ret 8
Function at 0x417e2e
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 0x417e76
call fcn.0044bcbd
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417e76
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417e83
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x417ebf
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x417ea2
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x417eab
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x417ebd
test di, di
jne 0x417ebd
test dx, dx
je 0x417ebf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417ec4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x417eef
cmp dword [esi + 0x80], 0
jne 0x417eef
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.0044bcbd
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417f1f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417f1f
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00418186
jmp 0x417f21
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x417f28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.0044bcbd
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417f68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417f68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00417f70
jmp 0x417f6a
xor eax, eax
pop edi
pop esi
pop ebp
ret 8