joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a7c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43a852
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43a844
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43a83c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43a805
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x43aac0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x43aacd
xor eax, eax
pop esi
ret
push esi
call fcn.0043eee0
add esp, 4
test eax, eax
jne 0x43aadc
pop esi
ret
cmp eax, 1
jne 0x43aaea
cmp byte [esi], 0x5c
jne 0x43aaea
xor eax, eax
pop esi
ret
push esi
call fcn.0043a870
add esp, 4
test eax, eax
je 0x43aafe
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret
Function at 0x43b550
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x43b566
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x43b570
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x43b5c0
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.0043b550
add esp, 4
cmp eax, 0xffffffff
je 0x43b5bb
push eax
call sub.WSOCK32.dll_inet_ntoa
mov esi, eax
push esi
call fcn.0043eee0
push eax
push esi
call fcn.0043f970
add esp, 0xc
mov esi, eax
call sub.WSOCK32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x43efc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x43efe1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x43f03b
inc edi
cmp edi, esi
jl 0x43efd5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x43f070
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x43f02a
cmp byte [eax], bl
je 0x43f045
cmp byte [eax + 1], bl
je 0x43f04e
cmp byte [eax + 2], bl
je 0x43f058
cmp byte [eax + 3], bl
je 0x43f064
add eax, 4
cmp eax, edi
jb 0x43f001
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x43f670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x43f6c6
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x43f6ad
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x440cf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x440d56
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x440d56
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x440d37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4410e0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x441118
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x441d50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x441d99
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x442210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x464670
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00441dc0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00441e40
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00441e40
lea ecx, [esi + 0xc]
call fcn.0045c576
lea ecx, [esi + 0x10]
call fcn.0045c576
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004433d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004433d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004433d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045c5eb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045c5eb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45cf79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x464bb4
call fcn.0044f324
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00462a21
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x45cfb8
call fcn.00462a21
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x45cfc6
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x45cfd4
or eax, 0xffffffff
jmp 0x45d0bc
mov ecx, esi
call fcn.0045ceef
mov dword [ebp - 0x14], eax
call fcn.0045dee6
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x45d00b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45d00b
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0045de9a
push dword [ebp - 0x14]
call fcn.0045d9cb
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0045cc87
cmp eax, edi
je 0x45d07e
test byte [esi + 0x24], 0x10
je 0x45d04c
push 4
mov ecx, esi
pop ebx
call fcn.0045d3cb
test ah, 1
je 0x45d044
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0045f9f1
cmp dword [esi + 0x1c], edi
je 0x45d07e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0045d3ff
jmp 0x45d07e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x45d092
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x45d0ab
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x45d0ab
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0045cf29
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x45f89f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45f8e1
call fcn.00462a21
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x45f8e1
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x45f8d8
xor eax, eax
jmp 0x45f8e9
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045f8ef
pop edi
pop esi
pop ebx
ret 4
Function at 0x462f1a
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 0x462f48
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x462f66
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00462e80
jmp 0x462f66
mov eax, dword [esi + 0x14]
test eax, eax
je 0x462f66
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00462e80
test edi, edi
mov eax, edi
jne 0x462f50
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x403f8c
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x444
mov esi, dword [esp + 0x45c]
mov ebp, dword [esp + 0x458]
push esi
mov edi, ebp
push ebp
push str.putfile__s__s_n
call sub.msvcrt.dll_printf
push 0x400
lea ebx, [esp + 0x54]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov dword [esp + 0x20], ebx
xor edx, edx
cld
mov al, dl
mov dword [esp + 0x10], 0x3c
or ecx, 0xffffffff
mov dword [esp + 0x14], 0x240
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x43c7ab
repne scasb al, byte es:[edi]
not ecx
mov edi, esi
mov dword [esp + 0xc], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
lea ecx, [ecx + eax + 0x28]
push ecx
call sub.msvcrt.dll_malloc
push esi
mov ebx, eax
push 0x43c7b0
push ebp
push str.pscp_s_s:_s
push eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 5
mov dword [esp + 0x48], 0x1d
add esp, 0x24
lea eax, [esp + 4]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
jne 0x404061
call sub.KERNEL32.dll_GetLastError
push eax
push str.Last_error:__d_n
call sub.msvcrt.dll_printf
pop eax
pop edx
push ebx
call fcn.0043aa78
mov eax, dword [esp + 0x40]
add esp, 0x448
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40b6d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
xor edi, edi
push esi
push ebx
push edx
mov ebp, dword [esp + 0x18]
lea esi, [ebp + 2]
movzx eax, byte [ebp]
mov byte [esp + 3], al
movzx edx, byte [ebp + 1]
mov byte [esp + 2], dl
cmp edi, dword [esp + 0x20]
jge 0x40b728
inc byte [esp + 3]
movzx ecx, byte [esp + 3]
movzx edx, byte [esi + ecx]
add byte [esp + 2], dl
movzx ebx, byte [esp + 2]
movzx eax, byte [esi + ebx]
mov byte [esi + ecx], al
mov byte [esi + ebx], dl
add dl, byte [esi + ecx]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [esi + eax]
xor byte [edx + edi], al
inc edi
jmp 0x40b6ee
movzx eax, byte [esp + 3]
mov byte [ebp], al
movzx edx, byte [esp + 2]
mov byte [ebp + 1], dl
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e544
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x54], 0
ret
Function at 0x40ef6f
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x460
mov ebp, dword [esp + 0x478]
push 0x43d700
push dword [esp + 0x478]
call sub.msvcrt.dll_fopen
mov edi, eax
test edi, edi
pop eax
pop edx
jne 0x40ef9f
mov byte [ebp], 0
jmp 0x40efff
lea eax, [esp + 0x400]
push eax
call fcn.0040e544
push 0
push 0
push edi
call sub.msvcrt.dll_fseek
add esp, 0x10
jmp 0x40efc6
push eax
push ebx
push esi
call fcn.0040e579
add esp, 0xc
push edi
push 0x400
push 1
lea ebx, [esp + 0xc]
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
test eax, eax
lea esi, [esp + 0x400]
jne 0x40efbb
push 0
push ebx
push esi
call fcn.0040e579
push edi
call sub.msvcrt.dll_fclose
push esi
push ebp
call fcn.0040ee72
add esp, 0x18
add esp, 0x460
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40f33e
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x444610], 0
push edi
push esi
push ebx
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
je 0x40f40e
mov edx, dword [0x444b20]
mov eax, 0x40
sub eax, edx
cmp esi, eax
jl 0x40f3f3
mov eax, 0x40
xor ebx, ebx
sub eax, edx
push eax
add edx, 0x444ae0
push edi
push edx
call sub.msvcrt.dll_memcpy
push 0x444ae0
mov edx, dword [0x444b20]
mov eax, edi
push 0x444acc
sub eax, edx
lea esi, [esi + edx - 0x40]
lea edi, [eax + 0x40]
call fcn.00413244
mov ecx, dword [0x444ac8]
add esp, 0x14
movzx edx, byte [ebx + 0x444ae0]
mov eax, ecx
inc ecx
xor byte [eax + 0x444618], dl
cmp ecx, 0x4b0
mov eax, 0
cmovge ecx, eax
inc ebx
cmp ebx, 0x13
jle 0x40f3ab
mov dword [0x444ac8], ecx
cmp ecx, 0x13
jg 0x40f3df
call fcn.0040f21c
mov dword [0x444b20], 0
xor edx, edx
cmp esi, 0x40
jmp 0x40f365
push esi
mov eax, dword [0x444b20]
push edi
add eax, 0x444ae0
push eax
call sub.msvcrt.dll_memcpy
add dword [0x444b20], esi
add esp, 0xc
pop ebx
pop esi
pop edi
ret

Function at 0x40f53a
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push 1
push 0x258
call fcn.00401771
mov ebx, eax
call fcn.0040f21c
push 0x258
mov eax, dword [0x444ac8]
add eax, 0x444618
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov dword [esi], 0x258
add esp, 0x14
mov dword [edi], ebx
pop ebx
pop esi
pop edi
jmp fcn.0040f21c
Function at 0x413244
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x15c
xor ebx, ebx
mov edx, dword [esp + 0x174]
mov eax, dword [edx + ebx*4]
mov dword [esp + ebx*4 + 0x1c], eax
inc ebx
cmp ebx, 0xf
jle 0x413257
mov ebx, 0x10
mov eax, dword [esp + ebx*4 - 4]
xor eax, dword [esp + ebx*4 + 0x10]
xor eax, dword [esp + ebx*4 - 0x1c]
xor eax, dword [esp + ebx*4 - 0x24]
rol eax, 1
mov dword [esp + ebx*4 + 0x1c], eax
inc ebx
cmp ebx, 0x4f
jle 0x413269
mov eax, dword [esp + 0x170]
xor ebx, ebx
mov edx, dword [esp + 0x170]
mov eax, dword [eax]
mov esi, dword [edx + 4]
mov edi, dword [edx + 8]
mov dword [esp + 0x10], eax
mov ebp, dword [edx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp + 0x14], eax
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov edx, esi
mov ecx, esi
not edx
and ecx, edi
and edx, ebp
rol eax, 5
or ecx, edx
add eax, ecx
add eax, dword [esp + 0x14]
mov dword [esp + 0x14], ebp
mov ebp, edi
mov edi, esi
add eax, dword [esp + ebx*4 + 0x1c]
inc ebx
rol edi, 0x1e
mov esi, dword [esp + 0x18]
add eax, 0x5a827999
cmp ebx, 0x13
mov dword [esp + 0x18], eax
jle 0x4132be
mov ebx, 0x14
mov edx, dword [esp + 0x18]
mov eax, esi
xor eax, edi
xor eax, ebp
rol edx, 5
add edx, eax
add edx, dword [esp + 0x14]
mov dword [esp + 0x14], ebp
mov ebp, edi
mov edi, esi
add edx, dword [esp + ebx*4 + 0x1c]
inc ebx
rol edi, 0x1e
mov esi, dword [esp + 0x18]
add edx, 0x6ed9eba1
cmp ebx, 0x27
mov dword [esp + 0x18], edx
jle 0x4132fe
mov ebx, 0x28
mov eax, dword [esp + 0x18]
mov edx, edi
mov ecx, edi
or edx, ebp
and ecx, ebp
and edx, esi
rol eax, 5
or edx, ecx
add eax, edx
add eax, dword [esp + 0x14]
mov dword [esp + 0x14], ebp
mov ebp, edi
mov edi, esi
add eax, dword [esp + ebx*4 + 0x1c]
inc ebx
rol edi, 0x1e
mov esi, dword [esp + 0x18]
sub eax, 0x70e44324
cmp ebx, 0x3b
mov dword [esp + 0x18], eax
jle 0x413339
mov ebx, 0x3c
mov eax, dword [esp + 0x18]
mov edx, esi
xor edx, edi
xor edx, ebp
rol eax, 5
add eax, edx
add eax, dword [esp + 0x14]
mov dword [esp + 0x14], ebp
mov ebp, edi
mov edi, esi
add eax, dword [esp + ebx*4 + 0x1c]
inc ebx
rol edi, 0x1e
mov esi, dword [esp + 0x18]
sub eax, 0x359d3e2a
cmp ebx, 0x4f
mov dword [esp + 0x18], eax
jle 0x413379
add eax, dword [esp + 0x10]
mov edx, dword [esp + 0x170]
mov dword [edx], eax
mov eax, dword [esp + 0xc]
add eax, esi
mov dword [edx + 4], eax
mov eax, dword [esp + 8]
add eax, edi
mov dword [edx + 8], eax
mov eax, dword [esp + 4]
add eax, ebp
mov dword [edx + 0xc], eax
mov eax, dword [esp]
add eax, dword [esp + 0x14]
mov dword [edx + 0x10], eax
add esp, 0x15c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x415ef6
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x28
mov ebp, dword [esp + 0x3c]
cmp edx, dword [ebp + 0x14]
jge 0x415f24
cld
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + edx*4]
inc edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
xor eax, eax
rep stosb byte es:[edi], al
jmp 0x415f03
xor eax, eax
cmp dword [0x444b58], 0
jne 0x4160d3
push 0xfffffffffffffff6
call sub.KERNEL32.dll_GetStdHandle
mov dword [esp + 0x18], eax
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
cmp dword [esp + 0x18], 0xffffffff
mov esi, eax
sete al
cmp esi, 0xffffffff
sete dl
or eax, edx
test al, 1
je 0x415f78
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.Cannot_get_standard_input_output_handles_n
call sub.msvcrt.dll_fputs
push 1
call fcn.00415eb4
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x415fb6
mov edx, dword [ebp + 4]
test edx, edx
je 0x415fb6
cld
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebx, ecx
mov eax, esi
not ebx
dec ebx
push ebx
call fcn.00415ee1
pop edi
mov eax, dword [ebp + 4]
cmp byte [eax + ebx - 1], 0xa
je 0x415fb6
push 1
mov edx, 0x43e2b6
mov eax, esi
call fcn.00415ee1
pop ecx
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x415fee
cld
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebx, ecx
mov eax, esi
not ebx
dec ebx
push ebx
call fcn.00415ee1
pop edx
mov eax, dword [ebp + 0xc]
cmp byte [eax + ebx - 1], 0xa
je 0x415fee
push 1
mov eax, esi
mov edx, 0x43e2b6
call fcn.00415ee1
pop eax
mov dword [esp + 0x14], 0
xor eax, eax
cmp eax, dword [ebp + 0x14]
jae 0x4160ce
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [eax + edx*4]
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call sub.KERNEL32.dll_GetConsoleMode
mov edx, dword [esp + 0x24]
mov eax, edx
or eax, 3
or edx, 7
and eax, 0xfffffffb
cmp dword [ebx + 4], 0
cmovne eax, edx
push eax
push dword [esp + 0x1c]
call sub.KERNEL32.dll_SetConsoleMode
cld
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp], ecx
mov edi, dword [esp]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov eax, esi
dec ecx
push ecx
mov edx, dword [ebx]
call fcn.00415ee1
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebx + 0xc]
dec eax
push eax
push dword [ebx + 8]
push dword [esp + 0x2c]
call sub.KERNEL32.dll_ReadFile
push dword [esp + 0x28]
push dword [esp + 0x20]
call sub.KERNEL32.dll_SetConsoleMode
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0xc]
pop edi
cmp edx, eax
jbe 0x416092
dec eax
jmp 0x416095
lea eax, [edx - 2]
mov dword [esp + 0x20], eax
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x20]
mov byte [edx + eax], 0
cmp dword [ebx + 4], 0
jne 0x4160be
push 0
lea eax, [esp + 0x20]
push eax
push 2
push 0x43e2b8
push esi
call sub.KERNEL32.dll_WriteFile
inc dword [esp + 0x14]
mov edi, dword [esp + 0x14]
cmp edi, dword [ebp + 0x14]
jmp 0x415ffb
mov eax, 1
add esp, 0x28
pop ebx
pop esi
pop edi
pop ebp
ret