joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464c70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x50]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
lea eax, [ebp - 0x30]
push 0x47ae80
push eax
push 0x20
push ecx
push edx
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x464ceb
nop word cs:[eax + eax]
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x464cc0
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x464d08
mov ecx, ebx
call fcn.004815c0
cmp al, 0xb
jne 0x464cfd
mov ebx, dword [esi + 8]
mov dword [ebp - 0x10], edi
xor edi, edi
jmp 0x464d20
call fcn.004c9ea0
mov ebx, eax
mov ecx, ebx
call fcn.004815c0
cmp al, 0xb
je 0x464ce1
mov dword [edi], 0
mov dword [edi + 4], ebx
jmp 0x464d41
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
cmp edi, 0x21
jae 0x464d5b
mov eax, dword [esi]
mov ebx, dword [esi + 8]
mov ecx, esi
sub eax, ebx
cmp eax, edi
jb 0x464d49
mov eax, dword [esi + 4]
add eax, ebx
push edi
lea ecx, [ebp - 0x50]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x10]
add ebx, edi
mov dword [esi + 8], ebx
mov dword [eax + 4], edi
mov byte [eax], 4
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, ebx
push edi
call fcn.00443c60
add esp, 4
mov ebx, dword [esi + 8]
jmp 0x464d20
push 0x4dfbac
push 0x20
push edi
call fcn.004ba670
nop dword [eax + eax]

Function at 0x46ec10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call fcn.004a7890
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x46ec87
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x46ecb3
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x46eccf
jmp 0x46ecdb
mov ecx, dword [0x4e0480]
mov edx, dword [0x4e0484]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x46ecdb
push 1
push eax
push dword [ebp - 0x1c]
call fcn.00401c20
add esp, 0x40
jmp 0x46ecde
mov ecx, dword [ebp - 0x10]
movzx eax, word [ebp + 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x46ecdb
push 1
push ebx
push edi
call fcn.00401c20
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46fad0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.004cf510
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x47ae80
push eax
push 0x1000
push ebx
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x46fbf6
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x46fb2e
cmp dword [ebp - 0x18], 0
jne 0x46fc05
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x46fc05
cmp ebx, 0x1000
ja 0x46fc2d
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x46fc1c
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x47ae80
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x46fbfd
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x46fba0
cmp dword [ebp - 0x18], 0
jne 0x46fc02
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x46fb60
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x47ae80
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x46fb2e
call fcn.004c9ea0
jmp 0x46fc05
call fcn.004c9ea0
mov edi, dword [ebp - 0x10]
push edi
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4e1790
push ebx
push edi
call fcn.004ba6d0
add esp, 0xc
jmp 0x46fc40
push 0x4e1790
push 0x1000
push ebx
call fcn.004ba670
add esp, 0xc
ud2

Function at 0x474480
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.00481cb0
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000000
je 0x4744d4
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call fcn.00479a30
add esp, 4
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp ebx, 0x80000000
jne 0x4744e1
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [esi], edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push edi
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x4744f6
mov byte [esi], 4
test ebx, ebx
jne 0x474505
jmp 0x4744d9
call fcn.004c9ea0
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4744d9
add ebx, ebx
push 2
push ebx
push edi
call fcn.00401c20
add esp, 0x30
jmp 0x4744dc
Function at 0x476fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 0x10]
call 0x476fe1
pop eax
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
mov eax, ecx
sub eax, edi
jb 0x4770c8
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi]
mov edx, dword [ecx]
add ebx, edi
sub esp, 8
lea ecx, [ebp - 0x18]
push 0
push 0
push eax
push ebx
call fcn.004773d0
add esp, 0x18
movzx edx, byte [ebp - 0x18]
cmp edx, 4
jne 0x477037
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [esi + 8], edi
mov byte [ecx], 4
mov eax, dword [esi + 0xc]
cmp eax, edi
cmova edi, eax
mov dword [esi + 0xc], edi
jmp 0x4770be
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
add eax, dword [edx*4 + 0x477100]
jmp eax
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4ddbf8
push ecx
push edi
call fcn.004ba610
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4770ec
push dword [esi + 8]
push eax
push dword [ebp - 0x10]
call fcn.00401c20
add esp, 0xc
push 4
push 0xc
push edi
call fcn.00401c20
add esp, 0xc
push ebx
call fcn.004cc500
nop
je 0x477102
add byte [eax], al
xchg ecx, eax
add byte [eax], al
add byte [ebp], ah
add byte [eax], al
add byte gs:[eax], al
add byte [ebp - 0x77], dl
in eax, 0x53
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
lea ebx, [ebp - 0x10]
push edx
push ebx
push ecx
push eax
push dword [edi]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x47715a
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004c9ea0
cmp eax, 0x6d
je 0x477174
cmp eax, 0x3e5
jne 0x477184
mov dword [esi + 4], 0
jmp 0x47714c
mov dword [esi + 4], 1
mov dword [esi + 8], 0
jmp 0x47714c
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x47714e
Function at 0x4773d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x477414
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x47741a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x47744d
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x47745d
mov dword [esi + 4], 0
jmp 0x47746f
cmp eax, 0x103
je 0x477488
test eax, eax
js 0x47747a
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x477472
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x4e13e0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.00465900
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.0043c360
mov ecx, 7
int 0x29
ud2

Function at 0x4774f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x477534
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x47753a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x477574
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x477598
test eax, eax
js 0x477583
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x47758e
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x4e13e0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.00465900
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.0043c360
mov ecx, 7
int 0x29
ud2
Function at 0x477ac0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x477b04
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x477b17
cmp eax, 0x2739
jne 0x477b40
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x477b48
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x477b58
mov dword [esi + 4], edi
jmp 0x477afa
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x477afd
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x477afd
call fcn.004c9ea0
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call sub.ws2_32.dll_closesocket
jmp 0x477afd
Function at 0x478100
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, 0x7fffffff
pxor xmm0, xmm0
lea ebx, [esp + 8]
lea eax, [esp + 0x20]
mov dword [esp + 8], pe_nt_image_headers32
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
cmp ecx, 0x7fffffff
cmovb edi, ecx
mov ecx, dword [ebp + 0x10]
push ebx
push eax
push ecx
push edi
push dword [ebp + 8]
push edx
call sub.ws2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x4781ce
movzx edx, word [esp + 0x20]
mov ecx, dword [esp + 8]
cmp edx, 0x17
je 0x47823a
cmp edx, 2
jne 0x478227
cmp ecx, 0xf
jbe 0x4782cd
movzx edx, word [esp + 0x22]
mov ecx, dword [esp + 0x24]
rol dx, 8
mov dword [esp + 0xc], ecx
movd xmm0, ecx
mov word [esp + 0x10], dx
pslld xmm0, 0x10
movups xmm1, xmmword [esp + 0xe]
jmp 0x478262
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x478279
movzx ecx, word [esp + 0x20]
mov eax, dword [esp + 8]
cmp ecx, 0x17
je 0x478288
cmp ecx, 2
jne 0x478227
cmp eax, 0xf
jbe 0x4782cd
movzx ecx, word [esp + 0x22]
mov eax, dword [esp + 0x24]
rol cx, 8
mov dword [esp + 0xc], eax
movd xmm0, eax
mov word [esp + 0x10], cx
pslld xmm0, 0x10
movups xmm1, xmmword [esp + 0xe]
jmp 0x4782ac
mov byte [esp + 0xe], 2
mov eax, 0x4e2368
mov ecx, dword [esp + 0xe]
mov dword [esi + 8], ecx
jmp 0x47827d
cmp ecx, 0x1b
jbe 0x4782de
movzx ecx, word [esp + 0x22]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
movups xmm1, xmmword [esp + 0x28]
mov ebx, 1
movd xmm0, ebx
rol cx, 8
mov dword [esi], eax
movd dword [esi + 4], xmm0
movups xmmword [esi + 8], xmm1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edx
mov word [esi + 0x20], cx
jmp 0x4782c5
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov word [esi + 4], 2
jmp 0x4782c5
cmp eax, 0x1b
jbe 0x4782de
movzx eax, word [esp + 0x22]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
movups xmm1, xmmword [esp + 0x28]
mov edi, 1
movd xmm0, edi
rol ax, 8
mov dword [esi], 0
movd dword [esi + 4], xmm0
movups xmmword [esi + 8], xmm1
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov word [esi + 0x20], ax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4e22f4
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.004b4b80
push 0x4e2348
push 0x43
push 0x4e2304
call fcn.004b4b80
nop
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, esi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00478100
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret
Function at 0x47aa80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
jb 0x47ab32
mov ecx, dword [esi]
xorps xmm0, xmm0
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edi
lea edi, [ebp - 0x30]
add ecx, ebx
push 0x47ae80
push edi
push eax
push ecx
push edx
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x47aaf3
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x47aad0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x47ab13
mov ecx, edi
call fcn.004815c0
cmp al, 0xb
jne 0x47ab05
jmp 0x47ab24
call fcn.004c9ea0
mov edi, eax
mov ecx, edi
call fcn.004815c0
cmp al, 0xb
je 0x47ab24
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
jmp 0x47ab2a
add ebx, dword [ebp - 0x14]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
cmova ebx, eax
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4ddbf8
push ecx
push ebx
call fcn.004ba610
nop

Function at 0x47b1b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x47b282
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x47b1dc
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x47b251
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x47b26c
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x47b217
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x47b234
jmp 0x47b228
call fcn.004c9ea0
cmp eax, 0x3e5
je 0x47b22f
cmp eax, 0x6d
jne 0x47b246
mov word [esi], 4
jmp 0x47b23e
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x47b23e
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.00443c60
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x47b1e7
mov ecx, ebx
push 1
call fcn.00443c60
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x47b1e7
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call fcn.0043e240
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x47f420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.00481cb0
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp edx, 0x80000000
jne 0x47f459
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0x80000000
jmp 0x47f478
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call fcn.00473970
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x47f48b
lea ecx, [ebp - 0x18]
call fcn.0043ca00
mov dword [esi], 0x80000000
add esp, 0x28
jmp 0x47f4c7
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x47f4af
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
add esp, 0x28
jmp 0x47f4c7
test edi, edi
mov dword [esi], 0x80000000
je 0x47f4aa
add edi, edi
push 2
push edi
push ebx
call fcn.00401c20
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x480050
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x480095
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call fcn.004c9ea0
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x4e18d4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], 0x45fc20
mov dword [esp + 0x34], 1
lea eax, [esp + 0x28]
push 0x4e1904
push eax
call fcn.004b4af0
add esp, 8
ud2
Function at 0x480ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x4f92d8]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
push 4
push 8
call fcn.00401c10
add esp, 8
test eax, eax
je 0x480d3b
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x480d90
push eax
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x480cf3
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x480d31
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x480d19
push dword [ebx + 8]
push eax
push dword [ebp - 0x10]
call fcn.00401c20
add esp, 0xc
push 4
push 8
push esi
call fcn.00401c20
add esp, 0xc
call fcn.004c9ea0
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp + 0x14]
push 8
push 4
call fcn.004a7010
add esp, 8
ud2

Function at 0x480f80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x480ff0
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x48102a
cmp dword [ebp - 0x14], 0
je 0x481011
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x481047
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x51e124]
mov dword [edi + 8], eax
lock cmpxchg dword [0x51e124], edi
jne 0x480fd0
mov byte [0x51e120], 1
push 0
push 0
push ebx
call sub.kernel32.dll_InitOnceComplete
jmp 0x481020
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x481082
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x481015
mov esi, dword [ebp - 0x10]
jmp 0x481020
mov esi, dword [edi]
jmp 0x48101f
mov esi, eax
push dword [ebp - 0x10]
call sub.kernel32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x4e1764
push 0x4e1d88
push eax
call fcn.0043e210
push 0
push 4
push ebx
call sub.kernel32.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x4e1d3c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x4ddae0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x4e1d78
push eax
call fcn.004b4af0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4e1d3c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x4ddae0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0043e1e0