joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45da90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c5123
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004b82e2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004bd97a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004bee96
test eax, eax
je 0x45dbac
mov ecx, dword [esp + 0x3c]
call fcn.004bd9a7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x45db70
push edi
mov ecx, esi
call fcn.004bb017
mov ecx, esi
call fcn.0045dd50
cmp dword [esp + 0x38], 1
jne 0x45dba5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004bb152
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45fd90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45fdc3
push esi
call fcn.0046e130
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45fdbc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45fe49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45fe32
mov eax, dword [esi + 8]
test eax, eax
je 0x45fde7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45fe2e
cmp eax, 2
je 0x45fe32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45fdda
cmp eax, 3
je 0x45fe0d
cmp eax, 1
jne 0x45fdda
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45fdda
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45fdda
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045fe70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45fe58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045fe70
add esp, 4
pop esi
ret

Function at 0x4606e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x460701
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x460701
mov eax, dword [eax + 0x44]
test eax, eax
je 0x460701
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x47b000
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edi
mov ecx, dword [esi + 0x3c]
add ecx, esi
mov ebp, dword [eax]
cmp word [ecx + 0x18], 0x20b
sete dl
mov byte [eax + 6], dl
test dl, dl
mov dx, word [ecx + 6]
je 0x47b079
xor edi, edi
mov di, word [ecx + 0x14]
lea edi, [edi + ecx + 0x18]
mov ecx, dword [ecx + 0x54]
mov ebx, ecx
mov dword [esp + 0x18], edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x3c]
xor esi, esi
add ecx, ebp
xor edi, edi
mov si, word [ecx + 0x14]
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], ecx
lea esi, [esi + ecx + 0x18]
mov dword [eax + 0x1c], esi
mov esi, dword [ecx + 0x30]
mov dword [eax + 8], esi
mov esi, dword [ecx + 0x34]
mov dword [eax + 0xc], esi
lea esi, [ecx + 0x88]
jmp 0x47b0c3
xor edi, edi
mov di, word [ecx + 0x14]
lea edi, [edi + ecx + 0x18]
mov ecx, dword [ecx + 0x54]
mov ebx, ecx
mov dword [esp + 0x18], edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x3c]
xor esi, esi
add ecx, ebp
xor edi, edi
mov si, word [ecx + 0x14]
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edi
lea esi, [esi + ecx + 0x18]
mov dword [eax + 0x1c], esi
mov esi, dword [ecx + 0x34]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
lea esi, [ecx + 0x78]
mov dword [eax + 0x20], esi
mov cx, word [ecx + 6]
cmp dx, di
mov word [eax + 4], cx
jbe 0x47b11a
mov ecx, dword [esp + 0x18]
and edx, 0xffff
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
lea ebx, [ecx + 0x10]
mov edi, dword [ebx - 4]
test edi, edi
je 0x47b10c
mov ecx, dword [ebx]
test ecx, ecx
je 0x47b10c
mov ebp, dword [eax]
mov esi, dword [ebx + 4]
add edi, ebp
mov ebp, ecx
add esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
add ebx, 0x28
dec ecx
mov dword [esp + 0x18], ecx
jne 0x47b0e8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x47d8b0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx]
test eax, eax
jne 0x47d8bb
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret 8

Function at 0x47dc00
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov word [ebp], di
je 0x47dd5c
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x47dd5c
push 0xf0000000
push 1
push edi
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x47dd33
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x47dd33
mov eax, dword [esp + 0x20]
push edi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x47dd33
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [esp + 0x18]
push edi
push ecx
push edi
push 2
push edx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
je 0x47dd33
mov eax, dword [esp + 0x18]
push eax
call fcn.004a6927
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x47dd33
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push edi
push ecx
push ebx
push 2
push edx
call esi
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x47dd2a
mov eax, dword [esp + 0x18]
cmp eax, 0x10
jb 0x47dcfa
mov eax, ebx
mov ecx, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
jmp 0x47dd26
mov ecx, eax
mov esi, ebx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [ebp + eax*2]
sub ecx, eax
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor edi, edi
mov word [ebp + 0x20], di
push ebx
call fcn.004a683e
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x47dd42
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x47dd52
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x47fb80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
test eax, eax
je 0x47fba7
cmp word [eax], 0x5a4d
jne 0x47fba7
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x47fba7
test word [eax + 4], 0x14c
jne 0x47fbaf
xor eax, eax
add esp, 0xc
ret 8
mov edx, dword [eax + 0x54]
mov cx, word [eax + 6]
push ebx
mov dword [esp + 4], edx
push ebp
xor edx, edx
mov dx, word [eax + 0x14]
push esi
mov esi, dword [eax + 0x50]
push edi
mov edi, dword [esp + 0x24]
mov word [esp + 0x14], cx
lea ecx, [edx + eax + 0x18]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x47fbf8
cmp esi, dword [0x4f5eac]
jne 0x47fbe8
xor esi, esi
push 0
push esi
mov ecx, edi
call fcn.0047bc20
mov edx, dword [edi]
mov dword [edx], esi
jmp 0x47fc36
mov ebx, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, esi
jae 0x47fc12
lea eax, [eax + esi + 0x1000]
push 0
push eax
mov ecx, edi
call fcn.0047bc20
mov ecx, dword [edi]
cmp esi, ebx
mov dword [ecx], esi
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov byte [edx + eax], 0
ja 0x47fc36
jae 0x47fc36
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov edx, dword [ecx + 8]
mov byte [edx + esi - 1], 0
jb 0x47fc27
mov edi, dword [edi]
test edi, edi
je 0x47fc41
mov ebp, dword [edi + 8]
jmp 0x47fc43
xor ebp, ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x24], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
test cx, cx
jbe 0x47fcc4
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 0xc]
lea edx, [ebx + 0x14]
add ebx, 0x10
and ecx, 0xffff
mov dword [esp + 0x10], ecx
mov edi, dword [eax]
test edi, edi
je 0x47fcb0
mov ecx, dword [ebx]
test ecx, ecx
je 0x47fcb0
mov esi, dword [edx]
add edi, ebp
add esi, dword [esp + 0x20]
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x24]
and ecx, 3
add ebx, 0x28
add edx, 0x28
add eax, 0x28
rep movsb byte es:[edi], byte [esi]
jmp 0x47fcb9
add ebx, 0x28
add edx, 0x28
add eax, 0x28
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x47fc7f
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x489870
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4898bc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4898bc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4898a6
push eax
call ebp
test ax, ax
jl 0x4898b4
inc esi
add edi, 4
cmp esi, 6
jb 0x489898
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00489570
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x48d790
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x48d7f0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x48d7f0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x48d7f0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x48d7f0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x48d800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x491140
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x590778]
xor edx, edx
cmp eax, edx
jne 0x491166
xor eax, eax
mov byte [eax + 0x590678], al
inc eax
cmp eax, 0x100
jl 0x49114e
mov dword [0x590778], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x590678
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4911f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4911ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x491198
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x491200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x491253
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49123a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x497be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c5f1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00498500
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x54be6c
call fcn.004b6a4a
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x497c73
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b6a4a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x497c6c
push 0
mov ecx, eax
call fcn.0048ed70
mov dword [esi + 0xc], eax
jmp 0x497c75
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x497c75
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4b90d7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b910f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b7164
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b713c
jmp 0x4b911b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ba7d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ba813
call fcn.004c0411
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ba813
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ba80a
xor eax, eax
jmp 0x4ba81b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ba821
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c0941
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 0x4c096f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c098d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c08a7
jmp 0x4c098d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c098d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c08a7
test edi, edi
mov eax, edi
jne 0x4c0977
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1020f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov esi, dword [edi]
lea eax, [esi*4]
test eax, eax
je 0x100029aa
mov ebx, dword [ebp + 8]
sub ebx, ecx
nop
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
mov esi, dword [edi]
lea eax, [esi*4]
cmp edx, eax
jb 0x10002990
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 4]
inc eax
shl esi, 2
shl eax, 4
mov dword [ebp - 0x18], esi
cmp esi, eax
jae 0x10002aed
lea eax, [esi - 3]
add eax, ecx
mov bh, byte [eax]
mov cl, byte [eax + 1]
xor edx, edx
mov ch, byte [eax + 2]
mov bl, byte [eax - 1]
mov dword [ebp - 0x14], eax
mov eax, esi
shr eax, 2
div dword [edi]
mov byte [ebp - 8], bl
mov eax, edx
mov byte [ebp - 7], bh
mov byte [ebp - 0xa], cl
mov byte [ebp - 6], cl
mov byte [ebp - 9], ch
mov byte [ebp - 5], ch
test eax, eax
jne 0x10002a4a
lea eax, [ebp - 8]
mov byte [ebp - 7], cl
mov byte [ebp - 6], ch
mov ecx, edi
push eax
mov byte [ebp - 8], bh
mov byte [ebp - 5], bl
call fcn.10002b00
mov eax, dword [edi]
xor edx, edx
mov cl, 1
lea esi, [eax*4]
mov eax, dword [ebp - 0x18]
div esi
mov esi, eax
sub esi, 1
je 0x10002a37
mov dl, cl
add cl, cl
shr dl, 7
movzx eax, dl
imul eax, eax, 0x1b
xor cl, al
sub esi, 1
jne 0x10002a23
mov bl, byte [ebp - 8]
mov dh, byte [ebp - 5]
xor bl, cl
mov dl, byte [ebp - 6]
mov bh, byte [ebp - 7]
mov esi, dword [ebp - 0x18]
jmp 0x10002a75
mov edx, dword [edi]
cmp edx, 6
jbe 0x10002a6f
cmp eax, 4
jne 0x10002a6f
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.10002b00
mov dh, byte [ebp - 5]
mov dl, byte [ebp - 6]
mov bh, byte [ebp - 7]
mov bl, byte [ebp - 8]
jmp 0x10002a75
mov dh, byte [ebp - 9]
mov dl, byte [ebp - 0xa]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
shl eax, 2
sub ecx, eax
movzx eax, byte [ecx + esi]
mov ecx, dword [ebp - 0x14]
xor al, bl
mov byte [ecx + 3], al
mov ecx, dword [edi]
mov eax, dword [ebp - 0x10]
shl ecx, 2
sub eax, ecx
mov al, byte [eax + esi + 1]
xor al, bh
mov ebx, dword [ebp - 0x14]
mov byte [ebx + 4], al
lea ecx, [ebx + 4]
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi]
shl ecx, 2
sub eax, ecx
movzx eax, byte [eax + esi + 2]
xor al, dl
mov byte [ebx + 5], al
mov ecx, dword [edi]
mov eax, dword [ebp - 0x10]
shl ecx, 2
sub eax, ecx
movzx eax, byte [eax + esi + 3]
add esi, 4
xor al, dh
mov dword [ebp - 0x18], esi
mov byte [ebx + 6], al
mov eax, dword [edi + 4]
mov bh, byte [ebp - 9]
inc eax
shl eax, 4
cmp esi, eax
mov eax, dword [ebp - 0x14]
jb 0x100029c6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10172731
mov esp, ebp
pop ebp
ret 8
Function at 0x10004d70
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.1003c44c
Function at 0x1000f790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
jbe 0x1000f79e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000f7b2
test al, 0x10
jne 0x1000f7b2
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x1000f7c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1020f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
mov dword [ebp - 0x20], edi
jbe 0x1000f7e3
mov eax, dword [eax]
push 0x101b42cc
push eax
call fcn.1017f5b9
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1000f811
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10172731
mov esp, ebp
pop ebp
ret
push esi
push 2
push 0
push ebx
call fcn.1017fbcd
push ebx
call fcn.1018022c
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x20], esi
call fcn.1017fbcd
xor eax, eax
xor ecx, ecx
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
test esi, esi
je 0x1000f886
cmp esi, 0x7fffffff
ja 0x1000f8f7
push esi
lea ecx, [ebp - 0x10]
call fcn.10009f20
push esi
push 0
push dword [ebp - 0x10]
call fcn.10176a90
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x14], eax
lea ecx, [eax + esi]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
push ebx
push esi
push 1
push eax
call fcn.1017f7a9
push ebx
mov esi, eax
call fcn.1017f4d2
add esp, 0x14
lea ecx, [ebp - 0x10]
cmp esi, dword [ebp - 0x20]
je 0x1000f8b9
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x1000f8df
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [edi + 8], eax
call fcn.100021e0
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.10172731
mov esp, ebp
pop ebp
ret
call fcn.10002d20
int3