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

Disassembly:
mov edx, dword [esp + 4]
mov ecx, 1
cmp dword [edx + 0x144], ecx
jbe 0x414b6d
push esi
lea eax, [edx + 0x66]
push edi
lea ebx, [ebx]
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x469468]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x468c68]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x469068]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x468868]
inc ecx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x469468]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x469068]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x468c68]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x468868]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x469468]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x469068]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x468c68]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x468868]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x469468]
xor esi, dword [edi*4 + 0x469068]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x468c68]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x468868]
mov dword [eax - 6], esi
cmp ecx, dword [edx + 0x144]
jb 0x414aa0
pop edi
pop esi
ret
Function at 0x416160
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
sub eax, 0
je 0x4161a4
sub eax, 1
jne 0x4161c6
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004378be
add esp, 0x10
test eax, eax
ja 0x41619a
mov edx, dword [esp + 0xc]
mov dword [edx], 0xffffffff
or eax, 0xffffffff
pop esi
ret
inc dword [esi + 0x10]
movsx eax, byte [esp + 8]
pop esi
ret
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esi]
jl 0x4161b9
mov eax, dword [esp + 0xc]
mov dword [eax], 0xffffffff
xor eax, eax
pop esi
ret
mov edx, dword [esi + 4]
movsx eax, byte [edx + ecx]
inc ecx
mov dword [esi + 0x10], ecx
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x4161d0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
sub eax, 0
je 0x416201
sub eax, 1
jne 0x416219
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.00437a3d
add esp, 0x10
inc dword [esi + 0x10]
mov eax, 1
pop esi
ret
mov eax, dword [esi + 0x10]
cmp eax, dword [esi]
jl 0x41620c
xor eax, eax
pop esi
ret
mov edx, dword [esi + 4]
mov cl, byte [esp + 0xc]
mov byte [eax + edx], cl
inc dword [esi + 0x10]
mov eax, 1
pop esi
ret
Function at 0x416300
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.00416130
xor ebp, ebp
add esp, 4
mov dword [esp + 0x18], ebp
xor esi, esi
lea esp, [esp]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
mov ecx, eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x416340
cmp eax, ebp
jne 0x41635e
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], ebp
call fcn.00416160
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 8
jmp 0x416362
mov ebx, dword [esp + 0x18]
cmp ebx, 0xd
je 0x416340
cmp ebx, 0xa
je 0x416340
cmp dword [esp + 0x14], 0xffffffff
je 0x416494
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], ebp
call fcn.00416160
mov edx, eax
add esp, 8
mov dword [esp + 0x18], edx
cmp edx, 0x3d
je 0x416494
cmp edx, 0xd
je 0x416377
cmp edx, 0xa
je 0x416377
cmp dword [esp + 0x14], 0xffffffff
je 0x416494
cmp bl, 0x41
jb 0x4163bf
cmp bl, 0x5a
ja 0x4163bf
movzx eax, bl
sub eax, 0x41
jmp 0x416408
cmp bl, 0x61
jb 0x4163d1
cmp bl, 0x7a
ja 0x4163d1
movzx eax, bl
sub eax, 0x47
jmp 0x416408
cmp bl, 0x30
jb 0x4163e3
cmp bl, 0x39
ja 0x4163e3
movzx eax, bl
add eax, 4
jmp 0x416408
cmp bl, 0x2a
jne 0x4163ef
mov eax, 0x3e
jmp 0x416408
cmp bl, 0x2f
jne 0x4163fb
mov eax, 0x3f
jmp 0x416408
xor eax, eax
cmp bl, 0x3d
setne al
dec eax
and eax, 0x41
dec eax
mov ebx, dword [esp + 0x1c]
lea ecx, [ebx + ebx + 2]
shl al, cl
mov byte [esp + 0x13], al
cmp dl, 0x41
jb 0x416428
cmp dl, 0x5a
ja 0x416428
movzx eax, dl
sub eax, 0x41
jmp 0x416471
cmp dl, 0x61
jb 0x41643a
cmp dl, 0x7a
ja 0x41643a
movzx eax, dl
sub eax, 0x47
jmp 0x416471
cmp dl, 0x30
jb 0x41644c
cmp dl, 0x39
ja 0x41644c
movzx eax, dl
add eax, 4
jmp 0x416471
cmp dl, 0x2a
jne 0x416458
mov eax, 0x3e
jmp 0x416471
cmp dl, 0x2f
jne 0x416464
mov eax, 0x3f
jmp 0x416471
xor eax, eax
cmp dl, 0x3d
setne al
dec eax
and eax, 0x41
dec eax
mov edx, dword [esp + 0x24]
mov cl, 2
sub cl, bl
add cl, cl
shr al, cl
or al, byte [esp + 0x13]
movzx ecx, al
push ecx
push edx
call fcn.004161d0
add esp, 8
inc esi
jmp 0x416320
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x419d9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x419dbe
cmp dword [edi + 0x54], 0
jne 0x419dbe
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041ff5c
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 [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00419d5b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41f535
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41f57c
call fcn.0041ff5c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f57c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41f598
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041f0ad
mov esi, eax
test edi, edi
je 0x41f596
test ebx, ebx
je 0x41f596
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x420e29
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44b69b
call fcn.00434843
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x420e4e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x420e94
lea ecx, [ebp - 0x10]
call fcn.00417792
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004171b1
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004026da
mov eax, esi
call fcn.0043491b
ret 8
Function at 0x42251b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4225b3
push 0x457ae4
push 4
push eax
call fcn.00437f9d
push eax
call fcn.004025f1
add esp, 0x10
push ebx
push edi
call fcn.00438c6e
mov edi, dword [eax]
call fcn.00438c6e
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00435660
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00438c6e
cmp dword [eax], ebx
je 0x4225ca
call fcn.00438c6e
push dword [eax]
call fcn.00418dc4
pop ecx
jmp 0x4225d1
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42255e
jmp 0x422658
call fcn.00438c6e
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x422654
cmp dword [ebp - 0x234], esi
jae 0x422654
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00434950
add esp, 0xc
push 0x4571d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x422643
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x422643
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x422643
push ebx
push ebx
push esi
jmp 0x42264c
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x422656
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00434834
leave
ret

Function at 0x4240a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4240e8
call fcn.0041ff5c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4240e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42412b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x424114
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 0x424114
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x424128
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 0x434834
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46aff0]
jne 0x43483e
repz ret
jmp fcn.0043cd5c
Function at 0x43800c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x43803d
call fcn.00438c81
mov dword [eax], esi
call fcn.00438c6e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00435805
add esp, 0x14
push 0x16
pop eax
jmp 0x438092
test dword [ebp + 0xc], 0xfffffff9
jne 0x438019
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43806a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00438c94
pop ecx
call fcn.00438c6e
mov eax, dword [eax]
jmp 0x438092
test al, 0x10
jne 0x438090
test al, 1
je 0x438090
test byte [ebp + 0xc], 2
je 0x438090
call fcn.00438c81
mov dword [eax], 5
call fcn.00438c6e
mov dword [eax], 0xd
jmp 0x438061
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4449aa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043aaf9
and dword [ebp - 4], 0
cmp dword [0x471918], 0
mov ebx, eax
jne 0x444a5b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x444b0c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x459f40
push edi
call esi
test eax, eax
je 0x444b0c
push eax
call fcn.0043aa87
mov dword [esp], 0x459f30
push edi
mov dword [0x471918], eax
call esi
push eax
call fcn.0043aa87
mov dword [esp], 0x459f1c
push edi
mov dword [0x47191c], eax
call esi
push eax
call fcn.0043aa87
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x471920], eax
call esi
push eax
call fcn.0043aa87
pop ecx
mov dword [0x471928], eax
test eax, eax
je 0x444a5b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043aa87
pop ecx
mov dword [0x471924], eax
mov eax, dword [0x471924]
cmp eax, ebx
je 0x444ab3
cmp dword [0x471928], ebx
je 0x444ab3
push eax
call fcn.0043ab02
push dword [0x471928]
mov esi, eax
call fcn.0043ab02
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x444ab3
test edi, edi
je 0x444ab3
call esi
test eax, eax
je 0x444aaa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x444aaa
test byte [ebp - 0xc], 1
jne 0x444ab3
or dword [ebp + 0x10], 0x200000
jmp 0x444aec
mov eax, dword [0x47191c]
cmp eax, ebx
je 0x444aec
push eax
call fcn.0043ab02
pop ecx
test eax, eax
je 0x444aec
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x444aec
mov eax, dword [0x471920]
cmp eax, ebx
je 0x444aec
push eax
call fcn.0043ab02
pop ecx
test eax, eax
je 0x444aec
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x471918]
call fcn.0043ab02
pop ecx
test eax, eax
je 0x444b0c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x444b0e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407223
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jmp 0x40724f
mov ebx, dword [edi]
lea eax, [ebx*4 + 0x4141a8]
mov esi, dword [eax]
mov dword [ebp - 4], eax
nop
test esi, esi
je 0x4071cb
cmp esi, 0xffffffff
je 0x40724c
jmp 0x407248
mov ebx, dword [ebx*4 + 0x40eb20]
push 0x800
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x407236
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x407226
push 7
push str.api_ms_
push ebx
call fcn.004043b8
add esp, 0xc
test eax, eax
je 0x407226
push 7
push str.ext_ms_
push ebx
call fcn.004043b8
add esp, 0xc
test eax, eax
je 0x407226
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
jmp 0x407228
xor esi, esi
test esi, esi
jne 0x407236
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xchg dword [ecx], eax
jmp 0x40724c
mov ecx, dword [ebp - 4]
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x407248
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x40725f
add edi, 4
cmp edi, dword [ebp + 0xc]
jne 0x4071ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, esi
jmp 0x40725a

Function at 0x409668
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.0040c550
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x14]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [eax*4 + 0x413fa0]
push esi
push edi
mov edi, ebx
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
add edx, ecx
mov dword [ebp - 0x1408], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x140c], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp ecx, edx
jae 0x4096c1
mov edi, dword [ebp - 0x1408]
lea esi, [ebp - 0x1404]
cmp ecx, edx
jae 0x409676
mov al, byte [ecx]
inc ecx
cmp al, 0xa
jne 0x40966c
inc dword [ebx + 8]
mov byte [esi], 0xd
inc esi
mov byte [esi], al
inc esi
lea eax, [ebp - 5]
cmp esi, eax
jb 0x40965a
lea eax, [ebp - 0x1404]
mov dword [ebp + 0x10], ecx
sub esi, eax
lea eax, [ebp - 0x1408]
push 0
push eax
push esi
lea eax, [ebp - 0x1404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4096b9
mov eax, dword [ebp - 0x1408]
add dword [ebx + 4], eax
cmp eax, esi
jb 0x4096c1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x140c]
cmp ecx, edx
jb 0x409654
jmp 0x4096c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015b9
leave
ret
Function at 0x5c1a90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x575015
lea edi, [esi - 0x174015]
push edi
jmp 0x5c1aaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5c1ab1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c1aa0
mov eax, 1
add ebx, ebx
jne 0x5c1ac3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5c1ad4
jne 0x5c1af3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c1af3
dec eax
add ebx, ebx
jne 0x5c1ae0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5c1ab8
add ebx, ebx
jne 0x5c1aef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5c1b45
xor ecx, ecx
sub eax, 3
jb 0x5c1b0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5c1b7a
sar eax, 1
mov ebp, eax
jmp 0x5c1b16
add ebx, ebx
jne 0x5c1b16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c1ae4
inc ecx
add ebx, ebx
jne 0x5c1b24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c1ae4
add ebx, ebx
jne 0x5c1b31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5c1b26
jne 0x5c1b42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c1b26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5c1b64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5c1b56
jmp 0x5c1aa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5c1b64
add edi, ecx
jmp 0x5c1aa6
pop esi
mov edi, esi
mov ecx, 0x5bf8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5c1b82
cmp byte [edi], 9
jne 0x5c1b82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5c1b87
lea edi, [esi + 0x1bf000]
mov eax, dword [edi]
or eax, eax
je 0x5c1bf6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d2638]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d26d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5c1bb4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d26d8]
or eax, eax
je 0x5c1bf0
mov dword [ebx], eax
add ebx, 4
jmp 0x5c1bd1
call dword [esi + 0x1d26d4]
mov ebp, dword [esi + 0x1d26dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5c1c2a
sub esp, 0xffffff80
jmp 0x4013b8
Function at 0x10001f8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1001c7f1
call fcn.1001c3b8
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1000219d
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x10001fdd
sub edx, ecx
sar edx, 1
inc edx
push ecx
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], edx
call fcn.10001357
test eax, eax
js 0x1000219d
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1000202e
mov ecx, esi
call fcn.10001387
test al, al
je 0x1000202e
mov eax, esi
call fcn.1001c519
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000203a
push esi
lea ecx, [ebp - 0x428]
call fcn.10008bec
push 3
push esi
mov edx, edi
mov ecx, eax
call fcn.10008bec
mov edi, eax
test edi, edi
je 0x10002197
push 0x60
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0x41c], esi
test esi, esi
jne 0x10002088
push 2
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0x41c], eax
test esi, esi
jne 0x10002088
call fcn.10001543
mov edi, eax
jmp 0x1000217c
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100020ab
call fcn.10001543
jmp 0x1000216f
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x100020a1
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea ecx, [edi + 1]
cmp ecx, edi
jae 0x100020de
mov edi, 0x8007000e
jmp 0x10002171
mov byte [ebp - 4], 2
call fcn.10005d4e
cmp eax, 0x400
jbe 0x100020fc
push eax
lea ecx, [ebp - 0x418]
call fcn.10008bec
jmp 0x10002108
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x1000212c
cmp dword [ebp - 0x418], 0
je 0x100020d4
mov ecx, dword [ebp - 0x418]
mov edx, edi
push edi
push dword [ebp - 0x420]
call fcn.10008bec
pop ecx
pop ecx
mov ecx, eax
call fcn.100014e5
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
push dword [ebp + 0x14]
mov byte [eax + edi], bl
push dword [ebp - 0x418]
call fcn.10008bec
mov edi, eax
test esi, esi
je 0x1000217c
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100021b7
lea ecx, [ebp - 0x418]
call fcn.100058b0
jmp 0x100021b7
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x100021b2
lea ecx, [ebp - 0x418]
call fcn.100058b0
mov edi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.10005668
mov eax, edi
lea esp, [ebp - 0x440]
call fcn.1001c309
ret 0x10
Function at 0x10008bec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10008bfb
pop dword [ebp - 0x1c]
mov eax, 0x4e2e3558
sub eax, 0x3e2da95d
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x986c4d75
sub dword [ebp - 0x2c], 0x4a1a082a
mov dword [ebp - 0x28], 0x6dc6ef06
sub dword [ebp - 0x28], 0x3b93a2c1
mov dword [ebp - 0x24], 0xa3ecda7f
add dword [ebp - 0x24], 0xa85f69af
mov dword [ebp - 0x20], 0xaa28b861
add dword [ebp - 0x20], 0x55d7479f
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x71ddce2c
sub eax, 0x61dbeddc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x693000b
sub dword [ebp - 0x2c], 0x922096b5
mov dword [ebp - 0x28], 0x42f94abb
add dword [ebp - 0x28], 0xfe7316ba
mov dword [ebp - 0x24], 0xe02cd7a2
sub dword [ebp - 0x24], 0x7cbd6b36
mov dword [ebp - 0x20], 0xc04c026f
add dword [ebp - 0x20], 0x3fb3fd91
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x38e62
push 0
call eax
mov ecx, 0x7c7b3736
sub ecx, 0x7c7afcd1
xor esi, esi
add esi, eax
mov edi, 0xf6310d0a
add edi, 0x19d1cef6
add edi, dword [ebp - 0x1c]
mov edx, 0x9ef21264
sub dword [ebp - 8], edx
mov ebx, dword [edi]
xor dword [ebp - 4], eax
xor ebx, edx
mov dword [esi], ebx
add dword [ebp - 4], 0x9edf307d
add esi, 4
add edi, 0xb224cb7d
add edi, 0x4ddb3487
loop 0x10008d14
add eax, 0x919b0b43
add eax, 0x6e65d124
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7d37d673
sub ecx, 0x6d37d673
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret