joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10036620
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10036630
sub eax, edx
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10036659
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
test edi, edi
je 0x10036670
nop
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x10036660
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x100366ef
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100366e2
mov edx, dword [esp + 0x10]
push 0
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi + 0x10], eax
push esi
mov byte [edi + 0x14], al
call dword [0x10061004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

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

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10036b26
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10036b30
sub eax, edx
push eax
call fcn.1002d070
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push edx
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x10
jne 0x10036b8d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push 2
push edx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x10036b9d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x10036bae
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x10038200
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x10038222
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10038216
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x10038252
cmp dword [esi + 8], 0
jne 0x10038245
mov ecx, dword [eax + 8]
push 0x100597f4
push ecx
call fcn.1003cc7e
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10038245
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.1003df51
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10038274
mov eax, dword [esi + 8]
test eax, eax
je 0x1003826e
push eax
call fcn.1003ced3
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x100398d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100398f5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x1003993c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10039940
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x1003999c
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x10039963
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x100399d8
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x10059b9f
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x10059ba0
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x100399a7
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x1003c184
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100610a0]
jne 0x1003c18e
repz ret
jmp fcn.10040aa7

Function at 0x1004aa8c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100610a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10043a5d
and dword [ebp - 0x14], 0
cmp dword [0x10063d94], 0
mov dword [ebp - 0x18], eax
jne 0x1004ab3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1004abe7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1004abe7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10063d94], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10063d98], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10063d9c], eax
call edi
push eax
call esi
mov dword [0x10063da4], eax
test eax, eax
je 0x1004ab3f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10063da0], eax
mov eax, dword [0x10063da0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1004ab98
cmp dword [0x10063da4], ecx
je 0x1004ab98
push eax
call esi
push dword [0x10063da4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1004ab98
test ebx, ebx
je 0x1004ab98
call edi
test eax, eax
je 0x1004ab8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1004ab8f
test byte [ebp - 8], 1
jne 0x1004ab98
or dword [ebp + 0x10], 0x200000
jmp 0x1004abcb
mov eax, dword [0x10063d98]
cmp eax, dword [ebp - 0x18]
je 0x1004abcb
push eax
call esi
test eax, eax
je 0x1004abcb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004abcb
mov eax, dword [0x10063d9c]
cmp eax, dword [ebp - 0x18]
je 0x1004abcb
push eax
call esi
test eax, eax
je 0x1004abcb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10063d94]
call esi
test eax, eax
je 0x1004abe7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1004abe9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c184
leave
ret
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
inc eax
cmp eax, 0x25
mov eax, 0x2f349c59
nop
cmp eax, 0x2b
mov eax, ebx
nop
mov eax, 0xfd8090f8
mov eax, ecx
mov eax, ecx
mov eax, ebx
cmp eax, 0x5a
cmp eax, 0xffffffad
mov eax, ebx
cmp eax, 0xfa1038a8
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
mov eax, ebx
mov eax, ecx
inc eax
cmp eax, 0xffffffd6
cmp eax, 0xf3df069
mov eax, ebx
nop
cmp eax, 0x2bda6764
inc eax
mov eax, ecx
mov eax, ebx
nop
mov eax, ebx
mov eax, 0xa4a35f53
mov eax, 0xfd68da5
mov eax, ebx
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x434931cf
cmp eax, 0xd2fd57a5
nop
mov eax, ebx
mov eax, ecx
mov eax, 0x536abe53
mov eax, ebx
mov eax, ecx
mov eax, ebx
inc eax
mov eax, 0x59291906
mov eax, ebx
cmp eax, 0xa38e5dda
nop
nop
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp eax, 0xffffff80
cmp eax, 0xea4e4446
mov eax, 0x7ce0ef22
cmp eax, 0x8cc11756
mov eax, 0x646db07b
cmp eax, 0xffffff86
mov eax, ebx
nop
inc eax
nop
cmp eax, 0x393697c9
cmp eax, 0xffffffff
cmp eax, 0xffffffce
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
mov eax, 0x2af20281
cmp eax, 0xffffffa5
inc eax
mov eax, ebx
cmp eax, 0xffffffff
cmp eax, 0x13
nop
mov eax, 0x98a70d84
mov eax, ebx
mov eax, 0x9598f506
cmp eax, 0x3a5017cd
nop
cmp eax, 0x57865428
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 0x52
cmp eax, 0xd146238d
mov eax, ebx
cmp eax, 0xd41f1e53
nop
inc eax
nop
mov eax, 0x611fb935
cmp eax, 0x7e
mov eax, 0x204cb293
mov eax, ebx
cmp eax, 0x20755c75
nop
mov eax, ebx
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x407600
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add ecx, eax
cmp eax, ecx
jae 0x407623
push esi
mov edx, dword [str.ZZZZFAT_not_accessible_]
mov esi, dword [eax]
xor esi, edx
mov dword [eax], esi
add eax, 4
cmp eax, ecx
jb 0x40760f
pop esi
ret 8

Function at 0x409630
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xc]
push 0
push edx
push eax
sar ecx, 0x1f
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x20]
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [esp + 0xc]
push 0
mov ebx, eax
push ecx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x24]
mov ecx, esi
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x8000
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 0x14

Function at 0x409740
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 0x281]
test esi, esi
jne 0x409758
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret 0x10
mov eax, dword [ebx + 0x26b]
mov ecx, dword [ebx + 0x26f]
push ebp
cmp eax, ecx
push edi
jbe 0x409784
mov eax, dword [ebx + 0x279]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cdq
push edx
push eax
push edi
push ecx
call fcn.0041e7e0
jmp 0x40979c
mov eax, dword [ebx + 0x27d]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
cdq
push ecx
push edx
push eax
call fcn.0041e6c0
push edx
push eax
push esi
mov ecx, ebx
call fcn.00409bf0
xor ecx, ecx
mov esi, edx
mov cl, byte [ebx + 0x273]
call fcn.0041e9e0
mov esi, dword [esp + 0x18]
mov ecx, edx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push 0
push edx
push eax
push esi
sar ecx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx + 0x26b]
mov ecx, dword [ebx + 0x26f]
cmp eax, ecx
ja 0x4097e3
mov eax, ecx
push 4
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x26f]
mov ebp, eax
mov eax, dword [ebx + 0x26b]
cmp eax, ecx
ja 0x409807
mov eax, ecx
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebx + 0x26f]
mov ecx, dword [ebx + 0x26b]
xor eax, eax
cmp ecx, esi
jbe 0x409840
mov eax, dword [ebx + 0x279]
cdq
push edx
mov edx, dword [esp + 0x20]
push eax
push edi
push edx
call fcn.0041e920
imul eax, esi
mov edi, dword [esp + 0x24]
mov ecx, esi
lea esi, [eax + ebp]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x8000
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004096b0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 0x10
Function at 0x40b140
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add ecx, eax
cmp eax, ecx
jae 0x40b163
push esi
mov edx, dword [str.ZZZZFILE]
mov esi, dword [eax]
xor esi, edx
mov dword [eax], esi
add eax, 4
cmp eax, ecx
jb 0x40b14f
pop esi
ret 8
Function at 0x40ea30
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x450e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or edi, 0xffffffff
cmp eax, edi
jne 0x40eaa1
push 0x5c
lea ecx, [esp + 0x20]
call fcn.0042be51
test eax, eax
jl 0x40eac6
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0042bdd9
mov ecx, esi
call fcn.0040ea30
test eax, eax
je 0x40eac6
mov edx, dword [esp + 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40eac6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.004325f1
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x10
ret 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.004325f1
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4

Function at 0x40ed20
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x450e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or edi, 0xffffffff
cmp eax, edi
jne 0x40ed91
push 0x5c
lea ecx, [esp + 0x20]
call fcn.0042be51
test eax, eax
jl 0x40edb6
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0042bdd9
mov ecx, esi
call fcn.0040ed20
test eax, eax
je 0x40edb6
mov edx, dword [esp + 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40edb6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.004325f1
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x10
ret 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.004325f1
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4

Function at 0x410240
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add ecx, eax
cmp eax, ecx
jae 0x410263
push esi
mov edx, dword [str.ZZZZUndeleting_file:__s]
mov esi, dword [eax]
xor esi, edx
mov dword [eax], esi
add eax, 4
cmp eax, ecx
jb 0x41024f
pop esi
ret 8
Function at 0x410840
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
sub esp, 0x210
lea eax, [esp + 0x10c]
push 0x104
push eax
mov dword [esp + 0xc], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10c]
push 0x5c
push ecx
call fcn.0041e700
add esp, 8
test eax, eax
je 0x410879
mov byte [eax + 1], 0
push ebx
push ebp
mov ebx, 0x45650c
push esi
push edi
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4109a0
xor ecx, ecx
push 0xa
mov cx, word [ebx]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4109b3
mov edx, dword [esp + 0x14]
push edi
mov eax, dword [edx + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4109b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0x18]
push 0x46e304
push ecx
mov ebp, eax
call fcn.0041ece8
mov esi, eax
add esp, 8
xor ebx, ebx
test esi, esi
jne 0x41097a
mov edx, ebx
inc ebx
cmp edx, 0xa
jge 0x410976
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
push 0x46e304
push eax
call fcn.0041ece8
mov esi, eax
add esp, 8
test esi, esi
je 0x410949
jmp 0x41097a
test esi, esi
je 0x4109b3
mov ecx, dword [esp + 0x14]
push edi
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 1
push eax
push ebp
call fcn.0041eef5
push esi
call fcn.0041ec3a
mov ebx, dword [esp + 0x24]
add esp, 0x14
add ebx, 0x68
cmp ebx, 0x4566ac
mov dword [esp + 0x10], ebx
jl 0x410886
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x413d40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [esi + 0x188]
test eax, eax
je 0x413d67
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 8
push 0x8000
call fcn.00432332
add esp, 4
mov ebp, eax
mov eax, dword [esi + 0x64]
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x413da4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], 0
mov esi, 0x11c
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x2c]
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], esi
jne 0x413ec0
mov eax, dword [esp + 0x144]
mov edx, dword [esp + 0x30]
cmp edx, dword [eax + 0xc]
je 0x413e11
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push 1
add eax, 4
push edx
push eax
push ebx
sar ecx, 0x1f
call edi
cmp dword [esp + 0x10], esi
jne 0x413ec0
jmp 0x413db8
mov esi, dword [eax]
lea ecx, [esp + 0x14]
push 1
push ecx
push 4
push ebx
mov dword [esp + 0x24], 0
call edi
test esi, esi
jle 0x413ec0
mov edi, dword [esp + 0x148]
cmp esi, 0x8000
mov eax, esi
jl 0x413e45
mov eax, 0x8000
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, 0x8000
mov eax, esi
jl 0x413e64
mov eax, 0x8000
mov ecx, dword [esp + 0x20]
push eax
push ebp
call fcn.00413ee0
cmp esi, 0x8000
mov eax, esi
jl 0x413e7e
mov eax, 0x8000
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x8000
mov eax, esi
jl 0x413e9d
mov eax, 0x8000
mov ecx, dword [esp + 0x14]
add ecx, eax
cmp esi, 0x8000
mov dword [esp + 0x14], ecx
mov eax, esi
jl 0x413eb6
mov eax, 0x8000
sub esi, eax
test esi, esi
jg 0x413e36
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0043235b
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 8

Function at 0x413ee0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add ecx, eax
cmp eax, ecx
jae 0x413f03
push esi
mov edx, dword [str.ZZZZA:_]
mov esi, dword [eax]
xor esi, edx
mov dword [eax], esi
add eax, 4
cmp eax, ecx
jb 0x413eef
pop esi
ret 8
Function at 0x413f10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x130
mov eax, dword [ecx + 0x188]
push edi
test eax, eax
mov dword [esp + 0x10], ecx
je 0x413f31
xor eax, eax
pop edi
add esp, 0x130
ret 0xc
mov eax, dword [ecx + 0x64]
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413f5d
xor eax, eax
pop edi
add esp, 0x130
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
mov ebp, dword [esp + 0x140]
push esi
mov dword [esp + 0x14], 0
mov esi, 0x11c
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x2c]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], esi
jne 0x41407b
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0xc]
cmp edx, eax
je 0x413fce
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push 1
add eax, 4
push edx
push eax
push edi
sar ecx, 0x1f
call ebx
cmp dword [esp + 0x14], esi
jne 0x41407b
jmp 0x413f7a
mov eax, dword [esp + 0x14c]
mov ecx, dword [ebp + 4]
mov esi, dword [ebp]
cdq
cmp ecx, edx
jg 0x413fe6
jl 0x413fe8
cmp esi, eax
jb 0x413fe8
mov esi, eax
lea ecx, [esp + 0x10]
push 1
push ecx
xor ebp, ebp
push 4
push edi
mov dword [esp + 0x20], ebp
call ebx
cmp esi, ebp
mov dword [esp + 0x10], ebp
jle 0x41407b
mov ebx, dword [esp + 0x148]
cmp esi, 0x8000
mov eax, esi
jl 0x414018
mov eax, 0x8000
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, 0x8000
mov eax, esi
jl 0x41403c
mov eax, 0x8000
mov ecx, dword [esp + 0x10]
push eax
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00413ee0
cmp esi, 0x8000
mov eax, esi
jl 0x41405c
mov eax, 0x8000
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp esi, 0x8000
mov dword [esp + 0x10], ecx
mov eax, esi
jl 0x414075
mov eax, 0x8000
sub esi, eax
cmp esi, ebp
jg 0x414009
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x130
ret 0xc