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

Disassembly:
mov eax, 0x18
call fcn.10101f10
push esi
mov esi, dword [esp + 0x24]
dec esi
push edi
mov edi, dword [esp + 0x30]
lea eax, [esi - 0x29]
cmp edi, eax
jle 0x10125189
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.10112ab0
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
cmp esi, 0x29
jge 0x101251ab
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.10112ab0
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
push 0x37
lea eax, [esi - 0x14]
push str..crypto_rsa_rsa_oaep.c
push eax
mov dword [esp + 0x14], eax
call fcn.10116af0
add esp, 0xc
test eax, eax
mov dword [esp + 0x28], eax
jne 0x101251e7
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.10112ab0
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov byte [ebp], 0
lea ebx, [ebp + 1]
push 0
add ebp, 0x15
call fcn.1012f150
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
push 0
push ebp
push ecx
push edx
call fcn.10110d60
mov ecx, esi
sub ecx, edi
sub ecx, 0x29
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [ebp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x50]
mov eax, ebp
sub eax, ecx
add eax, esi
mov esi, dword [esp + 0x4c]
mov edx, ecx
shr ecx, 2
mov byte [eax - 0x15], 1
lea edi, [eax - 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x14
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.10115a10
add esp, 0x20
test eax, eax
jg 0x10125267
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
call fcn.1012f150
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
push eax
push 0x14
push ebx
push esi
push edi
call fcn.10125030
add esp, 0x14
test esi, esi
jle 0x10125299
mov eax, ebp
sub edi, ebp
mov ecx, esi
lea esp, [esp]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x10125290
call fcn.1012f150
push eax
push esi
push ebp
lea eax, [esp + 0x20]
push 0x14
push eax
call fcn.10125030
lea ecx, [esp + 0x28]
lea esi, [esp + 0x29]
lea ebp, [esp + 0x2a]
lea edi, [esp + 0x2b]
lea edx, [esp + 0x2c]
add esp, 0x14
sub ecx, ebx
sub esi, ebx
sub ebp, ebx
sub edi, ebx
mov eax, ebx
sub edx, ebx
mov dword [esp + 0x38], 4
mov bl, byte [ecx + eax]
xor byte [eax], bl
mov bl, byte [esi + eax]
xor byte [eax + 1], bl
mov bl, byte [eax + ebp]
xor byte [eax + 2], bl
mov bl, byte [edi + eax]
xor byte [eax + 3], bl
mov bl, byte [edx + eax]
xor byte [eax + 4], bl
mov ebx, dword [esp + 0x38]
add eax, 5
dec ebx
mov dword [esp + 0x38], ebx
jne 0x101252d8
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10116cb0
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
Function at 0x10125320
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.10101f10
push ebx
push ebp
mov ebp, dword [esp + 0x48]
xor ebx, ebx
dec ebp
cmp ebp, 0x29
push esi
push edi
mov dword [esp + 0x10], ebx
jl 0x101254ca
mov eax, dword [esp + 0x4c]
mov edi, ebp
sub edi, eax
jns 0x10125356
mov dword [esp + 0x10], 1
xor edi, edi
mov esi, dword [esp + 0x48]
push 0x7a
sub esi, edi
lea eax, [esi + 0x14]
add ebp, 0xffffffec
push str..crypto_rsa_rsa_oaep.c
push ebp
mov dword [esp + 0x5c], eax
call fcn.10116af0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1012539c
push 0x7d
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x7a
push 4
call fcn.10112ab0
add esp, 0x14
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
call fcn.1012f150
mov ecx, dword [esp + 0x50]
push eax
push ebp
push ecx
lea edx, [esp + 0x20]
push 0x14
push edx
call fcn.10125030
add esp, 0x14
cmp edi, 0x14
mov eax, edi
jge 0x101253d3
mov edi, edi
mov dl, byte [esp + eax + 0x14]
mov cl, byte [esi + eax]
xor dl, cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x14
jl 0x101253c0
call fcn.1012f150
push eax
push 0x14
lea edx, [esp + 0x1c]
push edx
push ebp
push ebx
call fcn.10125030
add esp, 0x14
test ebp, ebp
jle 0x10125401
mov esi, dword [esp + 0x50]
mov eax, ebx
sub esi, ebx
mov edi, ebp
mov cl, byte [esi + eax]
xor byte [eax], cl
inc eax
dec edi
jne 0x101253f8
push 0
call fcn.1012f150
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x60]
push 0
lea edx, [esp + 0x34]
push edx
push eax
push ecx
call fcn.10110d60
add esp, 0x18
mov ecx, 5
lea edi, [esp + 0x28]
mov esi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x101254ca
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x101254ca
mov eax, 0x14
cmp ebp, eax
jle 0x1012545b
lea esp, [esp]
cmp byte [eax + ebx], 0
jne 0x1012545b
inc eax
cmp eax, ebp
jl 0x10125450
cmp byte [eax + ebx], 1
jne 0x101254ca
mov ecx, eax
inc eax
cmp ecx, ebp
jge 0x101254ca
mov ecx, dword [esp + 0x44]
sub ebp, eax
cmp ecx, ebp
jge 0x101254a0
push 0x9b
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0x7a
push 4
call fcn.10112ab0
add esp, 0x14
push ebx
or ebp, 0xffffffff
call fcn.10116cb0
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
lea esi, [eax + ebx]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.10116cb0
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x2c
ret
push 0xa8
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0x7a
push 4
call fcn.10112ab0
add esp, 0x14
test ebx, ebx
je 0x101254ef
push ebx
call fcn.10116cb0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
Function at 0x101258a0
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x14], edx
jne 0x10125957
mov ecx, dword [esp + 0xc]
mov al, byte [ecx]
cmp al, 0x6a
je 0x101258c0
cmp al, 0x6b
jne 0x10125957
cmp al, 0x6b
push esi
lea esi, [ecx + 1]
jne 0x10125913
lea eax, [edx - 3]
xor edx, edx
test eax, eax
jle 0x101258e3
mov cl, byte [esi]
inc esi
cmp cl, 0xba
je 0x101258e3
cmp cl, 0xbb
jne 0x101258f0
inc edx
cmp edx, eax
jl 0x101258d1
sub eax, edx
test edx, edx
jne 0x10125916
push 0x8a
jmp 0x101258f5
push 0x81
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.10112ab0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
lea eax, [edx - 2]
cmp byte [eax + esi], 0xcc
je 0x1012593f
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.10112ab0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push edi
mov edi, dword [esp + 0xc]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.10112ab0
add esp, 0x14
or eax, 0xffffffff
ret
Function at 0x10134040
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x10134059
mov esi, ebx
mov ebx, eax
jmp 0x1013405b
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jle 0x10134071
push eax
push edi
call fcn.1011a2e0
add esp, 8
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x1013409a
push ebp
jmp 0x10134080
mov ecx, dword [ebx]
mov ebp, dword [ecx + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x10134080
pop ebp
cmp eax, dword [esi + 4]
jge 0x101340b2
nop
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x101340a0
mov esi, dword [esi + 4]
test esi, esi
mov dword [edi + 4], esi
jle 0x101340d8
mov eax, dword [edi]
lea eax, [eax + esi*4 - 4]
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x101340d8
mov edx, dword [edi + 4]
dec edx
mov ecx, edx
test ecx, ecx
mov dword [edi + 4], edx
jg 0x101340c2
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x101507ae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x101507ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10105914
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x101507f1
test byte [esp + 8], 2
je 0x101507f1
call fcn.10105902
mov dword [eax], 0xd
call fcn.1010590b
mov dword [eax], 5
jmp 0x101507ca
xor eax, eax
ret

Function at 0x10152680
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.10104fd0
add esp, 0xc
call fcn.1015c839
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x10152750
cmp dword [ebp - 8], ebx
je 0x1015274b
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x10152552
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.101021ba
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x1015275a
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x10152723
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x1015273d
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x10152755
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x1015275c
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x1015275a
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10152763
Capabilities:
Resume thread

Disassembly:
mov eax, 0x101651dc
call fcn.10105030
push ecx
push esi
push 0x40
call fcn.1015294a
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x10152792
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1015ab87
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.10152680
test eax, eax
jne 0x101527b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x101527d6
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x101527d4
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x101527e5
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
call fcn.10156e12
mov esi, eax
test esi, esi
jne 0x101527fc
call fcn.10150eb9
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
and dword [esi + 0x30], 0
or eax, 4
push eax
mov ecx, esi
call fcn.10152680
test eax, eax
jne 0x10152823
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x10152840
push dword [ebp + 0xc]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x14], 4
jne 0x1015283e
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret 0x14

Function at 0x10153090
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10165270
call fcn.10105030
sub esp, 0x150
mov eax, dword [0x101b9578]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x101530d8
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x101530dc
cmp eax, esi
jb 0x101530e3
xor eax, eax
jmp 0x101531b8
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.1015304e
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x101531a8
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x10153137
xor esi, esi
jmp 0x101531ab
test byte [ebp - 0x158], 2
jne 0x10153147
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x101531a8
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x101531a8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x10153133
cmp dword [ebp - 0x154], edi
jbe 0x10153133
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x10153133
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001070
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1010122d
leave
ret 8
Function at 0x10156489
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x101564cc
call fcn.1015c849
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x101564cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x101564e7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.101555ee
test ebx, ebx
mov esi, eax
je 0x101564e5
test edi, edi
je 0x101564e5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10156d8c
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x10165365
call fcn.10105030
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x10156db1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10156dfd
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001070
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x101577e2
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.10104fd0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x1018b244]
je 0x101578e9
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10157852
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x10157859
cmp ebx, ebx
jne 0x10157859
xor eax, eax
jmp 0x101578ec
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x10157866
mov byte [esi + 0x20], bl
jmp 0x1015787a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.100f8ed9
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.100f8ed9
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.100f8ed9
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x101578d5
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x101578e9
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10158066
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x1015809d
call fcn.1015c849
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x101580ae
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x101580e7
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x101580cc
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x101580d4
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x101580e5
test ax, ax
jne 0x101580e5
test si, si
je 0x101580e7
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x101580f6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10158348
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x101659aa
call fcn.10105030
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.1015c849

Function at 0x10158529
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x54], ebx
jne 0x10158549
cmp dword [edi + 0x50], 0
jne 0x10158549
movzx eax, bx
mov dword [edi + 0x50], eax
call fcn.1015c849
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.101584f0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x10159041
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x101b9578]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x10159090
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x10159090
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1015909c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.1010122d
leave
ret 8

Function at 0x1015a356
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101b9578]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x1015a3a3
push dword [ebp + 8]
call fcn.1015cdd4
mov esi, eax
test esi, esi
je 0x1015a3cb
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x1015a3cb
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x10169658
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.1010122d
leave
ret 0xc
Function at 0x1015a70e
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov edx, dword [ebp + 0xc]
mov eax, dword [0x101b9578]
push ebx
xor ecx, ecx
cmp edx, ecx
push esi
mov dword [ebp - 4], eax
push edi
je 0x1015a82f
cmp dword [ebp + 8], ecx
je 0x1015a82f
mov eax, dword [ebp + 0x18]
mov esi, eax
mov edi, eax
and esi, 0x2e000000
and edi, 0x40000000
test eax, 0x90000000
mov dword [ebp - 0x830], 0x824
mov dword [ebp - 0x82c], ecx
mov dword [ebp + 0x18], ecx
je 0x1015a780
cmp dword [edx + 0x30], ecx
je 0x1015a780
test eax, 0x2000000
je 0x1015a77a
mov dword [ebp + 0x18], 1
jmp 0x1015a780
or edi, 0x80000000
mov ebx, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push esi
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1015a7e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1015a82f
push dword [ebp - 0x830]
call fcn.1015294a
test eax, eax
pop ecx
mov dword [ebp - 0x834], eax
je 0x1015a82f
push esi
lea ecx, [ebp - 0x830]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x82c], 1
call ebx
test eax, eax
jne 0x1015a7ef
push dword [ebp - 0x834]
jmp 0x1015a829
lea ebx, [ebp - 0x828]
jmp 0x1015a7f5
mov ebx, dword [ebp - 0x834]
mov esi, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp + 0x18], edi
mov dword [ebp + 8], eax
je 0x1015a84c
push 0x2100000
push edi
push edi
push dword [esi + 0x2c]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeA]
test eax, eax
jge 0x1015a840
cmp dword [ebp - 0x82c], edi
je 0x1015a82f
push ebx
call fcn.10152975
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.1010122d
leave
ret 0x14
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esi + 0x30], eax
cmp dword [ebp - 0x82c], edi
je 0x1015a85b
push ebx
call fcn.10152975
pop ecx
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x1015a86d
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x1000
jmp 0x1015a831
mov cx, word [esi + 0x18]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov esi, dword [esi + 0xc]
dec esi
mov ecx, dword [ebp + 0x10]
je 0x1015a8cb
dec esi
je 0x1015a8c0
dec esi
je 0x1015a8b5
dec esi
je 0x1015a8aa
dec esi
je 0x1015a8a2
dec esi
je 0x1015a89a
dec esi
jne 0x1015a865
mov dword [ecx], 0x1002
jmp 0x1015a831
mov dword [ecx], 0x1006
jmp 0x1015a831
mov dword [ecx], 0x1001
jmp 0x1015a831
mov dword [ecx], 0x100b
jmp 0x1015a831
mov dword [ecx], 3
jmp 0x1015a831
mov dword [ecx], 2
jmp 0x1015a831
mov dword [ecx], 1
jmp 0x1015a831