joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4720fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jge 0x472115
call fcn.00483778
mov dword [eax], 9
or eax, 0xffffffff
pop ebp
ret
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004838c8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x472147
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x472105
call fcn.004720bd
jmp 0x472110
mov eax, dword [ebp + 8]
pop ebp
ret

Function at 0x472cc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x59bea0], ecx
inc edx
cmp edx, 0x100
jb 0x472cc2
ret

Function at 0x472d70
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, dword [esp + 4]
test ecx, ecx
jbe 0x472d9c
push esi
jmp 0x472d80
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x59bea0]
dec ecx
inc edx
test ecx, ecx
ja 0x472d80
pop esi
ret 4
Function at 0x4790a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x4790af
mov eax, dword [eax + 4]
jmp 0x4790b2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x479144
push esi
mov esi, dword [0x599148]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
cmp eax, 2
je 0x479129
cmp eax, 3
je 0x479129
cmp eax, 0x7b
je 0x479129
cmp eax, 0xf
je 0x479129
cmp eax, 0x57
je 0x479129
cmp eax, 0xa1
je 0x479129
cmp eax, 0x35
je 0x479129
cmp eax, 0x20
jne 0x47911e
mov eax, dword [0x59914c]
mov dword [ecx], eax
mov edx, dword [0x599150]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x59914c]
mov dword [ecx], eax
mov edx, dword [0x599150]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x59914c]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x599150]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x479171
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x479340
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x47935b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x479370
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x47938b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x4793c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x4793d3
mov ecx, dword [eax + 4]
jmp 0x4793d6
lea ecx, [eax + 4]
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], edx
jb 0x4793e4
mov eax, dword [eax + 4]
jmp 0x4793e7
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x479405
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [0x599148]
mov dword [eax + 4], ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [0x599148]
mov dword [eax + 4], ecx
ret
Function at 0x479420
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x479433
mov ecx, dword [eax + 4]
jmp 0x479436
lea ecx, [eax + 4]
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], edx
jb 0x479444
mov eax, dword [eax + 4]
jmp 0x479447
add eax, 4
movzx edx, byte [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x47946b
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [0x599148]
mov dword [eax + 4], ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [0x599148]
mov dword [eax + 4], ecx
ret

Function at 0x4795b0
Capabilities:
Create directory

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
call fcn.00479bb0
mov ebp, eax
mov dword [esp + 0xc], esi
call fcn.00479bb0
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], eax
jb 0x4795db
mov eax, dword [edi + 4]
jmp 0x4795de
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4795ff
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 1
pop ebp
add esp, 8
ret
mov ebp, dword [0x599148]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x47964f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.004790a0
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x47964f
mov eax, dword [esp + 0x18]
mov edx, dword [0x59914c]
mov ecx, dword [0x599150]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
Function at 0x4797f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x528dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x592894]
xor eax, esp
mov dword [esp + 0x278], eax
push ebp
push esi
push edi
mov eax, dword [0x592894]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x29c]
mov edx, dword [esp + 0x2b0]
mov edi, dword [esp + 0x2a0]
mov ebp, dword [esp + 0x2a8]
mov dword [esp + 0x14], ecx
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2a8]
push ecx
mov word [esp + 0x28], cx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
call fcn.00404b36
mov eax, dword [esp + 0x30]
mov dword [esp + 0x294], 0
test eax, eax
je 0x4798be
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4798a3
call fcn.0047baed
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4798b2
lea eax, [esp + 0x20]
cmp word [eax + esi*2], 0x5c
mov edx, 0x53a07c
je 0x4798c3
mov edx, 0x53a074
mov eax, edx
lea esi, [eax + 2]
jmp 0x4798d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4798d0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00434a2b
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x4798fd
lea eax, [esp + 0x20]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x47994f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
call esi
cmp eax, 2
jne 0x479927
xor eax, eax
jmp 0x479929
call esi
cmp dword [esp + 0x34], 8
mov esi, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [0x599148]
mov dword [esi + 4], eax
jb 0x47994b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0047acc9
add esp, 4
mov eax, esi
jmp 0x4799cd
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479956
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x68]
push edx
mov ecx, ebp
call fcn.00423968
test byte [esp + 0x38], 0x10
je 0x47998f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], 3
mov dword [ecx], 3
jmp 0x4799a3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 2
mov dword [eax], 2
mov ecx, dword [0x59914c]
mov edi, dword [esp + 0x10]
mov dword [edi], ecx
mov edx, dword [0x599150]
mov dword [edi + 4], edx
cmp dword [esp + 0x34], esi
jb 0x4799cb
mov eax, dword [esp + 0x20]
push eax
call fcn.0047acc9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0047b812
add esp, 0x288
ret
Function at 0x47a843
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5991e0], 0
push esi
jne 0x47a7b6
call fcn.0047a6dc
test eax, eax
je 0x47a7f9
mov eax, dword [0x5991e0]
cmp eax, 1
jne 0x47a7d7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x47a7f9
pop esi
ret
push eax
call dword [0x5991e8]
test eax, eax
jne 0x47a841
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x47a7fd
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5991e0]
call dword [0x5991e8]
mov edi, eax
test edi, edi
je 0x47a822
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x47a83e
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5991e0]
call dword [0x5991e4]
add edi, 0x10
cmp edi, esi
jb 0x47a82a
mov eax, edi
pop edi
pop esi
ret
jmp 0x47a7a3

Function at 0x47b812
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x592894]
jne 0x47b81c
repz ret
jmp fcn.0048909c

Function at 0x47fdae
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47fddf
call fcn.0048378b
mov dword [eax], esi
call fcn.00483778
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0047bac7
add esp, 0x14
or eax, 0xffffffff
jmp 0x47fe1a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47fdfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048379e
pop ecx
jmp 0x47fdda
test byte [ebp + 0xc], 0x80
je 0x47fe07
and eax, 0xfffffffe
jmp 0x47fe0a
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x47fded
xor eax, eax
pop esi
pop ebp
ret
Function at 0x499487
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00488a8f
and dword [ebp - 4], 0
cmp dword [0x599cf4], 0
mov ebx, eax
jne 0x499538
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4995e9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53cc58
push edi
call esi
test eax, eax
je 0x4995e9
push eax
call fcn.00488a1d
mov dword [esp], 0x53cc48
push edi
mov dword [0x599cf4], eax
call esi
push eax
call fcn.00488a1d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x599cf8], eax
call esi
push eax
call fcn.00488a1d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x599cfc], eax
call esi
push eax
call fcn.00488a1d
pop ecx
mov dword [0x599d04], eax
test eax, eax
je 0x499538
push 0x53cc00
push edi
call esi
push eax
call fcn.00488a1d
pop ecx
mov dword [0x599d00], eax
mov eax, dword [0x599d00]
cmp eax, ebx
je 0x499590
cmp dword [0x599d04], ebx
je 0x499590
push eax
call fcn.00488a98
push dword [0x599d04]
mov esi, eax
call fcn.00488a98
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x499590
test edi, edi
je 0x499590
call esi
test eax, eax
je 0x499587
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x499587
test byte [ebp - 0xc], 1
jne 0x499590
or dword [ebp + 0x10], 0x200000
jmp 0x4995c9
mov eax, dword [0x599cf8]
cmp eax, ebx
je 0x4995c9
push eax
call fcn.00488a98
pop ecx
test eax, eax
je 0x4995c9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4995c9
mov eax, dword [0x599cfc]
cmp eax, ebx
je 0x4995c9
push eax
call fcn.00488a98
pop ecx
test eax, eax
je 0x4995c9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x599cf4]
call fcn.00488a98
pop ecx
test eax, eax
je 0x4995e9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4995eb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a0fb8
Capabilities:
Connect to http server

Disassembly:
push 0x13c
mov eax, 0x529498
call fcn.0047b88a
lea eax, [ebp - 0x30]
mov ebx, 0x4e20
push eax
mov esi, ecx
mov dword [ebp - 0x30], ebx
call fcn.00432974
mov ecx, eax
call fcn.00431f04
xor edi, edi
test al, al
je 0x4a10e2
push 1
push 3
lea ecx, [ebp - 0x148]
call fcn.0040ac7d
push str.:_openConnection
push dword [esi + 0x1a0]
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], edi
call fcn.0042d8fa
push eax
call fcn.0040a99a
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ebx
call fcn.00432974
mov ecx, eax
call fcn.00431f04
test al, al
je 0x4a10d3
push str.bp::http::client::Transaction::Impl::openConnection
lea ecx, [ebp - 0x4c]
call fcn.0040979d
push str........._srclibs_bputils_srcHttpClientHttpTransaction_Windows.cpp
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0040979d
push 0x396
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], ebx
call fcn.004095fe
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 3
call fcn.00409e20
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 4
call fcn.00432974
mov ecx, eax
call fcn.004322cc
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.0040365c
lea ecx, [ebp - 0xc0]
call fcn.004a73e9
push edi
push 1
lea ecx, [ebp - 0x84]
call fcn.0040365c
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040365c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.0040441f
mov eax, dword [esi + 0x13c]
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [eax + 4]
mov dword [ebp - 0x30], edi
call fcn.004a6bc3
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 5
call fcn.0043b125
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.0040365c
cmp dword [ebp - 0x14], 8
mov eax, dword [esi + 0x13c]
mov ebx, dword [ebp - 0x28]
jae 0x4a112b
lea ebx, [ebp - 0x28]
push dword [esi + 0x1a0]
lea ecx, [eax + 4]
push edi
push 3
push edi
push edi
call fcn.004a6941
push eax
push ebx
push dword [esi + 0x144]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x148], eax
cmp eax, edi
je 0x4a1160
lea ecx, [esi + 0x10]
call fcn.00433d81
jmp 0x4a11a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp eax, 0x3e5
jne 0x4a1179
mov ecx, esi
call fcn.0049dd82
jmp 0x4a11a0
lea eax, [ebp - 0x4c]
push str.InternetConnect
push eax
call fcn.004391c2
pop ecx
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.004a0258
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040365c
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004036a7
mov eax, dword [ebp - 0x30]
call fcn.0047b90d
ret
Function at 0x4a1cf8
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x64
lea ebp, [esp - 4]
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x64], eax
push 0x7c
mov eax, 0x5296e4
call fcn.0047b821
mov esi, ecx
mov ecx, dword [esi + 0x24]
cmp ecx, dword [esi + 0x20]
jb 0x4a1d2e
and dword [esi + 0x15c], 0
xor eax, eax
jmp 0x4a1ea8
mov eax, dword [esi + 0x150]
xor ebx, ebx
sub eax, ebx
mov dword [ebp + 0x38], ebx
je 0x4a1da3
dec eax
jne 0x4a1ea5
push ebx
lea eax, [esi + 0x15c]
push eax
push 0x4000
push dword [esi + 0x158]
push dword [esi + 0x154]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a1ea5
lea eax, [ebp - 0x60]
push 0x53de70
push eax
call fcn.004391c2
pop ecx
pop ecx
push eax
mov ecx, esi
mov dword [ebp - 4], 6
call fcn.004a0258
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040365c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x38], eax
jmp 0x4a1ea5
lea edi, [esi + 0x13c]
mov eax, dword [edi]
push ecx
lea ecx, [eax + 0xf0]
call fcn.004a5e7c
mov edi, dword [edi]
lea ecx, [edi + 0xf0]
mov dword [esi + 0x158], eax
call fcn.004a5e58
sub eax, dword [esi + 0x24]
jns 0x4a1e92
push str.assert_failed:_toPost___0
lea ecx, [ebp - 0x44]
call fcn.0040979d
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0x3c]
mov dword [ebp - 4], ebx
call fcn.00439124
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040365c
push 0x52db29
lea ecx, [ebp]
call fcn.0040979d
push str.bp::http::client::Transaction::Impl::getDataToPost
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.0040979d
push str........._srclibs_bputils_srcHttpClientHttpTransaction_Windows.cpp
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040979d
lea eax, [ebp]
push eax
push 0x462
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x3c]
push eax
mov byte [ebp - 4], 5
call fcn.004394a1
add esp, 0x14
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040365c
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.0040365c
push ebx
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040365c
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x88]
call fcn.00439159
push 0x5797a8
lea eax, [ebp - 0x88]
push eax
call fcn.0047b16b
mov edx, 0x4000
lea ecx, [esi + 0x15c]
mov dword [ecx], eax
cmp eax, edx
jbe 0x4a1ea5
mov dword [ecx], edx
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.0047b812
add ebp, 0x68
leave
ret
Function at 0x4a5266
Capabilities:
Create http request

Disassembly:
push 0x13c
mov eax, 0x52a065
call fcn.0047b88a
lea eax, [ebp - 0x30]
mov esi, 0x2710
push eax
mov ebx, ecx
mov dword [ebp - 0x30], esi
call fcn.00432974
mov ecx, eax
call fcn.00431f04
xor edi, edi
test al, al
je 0x4a5390
push 1
push 3
lea ecx, [ebp - 0x148]
call fcn.0040ac7d
push str.:_openSession
push dword [ebx + 0x1a0]
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], edi
call fcn.0042d8fa
push eax
call fcn.0040a99a
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
call fcn.00432974
mov ecx, eax
call fcn.00431f04
test al, al
je 0x4a5381
push str.bp::http::client::Transaction::Impl::openSession
lea ecx, [ebp - 0x4c]
call fcn.0040979d
push str........._srclibs_bputils_srcHttpClientHttpTransaction_Windows.cpp
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0040979d
push 0x37a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], esi
call fcn.004095fe
mov esi, eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 3
call fcn.00409e20
push esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 4
call fcn.00432974
mov ecx, eax
call fcn.004322cc
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.0040365c
lea ecx, [ebp - 0xc0]
call fcn.004a73e9
push edi
push 1
lea ecx, [ebp - 0x84]
call fcn.0040365c
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040365c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.0040441f
lea eax, [ebx + 0x110]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043b125
pop ecx
pop ecx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 5
jae 0x4a53b5
lea eax, [ebp - 0x28]
push 0x10000000
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0x144], eax
cmp eax, edi
jne 0x4a53ef
lea eax, [ebp - 0x68]
push str.InternetOpen
push eax
call fcn.004391c2
pop ecx
pop ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.004a0258
lea ecx, [ebp - 0x68]
jmp 0x4a541f
push 0x4a50c6
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x4a5427
push str.InternetSetStatusCallback_failed.
lea ecx, [ebp - 0x4c]
call fcn.0040979d
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.004a0258
lea ecx, [ebp - 0x4c]
push edi
push 1
call fcn.0040365c
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004036a7
call fcn.0047b90d
ret
Function at 0x4a83c2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
sub esp, 0x190
lea ebp, [esp - 4]
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x190], eax
push 0x38
mov eax, 0x52a737
call fcn.0047b821
mov edi, dword [ebp + 0x19c]
mov esi, dword [ebp + 0x1a0]
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
call fcn.004361bc
lea eax, [ebp]
push eax
push 0x202
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4a84b0
cmp dword [esi + 0x18], 0x10
jb 0x4a8424
mov esi, dword [esi + 4]
jmp 0x4a8427
add esi, 4
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4a84b0
push 2
push 4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov esi, eax
cmp esi, ebx
je 0x4a84b0
mov eax, dword [esi]
cmp eax, ebx
je 0x4a8477
push eax
lea ecx, [ebp - 0x44]
call fcn.0040979d
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040e791
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0040365c
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x4a84b0
mov eax, dword [esi]
cmp eax, ebx
je 0x4a84b0
push eax
lea ecx, [ebp - 0x44]
call fcn.0040979d
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040e791
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0040365c
add esi, 4
jne 0x4a847e
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0041f774
lea ecx, [ebp - 0x28]
call fcn.0040ca42
push dword [ebp - 0x28]
call fcn.0047acc9
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0047b812
add ebp, 0x194
leave
ret

Function at 0x4ac620
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call fcn.005185e6
mov edi, eax
add esp, 8
test edi, edi
jne 0x4ac6b6
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004b2540
push 0x53f218
push esi
push 0x53f214
push ebx
push str.fopen_
push 5
call fcn.004b2120
add esp, 0x2c
call fcn.00483778
cmp dword [eax], 2
jne 0x4ac698
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004b2540
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x83
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004b2540
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x593ec4
call fcn.004abae0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ac6d8
push edi
call fcn.0048152f
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.004ab510
push edi
push 1
push 0x6a
push esi
call fcn.004ab880
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret