joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4362c6
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x24]
mov byte [edi], 1
cmp dword [0x62b384], 0
jne 0x436329
push 0x41
pop eax
lea ecx, [eax - 0x41]
mov dword [eax*4 + 0x62b2c8], ecx
inc eax
cmp eax, 0x5a
jle 0x4362df
push 0x61
pop eax
lea ecx, [eax - 0x47]
mov dword [eax*4 + 0x62b2c8], ecx
inc eax
cmp eax, 0x7a
jle 0x4362f2
push 0x30
pop eax
lea ecx, [eax + 4]
mov dword [eax*4 + 0x62b2c8], ecx
inc eax
cmp eax, 0x39
jle 0x436305
mov dword [0x62b374], 0x3e
mov dword [0x62b384], 0x3f
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401c1e
test al, al
jne 0x43645f
push ebx
push esi
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
xor esi, esi
call fcn.00401c1e
test al, al
jne 0x436444
cmp esi, 4
jge 0x436398
lea ecx, [ebp + 0xc]
call fcn.004018c3
mov al, byte [eax]
cmp al, 0x30
jb 0x43636c
cmp al, 0x7a
jbe 0x436378
cmp al, 0x2b
je 0x436378
cmp al, 0x2f
je 0x436378
cmp al, 0x3d
jne 0x43637d
mov byte [ebp + esi - 8], al
inc esi
lea ecx, [ebp + 0xc]
call fcn.00435f0d
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401c1e
test al, al
je 0x436355
cmp esi, 4
jne 0x436440
cmp byte [ebp - 8], 0x3d
je 0x43645a
cmp byte [ebp - 7], 0x3d
je 0x43645a
cmp byte [ebp - 6], 0x3d
jne 0x4363cb
cmp byte [ebp - 5], 0x3d
jne 0x43645a
mov dword [ebp - 0x10], 8
jmp 0x4363de
xor eax, eax
cmp byte [ebp - 5], 0x3d
setne al
lea eax, [eax*8 + 0x10]
mov dword [ebp - 0x10], eax
and dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0
mov byte [ebp - 1], 0
je 0x436444
push 6
lea esi, [ebp - 8]
pop edi
movzx eax, byte [esi]
mov bl, byte [eax*4 + 0x62b2c8]
mov cl, byte [ebp - 0xc]
add dword [ebp - 0xc], 6
shl bl, 2
mov al, bl
shr al, cl
sub edi, 6
or byte [ebp - 1], al
cmp dword [ebp - 0xc], 8
jl 0x436434
mov ecx, dword [ebp + 0x20]
lea eax, [ebp - 1]
push eax
call fcn.00436268
sub dword [ebp - 0xc], 8
sub dword [ebp - 0x10], 8
add edi, 8
mov ecx, edi
shl bl, cl
mov byte [ebp - 1], bl
inc esi
cmp dword [ebp - 0x10], 0
jne 0x4363f2
mov edi, dword [ebp + 0x24]
jmp 0x436444
test esi, esi
jne 0x43645a
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401c1e
test al, al
je 0x43633f
jmp 0x43645d
mov byte [edi], 0
pop esi
pop ebx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 4], ecx
pop edi
leave
ret
Function at 0x43a426
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x24]
mov byte [edi], 1
cmp dword [0x62da94], 0
jne 0x43a489
push 0x41
pop eax
lea ecx, [eax - 0x41]
mov dword [eax*4 + 0x62d9d8], ecx
inc eax
cmp eax, 0x5a
jle 0x43a43f
push 0x61
pop eax
lea ecx, [eax - 0x47]
mov dword [eax*4 + 0x62d9d8], ecx
inc eax
cmp eax, 0x7a
jle 0x43a452
push 0x30
pop eax
lea ecx, [eax + 4]
mov dword [eax*4 + 0x62d9d8], ecx
inc eax
cmp eax, 0x39
jle 0x43a465
mov dword [0x62da84], 0x3e
mov dword [0x62da94], 0x3f
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401c1e
test al, al
jne 0x43a5be
push ebx
push esi
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
xor esi, esi
call fcn.00401c1e
test al, al
jne 0x43a5a3
cmp esi, 4
jge 0x43a4f8
lea ecx, [ebp + 0xc]
call fcn.004018c3
mov al, byte [eax]
cmp al, 0x30
jb 0x43a4cc
cmp al, 0x7a
jbe 0x43a4d8
cmp al, 0x2b
je 0x43a4d8
cmp al, 0x2f
je 0x43a4d8
cmp al, 0x3d
jne 0x43a4dd
mov byte [ebp + esi - 4], al
inc esi
lea ecx, [ebp + 0xc]
call fcn.00435f0d
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401c1e
test al, al
je 0x43a4b5
cmp esi, 4
jne 0x43a59f
cmp byte [ebp - 4], 0x3d
je 0x43a5b9
cmp byte [ebp - 3], 0x3d
je 0x43a5b9
cmp byte [ebp - 2], 0x3d
jne 0x43a52b
cmp byte [ebp - 1], 0x3d
jne 0x43a5b9
mov dword [ebp - 0xc], 8
jmp 0x43a53e
xor eax, eax
cmp byte [ebp - 1], 0x3d
setne al
lea eax, [eax*8 + 0x10]
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
mov byte [ebp - 0x10], 0
je 0x43a5a3
push 6
lea esi, [ebp - 4]
pop edi
movzx eax, byte [esi]
mov bl, byte [eax*4 + 0x62d9d8]
mov cl, byte [ebp - 8]
add dword [ebp - 8], 6
shl bl, 2
mov al, bl
shr al, cl
sub edi, 6
or byte [ebp - 0x10], al
cmp dword [ebp - 8], 8
jl 0x43a593
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x20]
call fcn.00438d76
sub dword [ebp - 8], 8
sub dword [ebp - 0xc], 8
add edi, 8
mov ecx, edi
shl bl, cl
mov byte [ebp - 0x10], bl
inc esi
cmp dword [ebp - 0xc], 0
jne 0x43a552
mov edi, dword [ebp + 0x24]
jmp 0x43a5a3
test esi, esi
jne 0x43a5b9
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401c1e
test al, al
je 0x43a49f
jmp 0x43a5bc
mov byte [edi], 0
pop esi
pop ebx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 4], ecx
pop edi
leave
ret

Function at 0x45e7bd
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4648a6
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x61f060]
xor eax, ebp
mov dword [ebp + 0x388], eax
mov eax, dword [ebp + 0x398]
push ebx
mov ebx, dword [ebp + 0x394]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x80], eax
mov esi, 0x400
jmp 0x464901
cmp dword [ebp - 0x7c], 0
jbe 0x4648fc
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call fcn.00467c83
add esp, 0xc
test eax, eax
je 0x464913
cmp dword [ebp - 0x7c], esi
jb 0x464917
push 0
lea eax, [ebp - 0x7c]
push eax
push esi
lea eax, [ebp - 0x78]
push eax
push ebx
call edi
test eax, eax
jne 0x4648e0
xor al, al
jmp 0x464919
mov al, 1
mov ecx, dword [ebp + 0x388]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488a42
add ebp, 0x38c
leave
ret

Function at 0x464a21
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x61f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp byte [esi + 0x20], bl
push edi
mov edi, dword [ebp + 8]
je 0x464b0d
cmp byte [esi + 0x21], bl
jne 0x464b0d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
cmp dword [esi + 0x18], 0x104
jae 0x464b09
cmp dword [esi + 0x1c], 8
jb 0x464a73
mov eax, dword [esi + 8]
jmp 0x464a76
lea eax, [esi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
test eax, eax
jne 0x464acb
cmp dword [esi + 0x1c], 8
jb 0x464a8c
mov eax, dword [esi + 8]
jmp 0x464a8f
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0048a31e
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x464acb
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [esi + 0x1c], 8
jb 0x464ad6
mov eax, dword [esi + 8]
jmp 0x464ad9
lea eax, [esi + 8]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x464b09
push 2
xor edx, edx
push edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov byte [esi + 0x21], 1
mov esi, dword [esi]
cmp esi, 0xffffffff
je 0x464b47
and dword [ebp - 0x210], 0
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
jb 0x464b29
mov eax, dword [edi + 4]
jmp 0x464b2c
lea eax, [edi + 4]
push 0
lea edx, [ebp - 0x210]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00488a42
leave
ret 4
Function at 0x464ea1
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x464edd
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov ecx, esi
call fcn.00464d6f
test al, al
je 0x464edd
cmp dword [esi + 0x1c], 8
jb 0x464ed3
mov esi, dword [esi + 8]
jmp 0x464ed6
add esi, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x466ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x466f6d
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00489920
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x466f2d
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x466f4f
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x46702b
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x466f95
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x466fa0
xor eax, eax
jmp 0x466fec
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x466fbd
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00465f84
jmp 0x466fcd
cmp ecx, 2
jne 0x466fd6
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.004663ee
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00489920
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x467017
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x46702b
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x466eeb
pop edi
pop ebx
leave
ret

Function at 0x467a5d
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
je 0x467a67
or eax, 0xffffffff
ret
cmp dword [esi + 4], 0
jne 0x467ab0
call fcn.0048c96f
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call fcn.0048c919
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x467aab
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call fcn.0048c68d
test eax, eax
pop ecx
je 0x467a63
or dword [esi + 0x38], 0xffffffff
jmp 0x467a63
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret
Function at 0x467abe
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
inc ebx
cmp edi, 2
jae 0x467b2e
test edi, edi
je 0x467adb
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call fcn.0048c96f
and dword [eax], 0
push dword [esi + 0x40]
mov ecx, edi
mov eax, 0x4000
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call fcn.0048c919
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x467b16
push dword [esi + 0x40]
call fcn.0048c68d
test eax, eax
pop ecx
je 0x467b16
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, 2
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
jae 0x467b2e
mov dword [esi + 0x58], eax
jmp 0x467be7
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x467be4
cmp byte [eax + 1], 0x8b
jne 0x467be4
add dword [esi + 4], 0xfffffffe
add eax, 2
mov dword [esi], eax
call fcn.00467a5d
mov edi, eax
call fcn.00467a5d
cmp edi, 8
mov ebx, eax
jne 0x467bdb
test bl, 0xe0
jne 0x467bdb
push 6
pop edi
call fcn.00467a5d
dec edi
jne 0x467b67
test bl, 4
je 0x467b96
call fcn.00467a5d
mov edi, eax
call fcn.00467a5d
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x467b96
call fcn.00467a5d
cmp eax, 0xffffffff
jne 0x467b85
test bl, 8
je 0x467ba9
call fcn.00467a5d
test eax, eax
je 0x467ba9
cmp eax, 0xffffffff
jne 0x467b9b
test bl, 0x10
je 0x467bbc
call fcn.00467a5d
test eax, eax
je 0x467bbc
cmp eax, 0xffffffff
jne 0x467bae
test bl, 2
je 0x467bcc
push 2
pop edi
call fcn.00467a5d
dec edi
jne 0x467bc4
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [esi + 0x38], eax
jmp 0x467be7
mov dword [esi + 0x38], 0xfffffffd
jmp 0x467be7
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x467c83
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x467d24
cmp byte [esi + 0x5c], 0x77
jne 0x467d24
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ebx
je 0x467d09
push edi
mov edi, 0x4000
cmp dword [esi + 0x10], 0
jne 0x467cd4
push dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push edi
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.0048c5d1
add esp, 0x10
cmp eax, edi
jne 0x467d04
mov dword [esi + 0x10], edi
mov eax, dword [esi + 4]
add dword [esi + 0x64], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push 0
push esi
call fcn.00466477
pop ecx
pop ecx
mov ecx, dword [esi + 4]
sub dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
test eax, eax
mov dword [esi + 0x38], eax
jne 0x467d08
cmp dword [esi + 4], eax
jne 0x467cb2
jmp 0x467d08
or dword [esi + 0x38], 0xffffffff
pop edi
push ebx
push dword [esp + 0x14]
push dword [esi + 0x4c]
call fcn.004663ee
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, ebx
sub eax, dword [esi + 4]
pop ebx
pop esi
ret
push 0xfffffffffffffffe
pop eax
pop esi
ret
Function at 0x467d29
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
push edi
je 0x467dcf
cmp byte [esi + 0x5c], 0x77
jne 0x467dcf
mov dword [esi + 4], ebx
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x467d71
push dword [esi + 0x40]
push edi
push 1
push dword [esi + 0x48]
call fcn.0048c5d1
add esp, 0x10
cmp eax, edi
jne 0x467dc7
mov eax, dword [esi + 0x48]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x467db9
push dword [esp + 0x10]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push esi
call fcn.00466477
pop ecx
pop ecx
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
test edi, edi
mov dword [esi + 0x38], eax
jne 0x467d9c
cmp eax, 0xfffffffb
jne 0x467d9c
and dword [esi + 0x38], edi
test ecx, ecx
jne 0x467daa
cmp dword [esi + 0x38], 1
je 0x467daa
xor ebx, ebx
jmp 0x467dad
xor ebx, ebx
inc ebx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x467d45
cmp eax, 1
je 0x467d45
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
jmp 0x467dd2
or eax, 0xffffffff
mov dword [esi + 0x38], eax
jmp 0x467dd2
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
ret

Function at 0x475435
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 0x475478
call fcn.0046b96e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x475478
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x475493
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00474fef
test ebx, ebx
mov esi, eax
je 0x475491
test edi, edi
je 0x475491
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x47d473
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x47d4b9
call fcn.0046b96e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47d4b9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x47d4fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x47d4e5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x47d4e5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x47d4f9
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47f00c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47f03a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47f058
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ef76
jmp 0x47f058
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47f058
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0047ef76
test edi, edi
mov eax, edi
jne 0x47f042
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x6389b8]
test ecx, ecx
je 0x47f11b
jmp 0x47f00b
ret 8

Function at 0x488a42
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x61f060]
jne 0x488a4c
repz ret
jmp fcn.00490fff
Function at 0x49a41b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048f4fa
xor ebx, ebx
cmp dword [0x639820], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x49a4f0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x49a45b
xor eax, eax
jmp 0x49a5b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x49a454
push eax
call fcn.0048f497
mov dword [esp], 0x5bedd8
push edi
mov dword [0x639820], eax
call esi
push eax
call fcn.0048f497
mov dword [esp], 0x5bedc4
push edi
mov dword [0x639824], eax
call esi
push eax
call fcn.0048f497
mov dword [0x639828], eax
lea eax, [ebp - 8]
push eax
call fcn.0048d6cf
test eax, eax
pop ecx
pop ecx
je 0x49a4be
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00488a5b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x49a4f0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048f497
cmp eax, ebx
pop ecx
mov dword [0x639830], eax
je 0x49a4f0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048f497
pop ecx
mov dword [0x63982c], eax
mov eax, dword [0x63982c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x49a569
cmp dword [0x639830], esi
je 0x49a569
push eax
call fcn.0048f503
pop ecx
call eax
cmp eax, ebx
je 0x49a536
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x639830]
call fcn.0048f503
pop ecx
call eax
test eax, eax
je 0x49a536
test byte [ebp - 0x18], 1
jne 0x49a569
lea eax, [ebp - 0xc]
push eax
call fcn.0048d706
test eax, eax
pop ecx
je 0x49a551
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00488a5b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x49a560
or dword [ebp + 0x10], 0x200000
jmp 0x49a59a
or dword [ebp + 0x10], 0x40000
jmp 0x49a59a
mov eax, dword [0x639824]
cmp eax, esi
je 0x49a59a
push eax
call fcn.0048f503
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49a59a
mov eax, dword [0x639828]
cmp eax, esi
je 0x49a59a
push dword [ebp - 4]
push eax
call fcn.0048f503
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x639820]
call fcn.0048f503
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a3a60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a3aaa
cmp dword [ebp + 0x10], 0
je 0x4a3aaa
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x4a3aaa
cmp ecx, 3
jle 0x4a3a95
cmp ecx, 4
jne 0x4a3aaa
push str.SELECT_DISTINCT_payloadID_FROM_ribs_collection_payload_ORDER_BY_tsInstalled
push dword [ebp + 0x10]
push dword [eax]
call fcn.004a50de
add esp, 0xc
pop ebp
ret
push ecx
push str.SELECT_DISTINCT_payloadID_FROM_ribs_collection_payload_WHERE_installState___d_ORDER_BY_tsInstalled
push dword [ebp + 0x10]
push dword [eax]
call fcn.004a50de
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret
Function at 0x4a3aaf
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a3b05
cmp dword [ebp + 0x10], 0
je 0x4a3b05
cmp dword [ebp + 0x14], 0
je 0x4a3b05
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x4a3b05
cmp ecx, 3
jle 0x4a3aed
cmp ecx, 4
jne 0x4a3b05
push dword [ebp + 0x10]
push str.SELECT_collectionID_FROM_ribs_collection_payload_WHERE_payloadID___q_ORDER_BY_tsInstalled
push dword [ebp + 0x14]
push dword [eax]
call fcn.004a50de
add esp, 0x10
pop ebp
ret
push ecx
push dword [ebp + 0x10]
push str.SELECT_collectionID_FROM_ribs_collection_payload_WHERE_payloadID___q_AND_installState___d_ORDER_BY_tsInstalled
push dword [ebp + 0x14]
push dword [eax]
call fcn.004a50de
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x4a3b0a
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a3b60
cmp dword [ebp + 0x10], 0
je 0x4a3b60
cmp dword [ebp + 0x14], 0
je 0x4a3b60
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x4a3b60
cmp ecx, 3
jle 0x4a3b48
cmp ecx, 4
jne 0x4a3b60
push dword [ebp + 0x10]
push str.SELECT_payloadID_FROM_ribs_collection_payload_WHERE_collectionID___q
push dword [ebp + 0x14]
push dword [eax]
call fcn.004a50de
add esp, 0x10
pop ebp
ret
push ecx
push dword [ebp + 0x10]
push str.SELECT_payloadID_FROM_ribs_collection_payload_WHERE_collectionID___q_AND_installState___d_ORDER_BY_tsInstalled
push dword [ebp + 0x14]
push dword [eax]
call fcn.004a50de
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x4a3b65
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x4a3ba0
cmp dword [ebp + 0xc], ecx
je 0x4a3ba0
cmp dword [ebp + 0x14], ecx
je 0x4a3ba0
cmp dword [ebp + 0x10], ecx
jl 0x4a3ba0
cmp dword [ebp + 0x10], 2
jg 0x4a3ba0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_payloadIDb_FROM_ribs_payload_constraint_WHERE_payloadID___q_AND_constraintType___d
push dword [ebp + 0x14]
push dword [eax]
call fcn.004a50de
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x4a3ba5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a3bd5
cmp dword [ebp + 0xc], 0
je 0x4a3bd5
cmp dword [ebp + 0x14], 0
je 0x4a3bd5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_key_value_FROM_collection_data_WHERE_collectionID___q_AND_domain___d
push dword [ebp + 0x14]
push dword [eax]
call fcn.004a50de
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret