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

Disassembly:
cmp dword [esi], 0
push ebp
mov ebp, dword [esp + 0xc]
push edi
jne 0x40c65e
cmp dword [esi + 4], 0xffffffff
jne 0x40c65e
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c5d0
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x40c603
cmp al, 0x2f
je 0x40c603
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c5f0
mov ax, word [0x45f394]
mov word [edi], ax
cmp ebp, 1
jne 0x40c623
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c623
mov eax, 0x2000000
pop edi
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push edx
push ebx
call fcn.0040b280
add esp, 0x10
test eax, eax
jne 0x40c644
mov eax, dword [esp + 0x10]
pop edi
pop ebp
ret 8
call fcn.0040b730
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 8
pop edi
mov eax, 0x1000000
pop ebp
ret 8

Function at 0x40cc80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x40ccbd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ccbd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40cd7d
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x40ccd8
cmp al, 0x5c
jne 0x40ccda
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x40ccd0
cmp esi, ebp
je 0x40cd12
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.004378f0
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0040cc80
add esp, 0x14
test edi, edi
mov byte [esp + 0xc], 0
je 0x40cd2f
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40cd23
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40cd33
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40cd45
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x40cd7d
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.004353a6
add esp, 0x20c
ret
Function at 0x40e590
Capabilities:
Get file size
Hash data with md5
Read file via mapping

Disassembly:
sub esp, 0x60
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x8000080
push 3
push esi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e696
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e68f
cmp ebx, esi
je 0x40e68f
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
jne 0x40e61d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004353a6
add esp, 0x60
ret
push esi
push edi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ebp
lea eax, [esp + 0x18]
call fcn.0040dcd0
add esp, 8
lea esi, [esp + 0x10]
call fcn.0040dd90
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov eax, 0x4700f8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004353a6
add esp, 0x60
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004353a6
add esp, 0x60
ret
Function at 0x4130a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4130a7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp 0x4130b0
push esi
mov esi, edx
test esi, esi
not eax
je 0x4130e2
lea esp, [esp]
test cl, 3
je 0x4130e2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45a3f8]
add ecx, 1
sub esi, 1
jne 0x4130c0
cmp esi, 0x20
push ebx
push edi
jb 0x4132cc
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a7f8]
xor edx, dword [ebx*4 + 0x45abf8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a3f8]
add ecx, 4
xor edx, dword [eax*4 + 0x45aff8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a7f8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45abf8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a3f8]
add ecx, 4
xor eax, dword [edx*4 + 0x45aff8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a7f8]
xor edx, dword [ebx*4 + 0x45abf8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a3f8]
xor edx, dword [eax*4 + 0x45aff8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a7f8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45abf8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a3f8]
xor eax, dword [edx*4 + 0x45aff8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a7f8]
xor edx, dword [ebx*4 + 0x45abf8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a3f8]
xor edx, dword [eax*4 + 0x45aff8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a7f8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45abf8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a3f8]
and edx, 0xff
xor eax, dword [edx*4 + 0x45aff8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a7f8]
xor edx, dword [ebx*4 + 0x45abf8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a3f8]
add ecx, 4
xor edx, dword [eax*4 + 0x45aff8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a7f8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45abf8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a3f8]
and edx, 0xff
xor eax, dword [edx*4 + 0x45aff8]
sub edi, 1
jne 0x4130f2
cmp esi, 4
jb 0x413319
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x45a7f8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x45abf8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x45a3f8]
and eax, 0xff
xor edi, dword [eax*4 + 0x45aff8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4132d6
test esi, esi
pop edi
pop ebx
je 0x41333d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45a3f8]
add ecx, 1
sub esi, 1
jne 0x413320
not eax
pop esi
ret
Function at 0x41388c
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4138a1
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4138cd
mov eax, dword [ecx + 0x128]
cmp eax, 0xffffffff
jne 0x4138c2
mov eax, dword [esp + 8]
test eax, eax
je 0x4138b7
and dword [eax], 0
mov eax, dword [ecx + 0x11c]
mov eax, dword [eax + 0xc]
jmp 0x4138cd
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret 8

Function at 0x41397a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x46a860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x41399f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, esi
jmp 0x413a1a
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ebx, ebx
test eax, eax
mov dword [ebp - 0x28], eax
jbe 0x413a16
push 0
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413a16
cmp dword [ebp - 0x2c], 0x20
jb 0x413a16
push 4
push dword [0x468010]
lea eax, [ebp - 0x24]
push eax
call fcn.00437ceb
add esp, 0xc
test eax, eax
je 0x413a29
push 4
push dword [0x468014]
lea eax, [ebp - 0x24]
push eax
call fcn.00437ceb
add esp, 0xc
test eax, eax
je 0x413a29
add ebx, 0x200
cmp ebx, dword [ebp - 0x28]
jb 0x4139b2
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004353a6
leave
ret 4
mov eax, ebx
jmp 0x413a19

Function at 0x413cca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, 0x7fed7fed
mov ebx, 0xeeeeeeee
mov byte [ebp - 1], 0
jne 0x413ce9
lea esi, [ebp - 1]
cmp dword [ebp + 0xc], 3
jne 0x413d15
push 0x5c
push esi
call fcn.00439380
pop ecx
pop ecx
jmp 0x413d11
push 0x5c
push esi
call fcn.00439380
inc eax
mov esi, eax
push 0x5c
push esi
call fcn.00439380
add esp, 0x10
test eax, eax
jne 0x413cfb
mov al, byte [esi]
test al, al
je 0x413d4c
mov ecx, dword [ebp + 0xc]
shl ecx, 8
mov dword [ebp + 0xc], ecx
movsx eax, al
push eax
call fcn.00439556
add edi, ebx
imul ebx, ebx, 0x21
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, eax
xor edi, dword [ecx*4 + 0x46c120]
inc esi
add ebx, eax
mov al, byte [esi]
test al, al
lea ebx, [ebx + edi + 3]
jne 0x413d24
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413d53
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
mov ecx, 0xeeeeeeee
jne 0x413d66
xor eax, eax
pop ebp
ret
shr dword [ebp + 0xc], 2
je 0x413db1
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edx]
dec dword [ebp + 0xc]
mov eax, edi
and eax, 0xff
add ecx, dword [eax*4 + 0x46d120]
mov ebx, edi
lea eax, [ecx + edi]
imul ecx, ecx, 0x21
not ebx
shl ebx, 0x15
xor eax, esi
add ebx, 0x11111111
shr edi, 0xb
mov dword [edx], eax
or edi, ebx
add edx, 4
cmp dword [ebp + 0xc], 0
lea ecx, [ecx + esi + 3]
ja 0x413d72
pop edi
pop esi
pop ebx
xor eax, eax
inc eax
pop ebp
ret

Function at 0x413db6
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
mov ecx, 0xeeeeeeee
jne 0x413dc9
xor eax, eax
pop ebp
ret
shr dword [ebp + 0xc], 2
je 0x413e10
push esi
mov esi, dword [ebp + 0x10]
push edi
dec dword [ebp + 0xc]
mov eax, esi
and eax, 0xff
add ecx, dword [eax*4 + 0x46d120]
mov edi, esi
lea eax, [ecx + esi]
imul ecx, ecx, 0x21
xor eax, dword [edx]
not edi
shl edi, 0x15
add edi, 0x11111111
shr esi, 0xb
mov dword [edx], eax
or esi, edi
add edx, 4
cmp dword [ebp + 0xc], 0
lea ecx, [ecx + eax + 3]
ja 0x413dd4
pop edi
pop esi
xor eax, eax
inc eax
pop ebp
ret
Function at 0x414f64
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x414f7f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x415029
cmp byte [edi], 0
je 0x414f70
push esi
push edi
call fcn.00437c60
mov esi, eax
inc esi
mov eax, 0x105
cmp esi, eax
pop ecx
ja 0x415026
jne 0x414fac
mov al, byte [edi + 0x103]
cmp al, 0x5c
je 0x414fac
cmp al, 0x2f
jne 0x415026
push ebx
lea ecx, [ebp - 4]
call fcn.0041384c
lea ebx, [esi + 1]
push ebx
call fcn.00413f41
push esi
push dword [ebp + 8]
mov edi, eax
push edi
call fcn.004378f0
add esp, 0xc
cmp byte [edi], 0
mov eax, edi
je 0x414fe2
cmp byte [eax], 0x2f
jne 0x414fdc
mov byte [eax], 0x5c
inc eax
cmp byte [eax], 0
jne 0x414fd4
cmp byte [eax - 1], 0x5c
je 0x414ff1
mov byte [eax], 0x5c
mov byte [eax + 1], 0
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
pop ebx
je 0x41501e
cmp eax, 0xffffffff
je 0x41501e
push esi
push edi
push 0x46d528
call fcn.004378f0
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00413852
xor eax, eax
inc eax
jmp 0x415028
lea ecx, [ebp - 4]
call fcn.00413852
xor eax, eax
pop esi
pop edi
leave
ret 4
Function at 0x4171db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41735a
cmp dword [ebp + 0xc], 0
je 0x41735a
test word [esi + 0x16c], 0x8000
jne 0x417207
push 5
jmp 0x41735c
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041505c
add esp, 0xc
test eax, eax
jne 0x417225
push 0x85200066
jmp 0x41735c
cmp dword [eax], ebx
jne 0x417362
or dword [eax + 8], 0xffffffff
or dword [eax + 0xc], 0xffffffff
or dword [eax], 0xffffffff
mov dword [eax + 4], 0xfffffffe
mov eax, dword [esi + 0x138]
push edi
shl eax, 4
push eax
call fcn.00413f20
mov edi, eax
mov eax, dword [esi + 0x138]
shl eax, 4
test edi, edi
je 0x4172c6
push eax
push dword [esi + 0x118]
push edi
call fcn.004378f0
push dword [0x46d520]
mov eax, dword [esi + 0x138]
shl eax, 4
push eax
push edi
call fcn.00413d53
mov eax, dword [esi + 0x15c]
add eax, dword [esi + 0x130]
add esp, 0x18
push 0
push 0
push eax
push dword [esi + 0x120]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x138]
shl eax, 4
push eax
push edi
push dword [esi + 0x120]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00417ab1
jmp 0x417337
push dword [0x46d520]
push eax
push dword [esi + 0x118]
call fcn.00413d53
mov eax, dword [esi + 0x15c]
add eax, dword [esi + 0x130]
add esp, 0xc
xor edi, edi
push edi
push edi
push eax
push dword [esi + 0x120]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x138]
shl eax, 4
push eax
push dword [esi + 0x118]
push dword [esi + 0x120]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x46d520]
mov eax, dword [esi + 0x138]
shl eax, 4
push eax
push dword [esi + 0x118]
call fcn.00413db6
add esp, 0xc
push dword [ebp + 0xc]
mov edi, dword [0x46d630]
push esi
mov dword [0x46d630], ebx
call fcn.00416f9d
pop ecx
pop ecx
xor eax, eax
mov dword [0x46d630], edi
inc eax
pop edi
jmp 0x417364
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41ac59
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x46a860]
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 - 0x11c]
jne 0x41ac99
push 0x454bf8
push 4
push eax
call fcn.004367c6
push eax
call fcn.00404a10
add esp, 0x10
jmp 0x41acab
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41ad19
push edi
call fcn.0043a307
mov edi, dword [eax]
call fcn.0043a307
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00439b31
add esp, 0x18
mov ebx, eax
call fcn.0043a307
cmp dword [eax], 0
je 0x41acf9
call fcn.0043a307
push dword [eax]
call fcn.00419c24
pop ecx
jmp 0x41ad00
call fcn.0043a307
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41ad19
cmp ebx, esi
jae 0x41ad19
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41ad1b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004353a6
leave
ret
Function at 0x41c28d
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 0x41c2d3
call fcn.00423b99
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41c2d3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41c316
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 0x41c2ff
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 0x41c2ff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41c313
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 0x41d7cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4514cd
call fcn.00439f4a
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.00423b99
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41d817
call fcn.00423b99
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41d828
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41d835
or eax, 0xffffffff
jmp 0x41d991
mov ecx, esi
call fcn.0041d31e
mov dword [ebp - 0x14], eax
call fcn.00420725
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41d8b3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41d8b3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d8b3
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00404ad0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41d8b3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41d8b3
mov ecx, ebx
call fcn.00423dbe
test eax, eax
je 0x41d8b3
push 0
mov ecx, ebx
call fcn.00423dd9
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042211d
push dword [ebp - 0x14]
call fcn.0042067d
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041d5d4
xor edi, edi
cmp eax, edi
je 0x41d910
test byte [esi + 0x3c], 0x10
je 0x41d8fa
push 4
pop edi
mov ecx, esi
call fcn.00423ccf
test ax, 0x100
je 0x41d8f0
push 5
pop edi
push edi
mov ecx, esi
call fcn.00420245
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41d910
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00423fa8
or dword [ebp - 4], 0xffffffff
jmp 0x41d93b
cmp dword [ebp - 0x28], edi
je 0x41d949
push 1
mov ecx, ebx
call fcn.00423dd9
cmp dword [ebp - 0x2c], edi
je 0x41d959
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41d972
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41d972
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.0041d358
cmp dword [esi + 0x58], edi
je 0x41d98e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00439fef
ret
Function at 0x4216ed
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x421726
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041a230
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00402d40
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4232aa
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 0x4232ed
call fcn.00423b99
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4232ed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423308
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422e61
test ebx, ebx
mov esi, eax
je 0x423306
test edi, edi
je 0x423306
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x427b46
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 0x427b74
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427b92
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00427ab0
jmp 0x427b92
mov eax, dword [esi + 0x14]
test eax, eax
je 0x427b92
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00427ab0
test edi, edi
mov eax, edi
jne 0x427b7c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46f1f8]
test ecx, ecx
je 0x427c55
jmp 0x427b45
ret 8

Function at 0x4353a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46a860]
jne 0x4353b0
repz ret
jmp fcn.0043ccfb