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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4556c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x423f12
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00424066
test al, al
jne 0x423f0c
sub edx, 2
cmp edx, edi
jne 0x423ef2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x423f34
lea eax, [edi + 2]
cmp edx, eax
je 0x423f34
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00423e13
add esp, 0x10
jmp 0x42402e
push esi
lea ecx, [ebp - 0x255]
call fcn.00424066
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423f77
push dword [ebp - 0x25c]
jmp 0x423f24
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x423fb4
cmp word [ebp - 0x226], 0
je 0x423fd5
cmp word [ebp - 0x226], ax
jne 0x423fb4
cmp word [ebp - 0x224], 0
je 0x423fd5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00423e13
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x424021
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x423f8e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x424009
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42402e
push 0x423c43
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042adc0
add esp, 0x10
jmp 0x423ffe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf55
leave
ret
Function at 0x1002090c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1002091b
pop dword [ebp - 0x40]
mov eax, 0x22102602
add eax, 0xedf1e319
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x85043942
add dword [ebp - 0x50], 0xc94e0c09
mov dword [ebp - 0x4c], 0x81db93cd
sub dword [ebp - 0x4c], 0x4fa84788
mov dword [ebp - 0x48], 0xd1f7125a
sub dword [ebp - 0x48], 0x85aace2c
mov dword [ebp - 0x44], 0x7d42e19c
add dword [ebp - 0x44], 0x82bd1e64
lea eax, [ebp - 0x50]
push eax
mov eax, 0x531b829e
add eax, 0xbce80eca
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xa8624436
sub dword [ebp - 0x50], 0x33efdae0
mov dword [ebp - 0x4c], 0x33e0bb9c
sub dword [ebp - 0x4c], 0xf2745a27
mov dword [ebp - 0x48], 0xb920e902
sub dword [ebp - 0x48], 0x55b17c96
mov dword [ebp - 0x44], 0x24ce5541
sub dword [ebp - 0x44], 0x24ce5541
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x9ef5c0c2
sub eax, 0x8ef23062
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x38d2a
push 0
call eax
mov ecx, 0xe2a3e8e3
sub ecx, 0xe2a3a2e6
mov esi, eax
mov edx, 0xcb4361af
sub edx, 0xbb3e29af
add edx, dword [ebp - 0x40]
mov ebx, 0xb3fdd0f5
sub ebx, 0x6e6fca0c
xor dword [ebp - 0x18], edx
mov edi, dword [edx]
sub dword [ebp - 4], 0xc5c12bcd
add edi, ebx
mov dword [esi], edi
sub dword [ebp - 0x30], 0x89e5d13
add esi, 0x7f623bee
add esi, 0x809dc416
add edx, 0xa25545e7
sub edx, 0xa25545e3
loop 0x10020a3d
add eax, 0x7262a5dd
sub eax, 0x72619b16
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xfecac763
add ecx, 0x1135389d
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4214d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x4214f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4214f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4214e8
mov eax, 1
add ebx, ebx
jne 0x42150b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421500
jne 0x42151c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421500
xor ecx, ecx
sub eax, 3
jb 0x421530
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4215a2
mov ebp, eax
add ebx, ebx
jne 0x42153b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421548
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42156c
inc ecx
add ebx, ebx
jne 0x421558
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42154d
jne 0x421569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42154d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42158c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42157d
jmp 0x4214ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42158c
add edi, ecx
jmp 0x4214ee
pop esi
mov edi, esi
mov ecx, 0xc4d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4215aa
cmp byte [edi], 9
jne 0x4215aa
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 0x4215af
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421627
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x27c5c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27ce8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4215dc
mov ecx, edi
jns 0x42160b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x27cec]
or eax, eax
je 0x421621
mov dword [ebx], eax
add ebx, 4
jmp 0x4215f9
call dword [esi + 0x27cfc]
mov ebp, dword [esi + 0x27cf0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x42165b
sub esp, 0xffffff80
jmp 0x411f3f
Function at 0x5107d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9c000]
inc eax
idiv bh
push edi
jmp 0x5107ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5107f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5107e0
mov eax, 1
add ebx, ebx
jne 0x510803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x510814
jne 0x510833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x510833
dec eax
add ebx, ebx
jne 0x510820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5107f8
add ebx, ebx
jne 0x51082f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x510885
xor ecx, ecx
sub eax, 3
jb 0x51084b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5108ba
sar eax, 1
mov ebp, eax
jmp 0x510856
add ebx, ebx
jne 0x510856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x510824
inc ecx
add ebx, ebx
jne 0x510864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x510824
add ebx, ebx
jne 0x510871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x510866
jne 0x510882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x510866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5108a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x510896
jmp 0x5107e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5108a4
add edi, ecx
jmp 0x5107e6
pop esi
mov edi, esi
mov ecx, 0x2af1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5108c2
cmp byte [edi], 0x1d
jne 0x5108c2
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 0x5108c7
lea edi, [esi + 0x10d000]
mov eax, dword [edi]
or eax, eax
je 0x51093f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11868c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x118790]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5108f4
mov ecx, edi
jns 0x510923
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x118794]
or eax, eax
je 0x510939
mov dword [ebx], eax
add ebx, 4
jmp 0x510911
call dword [esi + 0x1187a4]
mov ebp, dword [esi + 0x118798]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x510973
sub esp, 0xffffff80
jmp 0x45b5b5
Function at 0x405941
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f0
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405992
xor eax, eax
jmp 0x4059b9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4059b9
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40598e
call esi
pop esi
leave
ret 4

Function at 0x4059f3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430290], 0x44
push eax
xor eax, eax
push 0x430290
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405a32
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a36
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405ad4
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405edb
mov edi, eax
cmp edi, 0xffffffff
je 0x405b15
test byte [esp + 0x10], 1
push esi
je 0x405af7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405afd
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405b06
xor eax, eax
inc eax
jmp 0x405b17
test byte [esp + 0x10], 4
jne 0x405b15
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x402a60
Capabilities:
Create udp socket
Print debug messages
Set socket configuration

Disassembly:
mov eax, dword [0x406064]
sub esp, 0x7c
cmp eax, 0xffffffff
push ebp
push esi
mov ebp, ecx
jne 0x402bcd
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x406064], eax
jne 0x402aa9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_error_:__d
push ebp
call fcn.004029d0
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebp
add esp, 0x7c
ret
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push edi
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x20], 0x1f4
call esi
push 0xea60
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x4065b0
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dl, byte [0x406398]
mov dword [esp + 0x18], eax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4065ac]
xor ecx, ecx
mov cl, ah
and eax, 0xff
push ecx
push eax
xor edx, edx
xor eax, eax
mov dl, byte [0x4065ab]
mov al, byte [0x4065aa]
push edx
push eax
mov eax, dword [0x4065a8]
xor ecx, ecx
mov cl, ah
and eax, 0xff
push ecx
push eax
push 0x4065b0
lea edx, [esp + 0x40]
push str.ip:_s_t_tmac:__02X:_02X:_02X:_02X:_02X:_02X
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x406064]
lea ecx, [esp + 0x14]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x402bae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind_error_:__d
push ebp
call fcn.004029d0
mov eax, dword [0x406064]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
mov dword [0x406064], 0xffffffff
or eax, 0xffffffff
pop ebp
add esp, 0x7c
ret
mov edx, dword [0x406064]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x20
push 0xffff
push edx
mov dword [esp + 0x20], 1
call esi
pop esi
xor eax, eax
pop ebp
add esp, 0x7c
ret
Function at 0x2a30195d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2a357578]
jne 0x2a301967
repz ret
jmp fcn.2a341dce

Function at 0x2a309f40
Capabilities:
Terminate thread

Disassembly:
push 0x10
mov eax, 0x2a342707
call fcn.2a30229e
mov esi, ecx
xor edi, edi
cmp dword [esi], 0xb
mov dword [ebp - 0x14], edi
jne 0x2a30a02b
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
push 0xea60
push dword [esi + 0x2e0]
call edi
or dword [esi + 0x1ac], 0xffffffff
push 1
push dword [esi + 0x2dc]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push dword [esi + 0x2e0]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
call ebx
shr eax, 4
add eax, 0x12c
mov dword [ebp - 0x10], eax
jmp 0x2a309fdb
push 0xea60
push dword [esi + 0x2e0]
call edi
push dword [esi + 0x2e0]
xor eax, eax
cmp dword [esi], 0xb
setne al
movzx eax, ax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp word [ebp - 0x1c], 0
jne 0x2a309fe5
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
call ebx
shr eax, 4
cmp eax, dword [ebp - 0x10]
jb 0x2a309fa5
push 0xea60
push dword [esi + 0x2e0]
call edi
cmp dword [esi], 0xb
jne 0x2a30a00a
xor edi, edi
inc edi
push edi
push dword [esi + 0x2dc]
call dword [sym.imp.kernel32.dll_TerminateThread]
mov dword [ebp - 0x14], edi
push dword [esi + 0x2e0]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push dword [esi + 0x2e0]
call dword [sym.imp.kernel32.dll_CloseHandle]
and dword [esi + 0x2e0], 0
xor edi, edi
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0x1ac]
mov dword [ebx], edi
cmp eax, edi
je 0x2a30a05c
cmp word [ebp - 0x14], di
jne 0x2a30a059
push ebx
push eax
call fcn.2a32d0a9
cmp dword [ebx], edi
jne 0x2a30a05c
push ebx
push dword [esi + 0x18]
mov dword [esi + 0x1c], edi
call fcn.2a32d0a9
jmp 0x2a30a05c
mov dword [esi + 0x1c], edi
cmp word [esi + 0x14c], di
je 0x2a30a0c8
push edi
push edi
lea ecx, [ebp - 0x18]
call fcn.2a32d0a9
mov ebx, dword [0x2a358a70]
push edi
lea eax, [esi + 0x48]
push eax
mov eax, dword [0x2a358a74]
push str.Cstring
mov dword [ebp - 4], edi
call dword [eax + 0x14]
movzx eax, ax
pop ecx
push eax
push edi
call dword [ebx + 0xd0]
add esp, 0x10
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.2a32d0a9
cmp dword [ebp - 0x14], edi
je 0x2a30a0bc
lea ecx, [ebp - 0x18]
call fcn.2a32d0a9
test al, al
je 0x2a30a0bc
lea ecx, [ebp - 0x18]
call fcn.2a330802
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.2a3032b3
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x2a30a0df
push eax
mov eax, dword [0x2a358780]
call dword [eax + 0x284]
pop ecx
mov dword [esi + 0x3c], edi
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x2a30a107
push eax
mov eax, dword [0x2a358a90]
cmp word [esi + 0x1a2], di
je 0x2a30a0fd
call dword [eax + 0x124]
jmp 0x2a30a103
call dword [eax + 0x11c]
pop ecx
mov dword [esi + 0x24], edi
mov dword [esi], 2
call fcn.2a3026e6
ret
Function at 0x2a323cd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x2a3442a0
call fcn.2a30372f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
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
cmp esi, ebx
je 0x2a323d84
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.2a32d0a9
add esp, 0xc
test eax, eax
js 0x2a323d84
mov edi, dword [ebp - 0x41c]
cmp edi, 0x400
jg 0x2a323d6a
push edi
call fcn.2a3203ae
pop ecx
test al, al
je 0x2a323d6a
mov eax, edi
call fcn.2a341a00
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x2a323d76
push edi
lea ecx, [ebp - 0x428]
call fcn.2a32d0a9
push 3
push edi
push esi
push eax
call fcn.2a32d0a9
cmp eax, ebx
jne 0x2a323dc1
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a323d9d
lea ecx, [ebp - 0x418]
call fcn.2a31ffe1
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.2a31fe2e
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.2a303768
ret 0x10
push 2
push ebx
push eax
call fcn.2a3212fd
mov edi, eax
mov dword [ebp - 0x41c], edi
cmp edi, ebx
jne 0x2a323de2
call fcn.2a31f619
mov esi, eax
jmp 0x2a323eac
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x2a323e05
call fcn.2a31f619
jmp 0x2a323e9e
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x2a323dfb
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x424], esi
cmp eax, esi
jae 0x2a323e35
mov esi, 0x8007000e
jmp 0x2a323ea0
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.2a32d0a9
mov dword [ebp - 4], 1
jmp 0x2a323e63
cmp dword [ebp - 0x418], ebx
je 0x2a323e2e
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.2a32d0a9
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.2a32d0a9
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a323da2
lea ecx, [ebp - 0x418]
call fcn.2a31ffe1
jmp 0x2a323da2
Function at 0x2a32d0a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x2a32d0b8
pop dword [ebp - 0x3c]
mov eax, 0x4b129b7b
sub eax, 0x20dfcac3
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc9695f45
add dword [ebp - 0x4c], 0x84e8e606
mov dword [ebp - 0x48], 0xb83e5f25
sub dword [ebp - 0x48], 0x860b12e0
mov dword [ebp - 0x44], 0x89c5be65
sub dword [ebp - 0x44], 0x3d797a37
mov dword [ebp - 0x40], 0xf7385e4
add dword [ebp - 0x40], 0xf08c7a1c
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x6149591d
add eax, 0xc8eb172f
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xf1cefd3
sub dword [ebp - 0x4c], 0x9aaa867d
mov dword [ebp - 0x48], 0xd7e669e1
add dword [ebp - 0x48], 0x6985f794
mov dword [ebp - 0x44], 0xa7ce5345
add dword [ebp - 0x44], 0xbba11927
mov dword [ebp - 0x40], 0xbcb1574a
sub dword [ebp - 0x40], 0xbcb1574a
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x46f75
push 0
call eax
mov ecx, 0x665041e6
sub ecx, 0x664ff313
xor edi, edi
add edi, eax
mov ebx, 0x2a36ba00
add ebx, dword [ebp - 0x3c]
mov edx, 0xe952ab94
sub dword [ebp - 0xc], 0x1da5a87f
mov esi, dword [ebx]
sub dword [ebp - 0x1c], 0xc660d967
sub esi, edx
add dword [ebp - 8], edi
mov dword [edi], esi
xor dword [ebp - 0x28], edi
add edi, 0x790c82e5
add edi, 0x86f37d1f
add ebx, 0x4767c196
sub ebx, 0x4767c192
loop 0x2a32d1cb
add eax, 0x12e1f
mov ebx, eax
add eax, 0xd5ec0142
add eax, 0x2a13fec3
mov ecx, 0x2a300000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401ee0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1054
call fcn.00413850
push ebx
mov ebx, dword [esp + 0x1060]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1024], 0
cmp byte [edi + 0x22], 0
jne 0x401f0c
test bl, 4
jne 0x401f0c
xor cl, cl
jmp 0x401f0e
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401f33
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401f42
or ebx, 2
xor eax, eax
lea ecx, [esp + 0x1c]
cmp byte [edi + 0x1b], al
setne al
dec eax
and eax, 0x8000000
mov dword [esp + 0x10], eax
call fcn.00401b7c
cmp byte [edi + 0x20], 0
je 0x401f69
or esi, 0x100
push 0
push dword [esp + 0x14]
push 3
push 0
push ebx
push esi
push dword [esp + 0x1080]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401feb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x1070]
call fcn.00403489
test al, al
je 0x401fda
push 0
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401fd5
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x401feb
cmp dword [esp + 0x14], 2
jne 0x401feb
mov dword [edi + 0x1024], 1
cmp byte [edi + 0x20], 0
pop esi
je 0x402011
cmp ebp, 0xffffffff
je 0x402011
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x18], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
cmp ebp, 0xffffffff
je 0x402043
push 0x800
push dword [esp + 0x1068]
lea ecx, [edi + 0x24]
mov dword [edi + 4], ebp
push ecx
call fcn.0040685f
mov byte [edi + 0x21], 0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1054
ret 8