joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482bf0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [esp + 0x814]
push esi
mov esi, dword [esp + 0x81c]
push edi
mov dword [ebp], 0xffffffff
cmp byte [esi], 0
jne 0x482c25
mov eax, dword [esp + 0x814]
push esi
push eax
call fcn.00483ce0
add esp, 8
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x10]
push edx
call fcn.00483530
add esp, 4
test eax, eax
jne 0x482c52
lea eax, [esp + 0x10]
push 0x51cdf4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push 0x51cdb4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [esp + 0x818]
lea edx, [esp + 0x10]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp], eax
je 0x482d1f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov eax, dword [edi]
test al, 0x10
je 0x482cbd
mov ecx, dword [esp + 0x824]
mov edx, dword [ecx + 0x4e8c]
test edx, edx
jne 0x482ca2
test al, 6
jne 0x482cbd
lea esi, [edi + 0x2c]
push 0x51efa0
push esi
call ebx
test eax, eax
je 0x482cbd
push 0x51f964
push esi
call ebx
test eax, eax
jne 0x482cce
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x482d09
jmp 0x482c87
mov esi, dword [esp + 0x820]
push esi
call fcn.00483530
add esp, 4
test eax, eax
jne 0x482cee
push 0x51cdf4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
add edi, 0x2c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x800
ret
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x482d1f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x800
ret

Function at 0x482df0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [ebp], eax
je 0x482e62
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test byte [edi], 0x10
jne 0x482e36
lea esi, [edi + 0x2c]
push 0x51efa0
push esi
call ebx
test eax, eax
je 0x482e36
push 0x51f964
push esi
call ebx
test eax, eax
jne 0x482e47
mov ecx, dword [ebp]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x482e51
jmp 0x482e16
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x482f00
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x948
lea eax, [esp + 0x148]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x954]
push esi
push edi
push ebp
push eax
xor esi, esi
call ebx
lea ecx, [esp + 0x158]
push ecx
call fcn.00483530
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x482f4d
lea edx, [esp + 0x158]
push 0x51cdf4
push edx
call edi
lea eax, [esp + 0x158]
push eax
call fcn.004839c0
add al, 0x40
add esp, 4
movsx ecx, al
push ecx
push 0
push 0x25d
call fcn.00484c20
add esp, 8
lea edx, [esp + 0x15c]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
lea eax, [esp + 0x170]
push 0x64
push eax
call fcn.004745b0
add esp, 0x20
lea ecx, [esp + 0x158]
push ebp
push ecx
call ebx
lea edx, [esp + 0x158]
push edx
call fcn.00483530
add esp, 4
test eax, eax
jne 0x482fc7
lea eax, [esp + 0x158]
push 0x51cdf4
push eax
call edi
lea ecx, [esp + 0x158]
push 0x51cdb4
push ecx
call edi
mov edx, dword [esp + 0x964]
lea eax, [esp + 0x158]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x20], 0xffffffff
call fcn.00482df0
add esp, 0x10
test eax, eax
je 0x4830e1
mov esi, dword [esp + 0x960]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
test esi, esi
mov ebx, eax
je 0x483025
and al, 0xf8
mov ebx, eax
test bl, 7
jne 0x4830a6
lea eax, [esp + 0x158]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x158]
push ecx
call fcn.00483530
add esp, 4
test eax, eax
jne 0x48305c
lea edx, [esp + 0x158]
push 0x51cdf4
push edx
call edi
lea eax, [esp + 0x44]
lea ecx, [esp + 0x158]
push eax
push ecx
call edi
cmp ebx, dword [esp + 0x18]
je 0x483080
lea edx, [esp + 0x158]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [esp + 0x15c]
push 0x64
push eax
call fcn.00474710
add esp, 0xc
test eax, eax
jne 0x4830c9
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x964]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00482e70
add esp, 0xc
test eax, eax
je 0x4830cd
jmp 0x483017
xor esi, esi
jmp 0x4830d1
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4830e1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x948
ret
Function at 0x483bf0
Capabilities:
Delete file
Get common file path
Get disk information

Disassembly:
mov eax, 0x1004
call fcn.004ad6f0
mov eax, dword [esp + 0x100c]
push ebx
push esi
mov ax, word [eax + 0x5734]
test al, 1
jne 0x483cc4
test ah, 0x40
jne 0x483cc4
mov ebx, dword [esp + 0x1010]
xor esi, esi
test ebx, ebx
jne 0x483c2f
call fcn.00483bc0
mov ebx, eax
lea ecx, [esp + 0x80c]
push ecx
push ebx
call fcn.00483ce0
add esp, 8
test eax, eax
je 0x483cd2
lea edx, [esp + 0x80c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x483cc4
add bl, 0x40
lea ecx, [esp + 8]
movsx eax, bl
push eax
push str._c:_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push 0
push 0x51f968
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x483cd2
push 0
push 0x80
push 2
push 0
push 1
lea ecx, [esp + 0x20]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x483cd2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov eax, 1
pop ebx
add esp, 0x1004
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x484c20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5298e0]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
test ebp, ebp
jne 0x484c59
mov ecx, edi
push 0x526974
shl ecx, 0xb
lea esi, [ecx + edi + 0x9828]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
test edi, edi
jge 0x484c61
xor edi, edi
jmp 0x484c6b
cmp edi, 2
jle 0x484c6b
mov edi, 2
xor ebx, ebx
xor eax, eax
test ebx, ebx
jl 0x484d27
mov ecx, dword [ebx*8 + 0x51f9e8]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x484cc0
mov edx, edi
mov ecx, dword [ebx*8 + 0x51f9ec]
shl edx, 0xb
mov eax, ebp
push 0x7ff
add eax, edx
push ecx
lea esi, [edi + eax]
lea edx, [esi + 0x9828]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [esi + 0xa027], 0
mov eax, 1
test ecx, ecx
jne 0x484cc9
or ebx, 0xffffffff
jmp 0x484cca
inc ebx
test eax, eax
je 0x484c6f
mov eax, dword [ebp + 0x3e2c]
test eax, eax
je 0x484d14
lea esi, [ebp + 0xb02b]
push 0x526974
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0x3e30]
mov edx, edi
shl edx, 0xb
mov eax, ebp
push ecx
add eax, edx
mov edx, dword [esp + 0x18]
push esi
lea ecx, [edi + eax + 0x9828]
push ecx
push 0
push edx
push 0
push 0xd
call dword [ebp + 0x3e2c]
mov eax, edi
shl eax, 0xb
add ebp, eax
lea eax, [edi + ebp + 0x9828]
pop edi
pop esi
pop ebp
pop ebx
ret
test eax, eax
jne 0x484cce
mov eax, edi
push 0x526974
shl eax, 0xb
add ebp, eax
lea esi, [edi + ebp + 0x9828]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x484d70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov edx, dword [ecx + 0x48]
mov eax, edx
xor eax, esi
and eax, 0xff
shr edx, 8
mov eax, dword [eax*4 + 0x51f3bc]
xor eax, edx
mov edx, dword [ecx + 0x4c]
mov dword [ecx + 0x48], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 0x50]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 0x4c], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x51f3bc]
xor eax, edx
mov dword [ecx + 0x50], eax
ret
Function at 0x4856c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
cmp ebx, 1
push edi
jge 0x4856d4
mov ebx, 1
jmp 0x4856de
cmp ebx, 9
jle 0x4856de
mov ebx, 9
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esi + 0x68]
mov dword [esi + 0x70], ebp
cmp eax, ebp
jne 0x4856fc
mov dword [esi + 0x70], 1
mov dword [esi + 0x68], 0x10000
cmp dword [esi + 0x54], ebp
jne 0x485731
push 2
push 0x8000
call fcn.004b7df2
add esp, 8
cmp eax, ebp
mov dword [esi + 0x54], eax
jne 0x485731
push esi
push ebp
push 0x17c
call fcn.00484c20
add esp, 8
push eax
push 4
call fcn.00479380
add esp, 0xc
cmp dword [esi + 0x58], ebp
jne 0x48577c
push 2
push 0x8000
call fcn.004b7df2
push 2
push 0x4000
mov dword [esi + 0x58], eax
call fcn.004b7df2
mov ecx, dword [esi + 0x58]
add esp, 0x10
cmp ecx, ebp
mov dword [esi + 0x5c], eax
je 0x485762
cmp eax, ebp
jne 0x48577c
push esi
push ebp
push 0x186
call fcn.00484c20
add esp, 8
push eax
push 4
call fcn.00479380
add esp, 0xc
mov eax, dword [esi + 0x5c]
mov ecx, 0x1fff
xor edx, edx
mov word [eax + 0x7ffe], bp
mov edi, dword [esi + 0x5c]
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
stosw word es:[edi], ax
mov cx, word [ebx*8 + 0x51f022]
xor eax, eax
mov dword [esi + 0x90], ecx
mov dx, word [ebx*8 + 0x51f020]
mov dword [esi + 0x94], edx
mov ax, word [ebx*8 + 0x51f024]
xor ecx, ecx
mov dword [esi + 0x98], eax
mov cx, word [ebx*8 + 0x51f026]
cmp ebx, 1
mov dword [esi + 0x8c], ecx
jne 0x4857e2
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x4857ee
cmp ebx, 9
jne 0x4857ee
mov eax, dword [esp + 0x18]
or byte [eax], 2
mov edx, dword [esi + 0x54]
push esi
push 0x8000
push edx
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x6c], ebp
call dword [esi + 0xd060]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x88], eax
jne 0x485826
mov dword [esi + 0x84], 1
mov dword [esi + 0x88], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, 0x106
mov dword [esi + 0x84], ebp
cmp eax, edi
jae 0x485850
cmp dword [esi + 0x84], ebp
jne 0x485850
push esi
call fcn.004858d0
mov eax, dword [esi + 0x88]
add esp, 4
cmp eax, edi
jb 0x485835
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], ebp
xor eax, eax
mov edi, dword [esi + 0x74]
xor edx, edx
mov dl, byte [ecx + eax]
and edi, 0x1ff
and edx, 0x3fff
shl edi, 5
xor edx, edi
inc eax
cmp eax, 2
mov dword [esi + 0x74], edx
jb 0x485858
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x488170
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
cmp ebx, 1
push edi
jge 0x488184
mov ebx, 1
jmp 0x48818e
cmp ebx, 9
jle 0x48818e
mov ebx, 9
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esi + 0x68]
mov dword [esi + 0x70], ebp
cmp eax, ebp
jne 0x4881ac
mov dword [esi + 0x70], 1
mov dword [esi + 0x68], 0x2fff6
cmp dword [esi + 0x54], ebp
jne 0x4881e1
push 1
push 0x2fff6
call fcn.004b7df2
add esp, 8
cmp eax, ebp
mov dword [esi + 0x54], eax
jne 0x4881e1
push esi
push ebp
push 0x17c
call fcn.00484c20
add esp, 8
push eax
push 4
call fcn.00479380
add esp, 0xc
cmp dword [esi + 0x60], ebp
jne 0x48822c
push 4
push 0x10000
call fcn.004b7df2
push 4
push 0x8000
mov dword [esi + 0x60], eax
call fcn.004b7df2
mov ecx, dword [esi + 0x60]
add esp, 0x10
cmp ecx, ebp
mov dword [esi + 0x64], eax
je 0x488212
cmp eax, ebp
jne 0x48822c
push esi
push ebp
push 0x186
call fcn.00484c20
add esp, 8
push eax
push 4
call fcn.00479380
add esp, 0xc
mov eax, dword [esi + 0x64]
mov ecx, 0x7fff
xor edx, edx
mov dword [eax + 0x1fffc], ebp
mov edi, dword [esi + 0x64]
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
mov cx, word [ebx*8 + 0x51f022]
mov dword [esi + 0x90], ecx
mov dx, word [ebx*8 + 0x51f020]
mov dword [esi + 0x94], edx
mov ax, word [ebx*8 + 0x51f024]
xor ecx, ecx
mov dword [esi + 0x98], eax
mov cx, word [ebx*8 + 0x51f026]
cmp ebx, 2
mov dword [esi + 0x8c], ecx
jg 0x48828d
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x488299
cmp ebx, 8
jl 0x488299
mov eax, dword [esp + 0x18]
or byte [eax], 2
mov edx, dword [esi + 0x54]
push esi
push 0x2fff6
push edx
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x6c], ebp
call dword [esi + 0xd060]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x88], eax
jne 0x4882d1
mov dword [esi + 0x84], 1
mov dword [esi + 0x88], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 0xfff6
mov dword [esi + 0x84], ebp
jae 0x4882e7
push esi
call fcn.00488370
add esp, 4
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x74], ebp
xor eax, eax
mov edi, dword [esi + 0x74]
xor edx, edx
mov dl, byte [ecx + eax]
and edi, 0x3ff
and edx, 0x7fff
shl edi, 5
xor edx, edi
inc eax
cmp eax, 2
mov dword [esi + 0x74], edx
jb 0x4882ef
mov dword [esi + 0x80], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4979db
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x497a14
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048d2a8
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048d23f
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4998e5
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 0x499928
call fcn.0048e9a7
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 0x499928
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x499943
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0049949f
test ebx, ebx
mov esi, eax
je 0x499941
test edi, edi
je 0x499941
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4a1cdb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4a1d18
push 0x504e70
push 4
push eax
call fcn.004ae3b5
push eax
call fcn.0048c69c
add esp, 0x10
jmp 0x4a1d2a
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a1d95
push edi
call fcn.004b80c6
mov edi, dword [eax]
call fcn.004b80c6
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004adf0b
add esp, 0x18
mov ebx, eax
call fcn.004b80c6
cmp dword [eax], 0
je 0x4a1d75
call fcn.004b80c6
push dword [eax]
call fcn.0048f483
pop ecx
jmp 0x4a1d7c
call fcn.004b80c6
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4a1d95
cmp ebx, esi
jae 0x4a1d95
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4a1d97
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ad2aa
leave
ret
Function at 0x4ab03d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4e60dd
call fcn.004b7e64
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0048e9a7
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4ab088
call fcn.0048e9a7
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4ab099
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4ab0a6
or eax, 0xffffffff
jmp 0x4ab202
mov ecx, esi
call fcn.004aab89
mov dword [ebp - 0x14], eax
call fcn.0049641d
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4ab124
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4ab124
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4ab124
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0048cc00
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4ab124
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4ab124
mov ecx, ebx
call fcn.00499ca0
test eax, eax
je 0x4ab124
push 0
mov ecx, ebx
call fcn.00499cbb
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004985d3
push dword [ebp - 0x14]
call fcn.00496375
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004aae45
xor edi, edi
cmp eax, edi
je 0x4ab181
test byte [esi + 0x3c], 0x10
je 0x4ab16b
push 4
pop edi
mov ecx, esi
call fcn.00499b3a
test ax, 0x100
je 0x4ab161
push 5
pop edi
push edi
mov ecx, esi
call fcn.00495ecb
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4ab181
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00499f88
or dword [ebp - 4], 0xffffffff
jmp 0x4ab1ac
cmp dword [ebp - 0x28], edi
je 0x4ab1ba
push 1
mov ecx, ebx
call fcn.00499cbb
cmp dword [ebp - 0x2c], edi
je 0x4ab1ca
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4ab1e3
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4ab1e3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004aabc3
cmp dword [esi + 0x58], edi
je 0x4ab1ff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004b7f09
ret
Function at 0x4ab2c2
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 + 0x58], ebx
jne 0x4ab2e2
cmp dword [edi + 0x54], 0
jne 0x4ab2e2
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0048e9a7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.004ab289
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 0x4ad2aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x521e28]
jne 0x4ad2b4
repz ret
jmp fcn.004bba2c
Function at 0x4b119b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4b11d8
cmp dword [ebp + 0x14], edi
je 0x4b11d8
cmp ecx, edi
jne 0x4b11df
call fcn.004b80c6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b41e3
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4b11f3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4b1214
cmp ebx, 0xffffffff
je 0x4b1203
push ebx
push edi
push ecx
call fcn.004ad2c0
add esp, 0xc
cmp esi, edi
je 0x4b11c0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4b11c0
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4b1230
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4b1237
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4b1328
test word [esi + 0xc], 0x10c
je 0x4b128b
mov eax, dword [esi + 4]
test eax, eax
je 0x4b128b
jl 0x4b1389
cmp ebx, eax
mov edi, ebx
jb 0x4b125c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4b1330
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b449d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4b1320
cmp ebx, dword [ebp - 0xc]
jb 0x4b12f8
cmp dword [ebp - 0xc], 0
je 0x4b12b5
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4b12aa
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4b12b1
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4b12c0
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4b12c0
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4b135c
push eax
push dword [ebp - 8]
push esi
call fcn.004c0185
pop ecx
push eax
call fcn.004c0a60
add esp, 0xc
test eax, eax
je 0x4b139b
cmp eax, 0xffffffff
je 0x4b1389
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4b1320
push esi
call fcn.004c037f
cmp eax, 0xffffffff
pop ecx
je 0x4b138d
cmp dword [ebp - 4], 0
je 0x4b135c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4b123f
mov eax, dword [ebp + 0x14]
jmp 0x4b11da
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b1347
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004ad2c0
add esp, 0xc
call fcn.004b80c6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4b11d0
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b1372
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004ad2c0
add esp, 0xc
call fcn.004b80c6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4b11d0
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4b11da
or dword [esi + 0xc], 0x10
jmp 0x4b138d