joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dc01
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x7024bc]
xor ecx, ebp
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
xor ecx, ecx
inc ecx
lea edx, [ebp - 0x10]
mov dword [edx], ecx
push 4
push edx
push ecx
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x44dc45
push str.TCP_NODELAY_set_n
push esi
call fcn.0046235f
add esp, 8
jmp 0x44dc64
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00467ab7
add esp, 8
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0046235f
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0064180a
add esp, 8
pop esi
pop edi
pop ebp
ret

Function at 0x44dc75
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x4020
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
mov eax, dword [0x703640]
cmp eax, 2
je 0x44dd19
test eax, eax
jne 0x44dcd9
sub esp, 0x10
movaps xmm0, xmmword [0x67d380]
movups xmmword [esp], xmm0
call fcn.004683f4
add esp, 0x10
test al, al
je 0x44dccf
mov dword [0x703640], 2
jmp 0x44dd19
mov dword [0x703640], 1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x44dd02
cmp dword [ebp - 0x10], 0x4020
jg 0x44dd19
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0064180a
add esp, 0x10
pop esi
pop ebp
ret
Function at 0x44fd02
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
test ecx, ecx
je 0x44fda7
mov esi, ecx
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
push eax
push ecx
push 2
call fcn.00459aa0
add esp, 0xc
test eax, eax
jne 0x44fda7
push esi
call fcn.0065e4d0
add esp, 4
mov edi, eax
push eax
push 0x2e
push esi
call fcn.00450b00
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x44fd70
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00450b00
add esp, 0xc
test eax, eax
je 0x44fd70
inc eax
add edi, esi
sub edi, eax
mov ebx, eax
test ebx, ebx
cmovne esi, ebx
test edi, edi
jle 0x44fda2
add edi, esi
mov eax, 0x1505
mov ebx, eax
shl ebx, 5
add ebx, eax
movsx eax, byte [esi]
inc esi
push eax
call fcn.00467874
add esp, 4
movzx eax, al
xor eax, ebx
cmp esi, edi
jb 0x44fd80
movzx edi, al
jmp 0x44fda7
mov edi, 5
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45068b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x7024bc]
xor esi, ebp
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov dword [edi], 0
push esi
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test eax, eax
jne 0x450810
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4507c8
xor edi, edi
xor ebx, ebx
cmp dword [esi + 4], 2
jne 0x450772
cmp dword [esi + 0x18], 0
je 0x450772
cmp dword [esi + 0x10], 0x10
jb 0x450772
mov dword [ebp - 0x18], edi
push 0x20
call dword [0x700018]
add esp, 4
test eax, eax
je 0x450799
mov edi, eax
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
movaps xmm0, xmmword [0x67d960]
movups xmmword [edi + 0x10], xmm0
push 0x10
call dword [0x700018]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x45078f
mov ecx, dword [esi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x450763
push eax
call dword [0x700024]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x450783
test ebx, ebx
cmove ebx, edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x450772
mov dword [eax + 0x1c], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4506dd
xor edi, edi
mov cl, 1
jmp 0x4507a0
push dword [edi + 0x18]
call dword [0x70001c]
add esp, 4
push edi
call dword [0x70001c]
add esp, 4
xor ecx, ecx
mov edi, 8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4507b9
push eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
sete al
mov ecx, esi
jmp 0x4507be
test ebx, ebx
sete al
test cl, cl
je 0x4507da
xor edi, edi
test al, al
je 0x45080b
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, 0x2af9
jmp 0x450809
test al, al
jne 0x450809
push dword [ebx + 0x18]
call dword [0x70001c]
add esp, 4
push dword [ebx + 0x14]
call dword [0x70001c]
add esp, 4
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x70001c]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x4507de
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x450fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push esi
call fcn.0064feba
add esp, 0x18
cmp eax, 0xffffffff
cmovne esi, eax
test eax, eax
cmovne eax, esi
pop esi
pop ebp
ret

Function at 0x451214
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
pop ebp
jmp fcn.00451223
Function at 0x451223
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x194
mov ebx, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x70364c]
lea ecx, [eax + 1]
mov dword [0x70364c], ecx
xor esi, esi
test eax, eax
je 0x451266
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 0x194
pop esi
pop edi
pop ebx
pop ebp
ret
test dl, dl
je 0x4512a6
mov dword [fcn.004bc5a0], 0x4bc5a0
mov dword [fcn.004bc5e0], 0x4bc5e0
mov dword [fcn.004bc600], 0x4bc600
mov dword [fcn.00656c30], 0x656c30
mov dword [fcn.004bc650], 0x4bc650
mov dword [0x70002c], 0x659970
call fcn.00473e79
mov esi, 2
test eax, eax
je 0x45124f
test bl, 2
jne 0x4512e3
call fcn.0040dd30
test eax, eax
jne 0x45124f
test bl, 4
je 0x4512d1
mov dword [0x703688], 1
mov dword [0x703650], ebx
call fcn.004708ac
xor esi, esi
jmp 0x45124f
lea edi, [ebp - 0x1a0]
push 0x190
push 0xff
push edi
call fcn.00645dd0
add esp, 0xc
push edi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x45124f
movzx eax, word [ebp - 0x1a0]
cmp eax, 0x202
jne 0x45132d
call fcn.00450dac
test eax, eax
jne 0x45124f
jmp 0x4512b9
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x45124f

Function at 0x45249c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x108
mov esi, dword [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x10f]
push 0x103
push 0xff
push edi
call fcn.00645dd0
add esp, 0xc
push esi
call fcn.00652bea
add esp, 4
mov byte [edi - 1], 0
xor esi, esi
test eax, eax
je 0x452504
lea edi, [ebp - 0x110]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [edi], 0
je 0x452504
push edi
call dword [0x700024]
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 0x108
pop esi
pop edi
pop ebp
ret
Function at 0x45fb14
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [0x7024bc]
xor ecx, ebp
xor edx, edx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 8], ecx
setne dl
lea ecx, [ebp - 0xc]
mov dword [ecx], edx
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
Function at 0x462630
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x2c0]
test byte [eax + 0x40], 3
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx + edi*4 + 0x1a8]
je 0x462730
cmp dword [ebx + edi*4 + 0x1bc], 0x4627f0
jne 0x462730
shl edi, 4
mov eax, dword [ebx + edi + 0x1d0]
sub eax, dword [ebx + edi + 0x1d4]
mov dword [ebp - 0x14], eax
jne 0x462691
cmp dword [ebx + edi + 0x1cc], 0
jne 0x462730
sub esp, 0x14
movaps xmm0, xmmword [0x676440]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
call fcn.00461a8f
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0x14
cmp eax, 0xffffffff
je 0x462730
and eax, 1
je 0x462730
lea ecx, [ebx + edi]
add ecx, 0x1d4
mov eax, dword [ecx - 8]
test eax, eax
mov dword [ebp - 0x10], ecx
je 0x4626d5
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x14]
jmp 0x462706
add edi, ebx
add edi, 0x1d0
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c0]
add eax, eax
mov dword [edi], eax
push eax
call dword [0x700018]
mov edx, dword [ebp - 0x10]
add esp, 4
mov dword [edx - 8], eax
xor ecx, ecx
mov dword [edx], ecx
mov dword [edi + 8], ecx
test eax, eax
je 0x462724
mov edx, dword [edi]
add ecx, eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
jle 0x462730
mov edi, dword [ebp - 0x10]
add dword [edi], eax
jmp 0x462730
mov dword [edi], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
xor edi, edi
push edi
push edx
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edi
cmp eax, 0xffffffff
jne 0x46278c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, 0x51
cmp esi, 0x2733
je 0x462785
push esi
push ebx
call fcn.00467ab7
add esp, 8
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.004624d0
add esp, 0xc
mov eax, dword [ebx]
mov dword [eax + 0x48c4], esi
xor edi, edi
dec edi
mov eax, 0x37
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x462beb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 0xc]
cmp dword [ecx + 0x1d0], 0
je 0x462c32
push 1
push esi
call fcn.0045f6b2
add esp, 8
push dword [esi + 0x15c]
push ebx
push dword [ebp + 8]
push edi
push esi
call dword [esi + 0x1d0]
add esp, 0x14
mov edi, eax
push 0
push esi
call fcn.0045f6b2
add esp, 8
mov eax, edi
jmp 0x462c69
cmp edi, 2
ja 0x462c67
lea eax, [edi + edi*2]
add eax, 0x67fd40
xor edi, edi
inc edi
push dword [esi + 0x158]
push edi
push 2
push eax
call fcn.0065ca30
add esp, 0x10
push dword [esi + 0x158]
push edi
push ebx
push dword [ebp + 8]
call fcn.0065ca30
add esp, 0x10
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4684e5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 0x68310c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x468527
mov edi, eax
mov ebx, dword [ebp + 8]
push 0x68311e
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x68312e
push ebx
call fcn.0065f245
add esp, 8
test eax, eax
je 0x46852d
test esi, esi
je 0x46854d
push 8
jmp 0x468546
xor ebx, ebx
mov eax, ebx
jmp 0x468554
test esi, esi
je 0x468559
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x468559
push 0x800
push 0
push ebx
call esi
jmp 0x468554
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x468529
mov edi, eax
push dword [ebp + 8]
call fcn.0065e7c2
add esp, 4
add eax, edi
add eax, eax
add eax, 2
push eax
call dword [0x700018]
add esp, 4
xor ebx, ebx
test eax, eax
je 0x4685d8
push edi
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4685e5
push edi
call fcn.0065e7c2
add esp, 4
lea eax, [edi + eax*2]
push 0x673ab0
push eax
call fcn.0065f0d0
add esp, 8
push edi
call fcn.0065e7c2
add esp, 4
lea eax, [edi + eax*2]
push dword [ebp + 8]
push eax
call fcn.0065f0d0
add esp, 8
test esi, esi
je 0x4685dc
push 8
push 0
push edi
call esi
jmp 0x4685e3
mov edi, eax
jmp 0x4685e5
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push edi
call dword [0x70001c]
add esp, 4
jmp 0x468529
Function at 0x473119
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x14]
mov dword [esi], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp + 0x10]
push ecx
push ebx
push dword [ebp + 8]
call fcn.00645dd0
add esp, 0xc
push 0xf0000000
push edi
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4731ed
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4731cf
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4731cf
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push 0
push eax
push ecx
push 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4731cf
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x1c], eax
ja 0x4731cf
lea eax, [ebp - 0x24]
push 0
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4731dd
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4731ed
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x474da8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00655f84

Function at 0x479900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
xor eax, eax
dec eax
mov dword [ecx - 4], eax
mov dword [ecx - 8], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
push dword [edi + 0x28]
call dword [eax + 0x10]
mov ebx, eax
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0065ca30
add esp, 0x10
cmp eax, esi
jne 0x479983
cmp ebx, 1
je 0x479925
cmp ebx, 2
mov esi, 0xffffffff
je 0x479986
mov eax, dword [ebp - 0x20]
push dword [eax + 0x20]
call fcn.0065b6b3
add esp, 4
neg eax
sbb esi, esi
jmp 0x479986
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4799a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x4799c4
push dword [ecx + 0x20]
push esi
push 1
push eax
call fcn.0065ca30
add esp, 0x14
jmp 0x4799f3
test esi, esi
jle 0x4799ec
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, byte [eax + edi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp eax, 0xffffffff
je 0x4799ee
inc edi
cmp esi, edi
mov eax, ebx
jne 0x4799cd
mov edi, esi
jmp 0x4799ee
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x479a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x19], 0xff
cmp ebx, eax
je 0x479a54
mov edi, ecx
mov byte [ebp - 0x19], bl
cmp byte [ecx + 0x2c], 0
je 0x479a5d
xor esi, esi
inc esi
lea eax, [ebp - 0x19]
push dword [edi + 0x20]
push esi
push esi
push eax
call fcn.0065ca30
add esp, 0x10
cmp eax, esi
mov esi, 0xffffffff
je 0x479a56
jmp 0x479ae5
xor ebx, ebx
mov esi, ebx
jmp 0x479ae5
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0x19]
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x479ae2
mov ebx, eax
cmp eax, 3
je 0x479ac5
cmp ebx, 1
ja 0x479ae2
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0065ca30
add esp, 0x10
cmp eax, esi
jne 0x479ae2
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x479a68
jmp 0x479ada
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.0065ca30
add esp, 0x10
cmp eax, ebx
jne 0x479ae2
mov ebx, dword [ebp + 8]
jmp 0x479a56
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x479b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x479b54
push dword [ecx + 0x20]
push esi
push 2
push eax
call fcn.0065ca30
add esp, 0x14
jmp 0x479b84
test esi, esi
jle 0x479b7d
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp ax, 0xffff
je 0x479b7f
inc edi
cmp esi, edi
mov eax, ebx
jne 0x479b5d
mov edi, esi
jmp 0x479b7f
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x479b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
movzx esi, word [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x1a], 0xffff
cmp si, 0xffff
je 0x479be5
mov edi, ecx
mov word [ebp - 0x1a], si
cmp byte [ecx + 0x2c], 0
je 0x479bfd
lea eax, [ebp - 0x1a]
push dword [edi + 0x20]
push 1
push 2
push eax
call fcn.0065ca30
add esp, 0x10
cmp eax, 1
je 0x479be7
xor esi, esi
dec esi
jmp 0x479be7
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0x1a]
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x479be0
mov ebx, eax
cmp eax, 3
je 0x479c65
cmp ebx, 1
ja 0x479be0
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0065ca30
add esp, 0x10
cmp eax, esi
jne 0x479be0
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x479c08
jmp 0x479c7e
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.0065ca30
add esp, 0x10
cmp eax, ebx
jne 0x479be0
movzx esi, word [ebp + 8]
jmp 0x479be7

Function at 0x479e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x479e3f
shl eax, 4
movsx esi, byte [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
inc edx
cmp ecx, edx
jne 0x479e21
pop esi
pop edi
pop ebp
ret 8

Function at 0x479f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x479f81
shl eax, 4
movzx esi, word [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
add edx, 2
cmp ecx, edx
jne 0x479f61
pop esi
pop edi
pop ebp
ret 8
Function at 0x480490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
lea ecx, [esi + 0x80]
mov dword [ecx - 4], esp
xor edx, edx
dec edx
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0x48d560
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
lea eax, [esi + 0x18]
mov word [eax + 4], 0
mov dword [eax], 0x7025
lea edi, [esi + 0x50]
mov dword [edi + 0x10], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esi + 0x70]
push ebx
call fcn.0047be60
add esp, 4
push dword [ebp + 0x18]
lea eax, [esi + 0x18]
push eax
push dword [ebx + 4]
push dword [ebx]
push 0x14
push edi
call fcn.004900c3
add esp, 0x18
mov dword [esi + 0x14], eax
add eax, esi
add eax, 0x50
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
push eax
push edi
call fcn.0047f0a6
add esp, 0xc
mov dword [esi + 0xc], eax
xor eax, eax
dec eax
mov dword [esi + 0x41], eax
mov dword [esi + 0x3d], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
lea edi, [esi + 8]
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004772c8
lea eax, [esi + 0x80]
mov dword [eax + 8], 0
mov ecx, edi
push 0x703d78
call fcn.00489138
mov ebx, eax
mov ecx, dword [esi + 8]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x480576
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x88], 0xffffffff
lea edx, [esi + 0x20]
mov ecx, ebx
push edx
mov edi, dword [esi + 0x10]
push edi
lea ebx, [esi + 0x50]
push ebx
call eax
mov ecx, dword [esi + 0xc]
mov eax, ecx
sub eax, ebx
cmp ecx, edi
mov ecx, dword [esi + 0x14]
lea ecx, [esi + ecx + 0x20]
lea eax, [esi + eax + 0x20]
cmove eax, ecx
movsx edx, byte [ebp + 0x14]
push edx
push dword [ebp + 0x10]
push ecx
push eax
lea eax, [esi + 0x20]
push eax
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
call fcn.00402910
add esp, 0x1c
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14