joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402711
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov eax, ebx
mov byte [esp], dl
lea esi, [esp + 4]
call fcn.0040fcd0
cmp eax, 0x3f6
jae 0x402944
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040fc50
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40275e
lea edx, [ebx + 1]
jmp 0x402760
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x4027b1
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x402789
jmp 0x402782
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402782
mov byte [ebx + eax], 0x20
jmp 0x402789
inc eax
cmp byte [ebx + eax], 0
jne 0x402772
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x40279e
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x4027b0
cmp edx, 0x20
jne 0x4027a7
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x4027b8
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x402767
cmp byte [0x415cfe], 0
je 0x4027c8
mov dword [esi + 0x14], 0x415cfe
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.004062dc
mov edi, eax
test edi, edi
je 0x4027f4
mov edx, str..inf
mov eax, edi
call fcn.0040fdd8
test eax, eax
jne 0x4027f4
mov dword [esi + 0xc], 0x415230
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00406e8c
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x40281c
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406f58
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x40285f
cmp byte [esp + 1], 0
jne 0x40285f
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040fd50
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040fe24
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00406e8c
test al, al
je 0x402944
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402889
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402944
cmp byte [0x4158f4], 0
jne 0x4028a0
cmp byte [esp], 0
je 0x4028f6
mov ebx, dword [0x416180]
test ebx, ebx
je 0x4028b4
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x4028b8
xor eax, eax
jmp 0x4028bd
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x4028d0
push 0
push dword [0x416180]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [esi + 0x38]
call fcn.0040294e
test ebx, ebx
je 0x4028f6
push 1
push dword [0x416180]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x402912
mov edx, str..exe
mov eax, edi
call fcn.0040fdd8
test eax, eax
je 0x402944
cmp byte [0x4158f4], 0
je 0x40292d
cmp byte [esp], 0
jne 0x40292d
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402944
mov edx, 0xc8
cmp byte [esp], 0
jne 0x40293e
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x1000cac0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000cc84
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x1000caea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1000caf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1000cae0
mov eax, 1
add ebx, ebx
jne 0x1000cb03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1000caf8
jne 0x1000cb14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000caf8
xor ecx, ecx
sub eax, 3
jb 0x1000cb28
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000cb9a
mov ebp, eax
add ebx, ebx
jne 0x1000cb33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1000cb40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1000cb64
inc ecx
add ebx, ebx
jne 0x1000cb50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1000cb45
jne 0x1000cb61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000cb45
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1000cb84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1000cb75
jmp 0x1000cae6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1000cb84
add edi, ecx
jmp 0x1000cae6
pop esi
mov edi, esi
mov ecx, 0xca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1000cba2
cmp byte [edi], 2
jne 0x1000cba2
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 0x1000cba7
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x1000cc16
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc240]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1000cbd4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc244]
or eax, eax
je 0x1000cc10
mov dword [ebx], eax
add ebx, 4
jmp 0x1000cbf1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1000cc47
cmp al, 0xef
ja 0x1000cc3a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000cc1c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1000cc29
mov ebp, dword [esi + 0xc248]
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 0x1000cc7b
sub esp, 0xffffff80
jmp 0x10001078
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x336e75e2
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x42c60803
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4047e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x42], 0
jne 0x40495f
lea eax, [edi + 0x2f5]
test eax, eax
je 0x40482b
mov ebx, dword [edi + 0x324]
cmp ebx, 0x2d
ja 0x40482b
push 0x2e
lea esi, [edi + 8]
push 0
push esi
call fcn.004102f0
push ebx
lea eax, [edi + 0x2f5]
push eax
push esi
call fcn.0040fd70
add esp, 0x18
mov dword [edi + 0x38], ebx
movzx eax, word [edi + 0x328]
lea esi, [edi + 0x3c]
push eax
push 0x43f8f8
push esi
call fcn.00409f70
add esp, 0xc
cmp byte [edi + 0x42], 0
je 0x404856
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x50], 0
lea eax, [edi + 0x44]
mov dword [edi + 0x54], 0
lea ebx, [edi + 0x64]
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
push ebx
mov dword [edi + 0x60], 0
push eax
mov dword [eax], 1
lea eax, [edi + 8]
push esi
push eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4048b6
mov dword [edi + 0x170], eax
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [edi + 0x68], ecx
cmp ecx, 0xffffffff
jne 0x4048e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x170], eax
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404928
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [edi + 0x68]
mov dword [edi + 0x170], eax
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebx]
mov dword [edi + 0x6c], 0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 4]
mov byte [edi + 0x42], 1
push eax
push 1
push 6
push dword [edi + 0x68]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push dword [edi + 0x68]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404970
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
test eax, eax
je 0x404ab4
mov eax, dword [ebx]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jne 0x404a7f
mov ebx, dword [esp + 0x14]
lea eax, [edi + 0x458]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], 0x77359400
mov dword [esp + 0x2c], esi
test ebx, ebx
je 0x404a50
test eax, eax
lea ecx, [esp + 0x28]
cmovne ecx, eax
mov dword [esp + 0x20], ecx
nop dword [eax]
mov edx, dword [edi + 0x68]
mov dword [edi + 0x70], edx
mov dword [edi + 0x6c], 1
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 0
lea eax, [edi + 0x6c]
mov dword [esp + 0x3c], ecx
push eax
push 0
lea eax, [edx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x404a7a
cmp eax, 0xffffffff
je 0x404a67
push 0
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [esp + 0x24]
add eax, esi
push eax
push dword [edi + 0x68]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404a67
mov ecx, dword [esp + 0x20]
add esi, eax
cmp esi, ebx
jb 0x4049f0
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x24]
jae 0x404ab4
mov ebx, dword [ebp + 8]
jmp 0x4049a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x170], eax
mov esi, 6
jmp 0x404a7f
mov esi, 4
mov byte [edi + 0x2f4], 0
cmp byte [edi + 0x42], 0
je 0x404aa9
mov byte [edi + 0x42], 0
push dword [edi + 0x68]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x6c], 0
push dword [edi + 0x64]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404ac0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
push edi
mov eax, dword [ebx]
call dword [eax + 0x14]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
test eax, eax
je 0x404bcf
nop word [eax + eax]
mov eax, dword [ebx]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edi, eax
test edi, edi
jne 0x404bf7
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x460]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], 0x77359400
mov dword [esp + 0x2c], edi
test ebx, ebx
je 0x404bb9
test eax, eax
lea ecx, [esp + 0x28]
cmovne ecx, eax
mov dword [esp + 0x20], ecx
nop
mov edx, dword [esi + 0x68]
mov dword [esi + 0x70], edx
mov dword [esi + 0x6c], 1
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 0
push 0
lea eax, [esi + 0x6c]
mov dword [esp + 0x40], ecx
push eax
lea eax, [edx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x404bf2
cmp eax, 0xffffffff
je 0x404bdf
push 0
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [esp + 0x24]
add eax, edi
push eax
push dword [esi + 0x68]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x404bdf
cmp eax, 0xffffffff
jne 0x404baf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x170], eax
cmp eax, 0x2714
jne 0x404beb
xor eax, eax
mov ecx, dword [esp + 0x20]
add edi, eax
cmp edi, ebx
jb 0x404b40
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x24]
jb 0x404af0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x170], eax
mov edi, 7
jmp 0x404bf7
mov edi, 5
mov byte [esi + 0x2f4], 0
cmp byte [esi + 0x42], 0
je 0x404c21
mov byte [esi + 0x42], 0
push dword [esi + 0x68]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x6c], 0
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4089a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432800
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x443054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040ef48
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040e574
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409c90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 4], ebx
mov eax, dword [ebx]
call dword [eax + 0xc]
xor edi, edi
mov dword [ebp - 0xc], eax
xor esi, esi
test eax, eax
je 0x409cc9
nop
mov edx, dword [ebx]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push esi
call dword [edx + 0x10]
add edi, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x409cb0
mov eax, dword [ebx]
mov ecx, ebx
bswap edi
mov dword [ebx + 4], edi
xor esi, esi
call dword [eax + 0xc]
xor edi, edi
add eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x409d23
mov eax, dword [ebx]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
mov ecx, ebx
call dword [eax + 0x10]
mov ebx, dword [ebp - 0xc]
xor ecx, ecx
not esi
test ebx, ebx
je 0x409d18
mov edx, dword [ebp - 8]
nop
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x43ee60]
cmp ecx, ebx
jb 0x409d00
mov ebx, dword [ebp - 4]
inc edi
not esi
cmp edi, dword [ebp - 0x10]
jb 0x409ce1
bswap esi
pop edi
mov dword [ebx + 0x10], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409fb0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 8], 1
push esi
mov esi, ecx
mov dword [esi], vtable.CSHA1.0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
mov dword [esi + 0x14], 0xc3d2e1f0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
je 0x40a001
push 0xb8
push esi
call fcn.0040ef78
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x40de80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x40dea0
jl 0x40de97
cmp dword [ebp + 0xc], 0
ja 0x40dea0
xor eax, eax
xor edx, edx
jmp 0x40dfd7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40dec2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.004060d0
jmp 0x40dfd7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00407960
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40df31
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004094c0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00407a10
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00407e20
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.004079d0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40dfc8
mov ecx, dword [ebp - 8]
call fcn.0040cec0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x40dfa1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00413e17
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40df9f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40dfd7
jmp 0x40df4d
cmp dword [ebp - 4], 0
jbe 0x40dfc8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00413e17
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d21f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040efa0
mov eax, dword [0x443054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004223d9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d261
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d3bd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00431ad0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x444b98]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004242ca
mov ecx, dword [esi*4 + 0x444b98]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41d3b6
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d3b6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d3b6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004242ca
add esp, 0x14
test edx, edx
jl 0x41d3b6
jg 0x41d32c
test eax, eax
jb 0x41d3b6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d3b6
jl 0x41d346
cmp dword [ebp - 0x1008], eax
ja 0x41d3b6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d364
test ebx, ebx
je 0x41d39d
cmp ecx, edi
jae 0x41d39d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d37e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d38a
cmp byte [ecx + 1], 0xa
jne 0x41d38a
inc ecx
jmp 0x41d38a
movzx eax, al
movsx eax, byte [eax + 0x4432d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d364
cmp edx, ebx
jne 0x41d364
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d3bb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ef8b
leave
ret

Function at 0x421da6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4374a8
push 0x4374a0
push str.FlsAlloc
push 0x1e
call fcn.00421c13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421dda
push dword [ebp + 8]
mov ecx, esi
call dword [0x433178]
call esi
jmp 0x421de0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x421e24
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4374b8
push 0x4374b0
push str.FlsGetValue
push 0x20
call fcn.00421c13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421e5b
push dword [ebp + 8]
mov ecx, esi
call dword [0x433178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]