joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0xe6d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00436910
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406dbf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x41b27c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.0047f360
mov dword [esp], 0xc8
mov dword [esp + 4], 0x96
push dword [0x9d7d80]
call fcn.00465bc3
mov ebx, eax
push dword [0x9d7d80]
call fcn.00465fd3
mov edi, eax
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
add ebx, edi
mov edi, dword [esp]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
mov dword [esp + 8], ebx
push dword [0x9d7d80]
call fcn.00465c32
mov ebx, eax
push dword [0x9d7d80]
call fcn.00466451
mov edi, eax
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
add ebx, edi
mov edi, dword [esp + 4]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
mov dword [esp + 0xc], ebx
push reloc.WS2_32.dll_connect
push dword [0x9d7ac8]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
call fcn.00465fe1
push 0xa
call fcn.00475fa3
push eax
push 0x1a
push 0xaa
push 0xf
push 0xf
push 6
call fcn.00460ad3
push 8
call fcn.00475fa3
push eax
push 0x1a
push 0xaa
push 0x2d
push 0xf
push 4
call fcn.00460ad3
push 9
call fcn.00475fa3
push eax
push 0x1a
push 0xaa
push 0x4b
push 0xf
push 5
call fcn.00460ad3
push dword [0x9d7d64]
push 0x14
push 0xaa
push 0x78
push 0xf
push 7
call fcn.0045f321
call fcn.0042be6f
call fcn.00465ed2
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
je 0x41b47f
call fcn.00468fd4
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x41b47c
push dword [esp + 0x20]
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x41b47b
call fcn.00468fb6
push eax
mov ebx, 6
cmp ebx, dword [esp]
jne 0x41b430
mov eax, str.https:__msfree.su_donaties_donations.html
push eax
call fcn.00459d6c
add esp, 0xc
jmp 0x41b4d4
mov ebx, 4
cmp ebx, dword [esp]
jne 0x41b44f
mov eax, str.https:__msfree.su_donaties_donations.html
push eax
call fcn.00459d6c
add esp, 0xc
jmp 0x41b4d4
mov ebx, 5
cmp ebx, dword [esp]
jne 0x41b46b
mov eax, str.https:__msfree.su_donaties_donations.html
push eax
call fcn.00459d6c
add esp, 0xc
jmp 0x41b4d4
mov ebx, 7
cmp ebx, dword [esp]
jne 0x41b47a
add esp, 0xc
jmp 0x41b4d4
pop eax
pop eax
pop eax
jmp 0x41b489
push 0
call fcn.0046645f
push 0x1b
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x41b4ac
call fcn.0046647d
mov ebx, eax
and ebx, ebx
jne 0x41b4ac
call fcn.0042be6f
jmp 0x41b4d4
push 0xd
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x41b4cf
call fcn.0046647d
mov ebx, eax
and ebx, ebx
jne 0x41b4cf
call fcn.0042be6f
jmp 0x41b4d4
jmp 0x41b3dc
push 0
call fcn.00465851
xor eax, eax
add esp, 0x10
pop edi
pop ebx
ret 4
Function at 0x42862c
Capabilities:
Hide graphical window

Disassembly:
push ebx
call fcn.0047f360
push dword [esp + 8]
call fcn.004659bf
and eax, eax
je 0x42871d
mov ebx, dword [esp + 8]
cmp ebx, dword [0x9d7d80]
jne 0x4286b0
push dword [0x9d7d84]
call fcn.004659bf
and eax, eax
je 0x42866e
push 1
push dword [0x9d7d84]
call fcn.00465d1f
push 0
push dword [0x9d7d80]
call fcn.00465d1f
push 9
push dword [0x9d7d80]
call fcn.004659d1
push eax
call sub.USER32.dll_ShowWindow
push dword [0x9d7d80]
call fcn.004659d1
push eax
call sub.USER32.dll_SetForegroundWindow
push dword [0x9d7d80]
call fcn.0046645f
mov ebx, dword [esp + 8]
cmp ebx, dword [0x9d7d84]
jne 0x42871d
push dword [0x9d7d80]
call fcn.004659bf
and eax, eax
je 0x4286db
push 1
push dword [0x9d7d80]
call fcn.00465d1f
push 0
push dword [0x9d7d84]
call fcn.00465d1f
push 9
push dword [0x9d7d84]
call fcn.004659d1
push eax
call sub.USER32.dll_ShowWindow
push dword [0x9d7d84]
call fcn.004659d1
push eax
call sub.USER32.dll_SetForegroundWindow
push dword [0x9d7d84]
call fcn.0046645f
xor eax, eax
pop ebx
ret 4
Function at 0x43b9d8
Capabilities:
Query service status

Disassembly:
push ebp
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x43b9de
call fcn.0047f360
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.0043d000
lea eax, [esp + 4]
push 0xf003f
push 0
push 0
call sub.ADVAPI32.dll_OpenSCManagerW
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x43ba65
push 0xf01ff
push dword [esp + 4]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_OpenServiceW
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x43ba53
lea eax, [esp + 4]
push eax
push dword [esp + 0x28]
call sub.ADVAPI32.dll_QueryServiceStatus
push dword [esp + 0x24]
call sub.ADVAPI32.dll_CloseServiceHandle
push dword [esp + 0x20]
call sub.ADVAPI32.dll_CloseServiceHandle
lea ebp, [esp + 4]
mov eax, dword [ebp + 4]
jmp 0x43ba67
xor eax, eax
push dword [esp]
call fcn.0047f3c0
add esp, 0x28
pop ebp
ret 4
Function at 0x43bf55
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.0047f360
push dword [esp + 0x10]
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x43bf9e
push 1
push dword [esp + 4]
call sub.KERNEL32.dll_TerminateProcess
and eax, eax
je 0x43bf96
mov dword [esp + 4], 1
push dword [esp]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esp + 4]
jmp 0x43bfa6
add esp, 8
pop ebx
ret 4

Function at 0x43bfe8
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0047f360
push dword [esp + 0xc]
call fcn.0043d330
mov ebx, dword [0x9d7f7c]
and ebx, ebx
jne 0x43c024
push 0
push 0
call sub.USER32.dll_FindWindowW
mov dword [0x9d7f80], eax
mov dword [0x9d7f7c], 1
jmp 0x43c039
push 2
push dword [0x9d7f80]
call sub.USER32.dll_GetWindow
mov dword [0x9d7f80], eax
mov ebx, dword [0x9d7f80]
and ebx, ebx
je 0x43c0d3
push 0xfffffff0
push dword [0x9d7f80]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x10000000
cmp ebx, 0x10000000
jne 0x43c0d1
push 0xffffffec
push dword [0x9d7f80]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x80
cmp ebx, 0x80
je 0x43c0d1
push edx
call fcn.0047f1c0
pop edx
push eax
push edx
call fcn.0047f1c0
pop edx
push eax
push 0x100
call fcn.0047cca0
lea eax, [esp + 4]
push eax
call fcn.0047f260
push 0x100
push dword [esp + 4]
push dword [0x9d7f80]
call sub.USER32.dll_GetWindowTextW
push dword [esp]
mov edx, 0x53c098
pop ecx
call fcn.0043d2c0
jne 0x43c0d1
jmp 0x43c0eb
jmp 0x43c0dd
mov dword [0x9d7f7c], 0
mov ebx, dword [0x9d7f80]
and ebx, ebx
jne 0x43bffa
mov edx, dword [esp]
push edx
call fcn.0047f1c0
pop edx
push eax
push edx
call fcn.0047f200
pop eax
push eax
call fcn.0043d300
pop edx
add eax, edx
jmp 0x43c112
push dword [esp]
call fcn.0047f3c0
add esp, 4
pop ebx
ret

Function at 0x43dde3
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x43de7b
push edi
push 0x9d9374
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x9d8038]
test edi, edi
je 0x43de4f
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43de48
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x9d8038
call fcn.0047f0b1
pop ecx
pop ecx
jmp 0x43de4a
mov edi, dword [edi]
test edi, edi
jne 0x43de1f
pop ebx
mov eax, dword [0x9d30d8]
mov esi, eax
inc eax
push 0x10
push 0x9d8038
mov dword [0x9d30d8], eax
call fcn.0047f0f1
pop ecx
pop ecx
push 0x9d9374
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x43de83
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.0043dd97
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x9d9374
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x9d8038]
jmp 0x43deb4
cmp dword [esi + 0xc], edi
je 0x43deba
mov esi, dword [esi]
test esi, esi
jne 0x43dead
jmp 0x43ded2
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x9d8038
call fcn.0047f0b1
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x43f255
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x43f2aa
push dword [esp + 0x10]
push 0x43f1d4
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x9d80a0]
test esi, esi
je 0x43f303
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x43f2a2
cmp byte [esi + 0x10], 0
je 0x43f2a2
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x43f27e
jmp 0x43f303
mov esi, dword [0x9d80a0]
test esi, esi
je 0x43f303
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x43f2fc
cmp byte [esi + 0x11], 0
je 0x43f2d8
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x43f2ef
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x9d80a0
call fcn.0047f0b1
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x43f2b7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x459642
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x9d96d0]
call fcn.0047e76e
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x459742
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x459698
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x459690
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4596d8
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x45971a
push 0x22
pop edx
cmp cx, dx
je 0x4596ca
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4596ba
xor ecx, ecx
cmp word [eax], cx
je 0x45971a
mov ecx, eax
add eax, 2
jmp 0x45971c
test dx, dx
je 0x459722
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4596ca
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x459710
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x45971a
cmp cx, dx
je 0x45970d
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4596fd
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4596e2
jmp 0x4596ca
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x459724
xor edx, edx
cmp dword [ebp], ebx
jne 0x45972d
test edi, edi
jne 0x45974a
test edx, edx
je 0x459732
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x459686
test edi, edi
jne 0x45975b
mov eax, ebx
jmp 0x45975f
test esi, esi
je 0x45975b
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x45975f
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x459e7f
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x459ed3
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x459ec1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x459ecd
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x459e92
jmp 0x459ed1
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc

Function at 0x459f4d
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x45a00c
cmp dword [esp + 0x24], 2
je 0x45a00c
push 0x2000
push ebp
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x459fdb
cmp dword [esp + 0x18], 2
jne 0x459ff7
cmp dword [esp + 0x28], 0xffffffff
je 0x459f9f
cmp ebp, dword [esp + 0x28]
jae 0x459ff7
add ebp, 2
test ebx, ebx
jne 0x459fc4
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x459ff7
cmp ax, 0xd
je 0x459fdb
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x459f8b
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00502c20
jmp 0x45a09e
push eax
push 0
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x45a02a
cmp ebp, dword [esp + 0x28]
jae 0x45a082
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45a082
cmp dword [esp + 0x18], 1
jne 0x45a082
inc ebp
test ebx, ebx
jne 0x45a06f
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x45a082
cmp al, 0xd
je 0x45a01d
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x45a01d
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x45a099
call fcn.00502c70
jmp 0x45a09e
call fcn.00502bc0
push esi
push 0
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x45b073
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x45b212
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x45b211
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45b210
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x9d78b4]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x45b209
call fcn.00491720
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x45b1f6
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.00491bf0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.00491d70
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x45b142
cmp dword [eax + 8], 3
je 0x45b142
push dword [esp + 0x50]
push edi
call fcn.004914c0
pop ecx
pop ecx
jmp 0x45b160
push dword [esp + 0x50]
call fcn.00502b30
mov esi, eax
push esi
push edi
call fcn.00491be0
pop ecx
pop ecx
push esi
call fcn.00502b20
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.00491c40
push 0x8000
push edi
call fcn.00491a90
push edi
push dword [esi]
call fcn.00491ee0
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x45b1dd
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.00491ea0
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x45b1d5
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x45b1a3
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x45b1ef
mov dword [esp + 0x18], 1
push edi
call fcn.00491650
pop ecx
push ebp
push 0
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc

Function at 0x45b2cc
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x45b32e
cmp word [esi], di
je 0x45b32e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004928f0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.00492b00
add esp, 0x10
test eax, eax
jne 0x45b32d
push 0x24
push 8
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x45bcc0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x9d82c4], 0
jne 0x45bcce
call fcn.0045bc40
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x9d82c8]
call esi
test eax, eax
jne 0x45bcf1
call fcn.0045bc40
push dword [0x9d82c8]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x45bd00
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x45bd60
mov ebx, 0x10
test edi, edi
jns 0x45bd69
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x45bd32
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x45bd80
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x9d82c4], 0
jne 0x45bd8e
call fcn.0045bc40
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x9d82c8]
call esi
mov edx, eax
test edx, edx
jne 0x45bdb5
call fcn.0045bc40
push dword [0x9d82c8]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x45bde8
mov ebx, 0x10
test esi, esi
jns 0x45bdf1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x45be00
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x45d154
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebx
push edi
push dword [0x9d9744]
xor edi, edi
call fcn.0047e76e
mov ebx, eax
cmp dword [esp + 0x10], edi
je 0x45d248
push ebp
push esi
push 0x60
push 8
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x18]
mov esi, eax
xor ebp, ebp
inc ebp
or dword [esi + 4], 0xffffffff
mov dword [esi], ebp
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call sub.MSVCRT.dll__wcsdup
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], eax
test cl, 1
je 0x45d236
test ebx, ebx
je 0x45d200
push ebx
push edi
push dword [0x9d78b4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x45d1fb
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x45d22d
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x45d24f
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x45d225
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45d229
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x45d244
push esi
call fcn.0045cc9e
pop ecx
jmp 0x45d246
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x48], eax
call fcn.0045cd2f
pop ecx
mov edi, esi
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 0x18

Function at 0x45d41b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x45d36a
push 0x10
push 0x2c
call fcn.0047ea4f
xor esi, esi
mov dword [0x9d8310], eax
push esi
push esi
push 8
call fcn.0047e7d9
mov dword [0x9d974c], eax
cmp word [0x9d8308], si
jne 0x45d504
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x45d473
mov word [0x9d8308], di
jmp 0x45d47b
xor eax, eax
mov word [0x9d8308], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x9d8324], eax
test eax, eax
je 0x45d503
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51f388
push eax
call esi
push 0x51f394
push dword [0x9d8324]
mov dword [0x9d8314], eax
call esi
push str.getnameinfo
push dword [0x9d8324]
mov dword [0x9d8318], eax
call esi
push str.WSAStringToAddressA
push dword [0x9d8324]
mov dword [0x9d831c], eax
call esi
cmp dword [0x9d8314], 0
mov dword [0x9d8320], eax
je 0x45d503
cmp dword [0x9d8318], 0
je 0x45d503
cmp dword [0x9d831c], 0
je 0x45d503
test eax, eax
je 0x45d503
mov dword [0x9d830c], edi
pop edi
pop esi
add esp, 0x190
ret