joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51de8e
Capabilities:
Reference sql statements

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
mov dword [esp], 0
cmp dword [esp + 0x1c], 0
je 0x51deb7
push 0x6fb198
push 1
push 0
call fcn.004f09d9
push dword [0x9b3e20]
push 1
push dword [0x9b3e20]
mov edx, str.SELECT__FROM_Reservations_WHERE_RESVLINK
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [esp + 0x2c]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, dword [0x9a36fc]
add dword [esp], edx
call fcn.004f685a
pop dword [0x9b3e20]
and eax, eax
je 0x51e02b
push 1
call fcn.004f4ac4
and eax, eax
je 0x51df94
call fcn.004ec46d
mov ebx, dword [esp]
inc ebx
mov dword [esp], ebx
push dword [0x9b3e20]
push dword [0x9b3e20]
push 1
push dword [0x9ad808]
call fcn.00556870
push dword [0x9b3e20]
push 0x6fb198
push dword [0x9ad880]
call fcn.0051b5b2
pop eax
mov edx, dword [0x9abb20]
push edx
call fcn.005597c0
mov edx, 0x6fbaa2
push edx
call fcn.005597c0
push dword [0x9b3e20]
call fcn.00518fc2
pop eax
mov ebx, dword [esp + 4]
mov ebp, dword [0x9af140]
shl ebx, 2
lea eax, [ebp + ebx]
push eax
call fcn.00559740
jmp 0x51df08
push 1
call fcn.004be154
push 0
push 2
push 0x6fbaa2
push 1
push dword [esp + 0x10]
push 0x9af140
call fcn.0051c21a
mov dword [esp + 4], 1
jmp 0x51dfca
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jl 0x51e02b
push dword [0x9b3e20]
push 2
mov ebx, dword [esp + 0xc]
mov ebp, dword [0x9af140]
shl ebx, 2
push dword [ebp + ebx]
call fcn.004da677
lea eax, [esp + 0xc]
push eax
call fcn.00559740
mov edx, dword [esp + 8]
push dword [0x9b3e20]
push edx
call fcn.005597c0
mov ebx, dword [esp + 8]
mov ebp, dword [0x9af140]
shl ebx, 2
lea eax, [ebp + ebx]
push eax
call fcn.00559740
inc dword [esp + 4]
jno 0x51dfca
cmp dword [esp + 0x1c], 0
je 0x51e03c
push 1
call fcn.004d3586
mov eax, dword [esp]
jmp 0x51e043
push dword [esp + 8]
call fcn.00559820
add esp, 0xc
pop ebx
pop ebp
ret 8
Function at 0x5206ca
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push closesocket
push dword [esp + 0x30]
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5207aa
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [esp + 0x20], 1
mov ebp, eax
je 0x520762
push esi
push esi
push esi
push dword [esp + 0x28]
call fcn.00520cb3
mov esi, eax
test esi, esi
je 0x5207a2
push dword [esp + 0x18]
push dword [0x9af7e0]
call fcn.00558ec3
mov ebp, eax
mov eax, 0x10000
push eax
push esi
mov dword [ebp + 0x18], eax
call fcn.00520dad
push eax
push esi
call fcn.00520d93
push eax
call fcn.00520a9f
mov dword [ebp], eax
test eax, eax
je 0x52075a
mov dword [ebp + 0x14], esi
mov ebx, ebp
jmp 0x5207a2
push esi
call fcn.00520d86
jmp 0x5207a2
push ebp
push esi
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x5207a2
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
push dword [esp + 0x20]
call fcn.00520320
push esi
push 0
push dword [0x9aa644]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc
Function at 0x52084c
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x9af7e0]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.00558e9b
mov esi, eax
test esi, esi
je 0x5209e1
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x5208f6
push ebx
call fcn.00520bac
jmp 0x52088e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x520886
push dword [esi + 0x14]
call fcn.00520dba
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.005207c5
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x5209eb
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x5208d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x5208e4
push dword [esp + 0x20]
push ebx
call fcn.00520c80
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x520996
test byte [esp + 0x1c], 1
je 0x520905
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x5209a0
push esi
call fcn.0052064f
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00559619
pop ecx
pop ecx
mov ecx, dword [0x9afd80]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x5209e1
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x520981
push edi
push dword [esp + 0x24]
push ebx
call fcn.00520be0
jmp 0x52098e
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x5209e1
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x5209c2
push dword [esp + 0x20]
push ebx
call fcn.00520c80
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x5209e1
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x524a75
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x524aca
push dword [esp + 0x10]
push 0x5249f4
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x9afa04]
test esi, esi
je 0x524b23
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x524ac2
cmp byte [esi + 0x10], 0
je 0x524ac2
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 0x524a9e
jmp 0x524b23
mov esi, dword [0x9afa04]
test esi, esi
je 0x524b23
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 0x524b1c
cmp byte [esi + 0x11], 0
je 0x524af8
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x524b0f
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 0x9afa04
call fcn.005595d9
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x524ad7
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x524c27
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x9b4160]
call fcn.00558e32
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 0x524d27
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x524c7d
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x524c75
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x524cbd
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x524cff
push 0x22
pop edx
cmp cx, dx
je 0x524caf
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x524c9f
xor ecx, ecx
cmp word [eax], cx
je 0x524cff
mov ecx, eax
add eax, 2
jmp 0x524d01
test dx, dx
je 0x524d07
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x524caf
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x524cf5
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x524cff
cmp cx, dx
je 0x524cf2
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x524ce2
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x524cc7
jmp 0x524caf
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x524d09
xor edx, edx
cmp dword [ebp], ebx
jne 0x524d12
test edi, edi
jne 0x524d2f
test edx, edx
je 0x524d17
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x524c6b
test edi, edi
jne 0x524d40
mov eax, ebx
jmp 0x524d44
test esi, esi
je 0x524d40
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x524d44
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x52546f
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x5254c3
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 0x5254b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x5254bd
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x525482
jmp 0x5254c1
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc

Function at 0x525536
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x5255e5
cmp dword [esp + 0x24], 2
je 0x5255e5
push 0x2000
push edi
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x5255b8
cmp dword [esp + 0x18], 2
jne 0x5255d0
test ebx, ebx
jne 0x5255a1
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x5255d0
cmp ax, 0xd
je 0x5255b8
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 ebp
test eax, eax
jne 0x525578
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.006cde20
jmp 0x52566b
push eax
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x525637
cmp dword [esp + 0x18], 1
jne 0x52564f
test ebx, ebx
jne 0x525626
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x52564f
cmp al, 0xd
je 0x525637
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x5255fe
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x525666
call fcn.006cde70
jmp 0x52566b
call fcn.006ce0a0
push esi
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x526601
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x526663
cmp word [esi], di
je 0x526663
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00577a00
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.00577cb0
add esp, 0x10
test eax, eax
jne 0x526662
push 0x24
push 8
push dword [0x9aa644]
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 0x526b5d
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.006ce010
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
push esi
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x526c5c
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [edi + 0x18]
push esi
push dword [ebx + 0x18]
push eax
push ebp
push edi
push dword [esp + 0x48]
call fcn.0052704c
mov esi, eax
add esp, 0x18
test esi, esi
je 0x526bc0
cmp esi, edi
jge 0x526bc0
mov dword [esp + 0x34], ebp
jmp 0x526bc2
mov esi, edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_strlen
mov word [esp + 0x2c], ax
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [esp + 0x1c], eax
mov eax, esi
pop ecx
mov dword [esp + 0x1c], edx
cdq
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push 0x12
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
push eax
push dword [ebx]
call edi
cmp dword [esp + 0x3c], 0x12
jne 0x526c41
push 0
lea eax, [esp + 0x40]
push eax
movsx eax, word [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [ebx]
call edi
movsx eax, word [esp + 0x28]
cmp eax, dword [esp + 0x3c]
jne 0x526c41
push 0
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x40]
push dword [ebx]
call edi
cmp esi, dword [esp + 0x3c]
jne 0x526c41
xor esi, esi
inc esi
jmp 0x526c45
mov esi, dword [esp + 0x10]
push ebx
call fcn.00527266
pop ecx
push ebp
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
push dword [esp + 0x10]
call fcn.006ce000
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x526e97
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
or dword [esp], 0xffffffff
xor edx, edx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, edx
test edi, edi
je 0x526ece
cmp word [edi], dx
je 0x526ece
push edi
call fcn.006ce010
mov ebp, dword [esp + 0x20]
mov edi, eax
push edi
push ebp
call fcn.005272ab
pop ecx
pop ecx
mov esi, eax
xor edx, edx
jmp 0x526ee4
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 8], edx
je 0x526ff9
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x526ff9
cmp dword [esp + 0x30], 0
je 0x526f08
push dword [esi]
push edx
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [esi]
jmp 0x526f10
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x526ffd
cdq
cmp edx, dword [esi + 4]
jl 0x526ffd
jg 0x526f30
cmp eax, dword [esi]
jb 0x526ffd
push 0
lea eax, [esi + 0x14]
push eax
push dword [esi + 0x10]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x526f82
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x526f82
push 0
lea eax, [esp + 0x30]
push eax
push dword [esi]
push ebx
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esp + 0x2c]
mov eax, ebp
cdq
cmp dword [esi], eax
jne 0x526ffd
cmp dword [esi + 4], edx
jne 0x526ffd
mov dword [esp + 0x10], ebp
jmp 0x527001
push dword [esi + 8]
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x526ffd
push 0
lea ecx, [esp + 0x30]
push ecx
push dword [esi + 8]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x2c]
cdq
cmp dword [esi + 8], eax
jne 0x526fe1
cmp dword [esi + 0xc], edx
jne 0x526fe1
push dword [esp + 0x14]
push ebx
push dword [esp + 0x20]
call fcn.0052750c
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x526fe1
cmp edx, dword [esi + 4]
jne 0x526fe1
mov ebp, dword [esi]
mov dword [esp + 0x10], ebp
jmp 0x526fe5
mov ebp, dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x527001
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x52702d
cmp ebp, 0xffffffff
jne 0x527027
test ebx, ebx
je 0x527021
push ebx
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ebx, eax
jmp 0x527033
mov eax, dword [esi]
mov dword [ecx], eax
jmp 0x527031
mov ebx, dword [esp + 0x10]
xor eax, eax
test edi, edi
je 0x527042
cmp word [edi], ax
je 0x527042
push edi
call fcn.006ce000
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x5272eb
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
xor ebx, ebx
push 0x40
pop ebp
cmp dword [esi + 4], ebx
jne 0x52746e
push edi
push 0x100
push ebx
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push 4
pop edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x14], 0x706c7a31
lea eax, [esp + 0x4c]
push 0
push eax
jne 0x527380
push 0x18
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x18
jne 0x52746d
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov ax, word [esp + 0x40]
mov word [esp + 0x2c], ax
jmp 0x52739a
push 0x12
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x12
jne 0x52746d
cmp dword [esi + 0xc], ebp
jl 0x5273bc
add ebp, 0x40
mov eax, ebp
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [esp + 0x2c]
add eax, 0x19
push eax
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x14], edx
push eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0xc], ecx
movsx eax, word [esp + 0x34]
push eax
lea eax, [edx + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [esp + 0x2c]
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov byte [eax + edx + 0x18], cl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [esp + 0x2c]
jne 0x52742f
add eax, 0x18
jmp 0x527432
add eax, 0x12
add edi, eax
mov dword [edx + 0x10], edi
adc ebx, ecx
mov dword [edx + 0x14], ebx
mov ecx, dword [esi + 0xc]
add edi, dword [esp + 0x24]
mov eax, dword [esi + 4]
adc ebx, dword [esp + 0x28]
push 1
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc dword [esi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ecx
push ecx
jmp 0x527322
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x52d32c
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x52d419
push ebx
push ebp
push esi
push 0x60
push 8
push dword [0x9aa644]
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]
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [0x9a373c]
mov dword [esi + 0x28], eax
mov eax, dword [0x9b002c]
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 0x52d406
test ebx, ebx
je 0x52d3d0
push ebx
push edi
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x52d3cb
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x52d3fd
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x52d41f
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x52d3f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x52d3f9
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x52d414
push esi
call fcn.0052ce28
pop ecx
jmp 0x52d416
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x48], eax
call fcn.0052cf23
pop ecx
mov edi, esi
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 0x18

Function at 0x52d5eb
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x52d53a
push 0x10
push 0x2c
call fcn.00558f44
push 0
push 0
push 8
mov dword [0x9b0038], eax
call fcn.00558e39
cmp word [0x9b0030], 0
mov dword [0x9b43d8], eax
jne 0x52d6d0
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x52d643
mov word [0x9b0030], di
jmp 0x52d64b
xor eax, eax
mov word [0x9b0030], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x9b004c], eax
test eax, eax
je 0x52d6cf
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6cf4c0
push eax
call esi
push 0x6cf4cc
push dword [0x9b004c]
mov dword [0x9b003c], eax
call esi
push str.getnameinfo
push dword [0x9b004c]
mov dword [0x9b0040], eax
call esi
push str.WSAStringToAddressA
push dword [0x9b004c]
mov dword [0x9b0044], eax
call esi
cmp dword [0x9b003c], 0
mov dword [0x9b0048], eax
pop esi
je 0x52d6cf
cmp dword [0x9b0040], 0
je 0x52d6cf
cmp dword [0x9b0044], 0
je 0x52d6cf
test eax, eax
je 0x52d6cf
mov dword [0x9b0034], edi
pop edi
add esp, 0x190
ret
Function at 0x52d783
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0xff
push eax
mov dword [0x9b43dc], esi
mov dword [0x9b43ec], esi
mov dword [0x9b43f0], edi
mov dword [0x9b43f4], esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x52d82f
cmp edi, 0x10000000
jne 0x52d80b
cmp dword [0x9b0034], esi
je 0x52d82f
mov eax, dword [0x9b0050]
test eax, eax
je 0x52d7e7
push eax
call dword [0x9b0040]
mov dword [0x9b0050], esi
push 0x9b0050
push esi
push esi
lea eax, [ebp - 0x100]
push eax
call dword [0x9b003c]
test eax, eax
jne 0x52d82f
mov eax, dword [0x9b0050]
mov dword [0x9b43f4], eax
jmp 0x52d82c
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x52d82f
push 0x10
push eax
push 0x9b43e0
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4