joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457e70
Capabilities:
Create process on windows

Disassembly:
push 0x90
mov eax, 0x48c328
call fcn.00474ec1
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x3c], eax
xor edi, edi
inc edi
xor esi, esi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x18], esi
jne 0x457eb4
push esi
push edi
lea ecx, [ebp + 8]
call fcn.0040bba0
push esi
push edi
lea ecx, [ebp + 0x24]
call fcn.0040bba0
xor al, al
call fcn.00474f44
ret
push 0x40
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.0046fc60
xor eax, eax
mov dword [ebp - 0x50], esi
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x9c], 0x44
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
mov edi, 0x49d9e4
push edi
mov byte [ebp - 4], 2
call fcn.0046faa4
add esp, 0x10
push eax
push edi
xor eax, eax
lea ecx, [ebp + 8]
call fcn.0041835a
cmp eax, 0xffffffff
jne 0x457f41
push edi
call fcn.0046faa4
pop ecx
push edi
mov ebx, eax
lea esi, [ebp - 0x30]
call fcn.0040ce4a
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0040cda7
push edi
lea ebx, [ebp + 8]
call fcn.0040a551
cmp eax, 0xffffffff
jne 0x457f67
mov esi, 0x49dcd4
jmp 0x457f55
push 0xffffffffffffffff
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040cda7
mov esi, 0x49c8ac
push esi
call fcn.0046faa4
pop ecx
push esi
mov ebx, eax
lea esi, [ebp - 0x30]
call fcn.0040ce4a
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040cda7
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x457f84
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x457fce
mov byte [ebp - 0x31], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040bba0
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040bba0
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.0040bba0
mov al, byte [ebp - 0x31]
jmp 0x457eae
mov edi, dword [ebp - 0x40]
push dword [ebp + 0x48]
lea esi, [ebp - 0x50]
push dword [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x458000
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
mov byte [ebp - 0x31], 1
jmp 0x457fa5
Function at 0x45809c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0047e160
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.0046fc60
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x458114
test eax, eax
je 0x458114
lea eax, [ebp - 0x1004]
push eax
call fcn.0046faa4
pop ecx
push eax
lea eax, [ebp - 0x1004]
push eax
mov ecx, esi
call fcn.0040cee2
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
jmp 0x458116
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d5b3
leave
ret
Function at 0x4591be
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x230], 0
push esi
push 0x228
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x22c]
push 0
push eax
mov byte [ebp - 0x231], 0
call fcn.0046fc60
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x459214
xor al, al
jmp 0x459279
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x459247
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
lea eax, [ebp - 0x230]
je 0x45924d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45922e
jmp 0x459268
push 0x22c
push eax
push dword [ebp - 0x238]
call fcn.0046d5d0
add esp, 0xc
mov byte [ebp - 0x231], 1
test esi, esi
je 0x459273
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046d5b3
leave
ret
Function at 0x45977a
Capabilities:
Create directory
Download url
Receive data

Disassembly:
push 0x78
mov eax, 0x490e3b
call fcn.00474ec1
xor ebx, ebx
inc ebx
xor esi, esi
mov dword [ebp - 4], ebx
cmp dword [0x4bfb94], esi
je 0x459831
lea eax, [ebp - 0x64]
push ebx
push eax
lea ecx, [ebp + 0x24]
call fcn.00456a76
pop ecx
mov edi, eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00456a76
pop ecx
push eax
lea eax, [ebp - 0x48]
push str.DownloadSingleFile__..._url:
push eax
mov byte [ebp - 4], 3
call fcn.0040fae8
add esp, 0xc
push str.__file_name:
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.0043cbab
mov ecx, eax
sub esp, 0x10
mov eax, edi
mov edi, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x84], esp
call fcn.0043ccb7
mov ecx, 0x4bfcf0
call fcn.004437f6
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401524
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00401524
push esi
push ebx
lea ecx, [ebp - 0x80]
call fcn.00401524
push esi
push ebx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.00401524
push 7
push esi
lea eax, [ebp + 8]
mov dword [ebp - 0x84], esi
push eax
lea esi, [ebp - 0x64]
call fcn.0040a5d3
push str.http:__
mov edi, eax
mov byte [ebp - 4], 6
call fcn.00410e89
mov ebx, eax
push 0
neg ebx
push 1
mov ecx, esi
sbb bl, bl
mov byte [ebp - 4], 1
call fcn.0040bba0
inc bl
je 0x45998d
push 0x49c6b8
lea ebx, [ebp + 0x24]
call fcn.0040a551
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
je 0x4598f6
push edi
push ebx
lea eax, [ebp + 0x24]
push eax
lea esi, [ebp - 0x48]
call fcn.0040a5d3
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4598a2
mov eax, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4598eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4598eb
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040bba0
mov ebx, 0x80004005
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040bba0
push 0
push 1
lea ecx, [ebp + 0x24]
call fcn.0040bba0
mov eax, ebx
call fcn.00474f44
ret
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040bba0
push 0xffffffffffffffff
inc edi
push edi
lea eax, [ebp + 0x24]
push eax
lea esi, [ebp - 0x2c]
call fcn.0040a5d3
mov byte [ebp - 4], 7
xor esi, esi
call fcn.004446a8
xor edi, edi
inc edi
mov dword [ebp - 0x84], edi
cmp dword [ebp + 0x40], edi
jl 0x459959
cmp dword [ebp + 0x38], 8
mov ecx, dword [ebp + 0x24]
jae 0x45992b
lea ecx, [ebp + 0x24]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x459937
lea eax, [ebp + 8]
push ebx
push ebx
push ecx
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov esi, eax
cmp esi, ebx
je 0x459959
inc dword [ebp - 0x84]
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp + 0x40]
jle 0x45991f
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x459965
lea eax, [ebp - 0x2c]
push 0x49efd4
push eax
call fcn.004446c7
push ebx
lea ecx, [ebp - 0x2c]
push edi
cmp esi, ebx
jne 0x459983
call fcn.0040bba0
jmp 0x4598cb
movzx esi, si
call fcn.0040bba0
jmp 0x459993
mov esi, dword [ebp - 0x84]
mov ebx, esi
jmp 0x4598cb
Function at 0x459ca4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x228
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x238]
push esi
push eax
mov dword [ebp - 0x23c], esi
call fcn.0046fc60
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x459cfb
xor al, al
jmp 0x459da0
lea ecx, [ebp - 0x23c]
push ecx
mov ebx, 0x22c
push eax
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x459d86
lea esi, [ebp - 0x46c]
call fcn.004565e7
mov ecx, 0x8b
lea esi, [ebp - 0x23c]
lea edi, [ebp - 0x46c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x474]
lea edx, [ebp - 0x234]
mov byte [ebp - 0x240], 0
call fcn.0045a2af
mov edi, eax
push ebx
lea eax, [ebp - 0x23c]
push 0
mov ecx, 0x8c
lea esi, [ebp - 0x46c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0046fc60
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x470]
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x459d16
cmp dword [ebp - 0x470], eax
je 0x459d9e
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d5b3
leave
ret

Function at 0x45b735
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x48e452
call fcn.00474e58
xor edi, edi
cmp dword [esi + 0x74], edi
je 0x45b750
xor eax, eax
inc eax
jmp 0x45b7ee
mov dword [ebp - 0x10], edi
push str.CreateSO_called
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x10]
test eax, eax
jne 0x45b76f
mov ebx, 0x80004003
jmp 0x45b7db
mov eax, dword [esi + 0x78]
cmp eax, edi
jne 0x45b77d
mov ebx, 0x8000ffff
jmp 0x45b7db
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jl 0x45b7db
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x45b7db
and dword [ebp - 0x14], 0
push 0x49b708
lea eax, [esi + 0x30]
push eax
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043c889
mov ebx, eax
test ebx, ebx
js 0x45b7bf
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
mov ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45b7d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
js 0x45b7db
mov dword [esi + 0x74], 1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45b7ec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
call fcn.00474f30
ret
Function at 0x45b93e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4be880], 0
push esi
push edi
jne 0x45b8b4
call fcn.0045b820
test eax, eax
je 0x45b8f9
mov eax, dword [0x4be880]
cmp eax, 1
jne 0x45b8d5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45b8f9
jmp 0x45b93b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x45b93b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x45b8fd
xor eax, eax
jmp 0x45b93b
mov eax, dword [esi]
push dword [0x4be880]
call edi
mov edi, eax
test edi, edi
je 0x45b91f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x45b93b
lea edi, [esi + 0xff0]
push esi
push dword [0x4be880]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x45b925
mov eax, esi
pop edi
pop esi
ret
jmp 0x45b8a0

Function at 0x46d5b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b9e20]
jne 0x46d5bd
repz ret
jmp fcn.00477844
Function at 0x484c9d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00479e2e
and dword [ebp - 0x14], 0
cmp dword [0x4bfaf4], 0
mov dword [ebp - 0x18], eax
jne 0x484d50
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x484df8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49b13c
push ebx
call edi
test eax, eax
je 0x484df8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x49b12c
push ebx
mov dword [0x4bfaf4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4bfaf8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4bfafc], eax
call edi
push eax
call esi
mov dword [0x4bfb04], eax
test eax, eax
je 0x484d50
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4bfb00], eax
mov eax, dword [0x4bfb00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x484da9
cmp dword [0x4bfb04], ecx
je 0x484da9
push eax
call esi
push dword [0x4bfb04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x484da9
test ebx, ebx
je 0x484da9
call edi
test eax, eax
je 0x484da0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x484da0
test byte [ebp - 8], 1
jne 0x484da9
or dword [ebp + 0x10], 0x200000
jmp 0x484ddc
mov eax, dword [0x4bfaf8]
cmp eax, dword [ebp - 0x18]
je 0x484ddc
push eax
call esi
test eax, eax
je 0x484ddc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x484ddc
mov eax, dword [0x4bfafc]
cmp eax, dword [ebp - 0x18]
je 0x484ddc
push eax
call esi
test eax, eax
je 0x484ddc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4bfaf4]
call esi
test eax, eax
je 0x484df8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x484dfa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d5b3
leave
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x435028
push 0x435024
push 0x435020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x435028]
push dword [0x435024]
push dword [0x435020]
mov dword [0x435014], esp
call fcn.00417570
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov dword [0x4203e8], 0
push str.IJL15.DLL
call sub.KERNEL32.dll_GetFileAttributesA
mov edi, eax
cmp edi, 0xffffffff
je 0x4013a2
push str.libfreetype_6.dll
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4013a2
push str.eaconvert.dll
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x4203e8], eax
cmp eax, 0
je 0x4013a2
call fcn.0040129c
cmp eax, 0
jne 0x4013a2
call fcn.004013bd
cmp dword [0x4203e8], 0
je 0x4013b2
mov ebx, 1
jmp 0x4013b7
mov ebx, 0
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x4046d7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 3
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4046e2
push edi
mov dword [ebp - 4], 0
push 0
call sub.USER32.DLL_OpenClipboard
cmp eax, 0
je 0x404759
call sub.USER32.DLL_EmptyClipboard
mov edi, dword [ebp + 8]
push dword [edi + 4]
push 0x2000
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 8], eax
cmp eax, 0
je 0x404754
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 8]
push dword [edi + 4]
push dword [edi]
push dword [ebp - 0xc]
call sub.CRTDLL.DLL_memcpy
add esp, 0xc
push dword [ebp - 8]
push 8
call sub.USER32.DLL_SetClipboardData
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalUnlock
mov dword [ebp - 4], 1
call sub.USER32.DLL_CloseClipboard
mov eax, dword [ebp - 4]
pop edi
leave
ret

Function at 0x40475f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, 6
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x40476a
push esi
push edi
mov word [ebp - 0xe], 0x4d42
mov edi, dword [ebp + 8]
mov edi, dword [edi + 4]
add edi, 0xe
mov dword [ebp - 0xc], edi
mov word [ebp - 8], 0
mov word [ebp - 6], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov eax, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
mul dword [edi + 8]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x18]
mov dword [ebp - 4], esi
push 0x435974
push dword [ebp + 0xc]
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, 0
jne 0x4047ce
mov eax, 0
jmp 0x404806
push dword [ebp - 0x14]
push 0xe
push 1
lea edi, [ebp - 0xe]
push edi
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 0x14]
mov edi, dword [ebp + 8]
push dword [edi + 4]
push 1
push dword [edi]
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
leave
ret

Function at 0x404e2e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 5
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x404e39
push edi
cmp dword [0x420db8], 0
je 0x404e89
lea edi, [ebp - 0x14]
push edi
lea edi, [ebp - 8]
push edi
push dword [0x420db8]
call sub.KERNEL32.dll_ClearCommError
cmp eax, 0
jne 0x404e6f
mov eax, 0xffffffff
jmp 0x404f07
cmp dword [ebp - 8], 0
je 0x404e84
mov edi, 0
mov eax, edi
sub eax, dword [ebp - 8]
jmp 0x404f07
mov eax, dword [ebp - 0x10]
jmp 0x404f07
cmp dword [0x420454], 0
je 0x404edb
lea edi, [ebp - 4]
push edi
push dword [0x420454]
call dword [0x420460]
mov dword [0x4204b4], eax
cmp dword [0x4204b4], 0
jne 0x404eb5
mov eax, dword [ebp - 4]
jmp 0x404f07
call fcn.00404c51
push 0x32
call sub.KERNEL32.dll_Sleep
push dword [0x420da0]
push 0x2634
call fcn.004049a9
add esp, 8
mov eax, 0
jmp 0x404f07
cmp dword [0x420de4], 0
je 0x404f02
lea edi, [ebp - 4]
push edi
push 0x4004667f
push dword [0x420de4]
call sub.WS2_32.DLL_ioctlsocket
cmp eax, 0
jne 0x404f02
mov eax, dword [ebp - 4]
jmp 0x404f07
mov eax, 0xffffffff
pop edi
leave
ret
Function at 0x404f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 4
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x404f5b
push edi
cmp dword [0x420db8], 0
jne 0x404f8b
cmp dword [0x420454], 0
jne 0x404f8b
cmp dword [0x420de4], 0
jne 0x404f8b
mov eax, 0xffffffff
jmp 0x405065
call fcn.0040492d
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
cmp dword [0x420db8], 0
je 0x404fbf
push 0
lea edi, [ebp - 4]
push edi
push 1
lea edi, [ebp - 0xd]
push edi
push dword [0x420db8]
call sub.KERNEL32.dll_ReadFile
jmp 0x40501e
cmp dword [0x420454], 0
je 0x404fea
call fcn.00404e2e
cmp eax, 1
jl 0x40501e
lea edi, [ebp - 4]
push edi
push 1
lea edi, [ebp - 0xd]
push edi
push dword [0x420454]
call dword [0x42041c]
jmp 0x40501e
cmp dword [0x420de4], 0
je 0x40501e
call fcn.00404e2e
cmp eax, 1
jl 0x40501e
lea edi, [ebp - 0xd]
push edi
push 1
push 0x420ddc
call fcn.004124cf
add esp, 0xc
cmp eax, 0
jne 0x40501e
mov edi, dword [0x420de8]
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 1
je 0x405044
call fcn.0040492d
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 8], edi
je 0x405044
dec dword [ebp + 8]
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
push 0xa
call sub.KERNEL32.dll_Sleep
cmp dword [ebp - 4], 1
je 0x405054
cmp dword [ebp + 8], 0
jg 0x404f96
cmp dword [ebp - 4], 1
je 0x405061
mov eax, 0xffffffff
jmp 0x405065
movzx eax, byte [ebp - 0xd]
pop edi
leave
ret

Function at 0x405068
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 4
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x405073
push edi
mov dword [ebp - 0x10], 0
cmp dword [0x420db8], 0
jne 0x4050aa
cmp dword [0x420454], 0
jne 0x4050aa
cmp dword [0x420de4], 0
jne 0x4050aa
mov eax, 0xffffffff
jmp 0x40517a
call fcn.0040492d
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.00404e2e
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jge 0x4050e5
call fcn.0040492d
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 8], edi
je 0x4050e5
dec dword [ebp + 0x10]
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
push 0xa
call sub.KERNEL32.dll_Sleep
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jge 0x4050f3
cmp dword [ebp + 0x10], 0
jg 0x4050b5
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jl 0x405168
cmp dword [0x420db8], 0
je 0x40511d
push 0
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x420db8]
call sub.KERNEL32.dll_ReadFile
jmp 0x405168
cmp dword [0x420454], 0
je 0x40513e
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x420454]
call dword [0x42041c]
jmp 0x405168
cmp dword [0x420de4], 0
je 0x405168
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x420ddc
call fcn.004124cf
add esp, 0xc
cmp eax, 0
jne 0x405168
mov edi, dword [0x420de8]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x10], edi
je 0x405177
mov eax, 0
jmp 0x40517a
mov eax, dword [ebp - 0x10]
pop edi
leave
ret
Function at 0x4051e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 4
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4051ec
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call fcn.0040492d
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
jmp 0x405232
call fcn.0040492d
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
je 0x405232
inc dword [ebp - 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
push 0
call sub.KERNEL32.dll_Sleep
call fcn.0040517d
cmp eax, 0
je 0x405247
mov edi, dword [0x4359bc]
cmp dword [ebp - 8], edi
jle 0x405212
mov edi, dword [0x4359bc]
cmp dword [ebp - 8], edi
jle 0x405259
mov eax, 0
jmp 0x4052d8
cmp dword [0x420db8], 0
je 0x40527b
push 0
lea edi, [ebp - 0x10]
push edi
push 1
lea edi, [ebp + 8]
push edi
push dword [0x420db8]
call sub.KERNEL32.dll_WriteFile
jmp 0x4052c6
cmp dword [0x420454], 0
je 0x40529c
lea edi, [ebp - 0x10]
push edi
push 1
lea edi, [ebp + 8]
push edi
push dword [0x420454]
call dword [0x420494]
jmp 0x4052c6
cmp dword [0x420de4], 0
je 0x4052c6
lea edi, [ebp + 8]
push edi
push 1
push 0x420ddc
call fcn.00412459
add esp, 0xc
cmp eax, 0
jne 0x4052c6
mov edi, dword [0x420dec]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], 1
je 0x4052d3
mov eax, 0
jmp 0x4052d8
mov eax, 1
pop edi
leave
ret

Function at 0x4052db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 4
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4052e6
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call fcn.0040492d
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
jmp 0x40532c
call fcn.0040492d
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
je 0x40532c
inc dword [ebp - 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
push 0
call sub.KERNEL32.dll_Sleep
call fcn.0040517d
cmp eax, 0
je 0x405341
mov edi, dword [0x4359bc]
cmp dword [ebp - 8], edi
jle 0x40530c
mov edi, dword [0x4359bc]
cmp dword [ebp - 8], edi
jle 0x405356
mov eax, 0
jmp 0x4053d7
cmp dword [0x420db8], 0
je 0x405378
push 0
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x420db8]
call sub.KERNEL32.dll_WriteFile
jmp 0x4053c3
cmp dword [0x420454], 0
je 0x405399
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x420454]
call dword [0x420494]
jmp 0x4053c3
cmp dword [0x420de4], 0
je 0x4053c3
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x420ddc
call fcn.00412459
add esp, 0xc
cmp eax, 0
jne 0x4053c3
mov edi, dword [0x420dec]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x10], edi
je 0x4053d2
mov eax, 0
jmp 0x4053d7
mov eax, 1
pop edi
leave
ret

Function at 0x4068c2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 1
push 0
push 0
push dword [ebp + 8]
push 0x406814
push 0
push 0
call sub.KERNEL32.dll_CreateThread
pop edi
leave
ret