joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12d4610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f9000]
push edi
jmp 0x12d462a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x12d4631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d4620
mov eax, 1
add ebx, ebx
jne 0x12d4643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x12d4654
jne 0x12d4673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d4673
dec eax
add ebx, ebx
jne 0x12d4660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x12d4638
add ebx, ebx
jne 0x12d466f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12d46c5
xor ecx, ecx
sub eax, 3
jb 0x12d468b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x12d46fa
sar eax, 1
mov ebp, eax
jmp 0x12d4696
add ebx, ebx
jne 0x12d4696
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d4664
inc ecx
add ebx, ebx
jne 0x12d46a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d4664
add ebx, ebx
jne 0x12d46b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12d46a6
jne 0x12d46c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12d46a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12d46e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12d46d6
jmp 0x12d4626
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12d46e4
add edi, ecx
jmp 0x12d4626
pop esi
mov edi, esi
mov ecx, 0x44c04f
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x12d471f
cmp byte [edi], 0x82
jne 0x12d4704
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x12d4702
lea edi, [esi + 0x9e3000]
mov eax, dword [edi]
or eax, eax
je 0x12d4770
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa1ede8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa1ee24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x12d4725
mov ecx, edi
jns 0x12d4754
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa1ee28]
or eax, eax
je 0x12d476a
mov dword [ebx], eax
add ebx, 4
jmp 0x12d4742
call dword [esi + 0xa1ee38]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x12d47a1
cmp al, 0xef
ja 0x12d4794
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x12d4776
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x12d4783
mov ebp, dword [esi + 0xa1ee2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x12d47d5
sub esp, 0xffffff80
jmp 0xcbc3e7
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x101
mov word [ebp - 0x198], ax
push 0x190
push 0
lea ecx, [ebp - 0x194]
push ecx
call fcn.00402b00
add esp, 0xc
lea edx, [ebp - 0x194]
push edx
movzx eax, word [ebp - 0x198]
push eax
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x401068
push 0
push 0x4121d4
push 0x4121dc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x4010d6
movzx ecx, word [ebp - 0x194]
movzx edx, word [ebp - 0x198]
cmp ecx, edx
je 0x40109a
push 0
push str.sample
push 0x41220c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call sub.WSOCK32.dll_WSACleanup
mov eax, 1
jmp 0x4010d6
push 0
push 0x4010f0
push 0
push 0x41223c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x4010cf
push 0
push 0x401370
push 0
push 0x41224c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020a4
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4014a0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4014bd
mov eax, dword [ebp - 4]
jmp 0x4014dd
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4014d3
xor eax, eax
jmp 0x4014dd
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov esp, ebp
pop ebp
ret

Function at 0x4014f0
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [0x41989c], eax
cmp dword [0x41989c], 0xffffffff
jne 0x401524
push 0
push 0x4122a8
push 0
call fcn.00401ca0
add esp, 0xc
xor eax, eax
jmp 0x401605
mov dword [0x419894], 1
push 0x28
push 0x12c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x41989c]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x401567
push 0
push 0x4122b4
mov edx, dword [0x41989c]
push edx
call fcn.00401ca0
add esp, 0xc
xor eax, eax
jmp 0x401605
push 0x10
push 0
push 0x41c0b8
call fcn.00402b00
add esp, 0xc
mov eax, 2
mov word [0x41c0b8], ax
push 0
call sub.WSOCK32.dll_htonl
mov dword [0x41c0bc], eax
movzx ecx, word [0x41b8b4]
push ecx
call sub.WSOCK32.dll_htons
mov word [0x41c0ba], ax
push 0x10
push 0x41c0b8
mov edx, dword [0x41989c]
push edx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4015d3
push 0
push str.bind__
mov eax, dword [0x41989c]
push eax
call fcn.00401ca0
add esp, 0xc
xor eax, eax
jmp 0x401605
push 5
mov ecx, dword [0x41989c]
push ecx
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
jne 0x401600
push 0
push str.listen__
mov edx, dword [0x41989c]
push edx
call fcn.00401ca0
add esp, 0xc
xor eax, eax
jmp 0x401605
mov eax, 1
pop ebp
ret
Function at 0x401610
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [0x4198a0], eax
cmp dword [0x4198a0], 0xffffffff
jne 0x401644
push 0
push str.socket__
push 0
call fcn.00401ca0
add esp, 0xc
xor eax, eax
jmp 0x4016f5
mov dword [0x419898], 1
push 0x33
push 0x12c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x4198a0]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x401684
push 0
push 0x4122e8
mov edx, dword [0x41989c]
push edx
call fcn.00401ca0
add esp, 0xc
xor eax, eax
jmp 0x4016f5
push 0x10
push 0
push 0x41c0b8
call fcn.00402b00
add esp, 0xc
mov eax, 2
mov word [0x41c0b8], ax
mov ecx, dword [0x4198a4]
mov dword [0x41c0bc], ecx
movzx edx, word [0x41b8b4]
push edx
call sub.WSOCK32.dll_htons
mov word [0x41c0ba], ax
push 0x10
push 0x41c0b8
mov eax, dword [0x4198a0]
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x4016f0
push 0
push str.connect__
mov ecx, dword [0x4198a0]
push ecx
call fcn.00401ca0
add esp, 0xc
xor eax, eax
jmp 0x4016f5
mov eax, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0x1000
push 0x41a8b0
mov eax, dword [ebp + 0xc]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401ac7
push 0x412474
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401d80
add esp, 8
jmp 0x401b37
cmp dword [ebp - 4], 0xffffffff
jne 0x401af5
push 0x412494
mov edx, dword [ebp + 8]
push edx
call fcn.00401d80
add esp, 8
mov eax, dword [ebp + 8]
push eax
push str.recv__
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401ca0
add esp, 0xc
jmp 0x401b37
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x1001
jae 0x401b06
jmp 0x401b0b
call fcn.00401fca
mov eax, dword [ebp - 8]
mov byte [eax + 0x41a8b0], 0
push 0x41a8b0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401d80
add esp, 8
push 0x4124b0
mov edx, dword [ebp + 8]
push edx
call fcn.00401d80
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x401b70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x419890], 1
jne 0x401c38
push 0x1001
push 0x4198a8
push 0xcb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jne 0x401bb4
push 0x4124d0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401d80
add esp, 8
jmp 0x401c38
push 0
push 0x4198a8
call fcn.00404140
add esp, 4
push eax
push 0x4198a8
mov edx, dword [0x4198a0]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401c02
mov dword [0x419890], 0
mov eax, dword [ebp + 8]
push eax
push str.send__
mov ecx, dword [0x4198a0]
push ecx
call fcn.00401ca0
add esp, 0xc
jmp 0x401c38
push 0x4198a8
mov edx, dword [ebp + 8]
push edx
call fcn.00401d80
add esp, 8
push 0x412500
mov eax, dword [ebp + 8]
push eax
call fcn.00401d80
add esp, 8
push 0x4121ca
push 0xcb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov esp, ebp
pop ebp
ret
Function at 0x401c40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_shutdown
mov ecx, 1
test ecx, ecx
je 0x401c82
push 0
push 0x1000
push 0x41a8b0
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401c78
jmp 0x401c96
cmp dword [ebp - 4], 0
jne 0x401c80
jmp 0x401c82
jmp 0x401c4f
push 2
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_shutdown
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_closesocket
mov esp, ebp
pop ebp
ret
Function at 0x40a927
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x40aacd
cmp word [eax], bx
je 0x40aacd
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x40aac9
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x40aabe
push edi
push dword [esp + 0x20]
call fcn.0040c25f
mov edi, eax
test edi, edi
je 0x40aabd
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x40a99d
push 2
jmp 0x40a9a1
push dword [esp + 0x20]
push ebx
call fcn.0040abfb
mov esi, eax
test esi, esi
je 0x40aab6
cmp ebx, 0xffffffff
jne 0x40a9b8
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x40a9f9
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x40aa07
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.00447910
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x40aab2
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x40aa32
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.004472a0
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x40aaa4
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x40aa76
push eax
push dword [esp + 0x1c]
call fcn.0040c30a
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x40aa7e
push 1
jmp 0x40aa80
push 0
push eax
push edi
call fcn.00447570
add esp, 0xc
test eax, eax
je 0x40aa98
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x40aa23
jmp 0x40aab2
push edi
call fcn.00447550
pop ecx
mov dword [esi + 0x18], eax
jmp 0x40aaab
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.0040c3c4
and dword [esi + 0x2c], 0
push edi
call fcn.004476b0
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x40aacf
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x40be2b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x40be67
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x40be69
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x40d38f
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 0x40d427
push edi
push 0x521d60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x520df8]
test edi, edi
je 0x40d3fb
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40d3f4
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x520df8
call fcn.004407db
pop ecx
pop ecx
jmp 0x40d3f6
mov edi, dword [edi]
test edi, edi
jne 0x40d3cb
pop ebx
mov eax, dword [0x51e374]
mov esi, eax
inc eax
push 0x10
push 0x520df8
mov dword [0x51e374], eax
call fcn.0044081b
pop ecx
pop ecx
push 0x521d60
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 0x410041
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x410096
push dword [esp + 0x10]
push 0x40ffc0
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x520e00]
test esi, esi
je 0x4100ef
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41008e
cmp byte [esi + 0x10], 0
je 0x41008e
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 0x41006a
jmp 0x4100ef
mov esi, dword [0x520e00]
test esi, esi
je 0x4100ef
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 0x4100e8
cmp byte [esi + 0x11], 0
je 0x4100c4
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4100db
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 0x520e00
call fcn.004407db
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4100a3
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42a3b1
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x521d8c]
call fcn.0043ff10
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 0x42a4b1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x42a407
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x42a3ff
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x42a447
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x42a489
push 0x22
pop edx
cmp cx, dx
je 0x42a439
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42a429
xor ecx, ecx
cmp word [eax], cx
je 0x42a489
mov ecx, eax
add eax, 2
jmp 0x42a48b
test dx, dx
je 0x42a491
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x42a439
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x42a47f
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x42a489
cmp cx, dx
je 0x42a47c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42a46c
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x42a451
jmp 0x42a439
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x42a493
xor edx, edx
cmp dword [ebp], ebx
jne 0x42a49c
test edi, edi
jne 0x42a4b9
test edx, edx
je 0x42a4a1
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x42a3f5
test edi, edi
jne 0x42a4ca
mov eax, ebx
jmp 0x42a4ce
test esi, esi
je 0x42a4ca
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x42a4ce
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x42b30a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x521dac]
call fcn.0043ff10
mov edi, dword [eax + 0x24]
test edi, edi
je 0x42b3c8
cmp dword [edi + 8], 1
je 0x42b3c8
mov edi, dword [edi + 0xc]
test edi, edi
je 0x42b3c8
mov al, byte [edi]
cmp al, 0x20
je 0x42b343
cmp al, 9
jne 0x42b346
inc edi
jmp 0x42b339
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.00440c30
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x42b397
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x42b3b3
cmp cx, dx
je 0x42b3b3
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x42b3ab
cmp cx, dx
jne 0x42b3b7
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x42b39e
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.00440d10
jmp 0x42b397
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00440fb0
Function at 0x42d440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42d4de
cmp dword [ebp + 0xc], edi
je 0x42d4de
push esi
push 0x58
push 8
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x38], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
test al, 1
je 0x42d4cd
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x42d656
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42d4c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x42d4dd
push esi
call fcn.0042d701
jmp 0x42d4dc
push esi
call fcn.0042d4f7
push esi
mov edi, eax
call fcn.0042d701
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10

Function at 0x42d4f7
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
push edi
mov ebp, dword [esi + 0xc]
push dword [esi + 8]
mov dword [esp + 0x18], ebp
call fcn.004d1a80
push dword [esi + 0x38]
mov dword [esp + 0x20], eax
call fcn.004d1a80
mov dword [esp + 0x10], eax
call fcn.0049c150
mov edi, eax
test edi, edi
je 0x42d62c
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42d617
test byte [esi + 0x24], 2
mov dword [esi + 0x10], ebp
jne 0x42d569
push 1
push 0x34
push edi
call fcn.0049f0a0
add esp, 0xc
mov eax, dword [0x520f58]
test eax, eax
je 0x42d581
push eax
push 0x2714
push edi
call fcn.0049f0a0
add esp, 0xc
mov eax, dword [0x520f5c]
test eax, eax
je 0x42d5b2
cmp dword [0x520f60], ebx
je 0x42d5b2
push eax
push 0x27bf
push edi
call fcn.0049f0a0
push dword [0x520f60]
push 0x27c0
push edi
call fcn.0049f0a0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push edi
call fcn.0049f0a0
push dword [esp + 0x1c]
push 0x2722
push edi
call fcn.0049f0a0
push 0x42d665
push 0x4e2b
push edi
call fcn.0049f0a0
push esi
push 0x2711
push edi
call fcn.0049f0a0
push edi
call fcn.0049c1f0
add esp, 0x34
test eax, eax
jne 0x42d602
cmp dword [esi + 4], 0xfffffffb
je 0x42d602
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x42d617
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.0049c110
pop ecx
cmp ebx, 1
jne 0x42d62c
mov dword [esi + 4], 0xfffffffe
jmp 0x42d63b
xor ecx, ecx
cmp dword [esi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [esi + 4], ecx
push dword [esp + 0x1c]
call fcn.004d1a70
push dword [esp + 0x10]
call fcn.004d1a70
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x42e1c7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42e261
push ebx
push esi
push 0x58
push 8
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
xor ebx, ebx
inc ebx
or dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x10]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
mov dword [esi + 0x50], ebx
pop ecx
pop ecx
test bl, al
je 0x42e24f
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x42e3bc
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42e23c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e23f
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42e247
mov edi, esi
jmp 0x42e25f
push esi
call fcn.0042d701
jmp 0x42e25e
push esi
call fcn.0042e276
push esi
mov edi, eax
call fcn.0042d701
pop ecx
pop ecx
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 0xc

Function at 0x42e7df
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x42e8bc
push ebx
push ebp
push esi
push 0x58
push 8
push dword [0x520bbc]
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
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], eax
test cl, 1
je 0x42e8a9
test ebx, ebx
je 0x42e873
push ebx
push edi
push dword [0x520bbc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x40], eax
test eax, eax
je 0x42e86e
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x40], edi
je 0x42e8a0
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x42e8c2
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42e898
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e89c
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x42e8b7
push esi
call fcn.0042d701
pop ecx
jmp 0x42e8b9
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x40], eax
call fcn.0042e451
pop ecx
mov edi, esi
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 0x18